SlideShare a Scribd company logo
Enhancement Technique: How-To-Guide on the usage of Validations
SAP DEVELOPER NETWORK | sdn.sap.com BUSINESS PROCESS EXPERT COMMUNITY | bpx.sap.com
© 2007 SAP AG 1
Enhancement Technique: How-To-Guide on the usage of
Validations
Applies to:
SAP 4.6C and higher
Summary
This article provides a step-by-step guide on the usage of Validations, an Enhancement technique in the
Financial Accounting Module of the SAP R/3 system.
Author(s): Lakshman Tandra
Company: Intelligroup Asia Pvt Ltd
Created on: 24 April 2007
Author Bio
Lakshman Tandra has been working in Intelligroup from more than 10 years. He is member of the SAP
NetWeaver/ESA core team and currently oversees competency building activities at Intelligroup.
Enhancement Technique: How-To-Guide on the usage of Validations
SAP DEVELOPER NETWORK | sdn.sap.com BUSINESS PROCESS EXPERT COMMUNITY | bpx.sap.com
© 2007 SAP AG 2
Table of Contents
What are Validations........................................................................................................................ 3
Basic Steps in Configuring Validations............................................................................................ 3
Example Business Scenario for Validations.................................................................................... 7
Related Transaction Codes ........................................................................................................... 19
Disclaimer and Liability Notice....................................................................................................... 20
Enhancement Technique: How-To-Guide on the usage of Validations
SAP DEVELOPER NETWORK | sdn.sap.com BUSINESS PROCESS EXPERT COMMUNITY | bpx.sap.com
© 2007 SAP AG 3
What are Validations?
Validation allows you to define your own individual checks for specific fields when a business transaction is
being processed.
A validation consists of three parts:
• Prerequisite
• Check
• Message
If the prerequisite is met (if it is TRUE), a check is performed.
If the check statement is FALSE, the system returns a message.
Basic Steps in Configuring Validations
You must complete the following steps to create a validation:
1. Enter the application area in which the validation is called up.
2. Select the correct Callup point for the validation.
3. Define the validation.
4. Assign your validation to an organizational unit (for example, company code for FI, company code or
global company for FI-SL, controlling area for CO) and
5. Activate the Validation. The fields that can be used in your validation or substitution are determined from
the application area and the Callup point. When you define your rules for the prerequisite and check
statements, you can choose the fields that you want to use.
Call Up Point:
Callup Point 1
• The Callup point tells you when the substitution is performed.
• Callup point 1 checks the fields in a document header.
Callup Point 2
• Callup point 2 is used to check the fields in a document line for a G/L account posting or a FI-SL.
• The fields that are available at Callup point 1 are also available for cross-checks.
Operands and Operators
The following elements are used to create rules for prerequisite statements in substitutions.
• Operands: Logical operators (Boolean logic) and Comparison operators.
User Exits in Validations
• User exits are form routines programmed by the user.
• If you want to use your own rule, you can use user exits to define prerequisites or checks for
validating or substituting fields.
• Exit routines are created in a report. Each client has its own report. The form pools for the report are
stored in table T80D.
• User exits are user-defined FORM routines that are used to calculate and/or replace values
within a validation, substitution, or rule.
• User exits have the following format: U (for a user-defined user exit) or S (for a standard
user exit)
The user exit number (three digits)
• For example, U301 is a user-defined user exit.
• You can configure the form pool name of the user exits and must store it in the table for
client-dependent user exits (T80D) in Customizing. Table T80D contains the form pool
Enhancement Technique: How-To-Guide on the usage of Validations
SAP DEVELOPER NETWORK | sdn.sap.com BUSINESS PROCESS EXPERT COMMUNITY | bpx.sap.com
© 2007 SAP AG 4
names for the user exits used in validations, substitutions, and rules. Each
validation/substitution form pool is client-dependent. (For more information, refer to the
Maintain Client-Dependent User Exits activity in the Implementation Guide (IMG) for Special
Purpose Ledger.)
• Example form pools RGGBS000 and RGGBR000 for client 000 are delivered with the SAP
R/3 System. You must copy these form pools and configure them in T80D. The new form
pool name should conform to the customer naming convention (beginning with the letter Z or
Y) so that is not overwritten when the next SAP upgrade is installed (for example,
YGGBR000).
• Example FORM routine for validation exit 003 (U301).
IF SY-DATUM = BKPF-BUDAT.
B_RESULT = B_TRUE.
ELSE.
B_RESULT = B_FALSE.
ENDIF.
• Tables and structures should not be declared in the FORM routines so that the contents can be used
together with the calling transaction.
• SAP exits are FORM routines that have been programmed by SAP. The name of the form pool for
SAP exits is SAPFGBEB.
The following table shows the types of user exits that can be used in substitutions.
U
• Validations and rules use exit numbers 1 and 3 from the above table.
• If you want to define a parameter for your user exit that is different from the result of a validation
(B_RESULT), you must make an entry for your user exit in the FORM routine GET_EXIT_TITLES in
the form pool you defined. It is recommended that you copy the SAP example form pool RGGBR000
for validation exits or RGGBS000 for substitution exits. These example form pools already contain
entries in the FORM routine GET_EXIT_TITLES for the examples delivered by SAP.
For each validation step:
• Data is entered into the SAP R/3 System.
• Data is sent to the FI-SL Integration Manager and to validations. Validations are part of the
Integration Manager along with substitutions, ledger selection rules, and summation rules.
• Data is then checked against a prerequisite statement.
ser exit
type
Description Application Example
1 No parameters are defined for the user exit. Rules, validations,
and substitutions
(prerequisite)
See form pool RGGBR000,
parameter type
C_EXIT_PARAM_NONE
2 Same as user exit type 1, except one
parameter (the field to be substituted) is
defined in the user exit. For example, you can
create a substitution routine that analyzes the
cost center irrespective of the used field.
Substitutions See form pool RGGBS000,
parameter type
C_EXIT_PARAM_FIELD
3 All data is passed as one parameter; this exit
type can only be used in matrix validations and
substitutions.
Rules, validations,
and substitutions
(prerequisite)
See form pool RGGBR000,
parameter type
C_EXIT_PARAM_CLASS
Enhancement Technique: How-To-Guide on the usage of Validations
SAP DEVELOPER NETWORK | sdn.sap.com BUSINESS PROCESS EXPERT COMMUNITY | bpx.sap.com
© 2007 SAP AG 5
If the prerequisite statement is true, the data is checked against the check statement. If the
prerequisite statement is false, the data is valid.
• If the prerequisite statement is true and the check statement is:
- True, then the data is valid
- False, then the system displays a message
You need to correct E (error) type messages before the value you are validating can be posted. You
should also correct W (warning) type messages. A (abend) type messages result in termination of
validation processing.
• If there are additional steps in the validation, the system accesses the next step for validating the
data until all validation steps have been processed.
Formula Builder:
The Formula Builder provides an easy-to-use interface for inputting arithmetical and logical
expressions.
Depending on the context for the formulation required, you are given buttons to press which provide
Operands and Operators for logical expressions which have to be inserted in the formula.
Your entry is checked step by step for correct syntax including parentheses.
Depending on your entries the system will only allow you to dispose of the correct logical formulation
to guarantee a fully correct statement. Errors in entering your rules are therefore scored out.
The use of technical names, as was the case in the past (tables and field names) is still supported,
but here the options you can use are delivered using press buttons and texts. This enhances the
comfort of handling a logic which is intrinsically technical.
Validation Maintenance:
• Each validation can contain up to 999 steps that each consist of a
Prerequisite
Check
Message
• Prerequisites and checks contain the same fields and have the same field processing options.
• You can use a message that has already been defined or you can create a new message for the
validation.
• You can include up to four fields in a message. The '&' characters in the message are placeholders
for the fields to be output.
• The messages to be output can have different levels of severity:
I = Information
W = Warning
E = Error (the user must correct the entry)
C = Cancel
Enhancement Technique: How-To-Guide on the usage of Validations
SAP DEVELOPER NETWORK | sdn.sap.com BUSINESS PROCESS EXPERT COMMUNITY | bpx.sap.com
© 2007 SAP AG 6
Validation Activation:
• A validation is activated for each of the following:
– an ORGANIZATIONAL UNIT (in FI-SL: Company code or global company)
– a CALLUP POINT (in FI-SL: 0001 (document header) or 0002 (document line))
– A validation can be valid for several company codes / global companies at the same time.
Enhancement Technique: How-To-Guide on the usage of Validations
SAP DEVELOPER NETWORK | sdn.sap.com BUSINESS PROCESS EXPERT COMMUNITY | bpx.sap.com
© 2007 SAP AG 7
Example Business Scenario for Validations
Company A would like to have a validation which should allow for creation of an accounting document with
any document types except the document type SA and the Posting date should be equal to the syst-datum
(Using Exit) in the FI Document when posting an accounting document using the tcode FB01.
Go to GGB0 transaction:
Click on the Documents Header of the Financial Accounting and Create a Validation
Enhancement Technique: How-To-Guide on the usage of Validations
SAP DEVELOPER NETWORK | sdn.sap.com BUSINESS PROCESS EXPERT COMMUNITY | bpx.sap.com
© 2007 SAP AG 8
After that Create a Step by Clicking on the Step button on the toolbar
Enhancement Technique: How-To-Guide on the usage of Validations
SAP DEVELOPER NETWORK | sdn.sap.com BUSINESS PROCESS EXPERT COMMUNITY | bpx.sap.com
© 2007 SAP AG 9
Double click on Prerequisite and give the prerequisite. For our example we will give the syst-uname: Double
click on the structure SYST and select the syst-uname field
Enhancement Technique: How-To-Guide on the usage of Validations
SAP DEVELOPER NETWORK | sdn.sap.com BUSINESS PROCESS EXPERT COMMUNITY | bpx.sap.com
© 2007 SAP AG 10
Select the syst-uname field. Using the Formula builder, give a constant value for Username as ‘NTWDEV’.
This validation will get execute only if the prerequisite is True. (i.e., Validation will trigger only for the User
‘NTWDEV’ )
Double click on Check under the Step created above and select the field from the structure BKPF this time.
Say for our example use BKPF-BLART and click on the button ‘<>’ in the formula editor. After that click on
the Constant button and give the value ‘SA’.
Enhancement Technique: How-To-Guide on the usage of Validations
SAP DEVELOPER NETWORK | sdn.sap.com BUSINESS PROCESS EXPERT COMMUNITY | bpx.sap.com
© 2007 SAP AG 11
Double click on Message and give the required message variables. Say for our example BKPF-BLART
After we complete the Prerequisite, Check Condition and the Message under the validation the Screen
should like below
Enhancement Technique: How-To-Guide on the usage of Validations
SAP DEVELOPER NETWORK | sdn.sap.com BUSINESS PROCESS EXPERT COMMUNITY | bpx.sap.com
© 2007 SAP AG 12
After that go to OB28 (to assign the validation to the Company code and for activation) and create a new
entry by specifying the Company Code, Call point, Validation and Activation Level and Lock in a transport
request.
Enhancement Technique: How-To-Guide on the usage of Validations
SAP DEVELOPER NETWORK | sdn.sap.com BUSINESS PROCESS EXPERT COMMUNITY | bpx.sap.com
© 2007 SAP AG 13
Create an Accounting document using FB01 with the Document type SA:
Enhancement Technique: How-To-Guide on the usage of Validations
SAP DEVELOPER NETWORK | sdn.sap.com BUSINESS PROCESS EXPERT COMMUNITY | bpx.sap.com
© 2007 SAP AG 14
To use the Exits in validations we have to do the following:
Copy the program RGGBR000 into YGGBR000 and lock in a request.
Create an entry in the program we have created above in the form GET_EXIT_TITLES and then create a
form with the same name. It should look like below
Say for our example we will write the code as below. It should check and allow to create an entry only if the
Syst-datum and the Posting data (BKPF-BUDAT) are equal.
Enhancement Technique: How-To-Guide on the usage of Validations
SAP DEVELOPER NETWORK | sdn.sap.com BUSINESS PROCESS EXPERT COMMUNITY | bpx.sap.com
© 2007 SAP AG 15
Create an entry in the table T80D using the view V_T80D using the Tcode SM30. Note: If already there is
program existing for the application we can create an exit in the same program. Since the application area is
the key field in table T80D it will allow only one program per application area.
Save the entry and Lock it in a transport request.
Enhancement Technique: How-To-Guide on the usage of Validations
SAP DEVELOPER NETWORK | sdn.sap.com BUSINESS PROCESS EXPERT COMMUNITY | bpx.sap.com
© 2007 SAP AG 16
After that again go back to the validation what we have created above:
Give the required message variables.
After we complete the Prerequisite, Check Condition and the Message under the validation the Screen
should like below:
Enhancement Technique: How-To-Guide on the usage of Validations
SAP DEVELOPER NETWORK | sdn.sap.com BUSINESS PROCESS EXPERT COMMUNITY | bpx.sap.com
© 2007 SAP AG 17
Create an accounting document using the transaction code FB01 by giving posting date other than syst-
datum. (Generally it depends on the business requirement. To make our exercise simple we will compare the
Syst-datum with the posting date)
Enhancement Technique: How-To-Guide on the usage of Validations
SAP DEVELOPER NETWORK | sdn.sap.com BUSINESS PROCESS EXPERT COMMUNITY | bpx.sap.com
© 2007 SAP AG 18
Enhancement Technique: How-To-Guide on the usage of Validations
SAP DEVELOPER NETWORK | sdn.sap.com BUSINESS PROCESS EXPERT COMMUNITY | bpx.sap.com
© 2007 SAP AG 19
Related Transaction Codes
OB28 : C FI Maintain Table T001D
GGB0 : Validation Maintenance
SM30 : Call View Maintenance
Enhancement Technique: How-To-Guide on the usage of Validations
SAP DEVELOPER NETWORK | sdn.sap.com BUSINESS PROCESS EXPERT COMMUNITY | bpx.sap.com
© 2007 SAP AG 20
Disclaimer and Liability Notice
This document may discuss sample coding or other information that does not include SAP official interfaces
and therefore is not supported by SAP. Changes made based on this information are not supported and can
be overwritten during an upgrade.
SAP will not be held liable for any damages caused by using or misusing the information, code or methods
suggested in this document, and anyone using these methods does so at his/her own risk.
SAP offers no guarantees and assumes no responsibility or liability of any type with respect to the content of
this technical article or code sample, including any liability resulting from incompatibility between the content
within this document and the materials and services offered by SAP. You agree that you will not hold, or
seek to hold, SAP responsible or liable with respect to the content of this document.

