Routine to Prevent Copy Rejection Item or Completed Item from Quotation to Sales Order

Like another sales order document, quotation document is also have rejection feature that applied in line items. Due to cancel the process of this quotation into sales order, the field reason rejection is able to be used to handle this requirement. By choosing one reason in this field, you might think that this item is no longer be able to be transferred into sales order. SAP provide standard routine to handle this.

In copy control Sales Order to Sales Order (VTAA), choose appropriate source document and target document. Then in item category you used, double click on that. In item details screen, use routine 301 to handle this.

img-1.9d
Routine for copying requirements order

The program of this routine can be found from t-code VOFM, from menu bar Copying requirements > Orders.img-1.9a

Display routine 301 by double click on it.

img-1.9b

Here are the lines of the code you may read before you want to make changes or modification. By assistant from your ABAPER or you read it by yourself by helping from t-code SE16N then you will find the meaning of this code fragment, you can test this routine also by doing debugging on it.

VBAP~ABGRU : Reason rejection code

VBUP~RFSTA : Reference status

  • ‘ ‘ : Not Relevant
  • A : Not yet processed
  • B : Partially processed
  • C : Completely processed

img-1.9c

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s