Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Three Bapi's in One Program - Points will be rewarded.

Former Member
0 Likes
369

I have three Bapi's

BAPI_PO_CREATE1.

BAPI_SALESORDER_CREATEFROMDAT2.

BAPI_PO_CREATE1.

these are called in the sequence in my program.

If there is an error in creating anyone of them..all of them should not be created..how do i acheive this..

I have three Bapi's

BAPI_PO_CREATE1.

BAPI_SALESORDER_CREATEFROMDAT2.

BAPI_PO_CREATE1.

these are called in the sequence in my program.

If there is an error in creating anyone of them..all of them should not be created..how do i acheive this..

1 REPLY 1
Read only

Former Member
0 Likes
352

At the end of the program you call either BAPI_TRANSACTION_COMMIT (in case there was no error or BAPI_TRANSACTION_ROLLBACK (in case there was one.

This will either commit all three or roll them back.

Regards,

Michael