The substitution allows the user to fill certain document fields with statically defined or dynamically determined values at different times during document entry and document creation. A substitution consists of preconditions as well as replacement rules and is allocated to a company code.
The maintenance and installation is similar to the one for the validation which was already delivered with Release 2.2 and allows the user to install his own checks within document entry.
If substitution is installed, it is automatically run within document entry. It only manifests itself to the effect that certain input fields are filled with values that were gained from the replacement rules.
Three callup points of substitution are to be distinguished here:
The customizing is done centrally in FI customizing via:
Bus.transactions -> Base parameters -> Substitution.
There you reach a screen where you can assign a substitution to the company codes at a certain callup point. If no substitution was created, proceed as follows:
If you want to assign an existing substitution to a company code, it is sufficient to only maintain the entries on the first screen. Substitutions can only be deleted if they are no longer used in a company code. This is then done in analog steps via the substitution maintenance.
For more information, refer to the step "Define substitution in accounting documents" in the Financial accounting Implementation Guide.
The substitutions are also carried out in batch input.
If "Business area balance sheets" is switched on for all company codes of a posting and a particular business area is specified in any item in the document, it is automatically copied into all other items. This transferred business area is can only be evaluated for the validation and substitution at callup point 3, but not at callup point 2.
The standard fields allowed for substitution by SAP can be found in table GB01. Only the fields allowed and not prohibited there are proposed for maintenance during customizing. The user has the option of allowing other (for example, his own, new) fields for substitution (table GB01C) with the exception of the prohibited fields.
It is possible to create separate change routines for a field via a user exit. For information on the handling, the user is referred to the online help in the substitution maintenance.
In addition to the online entry and the batch input, substitution is also carried out when creating documents in MM invoice verification, the payment program and the documents which enter into FI via the FI/CO interface. The substitution for the complete document is not supported for postings via the FI/CO interface.
Validation in the respective callup points is carried out immediately after the substitution. Consequently, your own, freely-defined substitutions can also be checked.