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

Restriction of adding new materials in the Sales Order created with reference

Hi Experts,

Please let me know how to restrict the users from adding the new materials in the sales order (VA01), which is created with reference to Inquiry (VA11). At present, the users are able to add the new materials in the sales order even though the sales order is created only with reference to the Inquiry...Suggest me is there is any authorization controls can be kept or any user exits or customer exits to be enhanced or any sales configuration can be done with that of the functional side itself...

Thanks in advance...

Regards,

Kanna

Add a comment
10|10000 characters needed characters exceeded

Related questions

9 Answers

  • Best Answer
    Posted on Sep 16, 2013 at 03:11 PM

    Hi,

    You can restrict by user exit program MV45AFZZ, FORM USEREXIT_MOVE_FIELD_TO_VBAP where you can if check field VBAP-VBGEL is empty and send a message...

    Regards,

    JM

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Sep 16, 2013 at 04:25 PM

    Hi Kanna,

    You can try tcode VTAA check box complete reference to be checked.

    Regards,
    Madhu.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Sep 16, 2013 at 05:39 PM

    Hi Kanna,

    Goto tcode VTAA. Select the required source and target documents for copy control. Then goto header details and put the check mark for complete reference. This makes the quotation which is the source document to be copied completely into target document which is the sales order. Later a message will be displayed if you try to change an order quantity or delete an item.

    Thanks,

    Sarvesh Desai

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Sep 16, 2013 at 08:50 PM

    Hi Friend,

    As per your requirement you can follow this below process :

    1. You can go to Copy Control Transaction Code : VTAA and you can tick on Complete reference option as shown below.

    2. You can go for BAPI or USER EXIT with the help of technical guys.

    Hope this will help you to resolve your issue.

    Regards,

    Kundan


    pastedImage_1.png (18.9 kB)
    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Sep 17, 2013 at 02:46 AM

    Hai Basis kanna

    apart from others i will give some more details

    ex: if you dont want to add to any line item in delivery level in ovlk Item requirement field controls

    and suppose if i want to restrict user to change in delivery level ( i mean removing qnty or line item )

    just go to 0184 T.code remove item cate field

    And if you want to create so many quotations with reference to single documents

    ex : created one qntn with 200 qnty now i want to create so many sales orders each one is 200 so in copy control +/- positive and negative field should be blank

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 17, 2013 at 06:09 AM

    Hi,

    I guess your requirement can be fulfilled through "Transaction varaint" tcode SHD0, morever it is assigned at the sales document level, i was able to do it 😊.Please check it, and let me know.

    Let

    Regards

    Aadesh Kamat

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 17, 2013 at 07:37 AM

    Hi All,

    Thanks for your valuable replies...I tried with the "Complete reference" option in the T-code "VTAA", but it did not fulfill my requirement as it just throws a message only if the order quantity or the line item has been deleted in the sales order that has been created with full reference...But actually i want to restrict the users by adding the new materials in the sales order that is been referenced with Inquiry..

    Also please let me know the steps to be followed for adding the user exit program MV45AFZZ, FORM USEREXIT_MOVE_FIELD_TO_VBAP so that I may check with that also...

    Regards,

    Kanna

    Add a comment
    10|10000 characters needed characters exceeded

    • Hi Basis,

      look for the help of an abaper. Basically the code could look like

      if VBAP-VBGEL IS INITIAL. "If no reference document

      message exxx (xx). "display a descriptive message error

      endif.

      Tell abaper to create and change xxx by message created.

      Needless to say this is a simplified example and coding should be written only after a detailed functional analysis of your requirements and adjust the coding to the existing one, if any, in the userexit.

      Regards,

      JM

  • author's profile photo Former Member
    Former Member
    Posted on Sep 17, 2013 at 07:42 AM

    Hi Aadesh,

    I have tried with the transaction variant to lock the blank line items in the sales order but did not find any field like that to make it as invisible or output only...

    Regards,

    Kanna

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi,

      see the following screen shot, with this all the materials will become greyed out.

      Is there a requirement to grey out only the blank lines, but the user can change the material in the sales order copied from the inquiry/quotation?

      Regards

      Aadesh

      Capture.JPG (64.7 kB)
  • author's profile photo Former Member
    Former Member
    Posted on Sep 18, 2013 at 06:01 AM

    Hi Aadesh,

    Yes, our requirement is to grey out the blank lines...

    Regards,

    kanna

    Add a comment
    10|10000 characters needed characters exceeded