You are on page 1of 3

Requirement Routines - Output Control

This article explains about Requirement Routines and more specifically on what are Output Control routines are and how
they can be assigned in Customizing.
VOFM transaction is a tool that was developed in R/3 to facilitate the definition of both SAP delivered as well as customer
defined routines/ rules used in the system during various business processes.
VOFM is divided into 4 areas:
1.

Copying Requirements

2.

Data Transfer

3.

Requirements

4.

Formulas
Fig 1: Screen shot of VOFM transaction
Creating a New VOFM Requirement Routine :
SAP delivers routines using the name space from 1 to 599. SAP customers can create their
Own VOFM routines using namespace from 600 to 999.

1.

Steps to create Requirement Routine:


We will consider step by step creation for Output Control Routine.
Same steps can be followed for creating other routines

1.

In Requirements Tab, Click on Output Control as shown in figure 2.


Fig 2: Output Control Selected Under Requirements Tab

1.

On clicking Output Control, it displays all the Routines under Output Control. Then enter your Routine number to
be created with its short description.
Create a Routine 903 and give its description.
It will ask for access key when we create routine. We can get the required access key
From www.service.sap.com

EDITOR
Fig 3: Access key needs to be provided
1.
2.

Click on Editor to write your code .Activate your program.


Then Activate your routine from Menu EDIT->ACTIVATE .Select the routine and then activate it. Once you activate
your routine, it will show tick in Activate column.
Fig 4: Click on Routine and activate it

1.

Then this routine needs to be assigned in appropriate area in Customizing. Output Control:
Basically Output Control requirements are used to define when a particular Output document
Should be processed. They can be assigned to a condition Type in an Output Procedure or to
an individual access in an access sequence .
The system will only process the entry if the requirement is met.
Using Requirements can eliminate unnecessary Output by specifying exactly under what
Conditions it should be created.
Following common work areas are used when writing code for own Output Control
Requirements:

Sales documents:
KOMKBV1 - Output determination communication area: Header data - Application V1
KOMPBV1 - Output determination communication area: Item data - Application V1
Delivery notes:
KOMKBV2 - Output determination communication area: Header data - Application V2
KOMPBV2 - Output determination communication area: Item data - Application V2
Billing documents:
KOMKBV3 - Output determination communication area: Header data - Application V3
KOMPBV3 - Output determination communication area: Item data - Application V3
Shipping units:
KOMKBV6 - Output determination communication area: Header data - Application V6
Shipments:
KOMKBV7 - Output determination communication area: Header data - Application V7
Consider a case Study: We have a business requirement that will permit generation of Price Offer Output (E.g. from VA11,
VA12 transactions) when some condition is met.
We have a Smartform ZPRICEFORM (For Price Offer Output) and its Output Type is ZPR0.
Now in this case we will go for Output Control Requirements.
Steps:
1.
2.

We will create a routine say 903 in Output control Requirements as mentioned above.
In the Program , we will write code :
SY-SUBRC = 0.
IF (Condition is not met).
SY-SUBRC = 4.
EXIT.
ENDIF.

3.
4.

Activate this Routine.


This routine needs to be attached in Customizing .In SPRO go to
Sales Distribution->Basic Functions->Output Control->Output Determination->Output Determination Using the

Condition Technique ->Maintain Output Determination for Sales Documents ->Maintain Output Determination
Procedure
Fig 5: Path in SPRO where routine will be assigned
5.

Select the Procedure and Click on Control data

Fig 6: Procedure
6.

| Routine assigned to Output Type

|Assign the Requirement Routine here.

Fig 7: Assigning Output Routine 903 to Output Type ZPR0


Output Control :
Outputs are an important media for communicating with business partners or with your

own employees in

sales processing.
Sales and distribution output can be sent both electronically and by mail. Output control which is dependent on various
criteria allows output to be processed and sent subject to certain conditions and restrictions.
Output Determination:
We have assigned the routine as mentioned above in Output Determination in SPRO.
Output Determination Component is used for Output Control .Output Control is used to Exchange Information with internal
and External Partners.
Output Determination Component offers Output Functions for sales, shipping, transportation and billing to help you manage

sales transactions with your customers and within your Company .You can create Sales Activity Output (For example ,
Customer Telephone calls ) and Group Output(For Example freight Lists) . Company Employees can send and Receive
Output. Output is directly linked to corresponding Sales transactions.
TESTING FOR ROUTINE 903:
1.

Go to Transaction VA12, and open some Price offer.


Go to Extras->Output->Header->Edit

Fig 8: How to assign Output Type


2.

Add your Output Type Here

Fig 9: Output Type assigned


3.

In Further data , can change the Dispatch Time to Send application (When saving application)
Fig 10: In Further data change dispatch time

4.

Then press save

Fig 11: Press save


5.

Select Output Type and check Processing log. In case Condition was not satisfied in the Routine then no processing

will be done and will get following message.


Fig 12: No log

You might also like