Application Development and Automation 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: 
Read only

REGARDING BAPI_SALESORDER_CHANGE

Former Member
0 Likes
1,498

HI experts!

i am trying to test bapi_salesorder_change in se37 with single test by giving it salesdocument number = 0060000062 and posnr = 000010 and material number = 1. try to change ordered quantity.

function returns in successfull but does not change the ordered quantity.

i will really appreciate your help.

thanks

jawad

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,037

Jawad,

This BAPI on its own will NOT update tables.. You must call BAPI_COMMIT_WORK after it.

ALSO - please note - that you must update the qtys in the schedule line internal table to get the qty(s) applied to the order.

HI experts!

i am trying to test bapi_salesorder_change in se37 with single test by giving it salesdocument number = 0060000062 and posnr = 000010 and material number = 1. try to change ordered quantity.

function returns in successfull but does not change the ordered quantity.

i will really appreciate your help.

thanks

jawad

4 REPLIES 4
Read only

Former Member
0 Likes
1,037

Have you use this FM


BAPI_TRANSACTION_COMMIT

after calling the BAPI???

Greetings,

Blag.

Read only

Former Member
0 Likes
1,038

Jawad,

This BAPI on its own will NOT update tables.. You must call BAPI_COMMIT_WORK after it.

ALSO - please note - that you must update the qtys in the schedule line internal table to get the qty(s) applied to the order.

Read only

0 Likes
1,037

You can also create a "test sequence" in SE37 that will call the COMMIT BAPI after the "CHANGE" BAPI.

To do this, open the change BAPI in SE37... then from the menu bar,

Function Module > Test > Test Sequences.

Enter the CHANGE BAPI and then the COMMIT BAPI

and run it.

Read only

0 Likes
1,037

"COMMIT" BAPI is - BAPI_TRANSACTION_COMMIT