Hi,
The main problem can't control BAPI's transactions (commit/rollback) after its invocation. The purpose is to be able to start a transaction, invoke several BAPIs, and then commit/rollback all at once.
Note: by "transaction" we mean the concept of database-transaction (http://en.wikipedia.org/wiki/Database_transaction).
We made a simple insert test (inside a simple BAPI with no explicit commit) and invoke RollBack function.(SAPClient.RollBack() function).
None of the tried alternatives were successful. Tests were performed using a SAP Server 5.00.
We have tried several SAPClient methods invocations:
- Using SAPClient.Invoke(...) followed by a SAPClient.RollbackWork();
.RollbackWork();
- We also tried to use qRFC but since BAPIs are only executed at the end (when committing) they are useless since we need the BAPI results before we decide to commit/rollback.
We would like to know how can we change our code to invoke the BAPIs and be able to control the commit/rollback afterwards.
Also, it is possible to run several BAPIs in the context of the same transaction?
Thanks in advance,
João Portela on behalf of Manuel Dias
Edited by: Manuel Dias on Feb 18, 2009 3:04 PM