More Related Content

What's hot

FI & MM integration
FI & MM integrationFI & MM integration
FI & MM integrationsekhardatta
 
Cash management configue doc v1
Cash management   configue doc v1Cash management   configue doc v1
Cash management configue doc v1
Hari Krishna
 
Sap User Exit for Functional Consultant
Sap User Exit for Functional ConsultantSap User Exit for Functional Consultant
Sap User Exit for Functional Consultant
Ankit Sharma
 
Business Area in SAP FI
Business Area in SAP FIBusiness Area in SAP FI
Business Area in SAP FI
Alessio Ruffini
 
New Asset Accounting in S4 HANA
New Asset Accounting in S4 HANANew Asset Accounting in S4 HANA
New Asset Accounting in S4 HANA
raman2664
 
SAP CO Configuration Guide - Exclusive Document
SAP CO Configuration Guide - Exclusive DocumentSAP CO Configuration Guide - Exclusive Document
SAP CO Configuration Guide - Exclusive Document
sapdocs. info
 
SAP - FIXED ASSETS ACCOUNTING
SAP - FIXED ASSETS ACCOUNTINGSAP - FIXED ASSETS ACCOUNTING
SAP - FIXED ASSETS ACCOUNTING
saiprasadbagrecha
 
A guide to functional areas and cost of sales P&L reporting in the SAP® Gener...
A guide to functional areas and cost of sales P&L reporting in the SAP® Gener...A guide to functional areas and cost of sales P&L reporting in the SAP® Gener...
A guide to functional areas and cost of sales P&L reporting in the SAP® Gener...John Jordan
 
Copa configuration
Copa configurationCopa configuration
Copa configurationMithun Roy
 
example of SAP Cut over strategy FI CO MM PS module
example of SAP Cut over strategy FI CO MM PS moduleexample of SAP Cut over strategy FI CO MM PS module
example of SAP Cut over strategy FI CO MM PS module
Citra Nudiasari
 
Sap fi automatic payment program (configuration and run)
Sap fi   automatic payment program (configuration and run)Sap fi   automatic payment program (configuration and run)
Sap fi automatic payment program (configuration and run)Pradip Sarkar
 
Asset sales
Asset salesAsset sales
Asset sales
Vijay Shedge
 
Sap fi integration with other modules in sap fico
Sap fi integration with other modules in sap ficoSap fi integration with other modules in sap fico
Sap fi integration with other modules in sap fico
whynet2005
 
FS for FICO
FS for FICOFS for FICO
FS for FICO
sadasivab
 
SAP Serial number management
SAP Serial number managementSAP Serial number management
SAP Serial number management
Kelvin Cheng
 
Sap auc internal orders as investment measures
Sap auc internal orders as investment measuresSap auc internal orders as investment measures
Sap auc internal orders as investment measures
SURESH BABU MUCHINTHALA
 
Sap Fico Configuration Material
Sap Fico Configuration MaterialSap Fico Configuration Material
Sap Fico Configuration Material
Naina Mohamed
 
