cancel
Showing results for 
Search instead for 
Did you mean: 

Check Pricing in order

Former Member
0 Kudos

Hi ,

I want to compare the pricing condition A against B of an item and if it is higher then it should give error,

instead of error it should give in incomplete log of the order, is there any user exit to acheive it

regards

afzal

Accepted Solutions (1)

Accepted Solutions (1)

jpfriends079
Active Contributor
0 Kudos

Two things you can do:

- You can look for routine for requirement which can suffice your need. If you don't find any, then take assistance of an ABAPer write one.

- Check user exit MV45AFZZ. Function call USEREXIT_MOVE_FIELD_TO_VBAK

Regards

JP

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi Afzal,

It is possible to add to the incompletion log dynamically by adding an entry to XVBUV internal table during a user exit. However this is not possible from a pricing routine. Since condition values are not available in the user exit you have to use both an exit and a routine.

But a better option would be to create a new condition type (ZXXC) and assign a routine to it, which sets condition value to ZERO if value of condition type ZXXA is higher than that of condition type ZXXB. You can make this condition type ZXXC mandatory and maintain a condition record with a default value (e.g. 1 or 100%) so that if value of ZXXA < ZXXB then 100% is copied from condition record otherwise routine overwrites with ZERO and order gives a message 'mandatory condition type ZXXC' missing.

Thanks & Regards,

KC

Former Member
0 Kudos

Hi Afzal,

Use Condition Exclusion, search forum for more information.

thanks,

Sandeep Singh Chauhan

Former Member
0 Kudos

When you defined Requirement (tx. VOFM: Requirement -> Pricing) for example for the condition type "A" to check if higher then "B" and mark condition type "A" as mandatory then pricing will be incomplete if requirement is not meet.