2012 Oct 02 9:34 PM
Please! Guru! Help me with such problem
I need change pricing condition in SD order with help of FM BAPI_SALESORDER_CHANGE
When I change price for only one position - it's OK
But if I change price for more than one position - with one finished commit, I have strange problem:
VBAP-NETPR и VBAP-NETWR have updated for all position correctly
But pricing condition in KONV have updated correctly only for last position!!!
Prices for all other position (except last) didn't change
thank
appreciate your help
2012 Oct 03 3:01 AM
do not call BAPI_transaction_commit
inside loop. you may see strange behavior.
2012 Oct 03 5:00 AM
Vipin nagpal!
Thanks for help!
But I don't see strange behavior
What you mean really?
Small correction for my question
All description of problem relate to changing one sd order with many (more than one) position
2012 Oct 03 5:07 AM
We should avoid calling commit inside a loop. Otherwise, if we are calling commit inside a loop, then result does not update for BAPI call but only for few records and even message table is also empty.
2012 Oct 03 2:01 PM
This question is solved with help of debug
3 calls of update FM RV_SALES_DOCUMENT_UPDATE overwrite each other.
Resume: inside one LUW you must call BAPI_SALESORDER_CHANGE just one time for one sales order