Tax in sap
Tax in sapTax in sap
Tax in sap
Shaily Dubey
 
Quick sap co configuration Internal Order
Quick sap co configuration Internal OrderQuick sap co configuration Internal Order
Quick sap co configuration Internal Order
Capgemini
 

What's hot (20)

FI & MM integration
FI & MM integrationFI & MM integration
FI & MM integration
 
Cash management configue doc v1
Cash management   configue doc v1Cash management   configue doc v1
Cash management configue doc v1
 
Sap User Exit for Functional Consultant
Sap User Exit for Functional ConsultantSap User Exit for Functional Consultant
Sap User Exit for Functional Consultant
 
Business Area in SAP FI
Business Area in SAP FIBusiness Area in SAP FI
Business Area in SAP FI
 
New Asset Accounting in S4 HANA
New Asset Accounting in S4 HANANew Asset Accounting in S4 HANA
New Asset Accounting in S4 HANA
 
SAP CO Configuration Guide - Exclusive Document
SAP CO Configuration Guide - Exclusive DocumentSAP CO Configuration Guide - Exclusive Document
SAP CO Configuration Guide - Exclusive Document
 
SAP - FIXED ASSETS ACCOUNTING
SAP - FIXED ASSETS ACCOUNTINGSAP - FIXED ASSETS ACCOUNTING
SAP - FIXED ASSETS ACCOUNTING
 
Intercompany config
Intercompany configIntercompany config
Intercompany config
 
A guide to functional areas and cost of sales P&L reporting in the SAP® Gener...
A guide to functional areas and cost of sales P&L reporting in the SAP® Gener...A guide to functional areas and cost of sales P&L reporting in the SAP® Gener...
A guide to functional areas and cost of sales P&L reporting in the SAP® Gener...
 
Copa configuration
Copa configurationCopa configuration
Copa configuration
 
example of SAP Cut over strategy FI CO MM PS module
example of SAP Cut over strategy FI CO MM PS moduleexample of SAP Cut over strategy FI CO MM PS module
example of SAP Cut over strategy FI CO MM PS module
 
Sap fi automatic payment program (configuration and run)
Sap fi   automatic payment program (configuration and run)Sap fi   automatic payment program (configuration and run)
Sap fi automatic payment program (configuration and run)
 
Asset sales
Asset salesAsset sales
Asset sales
 
Sap fi integration with other modules in sap fico
Sap fi integration with other modules in sap ficoSap fi integration with other modules in sap fico
Sap fi integration with other modules in sap fico
 
FS for FICO
FS for FICOFS for FICO
FS for FICO
 
SAP Serial number management
SAP Serial number managementSAP Serial number management
SAP Serial number management
 
Sap auc internal orders as investment measures
Sap auc internal orders as investment measuresSap auc internal orders as investment measures
Sap auc internal orders as investment measures
 
Sap Fico Configuration Material
Sap Fico Configuration MaterialSap Fico Configuration Material
Sap Fico Configuration Material
 
Tax in sap
Tax in sapTax in sap
Tax in sap
 
Quick sap co configuration Internal Order
Quick sap co configuration Internal OrderQuick sap co configuration Internal Order
Quick sap co configuration Internal Order
 

Similar to Session 14 validation_steps_sap

ERP Training
ERP TrainingERP Training
ERP Training
Soumya De
 
S4H_790 IAM - Authorization Concept Guidelines for S4HANA Cloud.pptx
S4H_790 IAM - Authorization Concept Guidelines for S4HANA Cloud.pptxS4H_790 IAM - Authorization Concept Guidelines for S4HANA Cloud.pptx
S4H_790 IAM - Authorization Concept Guidelines for S4HANA Cloud.pptx
ITAdmin28
 
A Deep Dive into HPCM for Planning and Essbase Professionals
A Deep Dive into HPCM for Planning and Essbase ProfessionalsA Deep Dive into HPCM for Planning and Essbase Professionals
A Deep Dive into HPCM for Planning and Essbase Professionals
Alithya
 
A Deep Dive into HPCM for Planning and Essbase Professionals
A Deep Dive into HPCM for Planning and Essbase ProfessionalsA Deep Dive into HPCM for Planning and Essbase Professionals
A Deep Dive into HPCM for Planning and Essbase Professionals
Alithya
 
Expert sizing &amp; methods of sizing validation
Expert sizing &amp; methods of sizing validationExpert sizing &amp; methods of sizing validation
Expert sizing &amp; methods of sizing validation
Jaleel Ahmed Gulammohiddin
 
Ps training mannual ( configuration )
Ps training mannual ( configuration )Ps training mannual ( configuration )
Ps training mannual ( configuration )
Soumya De
 
Agile testing approach
Agile testing approachAgile testing approach
Agile testing approach
Sanjay Verma MBA,PMI
 
Introduction to ERP Concept
Introduction to ERP ConceptIntroduction to ERP Concept
20 Simple Questions from Exactpro for Your Enjoyment This Holiday Season
20 Simple Questions from Exactpro for Your Enjoyment This Holiday Season20 Simple Questions from Exactpro for Your Enjoyment This Holiday Season
20 Simple Questions from Exactpro for Your Enjoyment This Holiday Season
Iosif Itkin
 
J54_S4CLD2108_BPD_EN_US.docx
J54_S4CLD2108_BPD_EN_US.docxJ54_S4CLD2108_BPD_EN_US.docx
J54_S4CLD2108_BPD_EN_US.docx
ssuser13b4e6
 
Development Best Practices
Development Best PracticesDevelopment Best Practices
Development Best Practices
Salesforce Partners
 
Returns and service
Returns and serviceReturns and service
Returns and service
suryanarayana tata
 
CO_TM_Controlling_co-om Master Data .pdf
CO_TM_Controlling_co-om Master Data .pdfCO_TM_Controlling_co-om Master Data .pdf
CO_TM_Controlling_co-om Master Data .pdf
ssuser878ec2
 
