Skip to content
","upvoteCount":1,"answerCount":1,"acceptedAnswer":{"@type":"Answer","text":"

Hello @sharangthorat,

\n
\n

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.

\n
\n

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.

\n

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

\n

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.

","upvoteCount":1,"url":"https://github.com/SAP-archive/node-rfc/discussions/286#discussioncomment-5916076"}}}
Discussion options

You must be logged in to vote

Hello @sharangthorat,

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.

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.…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by bsrdjan
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants