2007 Aug 09 5:02 PM
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
2007 Aug 09 5:38 PM
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
2007 Aug 09 5:34 PM
Have you use this FM
BAPI_TRANSACTION_COMMIT
after calling the BAPI???
Greetings,
Blag.
2007 Aug 09 5:38 PM
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.
2007 Aug 09 5:41 PM
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.
2007 Aug 09 5:42 PM
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |