cancel
Showing results for 
Search instead for 
Did you mean: 

Transaction With RFC JCO

Former Member
0 Kudos

Hi guys,

I call a rfc who call a bapi function.

But, if I get a error message from sap I need to do the rollback in sap and in my application.

In my application no problems, but, how can I do rollback at SAP?

Can I work with transactions???

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi edney,

You can do this by using the <b>BAPI_TRANSACTION_COMMIT</b> and <b>BAPI_TRANSACTION_ROLLBACK</b> BAPIs. They are used for handling transactions on BAPI calls. They are listed under the BAPIService node in the BAPI explorer. Refer to the following tutorial for handling transactions with BAPIs in webdynpro, though you might not be using webdynpro, but it will help you understand the whole thing.

<a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/20b6e990-0201-0010-5095-f3a465de5f30">Handling Transactions with BAPIs in Web Dynpro</a>

Best regards,

Guru.