Routines are short sub-programs that carry out various checks during document processing. In the SD module, you can create and process routines for copying requirements, data transfer, requirements and formulas using transaction VOFM. Besides the routines delivered to you with the system, you can create your own individual routines.
Transaction VOFM allows you to follow a
standardized procedure for creating routines. The name ranges are predefined
for routines delivered to you with the system and for routines created by the
customer. This name convention guarantees that your own routines are not
overwritten during a Release upgrade.
The routines for coying requirements and data
transfer are defined for the document types sales orders, deliveries, billing
documents, sales activities, as well as for texts. You specify copying
requirements and the data transfers when defining the document flow for each
document type. You enter the routines for texts in the access sequences for
texts.
Routines for requirements and formulas are used
for functions using the
condition technique . You enter these routines in the
pricing procedure or the
condition types. Requirements are also used for statistics.
There are two methods to create a routine
You always have to activate a new routine before using it. Each routine for requirements and formulas, copying requirements and data transfers is stored in a separate program. For each new routine an entry is added in table TFRM and TFRMT. For each routine, a long text can be stored as a text module.
Most routines must be changed in client 000. Transaction VOFM can be transported as XPRAs, which means that after the import all routines can be activated.
The standard routines are to be within the number range 001-599 (for 2 digit formula numbers, 01-49)
The user routines are to be within the number
range 600-999 (for 2 digit formula numbers, 50-99).
For technical reasons, an interface to the transport system is not possible at the moment. Until up to and including Release 3.0, developments have to be transported manually using correction numbers and transport requests.