07-23-2014 8:23 AM
Hi, I'v excluded a freight item conditon in SD order (VA01) by using a requirements pricing routine depending on incoterms EXW in order (sy-subrc = 4 in the routine). So if I maintain the order directly with the incoterms EXW, the condition ZF10 is not allowed and disappears as desired. My problem is to go back to this condition ZF10 after changing the incoterms again to a.g. CPT. So I need a refreshment of item condition list without pushing the "update pricing" button. Do somebody can give me a hint? (user exit, bapi or so).
Thanks a lot.
Peter
07-24-2014 3:36 PM
Hi Peter,
Use BAPI_SALESORDER_CHANGE
LOGIC_SWITCH = C,If C is not working then try with G
CONDITIONS_IN-cond_updat = 'I'
CONDITIONS_INX-cond_updat = 'I'.
Regards,
Shweta
07-24-2014 3:55 PM
Instead of going with exit, what your functional consultant can suggest to Business is to maintain condition record with inco term so that with standard settings, this requirement can be achieved. Of course, if user, by mistake, maintain condition record with EXW, then, system will propose and this would be a defect from business point of view. Users need to be educated properly.
G. Lakshmipathi
07-29-2014 7:08 AM
In this case--how you are updating the Pricing function--i mean with which Pricing type???
have you tried New pricing option???
Can you delete the line item and re-enter???
As suggested we need to educate the users--rather than going for Exit for this requirement..
Phanikumar
07-29-2014 1:43 PM
Hello,
Thank you all for your replies. In the meantime I resolved the problem by using the exit: userexit_new_pricing_vbkd with following coding:
IF vbkd-inco1 <> *vbkd-inco1.
new_pricing = 'B'.
ENDIF.
It works properly.
Thanks
Peter