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: 

KONV not updated after BAPI BAPI_SALESORDER_CHANGE

0 Kudos
366

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

4 REPLIES 4

Former Member
0 Kudos
156

do not call BAPI_transaction_commit

inside loop. you may see strange behavior.

0 Kudos
156

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

0 Kudos
156

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.

0 Kudos
156

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