cancel
Showing results for 
Search instead for 
Did you mean: 

Item & Discount added in the Sales Order

Former Member
0 Kudos

Dear All,

I have a requirement where in once a Sales Order is created with approved Quotation, then no new extra items to be added in the sales order.

Quantity in the existing line item can be decreased to the lower side but no addition in quantity to be done.

Also no change in discount condition types to be done.

Please suggest the approprite Config. If there is no standard config, then please suggest the code which needs to be written in the approprite Userexit.

Best solution will be rewarded.

Thanks and regards,

Dilip Kumar Rao

Accepted Solutions (1)

Accepted Solutions (1)

alpesh_saparia3
Active Contributor
0 Kudos

Hi,

To restrict creation of new items and to restrict addition of quantity to existing items, use following user-exits and coding.


Program : MV45AFZB

FORM USEREXIT_CHECK_VBAP USING US_DIALOG.
*{   INSERT         D50K904678                                        1

  if sy-tcode eq 'VA01' or sy-tcode eq 'VA02'.
    check vbap-vgbel <> space and vbap-vgpos <> space.
    read table vvbap with key vbeln = vbap-vgbel
                              posnr = vbap-vgpos.
    if sy-subrc eq 0.
      if vbap-kwmeng gt vvbap-kwmeng.
        message e499(sy) with
          'Quantity entered is greater then referenced'.
      endif.
    endif.
  endif.
*
*}   INSERT
ENDFORM.

-



Program : MV45AFZZ

FORM USEREXIT_MOVE_FIELD_TO_VBKD.
  if sy-tcode eq 'VA01' or sy-tcode eq 'VA02'.
    loop at xvbap where vgbel eq space
                  and   updkz eq 'I'.
      exit.
    endloop.
    if sy-subrc eq 0.
      message e499(sy) with 'New Item is not allowed'.
    endif.
  endif.
ENDFORM.  

-Alpesh

Answers (2)

Answers (2)

Former Member
0 Kudos

1: In Copy control from QT to Sales Order (ZOR) - check completed reference. Then in the target document any additions to existing line item will issue a error message

2. To restrict users from changing any condition types in order - may be you will have to enhance the pricing user exits.

Regards

Sai

Former Member
0 Kudos

Hi,

Ure second query regd not changing prices can be handelled in this manner...

In the pricing condition type screen(v/06) there is field called

" Manual Entries " in the sub screen titled Changes that can be made .there u need to maintain the entry "D" not possible to process manually. option.

This would ensure that the pricing related condition types values cannot be changed at the time of SO creation.

Cheerzz..

Subbzz.

Former Member
0 Kudos

Dear Mr. Subba Rao,

Thanks for your reply, I need to maintain the Condition type manually, as Project Discount is given on case to case basis and changes as per competition project pricing.

Once the Project discount is given manually in the Quotation and is approved and converted into order. No one should make changes in the Sales Order with relation to discount percentage.

Can you find any solution in this type of situation?

Regards,

Dilip