It’s rather amazing, after all the time I’ve been using the BAPI: BAPI_SALESORDER_CHANGE, I just learned something new. I was recently trying to do an update to a repair sales order to add lines automatically from a service quotation. The problem I kept running into was that no matter what I tried, the update of a condition didn’t work. It just kept adding a second line (and to make things worse, it was ignored in lieu of the automatically determined condition).
this took some digging to figure out, but I finally found OSS Note: 593246
The note explains that the LOGIC_SWITCH-COND_HANDLE = ‘X’ parameter allows you to simplify the whole condition process. By using this you no longer need to explicitly define something as insert or update (I or U). Instead, you skip entering the entire CONDITIONS_INX table. Instead, just enter in the basic fields of the condition that you need:
ORDER_CONDITIONS_IN-ITM_MUMBER = ‘000010’
ORDER_CONDITIONS_IN-COND_TYPE = ‘PR00′
ORDER_CONDITIONS_IN-COND_VALUE = ’10’
ORDER_CONDITIONS_IN-CURRENCY = ‘EUR’
the BAPI takes care of the rest. I can’t believe I’ve never run into this before, but this one was worth capturing.
thanks for reading,
As always, thanks for reading and don't forget to check out our SAP Service Management Products at my other company JaveLLin Solutions,Mike
thanks for sharing.
//The note explains that the LOGIC_SWITCH-COND_HANDLE = ‘X’ parameter allows you to simplify the whole condition process.
a typo/”auto correction” there, it’s LOGIC_SWITCH-COND_HANDL = ‘X’, without an “E”
OK, even in OSS note there’s an “E” 🙂
In my system it’s cond_handl without “E”
excellent explanation, Thank you