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: 

Pricing control problem in SD Orders.

Former Member
0 Kudos

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

4 REPLIES 4

0 Kudos

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

Lakshmipathi
Active Contributor
0 Kudos

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

phanikumar_v3
Active Contributor
0 Kudos

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

Former Member
0 Kudos

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