Application Development 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: 

BAPI_SALESORDER_CREATEFROMDAT2 and BAPI_TRANSACTION_COMMIT in same session

ashok_mohan
Participant
0 Kudos

My aim is to create sales order from external system. For this purpose, I created Web Service Definition for BAPI_SALESORDER_CREATEFROMDAT2 with commit and rollback. I created a binding in SOA Manager.

When I execute the function in SOAP UI, it doesn't give any error. The BAPI executed successfully. But the sales order number is not returned. Its blank. So how can the BAPIs BAPI_SALESORDER_CREATEFROMDAT2 and BAPI_TRANSACTION_COMMIT be executed in the same session in SOAP UI?

2 REPLIES 2

arivazhagan_sivasamy
Active Contributor
0 Kudos

Hi,

In this case, we have created custom BAPI like ZBAPI_SALESORDER_CREATEFROMDAT2 with copy of

BAPI_SALESORDER_CREATEFROMDAT2.

In source code, called two BAPI's BAPI_SALESORDER_CREATEFROMDAT2 and BAPI_TRANSACTION_COMMIT.

It works fine for us.

Regards,

Arivazhagan S

0 Kudos

ok....thats a good idea. another idea i got is to enhance the satandard bapi and call bapi_transaction_commit inside the enhancement. I haven't tried it.