Professional Documents
Culture Documents
1. What is Substitution?
Replacing values. Values you enter are compared with a user-defined Boolean statement (prerequisite). If the statement is true, the relevant values are replaced. Substitution is carried out before data is written to the databank.
2. What is Validation?
Checking values. Values you enter are checked against a user-defined Boolean statement (prerequisite). If the statement is true, the values are checked with another Boolean statement (check statement). If the check statement is true, the values are posted. If the check statement is false, the system displays a user-defined message. The category of the displayed message defines whether the posting can be carried out. Validation is carried out before posting so that only valid data can be posted.
Tables
T001D (Validation of accounting documents) T001Q (Substitution in accounting documents)
4. Check
Is a validation active? When is it active? Example =0 =1 =2 = 0001 = 0002 = 0003 (Inactive) (Active) (Active, except for batch input) (Document header) (Document item) (Complete document) (Double-click to show the prerequisites, checks and messages you want to display)
Is a substitution active? When is it active? Example =0 =1 =2 = 0001 = 0002 = 0003 (Inactive) (Active) (Active, except for batch input) (Document header) (Document item) (Complete document) (Double-click to show prerequisites and substitutions)
How can I find out which user exits exist in the customer system? Example = ZGGBS002 (must be entered for each client)
call function 'G_VSR_VALIDATION_CALL' EXPORTING tab_data1 = i_bkpf tab_data2 = i_bseg tab_data3 = i_bsec tab_data4 = i_bsed validation = t001d-valid callup_point = t001d-event valuser = 'FI' TABLES tabnames = vaptab EXCEPTIONS not_found = 01.
Call Point 3
The following fields can be replaced or checked and messages can be displayed. Tables BKPF BSEG SYST (header fields) (item fields) (system fields)
call function 'G_VSR_MULTI_VALIDATION_CALL' exporting callup_point = t001d-event validation = t001d-valid valuser = 'FI' bool_data = data_in <(BKPF, BSEG) exceptions 5
not_found
= 1.
For call point 1 and 2 the following functions for validation and/or substitution are called from function AC_DOCUMENT_CREATE:
call function 'G_VSR_VALIDATION_CALL' call function 'G_VSR_SUBSTITUTION_CALL'
For call point 3 the following functions for validation and/or substitution are called from function AC_DOCUMENT_CREATE:
Call Function 'G_VSR_MULTI_VALIDATION_CALL' call function 'G_VSR_MULTI_SUBSTITUTION_CALL'
(Validation) (Substitution)
Additional Information Validation can be configured to be user-dependant. You can switch on TRACE using the menu option Extras. The program then remains on validation or substitution and you can see which fields are checked or substituted.
8. Important Notes
48121 42615 Settings for user exit for call point 3: Validation/Substitution Substitution in FI