Got error while executing the SAP IDoc Write snap

Hi,

I got the below mentioned error while executing the SAP IDoc write snap.

Can you please explain the reasons for getting this error? and how to overcome with this error?

Hi Gopi,

The connection to the SAP server seems to be failing. If you have an account set up in the SAP IDoc Write snap can you make sure it is working correctly. Just go into the accounts tab in the SAP IDoc Write snap click edit account and Validate the account after that.

Thanks for your reply @Andrej_Bogdanovski,

I have validated the account and the account is successfully validated but, got the same error.

is there any configuration to change from SAP side or snaplogic side?

Hi GBekkanti,

If account is validated successfully and passing parameters for BAPI are correct.

check below two options.

  1. Restart jcc service and try to write on BAPI.
  2. Make sure your SAP port numbers are available in groundplex server nodes.

Thanks,
Umashankar

Hi @umashankar316,

Can you please let me know, where exactly I can check for the existence of SAP port numbers in the server.

if it is in Services, what is the port number and name that should be existed in services to execute the SAP IDoc Write snap successfully.

Can you just let me know the use of “IDoc Read BAPI Name” this property in SAP IDoc write snap. do we need to provide any value for this property when we are writing an IDoc to SAP[Inbound to SAP].

Thanks in advance!

Hi GBekkanti,

Please make sure if you have
SAP port entries in /etc/services
file in unix groundplex server nodes.

Make
sure you are using the BAPI which is already created in SAP system and passing necessary elements for BAPI write.

Thanks,

Umashankar

This e-mail and any files transmitted with it are for the sole use of the intended recipient(s) and may contain confidential and privileged information. If you are not the intended recipient(s), please reply to the sender and destroy all copies of the original
message. Any unauthorized review, use, disclosure, dissemination, forwarding, printing or copying of this email, and/or any action taken in reliance on the contents of this e-mail is strictly prohibited and may be unlawful. Where permitted by applicable law,
this e-mail and other e-mail communications sent to and from Cognizant e-mail addresses may be monitored. This e-mail and any files transmitted with it are for the sole use of the intended recipient(s) and may contain confidential and privileged information.
If you are not the intended recipient(s), please reply to the sender and destroy all copies of the original message. Any unauthorized review, use, disclosure, dissemination, forwarding, printing or copying of this email, and/or any action taken in reliance
on the contents of this e-mail is strictly prohibited and may be unlawful. Where permitted by applicable law, this e-mail and other e-mail communications sent to and from Cognizant e-mail addresses may be monitored.

Hi @umashankar316,

SAP port numbers are available and IDoc is generated in SAP side but, I am getting the above mentioned error rather than IDoc number.

The error message states that the call is not getting to the server. It looks like you may be validating the account with one plex and using another when you try to run the pipeline. Please check to make sure you are using the same plex for both tasks.
Best regards,
Rich

Hi @rdill,

Thanks for your reply. I am using the same plex for both tasks. IDoc is generated in SAP but, I am not getting the IDoc number rather above mentioned error output.

Can you just let me know the use of “IDoc Read BAPI Name” this property in SAP IDoc write snap. Do we need to provide any value for this property when we are writing an IDoc to SAP[Inbound to SAP]?

Hi Gbekkanti,

Yes, IDOC Read BAPI name, success codes and elements values is required to write the SAP BAPI.

Please go through link and configured SAP account along with SAP IDOC write snap.

https://docs-snaplogic.atlassian.net/wiki/spaces/SD/pages/1438400/SAP+IDoc+Write

NOTE : SAP snaps should run on groundplex.

Thanks,
Umashankar

Hi @umashankar316,

I have gone through the link, ‘IDOC Read BAPI name’ this property is not mentioned in the SAP IDOC Write but in SAP IDOC READ.
I have given all the required values. please see the below image for IDoc Write snap configuration

I am running the pipeline in Groundplex only.

Change the IDoc Read BAPI Name back to: Z_SNAP_IDOC_READ_COMPLETELY

and try again.
I just tested it and it works, see screen shot

best regards,
Rich