on 12-12-2011 7:30 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Afzal,
Use Condition Exclusion, search forum for more information.
thanks,
Sandeep Singh Chauhan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
94 | |
11 | |
10 | |
6 | |
5 | |
5 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.