0% found this document useful (0 votes)
103 views

Realtime Validation and Substitution

This document discusses real-time validation and substitution in SAP. It covers creating packages, message classes, and validation steps to define validation criteria. Validation can check values entered by users against predefined sets. Substitution replaces values entered by users with predefined rules, such as assigning a cost center. The document contrasts validation and substitution with manual value changes and discusses exceptions for when substitution does not occur.

Uploaded by

Raju Bothra
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
103 views

Realtime Validation and Substitution

This document discusses real-time validation and substitution in SAP. It covers creating packages, message classes, and validation steps to define validation criteria. Validation can check values entered by users against predefined sets. Substitution replaces values entered by users with predefined rules, such as assigning a cost center. The document contrasts validation and substitution with manual value changes and discusses exceptions for when substitution does not occur.

Uploaded by

Raju Bothra
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 12

REALTIME VALIDATION

AND SUBSTITUTION
1MANY REALTIME SCENARIOS

2.REALTIME BASIC TO ADVANCE LEVEL SET CREATION AND ITS USAGES


3. REALTIME MESSAGE CLASS AND MESSAGE ID CREATION
4. REALTIME USER EXIT SCENARIOS 5. COMMON ERRORS/ISSUES
6. TRANSPORT MANAGEMENT 7. EXCEPTIONS
WHAT IS VALIDATION – IT
VALIDATES/CHECKS THE VALUE(S)
ENTERED BY USER BASED ON
PREDEFINED CRITERIA/LIMITATION
FOR EXAMPLE – WE HAVE CREATED ONE DOCUMENT TYPE ZI WHICH IS USED FOR
IMPORT PURCHASE AND ONLY LIMITED USERS ARE ALLOWED TO POST
FEW SALES REVENUE GL SHOULD HAVE STATISTICAL ORDER
PACKAGE AND MESSAGE CLASS

• Package Creation – SE80/SE21 – Package is container for ABAP development


objects(BAPI, Functional Module, Menus, Screens and many more. - ZFI
• Message Class Creation – SE91 - Message Class is a like a container which holds
a number of different messages. Each message in the message class is
identified with unique message number. So when you call a message in a 
ABAP program, you need to specify the message class and message number
- ZFI
VALIDATION CONFIGURATION
1. GROUP VALIDATION CREATION – GGB0
2. VALIDATION STEP CREATION
3. STEPS – MAXIMUM 999 STEPS
3.1 PREREQUISITE - THE PREREQUISITE STATEMENT DETERMINES WHETHER THE ENTERED VALUE(S) SHOULD BE
CHECKED
3.2 CHECK
3.3 MESSAGE
3.4 ACTIVATE – OB28
3.4 SAVE IN TRANSPORT REQUEST
MESSAGE VARIABLES

• Both or either can be used &, $


• You use message variables in a message you have assigned to the validation result to
display values 
• Example – User $ not allowed to post document type &
MULTIPLE FIELDS VALIDATIONS

• Order field and Assignment field should not be blank


SET CREATION
• Set in SAP is a list of data which is generally used in report writer, substitution, validation and ABAP program
• Basic Creation – Single table and single field - Z_ListofGLs and Z_LISTOFCOM1
• Single Set – we can enter many set inside the set for same table and same field. One set for cash GLs and another set for Tax
GLs and put this both inside one single set.
• Z_REVEXPGLS
• Z_REVGL and Z_ExpGL
• Multi Set – We can enter many sets with different table and fields inside one set.
• Key Figure Set -

Usage of Set in Validation and Substitution and other development


Set can be used in Prerequisite and check both
Set Table – set type can be seen in SETHEADER and SETLEAF and subset can be seen in SETNODE.
Import and Export of Set
USER EXIT

• Example – While posting vendor invoice posting and if vendor has more than two bank
accounts, system should give pop up message to enter correct partner bank number
WHAT IS SUBSTITUTION – IT REPLACES THE
VALUE(S) ENTERED BY USERS BASED ON
PREDEFINED RULES

• Reference field – BKPF-XBLNR should be filled with ABCD


• For Example - Security Guard expenses should be booked to Corporate cost centre.
• Constant Value
• Field Assignment
• User Exit
ADDING MISSING FIELDS

• Check if the fields that needs to be substituted is already present in T-codes GGB1 or not
• If it is not present , go to SM30 and table VWTYGB01 and click on maintain
• Uncheck the Exclude
DIFFERENCE BETWEEN OKB9 AND
SUBSTITUTION
• OKB9 values can be changed/overridden by users
• Substitution values can not be changed/overridden by users.
EXCEPTIONS TO SUBSTITUTION

SAP NOTES – 2383115/2904313


Do not put substitution for document status U
But FAGL_FCV after note it also updates BSEG
GL Allocation and Depreciation run also
Substitution works for save as completed and posted documented. Parked document does
not trigger Substitution.

You might also like