Transaction commit behaviour of direct client #286
-
I am using node_rfc version 2.7.0 and using direct client. My observation is that when I perform BAPI_MATERIAL_SAVEREPLICA operation I can see material available in SAP server without doing explicit BAPI_TRANSACTION_COMMIT on client. As per my understanding node_rfc by default is statefull client. However it needs explicit BAPI_TRANSACTION_COMMIT on same connection for data to get committed in SAP. Below is my sample client code. As I have explained above after executing this code I can search material STHORATMATERIAL008 in my SAP server. Is my understanding about commit behaviour is correct? If so why code below works without explicit commit?
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hello @sharangthorat,
I am not sure if BAPI_TRANSACTION_COMMIT is indeed required for BAPI_MATERIAL_SAVEREPLICA. It is not mentioned in BAPI_MATERIAL_SAVEREPLICA documentation and in any case node-rfc does not add (or take) anything to its logic. The node-rfc behaves exactly as ABAP client and if explicit COMMIT not needed in ABAP, the same is with node-rfc. I would suggest to post the question in SAP Community, if explicit COMMIT BAPI is required for BAPI_MATERIAL_SAVEREPLICA, how to do rollback etc, see https://answers.sap.com/questions/9220169/doubt-about-bapimaterialsavereplica-and-commit--ro.html There are also TESTRUN and NO_ROLLBACK_WORK import parameters, influencing the transaction behaviour of this BAPI but better to check with SAP Comunity ABAP experts. |
Beta Was this translation helpful? Give feedback.
Hello @sharangthorat,
I am not sure if BAPI_TRANSACTION_COMMIT is indeed required for BAPI_MATERIAL_SAVEREPLICA. It is not mentioned in BAPI_MATERIAL_SAVEREPLICA documentation and in any case node-rfc does not add (or take) anything to its logic. The node-rfc behaves exactly as ABAP client and if explicit COMMIT not needed in ABAP, the same is with node-rfc.
I would suggest to post the question in SAP Community, if explicit COMMIT BAPI is required for BAPI_MATERIAL_SAVEREPLICA, how to do rollback etc, see https://answers.…