Hi R P,
I’m assuming that the RFC you’ve shown here could be a custom BAPI/RFC, can you please confirm which is the case?
In SAP itself, there is this concept called LUW or similar concept to transaction in DB.
The data will not be written to the database until the client triggers a commit work command. In
order to call a BAPI that writes data, you must perform the following steps on Integration Server:
1.Call the pub.sap.client:lockSession service in order to get an exclusive connection to the SAP system.
2.Perform the BAPI calls.
3.Call the pub.sap.bapi:commit or pub.sap.bapi:rollback service
4.Call the pub.sap.client:releaseSession service in order to release the exclusive connection to the SAP system and clean up used resources on Integration Server.
Note: This service locks a session to trigger a commit work command inside the SAP system. This causes a database commit. This service only works with SAP systems version 4.0A and higher because BAPIs do not write data directly to the database but use the posting engine inside the SAP system and the start of the processing of posted data.
Here are more explanations from SAP context.
https://wiki.scn.sap.com/wiki/display/ABAP/BAPI_TRANSACTION_COMMIT+versus+COMMIT+WORK
From just looking at the SAP adapter service input/output signature, it will be impossible for anyone to tell what’s wrong with your code.
Either you share the sample service to have a look, or you should raise a ticket to SAG GS for further investigation.
#Integration-Server-and-ESB#Adapters-and-E-Standards#webMethods