DivyaBRavichandran-Senior Software Engineer
DivyaBRavichandran-Senior Software EngineerDivyaBRavichandran-Senior Software Engineer
DivyaBRavichandran-Senior Software EngineerDivya Ravichandran
 
Aegis Qa practice slide show v1
Aegis Qa practice slide show v1Aegis Qa practice slide show v1
Aegis Qa practice slide show v1
Sam Tomarchio
 
Cards Performance Testing (Whitepaper)
Cards Performance Testing (Whitepaper)Cards Performance Testing (Whitepaper)
Cards Performance Testing (Whitepaper)
Thinksoft Global
 
Simplifying the Complexity of Salesforce CPQ: Tips & Best Practices
Simplifying the Complexity of Salesforce CPQ: Tips & Best PracticesSimplifying the Complexity of Salesforce CPQ: Tips & Best Practices
Simplifying the Complexity of Salesforce CPQ: Tips & Best Practices
panayaofficial
 
Fi ap- payment release-1
Fi ap- payment release-1Fi ap- payment release-1
Fi ap- payment release-1Umashankar Babu
 
Dv con us-2018-formal-fpu-verif-xilinx-onespin
Dv con us-2018-formal-fpu-verif-xilinx-onespinDv con us-2018-formal-fpu-verif-xilinx-onespin
Dv con us-2018-formal-fpu-verif-xilinx-onespin
Sergio Marchese
 

Similar to Session 14 validation_steps_sap (20)

ERP Training
ERP TrainingERP Training
ERP Training
 
S4H_790 IAM - Authorization Concept Guidelines for S4HANA Cloud.pptx
S4H_790 IAM - Authorization Concept Guidelines for S4HANA Cloud.pptxS4H_790 IAM - Authorization Concept Guidelines for S4HANA Cloud.pptx
S4H_790 IAM - Authorization Concept Guidelines for S4HANA Cloud.pptx
 
Clientadmin
ClientadminClientadmin
Clientadmin
 
A Deep Dive into HPCM for Planning and Essbase Professionals
A Deep Dive into HPCM for Planning and Essbase ProfessionalsA Deep Dive into HPCM for Planning and Essbase Professionals
A Deep Dive into HPCM for Planning and Essbase Professionals
 
A Deep Dive into HPCM for Planning and Essbase Professionals
A Deep Dive into HPCM for Planning and Essbase ProfessionalsA Deep Dive into HPCM for Planning and Essbase Professionals
A Deep Dive into HPCM for Planning and Essbase Professionals
 
Expert sizing &amp; methods of sizing validation
Expert sizing &amp; methods of sizing validationExpert sizing &amp; methods of sizing validation
Expert sizing &amp; methods of sizing validation
 
Ps training mannual ( configuration )
Ps training mannual ( configuration )Ps training mannual ( configuration )
Ps training mannual ( configuration )
 
Agile testing approach
Agile testing approachAgile testing approach
Agile testing approach
 
Introduction to ERP Concept
Introduction to ERP ConceptIntroduction to ERP Concept
Introduction to ERP Concept
 
20 Simple Questions from Exactpro for Your Enjoyment This Holiday Season
20 Simple Questions from Exactpro for Your Enjoyment This Holiday Season20 Simple Questions from Exactpro for Your Enjoyment This Holiday Season
20 Simple Questions from Exactpro for Your Enjoyment This Holiday Season
 
J54_S4CLD2108_BPD_EN_US.docx
J54_S4CLD2108_BPD_EN_US.docxJ54_S4CLD2108_BPD_EN_US.docx
J54_S4CLD2108_BPD_EN_US.docx
 
Development Best Practices
Development Best PracticesDevelopment Best Practices
Development Best Practices
 
Returns and service
Returns and serviceReturns and service
Returns and service
 
CO_TM_Controlling_co-om Master Data .pdf
CO_TM_Controlling_co-om Master Data .pdfCO_TM_Controlling_co-om Master Data .pdf
CO_TM_Controlling_co-om Master Data .pdf
 
DivyaBRavichandran-Senior Software Engineer
DivyaBRavichandran-Senior Software EngineerDivyaBRavichandran-Senior Software Engineer
DivyaBRavichandran-Senior Software Engineer
 
Aegis Qa practice slide show v1
Aegis Qa practice slide show v1Aegis Qa practice slide show v1
Aegis Qa practice slide show v1
 
Cards Performance Testing (Whitepaper)
Cards Performance Testing (Whitepaper)Cards Performance Testing (Whitepaper)
Cards Performance Testing (Whitepaper)
 
Simplifying the Complexity of Salesforce CPQ: Tips & Best Practices
Simplifying the Complexity of Salesforce CPQ: Tips & Best PracticesSimplifying the Complexity of Salesforce CPQ: Tips & Best Practices
Simplifying the Complexity of Salesforce CPQ: Tips & Best Practices
 
Fi ap- payment release-1
Fi ap- payment release-1Fi ap- payment release-1
Fi ap- payment release-1
 
Dv con us-2018-formal-fpu-verif-xilinx-onespin
Dv con us-2018-formal-fpu-verif-xilinx-onespinDv con us-2018-formal-fpu-verif-xilinx-onespin
Dv con us-2018-formal-fpu-verif-xilinx-onespin
 

Recently uploaded

Normal Labour/ Stages of Labour/ Mechanism of Labour
Normal Labour/ Stages of Labour/ Mechanism of LabourNormal Labour/ Stages of Labour/ Mechanism of Labour
Normal Labour/ Stages of Labour/ Mechanism of Labour
Wasim Ak
 
The Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptxThe Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptx
DhatriParmar
 
How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...
Jisc
 
Thesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.pptThesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.ppt
EverAndrsGuerraGuerr
 
S1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptxS1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptx
tarandeep35
 
Overview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with MechanismOverview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with Mechanism
DeeptiGupta154
 
