Skip to Content
0
Former Member
Nov 09, 2005 at 10:01 PM

BAPIs not committing data

145 Views

Hello,

I am calling BAPI_SALESORDER_CREATEFROMDAT2 using web services through SOAP. It returns SALESDOCUMENT number, but with VA03 transaction I can't find this sales doc. A bit of research revealed that I must do a BAPI_TRANSACTION_COMMIT.

That doesn't work for me. I call the BAPI and then immediately issues a commit BAPI call. Both report success. But even then the sales doc isn't committed.

Apparently two SOAP calls are being treated as independent. Is there a way to define some kind of logical unit of work. Something like

Begin_transaction

BAPI1

BAPI2

Commit

End_transaction

I know something like this can be done by creating a custom BAPI. But I want to know if that can be done using Web Services over SOAP.

Thank you.

Rahul