SAP VOFM Routines – SAP Training 2011 Batch

Many areas in SAP SD Training like SAP Copy Controls, SAP Pricing Requirements, SAP Data Transfer Routines use ABAP routines configured and coded in VOFM transaction.

The following routines are available in VOFM transaction.

  • Copy Control Routines
  • Data Transfer Routines
  • Requirements
    • SAP Pricing Requirements
    • SAP Account Determination Requirements
    • SAP Listing and Exclusion Requirements
    • etc
  • Forumas
    • SAP Pricing Formulas
    • SAP Pricing Rounding Rules

You can view the routines by selecting the right menu path, selecting the routine number and clicking on the  view code button. For example, if you want to view the Copy Control requirements for orders, select the following menu path,

and selecting the right requirement number ( Please ensure that the routines are marked as  “Active” in order to really work.

Select the routine and click on the view button. The system will display the code in SAP ABAP Editor.

*       FORM -  Routine for copying checks

*       FORM BEDINGUNG_PRUEFEN_001                                    *
*      The following work areas are available:                        *
*                                                                     *
*       HVBAK - Header which can be produced from the reference       *
*        VBAK - Header of the reference sales document                *
*        VBUK - Header status of the reference sales document         *
*        TVAK - Sales document type                                   *
*       HVBPA - Partner segment of the sold-to                        *
*        VBPA - Partner segment of the sold-to in the reference doc   *
*                                                                     *
*      The messages are stored in table 100 with Message-ID 'V2'      *
*                                                                     *
*                                                                     *


 DATA: BP_DATUM_AUSGABE(10).   " Datumsfeld für editierte Ausgabe

* Is the reference document complete?

* Was the reference document fully referenced?


This is especially used to set up break-points that can be used for debugging.
Also, new routines that are created are assigned. If you want to create your own routine ( See SAP ABAP Training related posts for the same ), then you would have to enter an Object Key as shown below.

Question 1 : Give the menu path for Delivery level Copy Control Data Transfer Routines

Question 2 : Which of the following is TRUE ?

  1. Order related Copying Requirement routine 001 is same as Delivery related Copying Requirement Routine 001
  2. Order Header Level Copying Requirement Routine 001 is same as Order line item level copying requirement routine 001
  3. Output Control Requirement routine 001 is same as Pricing Requirement Routine 001

Question 3 : How do you activate VOFM routines ?

Question 4 : What are the pre-requisites to create custom VOFM routines ?

Question 5 : What is the SAP suggested number range for creating custom VOFM routines ?


Copy Controls in SAP & SAP VOFM Routines – Feb 2011 SAP Training Batch

In today’s SAP SD Training class, we have discussed the following

  1. Copy Controls in SAP
  2. VOFM Routines in SAP
  3. SAP Copy Control Requirements
  4. SAP Copy Control data Transfer Routines

These data transfer routines and copying requirements are typically done by ABAP consultants and are relevant for students for SAP ABAP Training as well.

Question 1 : Create a Sales document type ZXXX ( as a copy of OR ). What is the first pop-up that SAP displays ?

Question 2 : What would you choose by default ?

Question 3 : What would be the effect of choosing “NO” in that pop up ?

Hint : Answer the following 4 questions to get a better understanding of Question 3 above.

  1. Go to the SAP Copy control transactions between Order and Delivery and select the ZXXX sales document you have choosen.
  2. Do you see entries there ? ( In case you have difficulties choosing the entries from the Position button, go to database table contents of SAP database table table TVCPL ). Here is how to view contents of a database table in SAP.
  3. Now choose “YES” in the pop-up again for another ZXXX SAP Sales document type and repeat steps 1 and 2 above.
  4. Explain what you have understood from the 4 questions above.

Question 4 : What is the delivery document type that will be created when you deliver the document of type ZXXX that you have created above and where is the corresponding configuration for that..?

Question 5 : Apart from the delivery document type field in the Shipping section of the SAP Sales document type configuration, what other configuration is necessary for deliveries to be created from the sales order ?

Question 6 : Give an example of a scenario that involves document flow between one SAP billing document to another ?

Question 7 : Give the Transaction codes for the following Copy Control Configuration

  1. SAP Delivery Documents to SAP Billing Documents
  2. SAP Billing Documents to SAP Sales Documents

Question 8 : Give some business example of the following copy controls

  1. Sales Document to Billing
  2. Billing Document to Sales
  3. Delivery document to Sales
  4. Billing Document to Sales

Question 9 : Which of the following is TRUE ?

  1. Copy controls requirements are used to control if the document flow can happen or not
  2. Document flow can be dissociated between source and target documents from showing up in transactions
  3. Billing to Billing Document flows  cannot be made to show up  using the document flow button in transactions.
  4. Data Transfer Routines routines work even though the Requirements returns False

Question 10 : Create a copy of QT say ZQxx and copy of OR say ZOxx. Are the copy controls between ZQxx and ZOxx already in place or do you have to create them ?

Question 11 : What is the Transaction code you have used to verify if copy controls exist between ZQxx and ZOxx ?

Question 12 : Create the following items in ZQxx

  1. 10 M-01
  2. 20 M-02
  3. 25 M-01
  4. 26 M-02

Create an order with reference to the quotation you just created and list the line items that have been created. Use Multiple copy in SAP (How to copy multiple columns in SAP using Ctrl + Y) to paste the line items  in your answer.

For more information on other SAP Training modules like SAP BW Training or SAP HR Training, please visit the respective pages.

Question 13 : Explain which part of the Copy control configuration controls the results you have seen in Q.12 ?

Question 14 : Mark the field  “Complete Reference” in the Sales Order header level copy controls between ZQxx and ZOxx. Now, create another quotation ( Q.12 above ) and create a sales order with reference to the quotation. Are you able to change the materials and quantities in the order ? Based on the results you see, explain in your own words, what complete reference means ?

Question 15 : Give some examples of standard SAP copying requirement routine numbers ?

Question 16 : Give some examples of standard SAP data transfer routine numbers ?

Question 17 : Is the SAP Copying Requirement Routine 001 the same as SAP Data Transfer Routine 001 ?

Question 18 : Give a business example of why a target Item category proposal would be using at item level copy controls ?

Question 19 : Which of the following is TRUE ?

  1. Item Category Proposal at copy control configuration takes precedence over SAP Item category Determination
  2. Item Category Determination will take precedence over Item category proposal at copy control configuration

Question 20 : Are the copying requirements Routine Number 001 at the header level same as the copy control requirement routine 001 at the line item level ?

Question 21 : Which field at the item category copy control configuration controls if document flow records are created ?

Question 22 : Give a business scenario where you would use “Copy Schedule” lines at the item level copy controls ?

Question 23 : What are the controls available at the schedule line level copy controls ?