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

Control changes in sales order when item is picked

Dear Sap Gurus,

My clients requirement is that we create a sales order and then perform delivery.In delivery we only do picking and save the document and not PGI.

Now client wants that no body should change the order quantity in the sales order(va02).If user tries to change the quantity then system should not allow, and show an error message.

Thanks..

Chinmoy

Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • Best Answer
    Posted on May 09, 2013 at 07:52 PM

    Hi Chinmoy,

    You will require some development to get this.

    There can be many way to achieve this

    Option 1. Simple way by keeping as much as standard possible..

    Whenever there is a delivery created for a sales order Item, sap throws message there is delivery created for Item... Message no. V4096.

    You can change this warning message to error message.. check with your abaper and your requirement.

    Option2: .You can check Item status in sales order, If Item status is partially or fully delivered throw error message if any one want to change sales order ....

    Option3. If your requirement is to set this error for complete order then check Order header status and give error if any one want to add or change Item in that sales order.

    Regards

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on May 24, 2013 at 09:29 AM

    Hello Chinmoy,

    You can able to block quantity modification or prevent user to delete line in the order when the item is delivered or when picking as been completed. Below is some code sample. First I think it is better to set gray on quantity not modifiable. In user exit USEREXIT_FIELD_MODIFICATION add the follow code. In the code below I mark as output fields quantity and others if the delivery status of the item is B or C (partially or fully delivered). You can do the same the picking status XVBUP-KOSTA.

    IF SY-TCODE = 'VA02' AND VBAK-AUART = 'ZA01'.

    IF XVBUP-LFSTA CA 'BC'.

    CASE SCREEN-NAME.
    WHEN 'RV45A-KWMENG'.
    SCREEN-INPUT = 0.
    WHEN 'VBEP-WMENG'.
    SCREEN-INPUT = 0.
    WHEN 'VBAP-VRKME'.
    SCREEN-INPUT = 0.
    WHEN 'RV45A-ETDAT'.
    SCREEN-INPUT = 0.
    WHEN 'RV45A-PRGBZ'.
    SCREEN-INPUT = 0.
    WHEN 'VBEP-ETTYP'.
    SCREEN-INPUT = 0.
    WHEN 'VBEP-LIFSP'.
    SCREEN-INPUT = 0.

    ENDCASE.

    ENDIF.
    ENDIF.

    Hope this will help.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on May 24, 2013 at 09:57 AM

    Hi,

    Chinmoy,

    pls ask your abaper for user exit for eg:userexit_field_modification.

    in that use your logic.

    This will help u

    Regards,

    Atiq

    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.