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 for Sles Order

Former Member
0 Kudos
170

1) Difference between BAPI_SALESDOCUMENT_CHANGE and BAPI_SALESORDER_CHANGE* ??

2) Do we have to run BAPI_TRANSACTION_COMMIT if we are exeuting this transaction in a user exit?

1 ACCEPTED SOLUTION

Former Member
0 Kudos
140

hai both arue used for changing the sales document

u have to use bapi_transaction_commit after the bapi call

m.a

4 REPLIES 4

Former Member
0 Kudos
141

hai both arue used for changing the sales document

u have to use bapi_transaction_commit after the bapi call

m.a

jj
Active Contributor
0 Kudos
140

BAPI_SALESORDER_CREATEFROMDAT2 has test run functionality.

you have to call BAPI_Transacation_commit for all db updation BAPI.

Former Member
0 Kudos
140

Hello,

Both are almost same you can use any one of the BAPI as they both perform the same kind of Job.

Just call the BAPI BAPI_TRANSACTION_COMMIT just after calling BAPI_SALESORDER_CHANGE so that the updates are done to the database entries also.

BAPI_TRANSACTION_COMMIT is used when you make changes to the SAP database by calling

a BAPI from outside SAP and want to commit the database. When you use a BAPI, you can not

directly use commit work, instead you are allowed to use only

BAPI_TRANSACTION_COMMIT.

you must then call this method to write the changes to the database.

Hope things are clear.

Cheers,

Suvendu

Former Member
0 Kudos
140

Hi,

Both BAPI's are same only and both BAPI's are for sales order.

After calling these BAPI's, you have to call 'BAPI_TRANSACTION_COMMIT' also to update the database table using BAPI.

Regards,

Jyothi CH.