Digital Artifact 2 - Investigating Pavilion Designs
Digital Artifact 2 - Investigating Pavilion DesignsDigital Artifact 2 - Investigating Pavilion Designs
Digital Artifact 2 - Investigating Pavilion Designs
chanes7
 
The Diamond Necklace by Guy De Maupassant.pptx
The Diamond Necklace by Guy De Maupassant.pptxThe Diamond Necklace by Guy De Maupassant.pptx
The Diamond Necklace by Guy De Maupassant.pptx
DhatriParmar
 
Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.
Ashokrao Mane college of Pharmacy Peth-Vadgaon
 
Operation Blue Star - Saka Neela Tara
Operation Blue Star   -  Saka Neela TaraOperation Blue Star   -  Saka Neela Tara
Operation Blue Star - Saka Neela Tara
Balvir Singh
 
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
EugeneSaldivar
 
Model Attribute Check Company Auto Property
Model Attribute  Check Company Auto PropertyModel Attribute  Check Company Auto Property
Model Attribute Check Company Auto Property
Celine George
 
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdfUnit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Thiyagu K
 
The basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptxThe basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptx
heathfieldcps1
 
Supporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptxSupporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptx
Jisc
 
The Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationThe Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official Publication
Delapenabediema
 
STRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBC
STRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBCSTRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBC
STRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBC
kimdan468
 
The Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collectionThe Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collection
Israel Genealogy Research Association
 
1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx
JosvitaDsouza2
 
How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17
Celine George
 

Recently uploaded (20)

Normal Labour/ Stages of Labour/ Mechanism of Labour
Normal Labour/ Stages of Labour/ Mechanism of LabourNormal Labour/ Stages of Labour/ Mechanism of Labour
Normal Labour/ Stages of Labour/ Mechanism of Labour
 
The Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptxThe Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptx
 
How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...
 
Thesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.pptThesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.ppt
 
S1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptxS1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptx
 
Overview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with MechanismOverview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with Mechanism
 
Digital Artifact 2 - Investigating Pavilion Designs
Digital Artifact 2 - Investigating Pavilion DesignsDigital Artifact 2 - Investigating Pavilion Designs
Digital Artifact 2 - Investigating Pavilion Designs
 
The Diamond Necklace by Guy De Maupassant.pptx
The Diamond Necklace by Guy De Maupassant.pptxThe Diamond Necklace by Guy De Maupassant.pptx
The Diamond Necklace by Guy De Maupassant.pptx
 
Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.
 
Operation Blue Star - Saka Neela Tara
Operation Blue Star   -  Saka Neela TaraOperation Blue Star   -  Saka Neela Tara
Operation Blue Star - Saka Neela Tara
 
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
 
Model Attribute Check Company Auto Property
Model Attribute  Check Company Auto PropertyModel Attribute  Check Company Auto Property
Model Attribute Check Company Auto Property
 
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdfUnit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdf
 
The basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptxThe basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptx
 
Supporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptxSupporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptx
 
The Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationThe Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official Publication
 
STRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBC
STRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBCSTRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBC
STRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBC
 
The Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collectionThe Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collection
 
1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx
 
How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17
 

