Skip to Content
0
Former Member
Apr 26, 2007 at 07:39 AM

BAPI_TRANSACTION_ROLLBACK necessary?

2373 Views

To commit changes made by BAPIs like BAPI_PO_CREATE1 it is necessary to call BAPI_TRANSACTION_COMMIT.

Question is: Is it also necessary to call BAPI_TRANSACTION_ROLLBACK in case of an error?

e.g. BAPI_PO_CREATE1 does not succeed and returns an error message in RETURN table. Do I have to execute an rollback now?

If I test BAPI_PO_CREATE1 and it succeeds a po number is returned. Without calling COMMIT or ROLLBACK now will this number garble the system or is it save to forget it simply?

Thanks!

Florian