Skip to Content
author's profile photo Former Member
Former Member

Check Pricing in order

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

Add a comment
10|10000 characters needed characters exceeded

Related questions

4 Answers

  • Best Answer
    Posted on Dec 12, 2011 at 08:01 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 12, 2011 at 09:06 AM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 12, 2011 at 11:41 AM

    Hi Afzal,

    Use Condition Exclusion, search forum for more information.

    thanks,

    Sandeep Singh Chauhan

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 14, 2011 at 08:44 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.