Session 14 validation_steps_sap

  • 1. Enhancement Technique: How-To-Guide on the usage of Validations SAP DEVELOPER NETWORK | sdn.sap.com BUSINESS PROCESS EXPERT COMMUNITY | bpx.sap.com © 2007 SAP AG 1 Enhancement Technique: How-To-Guide on the usage of Validations Applies to: SAP 4.6C and higher Summary This article provides a step-by-step guide on the usage of Validations, an Enhancement technique in the Financial Accounting Module of the SAP R/3 system. Author(s): Lakshman Tandra Company: Intelligroup Asia Pvt Ltd Created on: 24 April 2007 Author Bio Lakshman Tandra has been working in Intelligroup from more than 10 years. He is member of the SAP NetWeaver/ESA core team and currently oversees competency building activities at Intelligroup.
  • 2. Enhancement Technique: How-To-Guide on the usage of Validations SAP DEVELOPER NETWORK | sdn.sap.com BUSINESS PROCESS EXPERT COMMUNITY | bpx.sap.com © 2007 SAP AG 2 Table of Contents What are Validations........................................................................................................................ 3 Basic Steps in Configuring Validations............................................................................................ 3 Example Business Scenario for Validations.................................................................................... 7 Related Transaction Codes ........................................................................................................... 19 Disclaimer and Liability Notice....................................................................................................... 20
  • 3. Enhancement Technique: How-To-Guide on the usage of Validations SAP DEVELOPER NETWORK | sdn.sap.com BUSINESS PROCESS EXPERT COMMUNITY | bpx.sap.com © 2007 SAP AG 3 What are Validations? Validation allows you to define your own individual checks for specific fields when a business transaction is being processed. A validation consists of three parts: • Prerequisite • Check • Message If the prerequisite is met (if it is TRUE), a check is performed. If the check statement is FALSE, the system returns a message. Basic Steps in Configuring Validations You must complete the following steps to create a validation: 1. Enter the application area in which the validation is called up. 2. Select the correct Callup point for the validation. 3. Define the validation. 4. Assign your validation to an organizational unit (for example, company code for FI, company code or global company for FI-SL, controlling area for CO) and 5. Activate the Validation. The fields that can be used in your validation or substitution are determined from the application area and the Callup point. When you define your rules for the prerequisite and check statements, you can choose the fields that you want to use. Call Up Point: Callup Point 1 • The Callup point tells you when the substitution is performed. • Callup point 1 checks the fields in a document header. Callup Point 2 • Callup point 2 is used to check the fields in a document line for a G/L account posting or a FI-SL. • The fields that are available at Callup point 1 are also available for cross-checks. Operands and Operators The following elements are used to create rules for prerequisite statements in substitutions. • Operands: Logical operators (Boolean logic) and Comparison operators. User Exits in Validations • User exits are form routines programmed by the user. • If you want to use your own rule, you can use user exits to define prerequisites or checks for validating or substituting fields. • Exit routines are created in a report. Each client has its own report. The form pools for the report are stored in table T80D. • User exits are user-defined FORM routines that are used to calculate and/or replace values within a validation, substitution, or rule. • User exits have the following format: U (for a user-defined user exit) or S (for a standard user exit) The user exit number (three digits) • For example, U301 is a user-defined user exit. • You can configure the form pool name of the user exits and must store it in the table for client-dependent user exits (T80D) in Customizing. Table T80D contains the form pool
  • 4. Enhancement Technique: How-To-Guide on the usage of Validations SAP DEVELOPER NETWORK | sdn.sap.com BUSINESS PROCESS EXPERT COMMUNITY | bpx.sap.com © 2007 SAP AG 4 names for the user exits used in validations, substitutions, and rules. Each validation/substitution form pool is client-dependent. (For more information, refer to the Maintain Client-Dependent User Exits activity in the Implementation Guide (IMG) for Special Purpose Ledger.) • Example form pools RGGBS000 and RGGBR000 for client 000 are delivered with the SAP R/3 System. You must copy these form pools and configure them in T80D. The new form pool name should conform to the customer naming convention (beginning with the letter Z or Y) so that is not overwritten when the next SAP upgrade is installed (for example, YGGBR000). • Example FORM routine for validation exit 003 (U301). IF SY-DATUM = BKPF-BUDAT. B_RESULT = B_TRUE. ELSE. B_RESULT = B_FALSE. ENDIF. • Tables and structures should not be declared in the FORM routines so that the contents can be used together with the calling transaction. • SAP exits are FORM routines that have been programmed by SAP. The name of the form pool for SAP exits is SAPFGBEB. The following table shows the types of user exits that can be used in substitutions. U • Validations and rules use exit numbers 1 and 3 from the above table. • If you want to define a parameter for your user exit that is different from the result of a validation (B_RESULT), you must make an entry for your user exit in the FORM routine GET_EXIT_TITLES in the form pool you defined. It is recommended that you copy the SAP example form pool RGGBR000 for validation exits or RGGBS000 for substitution exits. These example form pools already contain entries in the FORM routine GET_EXIT_TITLES for the examples delivered by SAP. For each validation step: • Data is entered into the SAP R/3 System. • Data is sent to the FI-SL Integration Manager and to validations. Validations are part of the Integration Manager along with substitutions, ledger selection rules, and summation rules. • Data is then checked against a prerequisite statement. ser exit type Description Application Example 1 No parameters are defined for the user exit. Rules, validations, and substitutions (prerequisite) See form pool RGGBR000, parameter type C_EXIT_PARAM_NONE 2 Same as user exit type 1, except one parameter (the field to be substituted) is defined in the user exit. For example, you can create a substitution routine that analyzes the cost center irrespective of the used field. Substitutions See form pool RGGBS000, parameter type C_EXIT_PARAM_FIELD 3 All data is passed as one parameter; this exit type can only be used in matrix validations and substitutions. Rules, validations, and substitutions (prerequisite) See form pool RGGBR000, parameter type C_EXIT_PARAM_CLASS
  • 5. Enhancement Technique: How-To-Guide on the usage of Validations SAP DEVELOPER NETWORK | sdn.sap.com BUSINESS PROCESS EXPERT COMMUNITY | bpx.sap.com © 2007 SAP AG 5 If the prerequisite statement is true, the data is checked against the check statement. If the prerequisite statement is false, the data is valid. • If the prerequisite statement is true and the check statement is: - True, then the data is valid - False, then the system displays a message You need to correct E (error) type messages before the value you are validating can be posted. You should also correct W (warning) type messages. A (abend) type messages result in termination of validation processing. • If there are additional steps in the validation, the system accesses the next step for validating the data until all validation steps have been processed. Formula Builder: The Formula Builder provides an easy-to-use interface for inputting arithmetical and logical expressions. Depending on the context for the formulation required, you are given buttons to press which provide Operands and Operators for logical expressions which have to be inserted in the formula. Your entry is checked step by step for correct syntax including parentheses. Depending on your entries the system will only allow you to dispose of the correct logical formulation to guarantee a fully correct statement. Errors in entering your rules are therefore scored out. The use of technical names, as was the case in the past (tables and field names) is still supported, but here the options you can use are delivered using press buttons and texts. This enhances the comfort of handling a logic which is intrinsically technical. Validation Maintenance: • Each validation can contain up to 999 steps that each consist of a Prerequisite Check Message • Prerequisites and checks contain the same fields and have the same field processing options. • You can use a message that has already been defined or you can create a new message for the validation. • You can include up to four fields in a message. The '&' characters in the message are placeholders for the fields to be output. • The messages to be output can have different levels of severity: I = Information W = Warning E = Error (the user must correct the entry) C = Cancel
  • 6. Enhancement Technique: How-To-Guide on the usage of Validations SAP DEVELOPER NETWORK | sdn.sap.com BUSINESS PROCESS EXPERT COMMUNITY | bpx.sap.com © 2007 SAP AG 6 Validation Activation: • A validation is activated for each of the following: – an ORGANIZATIONAL UNIT (in FI-SL: Company code or global company) – a CALLUP POINT (in FI-SL: 0001 (document header) or 0002 (document line)) – A validation can be valid for several company codes / global companies at the same time.
  • 7. Enhancement Technique: How-To-Guide on the usage of Validations SAP DEVELOPER NETWORK | sdn.sap.com BUSINESS PROCESS EXPERT COMMUNITY | bpx.sap.com © 2007 SAP AG 7 Example Business Scenario for Validations Company A would like to have a validation which should allow for creation of an accounting document with any document types except the document type SA and the Posting date should be equal to the syst-datum (Using Exit) in the FI Document when posting an accounting document using the tcode FB01. Go to GGB0 transaction: Click on the Documents Header of the Financial Accounting and Create a Validation
  • 8. Enhancement Technique: How-To-Guide on the usage of Validations SAP DEVELOPER NETWORK | sdn.sap.com BUSINESS PROCESS EXPERT COMMUNITY | bpx.sap.com © 2007 SAP AG 8 After that Create a Step by Clicking on the Step button on the toolbar
  • 9. Enhancement Technique: How-To-Guide on the usage of Validations SAP DEVELOPER NETWORK | sdn.sap.com BUSINESS PROCESS EXPERT COMMUNITY | bpx.sap.com © 2007 SAP AG 9 Double click on Prerequisite and give the prerequisite. For our example we will give the syst-uname: Double click on the structure SYST and select the syst-uname field
  • 10. Enhancement Technique: How-To-Guide on the usage of Validations SAP DEVELOPER NETWORK | sdn.sap.com BUSINESS PROCESS EXPERT COMMUNITY | bpx.sap.com © 2007 SAP AG 10 Select the syst-uname field. Using the Formula builder, give a constant value for Username as ‘NTWDEV’. This validation will get execute only if the prerequisite is True. (i.e., Validation will trigger only for the User ‘NTWDEV’ ) Double click on Check under the Step created above and select the field from the structure BKPF this time. Say for our example use BKPF-BLART and click on the button ‘<>’ in the formula editor. After that click on the Constant button and give the value ‘SA’.
  • 11. Enhancement Technique: How-To-Guide on the usage of Validations SAP DEVELOPER NETWORK | sdn.sap.com BUSINESS PROCESS EXPERT COMMUNITY | bpx.sap.com © 2007 SAP AG 11 Double click on Message and give the required message variables. Say for our example BKPF-BLART After we complete the Prerequisite, Check Condition and the Message under the validation the Screen should like below
  • 12. Enhancement Technique: How-To-Guide on the usage of Validations SAP DEVELOPER NETWORK | sdn.sap.com BUSINESS PROCESS EXPERT COMMUNITY | bpx.sap.com © 2007 SAP AG 12 After that go to OB28 (to assign the validation to the Company code and for activation) and create a new entry by specifying the Company Code, Call point, Validation and Activation Level and Lock in a transport request.
  • 13. Enhancement Technique: How-To-Guide on the usage of Validations SAP DEVELOPER NETWORK | sdn.sap.com BUSINESS PROCESS EXPERT COMMUNITY | bpx.sap.com © 2007 SAP AG 13 Create an Accounting document using FB01 with the Document type SA:
  • 14. Enhancement Technique: How-To-Guide on the usage of Validations SAP DEVELOPER NETWORK | sdn.sap.com BUSINESS PROCESS EXPERT COMMUNITY | bpx.sap.com © 2007 SAP AG 14 To use the Exits in validations we have to do the following: Copy the program RGGBR000 into YGGBR000 and lock in a request. Create an entry in the program we have created above in the form GET_EXIT_TITLES and then create a form with the same name. It should look like below Say for our example we will write the code as below. It should check and allow to create an entry only if the Syst-datum and the Posting data (BKPF-BUDAT) are equal.
  • 15. Enhancement Technique: How-To-Guide on the usage of Validations SAP DEVELOPER NETWORK | sdn.sap.com BUSINESS PROCESS EXPERT COMMUNITY | bpx.sap.com © 2007 SAP AG 15 Create an entry in the table T80D using the view V_T80D using the Tcode SM30. Note: If already there is program existing for the application we can create an exit in the same program. Since the application area is the key field in table T80D it will allow only one program per application area. Save the entry and Lock it in a transport request.
  • 16. Enhancement Technique: How-To-Guide on the usage of Validations SAP DEVELOPER NETWORK | sdn.sap.com BUSINESS PROCESS EXPERT COMMUNITY | bpx.sap.com © 2007 SAP AG 16 After that again go back to the validation what we have created above: Give the required message variables. After we complete the Prerequisite, Check Condition and the Message under the validation the Screen should like below:
  • 17. Enhancement Technique: How-To-Guide on the usage of Validations SAP DEVELOPER NETWORK | sdn.sap.com BUSINESS PROCESS EXPERT COMMUNITY | bpx.sap.com © 2007 SAP AG 17 Create an accounting document using the transaction code FB01 by giving posting date other than syst- datum. (Generally it depends on the business requirement. To make our exercise simple we will compare the Syst-datum with the posting date)
  • 18. Enhancement Technique: How-To-Guide on the usage of Validations SAP DEVELOPER NETWORK | sdn.sap.com BUSINESS PROCESS EXPERT COMMUNITY | bpx.sap.com © 2007 SAP AG 18
  • 19. Enhancement Technique: How-To-Guide on the usage of Validations SAP DEVELOPER NETWORK | sdn.sap.com BUSINESS PROCESS EXPERT COMMUNITY | bpx.sap.com © 2007 SAP AG 19 Related Transaction Codes OB28 : C FI Maintain Table T001D GGB0 : Validation Maintenance SM30 : Call View Maintenance
  • 20. Enhancement Technique: How-To-Guide on the usage of Validations SAP DEVELOPER NETWORK | sdn.sap.com BUSINESS PROCESS EXPERT COMMUNITY | bpx.sap.com © 2007 SAP AG 20 Disclaimer and Liability Notice This document may discuss sample coding or other information that does not include SAP official interfaces and therefore is not supported by SAP. Changes made based on this information are not supported and can be overwritten during an upgrade. SAP will not be held liable for any damages caused by using or misusing the information, code or methods suggested in this document, and anyone using these methods does so at his/her own risk. SAP offers no guarantees and assumes no responsibility or liability of any type with respect to the content of this technical article or code sample, including any liability resulting from incompatibility between the content within this document and the materials and services offered by SAP. You agree that you will not hold, or seek to hold, SAP responsible or liable with respect to the content of this document.