1. Substitution
• Substitution is the process of checking entered
values (when they are entered into the SAP R/3
System) against a user-defined statement. If the
statement is true, the system substitutes
specified values into the FI application
component.
• The system performs substitutions before
validations so that substituted values can also
be validated.
2. Substitution
• A substitution can consist of up to 999 steps.
Therefore, you can substitute data using any
number of Boolean statements before the data
is posted.
• Substitution can be added at Document Header
level (call point 1) or Line Item level (Call point
2) or on a Complete Document (Call point 3).
• Activation Level: The key "0" for inactive, the
key "1" for active and the key "2" for active
(except for in batch).
3. Substitution creation
• Tcode- GGB1
• The fields that you want to substitute (say BSEG-
LIFNR), need to be maintained in the table GB01 with
EXCLUDE flag = ' '. (ABAP team)
• IF the field that you want to substitute is not present
in the GB01, then insert the required field yourself.
(ABAP team)
• The fields that you want to substitute at the Call point
1 and 2 should be with the class '009' and the fields
that you want to substitute at the Call point 3 should
be with the class '015'.
4. Substitution creation
• Then run the program RGUGBR22 in order to
generate the ABAP code with regard to
substitution. Running this program is
important because even though you insert the
required field in the table GB01, the field will
not be substituted unless the Include GBTWIFIJ
is updated with your new field. And the
updation of the Include GBTWIFIJ can be done
by executing the report program RGUGBR22.
5. Substitution steps creation
• Tcode- OBBH
• IMG path- Financial Accounting -> General
Ledger Accounting -> Business Transactions ->
G/L Account Posting -> Carry out and Check
Document Settings -> Substitution
• Call point- 001 for Header
• Call point -002 for Line Items
• Call point- 003 for Complete document
6. Substitution steps creation
• Tcode- OBBH
• IMG path- Financial Accounting -> General
Ledger Accounting -> Business Transactions ->
G/L Account Posting -> Carry out and Check
Document Settings -> Substitution
• Call point- 001 for Header
• Call point -002 for Line Items
• Call point- 003 for Complete document
7. Substitution steps creation
• Substitution in Accounting Documents- OBZN
and OBBZ
• FI substitution application area for the Cost of
Sales accounting callup point- 005. You can
also use GGB4 which manages activation of all
substitutions in the system for any application
area or callup point.
8. Substitution in Volvo
• Master Substitution and Local substitutions
• Master is applicable to all the company codes
using Master Substitution and any update to
Master is a Master Data Update tasks which
happens once in a month.
• Any company codes using its own substitutions
and they are created as a reference to the
company code. This can be handled by a local
SR.
9. Tips and Tricks
• Ensure the substitutions are transported after business hours.
• Compare all the 3 clients before the transport to test system
because apart from our new change everything must be same
in all the 3 clients.
• Ensure apart from Logical rules other things like Transport sets
and Boolean Class are not transported. As the sets are
updated directly in each client by the key user.
• Incase of any code changes ensure you run the program-
RGUGBR00 so the substitution gets regenerated.
• Update the Central Assignment sheet in Team place.