Inside VOFM
Inside VOFM
Inside VOFM
SAP and R/3 are the trademarks or registered trademarks of SAP AG in Germany and in several other countries.
Copyright © 2005 The Smith Consulting Group, Inc. All Rights Reserved.
Inside the VOFM Program
Introduction......................................................................................................................... 3
General structure of a VOFM routine................................................................................. 3
Group Indicator Code ......................................................................................................... 4
Domain GRPZE .............................................................................................................. 4
Group Indicator Codes contained in the VOFM Program .............................................. 5
Routine Maintenance .......................................................................................................... 7
Transaction VOFN.......................................................................................................... 7
Building Custom Routines.................................................................................................. 9
Customer Routine Ranges............................................................................................... 9
Customer Range Determination by Group Indicator .................................................... 10
Include Name Determination by Group Indicator ........................................................ 11
Parent Include Name Determination by Group Indicator ............................................. 12
Development Class Determination by Group Indicator................................................ 13
Source Include and Form Names Determined in the VOFM Program............................. 14
Routine Activation ............................................................................................................ 17
Table TFRM.................................................................................................................. 18
Parent Include of the Active Routine............................................................................ 19
Deactivating the Routine............................................................................................... 20
Table TFRM Updated ................................................................................................... 21
Parent Include of the inactive Routine.......................................................................... 22
Utility Programs................................................................................................................ 23
Program RV80HGEN ................................................................................................... 23
Program SDINVOFM................................................................................................... 25
Transport Problems........................................................................................................... 28
PERFORM_NOT_FOUND Short Dump ..................................................................... 28
Executing Program RV80HGEN.................................................................................. 33
The purpose of this paper is to provide a technical explanation of how the VOFM
transaction works. It is assumed that the reader has a working knowledge of the VOFM
transaction and ABAP programming. The screen shots and data in this document were
taken from an R/3 4.6C system.
Domain GRPZE
Group Description
ABED Copying requirements in the order
ADAT Data transfer in the order
CASB Copying requirements for sales activities
CASC Data transfer for sales activities
CHBE Batch search strategies
CHMV Stock requirements
CHRG Batch requirements
EXKO Export requirements
FBED Copying requirements in the billing document
FDAT Data transfer in the billing document
FOFU Subsequent functions
LBED Copying requirements in the delivery
LDAT Data transfer in the delivery
LST1 Info blocks for RV reporting
LST1 Info blocks for RV reporting
MCA1 Work item requirements (MCA = Activity)
MCA2 Work item formulas (MCA = Activity)
MCB1 Stock control requirements
MCB2 Stock control formulas
MCE1 PURCHIS Requirements
MCE2 PURCHIS formulas
MCF1 SFIS requirements
MCF2 SFIS formulas
MCI1 PM requirements
MCI2 PM formulas
MCL1 WS requirements in LIS
MCL2 WS requirements in LIS
MCQ1 QMIS requirements
MCQ2 QMIS formulas
MCT1 TIS requirements
MCT2 TIS formulas
MCU1 UIS requirements
MCU2 UIS forms (Utility Information System)
MCV1 SIS requirements
MCV2 SIS formulas
MCW1 RIS requirements
11/25/2005 Page 5 of 36 Technical Solution Guide
Copyright © 2005 The Smith Consulting Group, Inc. All Rights Reserved.
SAPtechsolutions.com
Inside the VOFM Program
Group Description
MCW2 RIS formulas
MCZ1 External data requirements
MCZ2 External data formula
PBED Pricing requirements
PBEF Material determination requirements
PBEK Account determination requirements
PBEL Material listing requirements
PBEN Output control requirements
PBNA Free goods requirements
PBWV Requirements for pricing
PFRA Pricing formulas: Condition basis
PFRM Pricing formulas: Condition value
PFRS Pricing formulas: Scale basis
PNAT
PRUN
PSTK Structure of scale key for pricing
REAK Archiving for orders
REKA Archiving for sales activities
RELK Archiving for deliveries
RERK Archiving for billing documents
RISK Risk management (form of payment guarantee)
TBED Copying requirements for texts
TDAT Data transfer involving texts
TNAM Text names for word processing
TRAU Data transfer transport
TXNM Text names for copying modules (out of date)
VCAU Authorization requirements for payment cards
VFCL Multi-dimensional scales
VKMP Credit check requirements
VSEL Data transfer for shipping units
Routine Maintenance
Since VOFM routines are named after the transaction, most people access the routines
using the VOFM transaction. Unfortunately, VOFM only provides access to a subset of
the routines available. An alternative is transaction VOFN, which provides access to all
routines in all groups.
Transaction VOFN
VOFN is executed by group indicator (the screen refers to it as Class).
For groups PSTK (Pricing Formula Group Structure) and TDAT (Data Transfer –
Text), the customer range starts at 50.
For group FOFU (Subsequent Functions) the customer range starts at 900.
Routine Activation
Understanding what actually happens when VOFM routines are activated or deactivated
is useful knowledge, especially when problems occur and debugging is required.
In the following screen shots, routine 900 will be deactivated to demonstrate the process.
Table TFRM
Table TFRM contains one record for each VOFM routine defined in the system. The
following list displays all routines in group PFRS (Pricing Scale Base Formulas). For
each record, the activation status and date/time stamp of activation is recorded. As
denoted in this table, routine 900 is active.
Utility Programs
Transport issues with VOFM routines are so common, that SAP has provided utility
programs to aid in the repair process.
Program RV80HGEN
Program RV80HGEN can be used to re-generate all VOFM routines. Whenever VOFM
routines are transported, this program should be executed in all target systems. It is
possible to include an automatic execution of the program in the transport request by
applying OSS note 598475.
Program SDINVOFM
Program SDINVOFM can be used to identify and repair missing table entries in the
VOFM control tables TFRM and TFRMT. This program is usually executed after
RV80HGEN.
In the following example, the program will analyze the routines in the PBED group
(Pricing Requirement Routines).
Transport Problems
Problems frequently occur when VOFM routines are transported to test and production
instances. It is not uncommon to experience short dumps in these target systems. These
problems are not the result of faulty programming or configuration. There has always
been a transport issue for VOFM routines that occurs on occasion. The following sections
illustrate the type of problems that can occur when VOFM routines do not transport
correctly and the procedure to correct them.
The output report for RV80HGEN denotes that all routines were activated, but the parent
include was not repaired.