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

sales order va01

When I create sales order in VA01 and if i have not filled the different 3 line item , it should not be saved and should give error message.

Is it possible through userexit ?which exit ?

If so can anybody explain me with simple coding.

thanks

naresh

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Posted on Jun 07, 2008 at 11:18 AM

    Naresh,

    do write your code into>>

    The user exit available during sales order saving is :

    SAPMV45A Program ---> include mv45afzz->FORM USEREXIT_SAVE_DOCUMENT_PREPARE

    This userexit can be used for changes or checks, before a SO is saved

    Amit.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jun 08, 2008 at 05:26 AM

    You can use user Exit include MV45AFZZ for this.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 08, 2008 at 06:54 AM

    Hi Naresh,

    As mentioned above in the include mv45afzz there are many available options,all the data in header is stored in XVBAK and all item data is stored in XVBAP

    so in the concerned exit(probably in FORM USEREXIT_SAVE_DOCUMENT_PREPARE) we need to loop data from XVBAP and check the requirement mentioned(multiple line items)..and raise an error message..

    Regards

    Byju

    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.