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

Routine???

Hi.

Where to Write Routine as

If X<Y then does not allow to save Sales Order.

where X & Y are Condition types.

Regards,

Amol

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Aug 11, 2009 at 10:39 AM

    Amol,

    If you will tell us what types of these condition type is there so we can assist you some other method also. Whether these can be configured by customer expected price condition types or not.

    Anyways if you want to right the check then you can have that in SAVE_DOCUMENT_PREPARE in sales order user exit MV45AFZZ,

    Thanks,

    Raja

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi Amol

      The best way to achieve as already suggested by Mr.Yadav and Mr.Raja as use the exit MV45AFZZ ,Form Save document Prepare As This comes at the end of All entries done by user just before saving dcument.

      second way is to use a condition value routine for ZD03 as it is always 30 % of VPRS ,

      Compare the value of VPRS with Other condition types u r using and write a custom error message through SE91.assign it to Routine. Message can contain "MArk up is not in the Expected range " please review".

      and u can exit from program using abap code.

      This will be useful in case u dont want any item to go above mark up value.

      The other advantage of using routine is u get condtion values and condition related tables access while in pricing processing only ,while in first case it is to be fetched in user exit code.

      the issue with routine is user can't save document and he has to data entry again from beginning of the sales document.

      Routine to write in VOFM condition value routine.

      SE91 custom message .

      Regards

      Mandar

  • author's profile photo Former Member
    Former Member
    Posted on Aug 11, 2009 at 10:36 AM

    Sales order save exit..........

    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.