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

Return order Quantity / Item Validation

Dear All,

I have 2 business requirements:

1)Return order allows to enter any material irrespective of materials mentioned in invoice.

My requirement is system should only allow to create return order for materials mentioned in Invoice.

2) If I enter quantity more than invoice quantity in Return SO, first time system gives error message. But let say i create partial delivery & then again if I return any quantity system will not stop. Example: In invoice i have 100 pieces, i tried to create return order of 120 pcs, then system will give me error message. Now i created partial return SO of 100 pcs and saved it. Now i created a new return SO of 80 more pcs, system will not stop me(it only gives warning message). My requirement is to stop it.



Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Posted on Aug 22, 2016 at 04:50 AM


    you can restrict as follows

    VTAF--- Item level-Pos./neg. quantity +

    Message settings—OVAH—V4 229 to E

    Message Settings—SE91—V1 499 to E


    Programme--- INCLUDE MV45AFZZ


    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Dear Shiva,

      Thanks for your reply.

      I have already done below settings earlier itself:

      VTAF--- Item level-Pos./neg. quantity +

      OVAH—V4 229 to E.

      In SE91, we can only create message. We cannot make it to E.

      Issue is system will check for excess quantity in return order first time & give error message. But when i create second return order with ref to Invoice system will accept any quantity.


      Rahul Singh

  • Posted on Aug 22, 2016 at 06:01 AM

    Hello rahul,

    You can follow below settings

    1. For Return order use Reference mandatory: M With billing document. (If you want to restrict some product to restrict in return then there is a separate settings).

    2. your second requirement can be map through Copy control settings VTAF as mentioned by Shiva.


    Prashant Sharma

    Add a comment
    10|10000 characters needed characters exceeded

    • Rahul,

      1- What you've asked cannot be covered in standard. Reference mandatory customizing (automatic popup) works only in Initial sales document screen. In order to achieve your requirement you'll need to explore development options, as one can always add an additional item to a sales document without reference even if Reference mandatory customizing is done properly (Hint: Program MV45AFZB, Form USEREXIT_CHECK_VBAP, check vgbel and vgpos fields and code accordingly).

      2- Ditto. You'll need development as well. Program MV45AFZZ, Form USEREXIT_SAVE_DOCUMENT_PREPARE will work.

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.