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

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
 
Copa configuration
Copa configurationCopa configuration
Copa configurationMithun Roy
 
SAP FICO BBP Sample Document PDF NEW!
SAP FICO BBP Sample Document PDF NEW!SAP FICO BBP Sample Document PDF NEW!
SAP FICO BBP Sample Document PDF NEW!
sapdocs. info
 
SAP FI AP: Configuration & End User Guide
SAP FI AP: Configuration & End User GuideSAP FI AP: Configuration & End User Guide
SAP FI AP: Configuration & End User Guide
sapdocs. info
 
SAP FICO GST Configurations .pdf
SAP FICO GST Configurations .pdfSAP FICO GST Configurations .pdf
SAP FICO GST Configurations .pdf
aNani7
 
Project Systems: Materials
Project Systems: MaterialsProject Systems: Materials
Project Systems: Materialsvnhardik
 
96836801 sap-sd-interview-questions
96836801 sap-sd-interview-questions96836801 sap-sd-interview-questions
96836801 sap-sd-interview-questionskollum01
 
Kp26 plan activity output on cost center
Kp26 plan activity output on cost centerKp26 plan activity output on cost center
Kp26 plan activity output on cost centerZakir Chowdhury
 
SAP Accounting powered by SAP HANA – Moving controlling and finance closer to...
SAP Accounting powered by SAP HANA – Moving controlling and finance closer to...SAP Accounting powered by SAP HANA – Moving controlling and finance closer to...
SAP Accounting powered by SAP HANA – Moving controlling and finance closer to...
John Jordan
 
Electronic bank statement mt940 format
Electronic bank statement mt940 formatElectronic bank statement mt940 format
Electronic bank statement mt940 format
Hisham Emam
 
Migration Guide For SAP S/4 HANA 1809 FICO
Migration Guide For SAP S/4 HANA 1809 FICOMigration Guide For SAP S/4 HANA 1809 FICO
Migration Guide For SAP S/4 HANA 1809 FICO
Rakesh Patil
 
SAP Draft Solution for GST India
SAP Draft Solution for GST IndiaSAP Draft Solution for GST India
SAP Draft Solution for GST India
Sandeep Mahindra
 
SAP CO-PA (Controlling-Profitability Analysis)
SAP CO-PA (Controlling-Profitability Analysis)SAP CO-PA (Controlling-Profitability Analysis)
SAP CO-PA (Controlling-Profitability Analysis)
Stridely Solutions
 
Quick sap co configuration Internal Order
Quick sap co configuration Internal OrderQuick sap co configuration Internal Order
Quick sap co configuration Internal Order
Capgemini
 
Session 14 validation_steps_sap
Session 14 validation_steps_sapSession 14 validation_steps_sap
Session 14 validation_steps_sap
Amitava Saha, PMP®
 
Guide to Configure Custom SD Output Types in S/4HANA Using BRF+
Guide to Configure Custom SD Output Types in S/4HANA Using BRF+Guide to Configure Custom SD Output Types in S/4HANA Using BRF+
Guide to Configure Custom SD Output Types in S/4HANA Using BRF+
Ashish Saxena
 
Validation and substitution -sap fi advance functions 2019
Validation and substitution -sap fi advance functions 2019Validation and substitution -sap fi advance functions 2019
Validation and substitution -sap fi advance functions 2019
GuangfuDavidLi
 
Account Assignment Category
Account Assignment CategoryAccount Assignment Category
Account Assignment CategoryRameswara Vedula
 
Product costing in SAP - a primer
Product costing in SAP - a primerProduct costing in SAP - a primer
Product costing in SAP - a primer
Rajesh Shanbhag
 

What's hot (20)

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
 
Copa configuration
Copa configurationCopa configuration
Copa configuration
 
SAP FICO BBP Sample Document PDF NEW!
SAP FICO BBP Sample Document PDF NEW!SAP FICO BBP Sample Document PDF NEW!
SAP FICO BBP Sample Document PDF NEW!
 
SAP FI AP: Configuration & End User Guide
SAP FI AP: Configuration & End User GuideSAP FI AP: Configuration & End User Guide
SAP FI AP: Configuration & End User Guide
 
SAP FICO GST Configurations .pdf
SAP FICO GST Configurations .pdfSAP FICO GST Configurations .pdf
SAP FICO GST Configurations .pdf
 
Project Systems: Materials
Project Systems: MaterialsProject Systems: Materials
Project Systems: Materials
 
96836801 sap-sd-interview-questions
96836801 sap-sd-interview-questions96836801 sap-sd-interview-questions
96836801 sap-sd-interview-questions
 
Intercompany config
Intercompany configIntercompany config
Intercompany config
 
Kp26 plan activity output on cost center
Kp26 plan activity output on cost centerKp26 plan activity output on cost center
Kp26 plan activity output on cost center
 
SAP Accounting powered by SAP HANA – Moving controlling and finance closer to...
SAP Accounting powered by SAP HANA – Moving controlling and finance closer to...SAP Accounting powered by SAP HANA – Moving controlling and finance closer to...
SAP Accounting powered by SAP HANA – Moving controlling and finance closer to...
 
Electronic bank statement mt940 format
Electronic bank statement mt940 formatElectronic bank statement mt940 format
Electronic bank statement mt940 format
 
Migration Guide For SAP S/4 HANA 1809 FICO
Migration Guide For SAP S/4 HANA 1809 FICOMigration Guide For SAP S/4 HANA 1809 FICO
Migration Guide For SAP S/4 HANA 1809 FICO
 
SAP Draft Solution for GST India
SAP Draft Solution for GST IndiaSAP Draft Solution for GST India
SAP Draft Solution for GST India
 
SAP CO-PA (Controlling-Profitability Analysis)
SAP CO-PA (Controlling-Profitability Analysis)SAP CO-PA (Controlling-Profitability Analysis)
SAP CO-PA (Controlling-Profitability Analysis)
 
Quick sap co configuration Internal Order
Quick sap co configuration Internal OrderQuick sap co configuration Internal Order
Quick sap co configuration Internal Order
 
Session 14 validation_steps_sap
Session 14 validation_steps_sapSession 14 validation_steps_sap
Session 14 validation_steps_sap
 
Guide to Configure Custom SD Output Types in S/4HANA Using BRF+
Guide to Configure Custom SD Output Types in S/4HANA Using BRF+Guide to Configure Custom SD Output Types in S/4HANA Using BRF+
Guide to Configure Custom SD Output Types in S/4HANA Using BRF+
 
Validation and substitution -sap fi advance functions 2019
Validation and substitution -sap fi advance functions 2019Validation and substitution -sap fi advance functions 2019
Validation and substitution -sap fi advance functions 2019
 
Account Assignment Category
Account Assignment CategoryAccount Assignment Category
Account Assignment Category
 
Product costing in SAP - a primer
Product costing in SAP - a primerProduct costing in SAP - a primer
Product costing in SAP - a primer
 

Viewers also liked

Fi enhancement technique how-to-guide on the usage of business transaction ...
Fi enhancement technique   how-to-guide on the usage of business transaction ...Fi enhancement technique   how-to-guide on the usage of business transaction ...
Fi enhancement technique how-to-guide on the usage of business transaction ...
Rajeev Kumar
 
Build future with SAP HCI
Build future with SAP HCIBuild future with SAP HCI
Build future with SAP HCI
Soumyasanto Sen
 
CIN User Manual
CIN User ManualCIN User Manual
CIN User Manual
Mohammed Azhad
 
Sap mm-end-user-manual
Sap mm-end-user-manualSap mm-end-user-manual
Sap mm-end-user-manual
Sachin S Bhalekar
 
Cin Training 5
Cin Training 5Cin Training 5
Cin Training 5
deep123
 
SAP MM CIN Document by Debajyoti Das
SAP MM CIN Document by Debajyoti DasSAP MM CIN Document by Debajyoti Das
SAP MM CIN Document by Debajyoti Das
PricewaterhouseCoopers
 
Cin configuration training Document
Cin configuration  training Document Cin configuration  training Document
Cin configuration training Document
Bvdv Prasad
 
itelligence GST implementation - SAP
itelligence GST implementation - SAPitelligence GST implementation - SAP
itelligence GST implementation - SAP
itelligence India Software Solutions Pvt. Ltd.
 
VAT configuration for TAXINN
VAT configuration for TAXINNVAT configuration for TAXINN
VAT configuration for TAXINN
Bvdv Prasad
 
Smartforms interview questions with answers
Smartforms interview questions with answersSmartforms interview questions with answers
Smartforms interview questions with answers
Uttam Agrawal
 
SAP services – India GST
SAP services – India GST SAP services – India GST
SAP services – India GST
INDUSCommunity
 
Service taxes india and SAP Configuration (TAXINN)
Service taxes india and SAP Configuration (TAXINN)Service taxes india and SAP Configuration (TAXINN)
Service taxes india and SAP Configuration (TAXINN)Irfan Shokat
 
4 Key impact area on gst implementation
4 Key impact area on gst implementation 4 Key impact area on gst implementation
4 Key impact area on gst implementation
synergytas
 
Samsung Gear 2 User Manual
Samsung Gear 2 User ManualSamsung Gear 2 User Manual
Samsung Gear 2 User Manual
Ryo Jin
 
66141293 sap-sd-cin
66141293 sap-sd-cin66141293 sap-sd-cin
66141293 sap-sd-cinGoutam Ghosh
 

Viewers also liked (15)

Fi enhancement technique how-to-guide on the usage of business transaction ...
Fi enhancement technique   how-to-guide on the usage of business transaction ...Fi enhancement technique   how-to-guide on the usage of business transaction ...
Fi enhancement technique how-to-guide on the usage of business transaction ...
 
Build future with SAP HCI
Build future with SAP HCIBuild future with SAP HCI
Build future with SAP HCI
 
CIN User Manual
CIN User ManualCIN User Manual
CIN User Manual
 
Sap mm-end-user-manual
Sap mm-end-user-manualSap mm-end-user-manual
Sap mm-end-user-manual
 
Cin Training 5
Cin Training 5Cin Training 5
Cin Training 5
 
SAP MM CIN Document by Debajyoti Das
SAP MM CIN Document by Debajyoti DasSAP MM CIN Document by Debajyoti Das
SAP MM CIN Document by Debajyoti Das
 
Cin configuration training Document
Cin configuration  training Document Cin configuration  training Document
Cin configuration training Document
 
itelligence GST implementation - SAP
itelligence GST implementation - SAPitelligence GST implementation - SAP
itelligence GST implementation - SAP
 
VAT configuration for TAXINN
VAT configuration for TAXINNVAT configuration for TAXINN
VAT configuration for TAXINN
 
Smartforms interview questions with answers
Smartforms interview questions with answersSmartforms interview questions with answers
Smartforms interview questions with answers
 
SAP services – India GST
SAP services – India GST SAP services – India GST
SAP services – India GST
 
Service taxes india and SAP Configuration (TAXINN)
Service taxes india and SAP Configuration (TAXINN)Service taxes india and SAP Configuration (TAXINN)
Service taxes india and SAP Configuration (TAXINN)
 
4 Key impact area on gst implementation
4 Key impact area on gst implementation 4 Key impact area on gst implementation
4 Key impact area on gst implementation
 
Samsung Gear 2 User Manual
Samsung Gear 2 User ManualSamsung Gear 2 User Manual
Samsung Gear 2 User Manual
 
66141293 sap-sd-cin
66141293 sap-sd-cin66141293 sap-sd-cin
66141293 sap-sd-cin
 

Similar to Enhancement technique how to use validations

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 Enhancement technique how to use validations (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

how to sell pi coins effectively (from 50 - 100k pi)
how to sell pi coins effectively (from 50 - 100k  pi)how to sell pi coins effectively (from 50 - 100k  pi)
how to sell pi coins effectively (from 50 - 100k pi)
DOT TECH
 
Managing marketing information to gain customer insights
Managing marketing information to gain customer insightsManaging marketing information to gain customer insights
Managing marketing information to gain customer insights
sanamalam3
 
BONKMILLON Unleashes Its Bonkers Potential on Solana.pdf
BONKMILLON Unleashes Its Bonkers Potential on Solana.pdfBONKMILLON Unleashes Its Bonkers Potential on Solana.pdf
BONKMILLON Unleashes Its Bonkers Potential on Solana.pdf
coingabbar
 
Donald Trump Presentation and his life.pptx
Donald Trump Presentation and his life.pptxDonald Trump Presentation and his life.pptx
Donald Trump Presentation and his life.pptx
SerdarHudaykuliyew
 
Turin Startup Ecosystem 2024 - Ricerca sulle Startup e il Sistema dell'Innov...
Turin Startup Ecosystem 2024  - Ricerca sulle Startup e il Sistema dell'Innov...Turin Startup Ecosystem 2024  - Ricerca sulle Startup e il Sistema dell'Innov...
Turin Startup Ecosystem 2024 - Ricerca sulle Startup e il Sistema dell'Innov...
Quotidiano Piemontese
 
NEW NORMAL! WHAT BECOMES OF ACCOUNTING PROFESSION
NEW NORMAL!  WHAT BECOMES OF ACCOUNTING PROFESSION NEW NORMAL!  WHAT BECOMES OF ACCOUNTING PROFESSION
NEW NORMAL! WHAT BECOMES OF ACCOUNTING PROFESSION
Godwin Emmanuel Oyedokun MBA MSc PhD FCA FCTI FCNA CFE FFAR
 
Tumelo-deep-dive-into-pass-through-voting-Feb23 (1).pdf
Tumelo-deep-dive-into-pass-through-voting-Feb23 (1).pdfTumelo-deep-dive-into-pass-through-voting-Feb23 (1).pdf
Tumelo-deep-dive-into-pass-through-voting-Feb23 (1).pdf
Henry Tapper
 
APP I Lecture Notes to students 0f 4the year
APP I  Lecture Notes  to students 0f 4the yearAPP I  Lecture Notes  to students 0f 4the year
APP I Lecture Notes to students 0f 4the year
telilaalilemlem
 
一比一原版(GWU,GW毕业证)加利福尼亚大学|尔湾分校毕业证如何办理
一比一原版(GWU,GW毕业证)加利福尼亚大学|尔湾分校毕业证如何办理一比一原版(GWU,GW毕业证)加利福尼亚大学|尔湾分校毕业证如何办理
一比一原版(GWU,GW毕业证)加利福尼亚大学|尔湾分校毕业证如何办理
obyzuk
 
一比一原版(UCSB毕业证)圣芭芭拉分校毕业证如何办理
一比一原版(UCSB毕业证)圣芭芭拉分校毕业证如何办理一比一原版(UCSB毕业证)圣芭芭拉分校毕业证如何办理
一比一原版(UCSB毕业证)圣芭芭拉分校毕业证如何办理
bbeucd
 
Tax System, Behaviour, Justice, and Voluntary Compliance Culture in Nigeria -...
Tax System, Behaviour, Justice, and Voluntary Compliance Culture in Nigeria -...Tax System, Behaviour, Justice, and Voluntary Compliance Culture in Nigeria -...
Tax System, Behaviour, Justice, and Voluntary Compliance Culture in Nigeria -...
Godwin Emmanuel Oyedokun MBA MSc PhD FCA FCTI FCNA CFE FFAR
 
一比一原版(IC毕业证)帝国理工大学毕业证如何办理
一比一原版(IC毕业证)帝国理工大学毕业证如何办理一比一原版(IC毕业证)帝国理工大学毕业证如何办理
一比一原版(IC毕业证)帝国理工大学毕业证如何办理
conose1
 
This assessment plan proposal is to outline a structured approach to evaluati...
This assessment plan proposal is to outline a structured approach to evaluati...This assessment plan proposal is to outline a structured approach to evaluati...
This assessment plan proposal is to outline a structured approach to evaluati...
lamluanvan.net Viết thuê luận văn
 
The secret way to sell pi coins effortlessly.
The secret way to sell pi coins effortlessly.The secret way to sell pi coins effortlessly.
The secret way to sell pi coins effortlessly.
DOT TECH
 
How to get verified on Coinbase Account?_.docx
How to get verified on Coinbase Account?_.docxHow to get verified on Coinbase Account?_.docx
How to get verified on Coinbase Account?_.docx
Buy bitget
 
GeM ppt in railway for presentation on gem
GeM ppt in railway  for presentation on gemGeM ppt in railway  for presentation on gem
GeM ppt in railway for presentation on gem
CwierAsn
 
Intro_Economics_ GPresentation Week 4.pptx
Intro_Economics_ GPresentation Week 4.pptxIntro_Economics_ GPresentation Week 4.pptx
Intro_Economics_ GPresentation Week 4.pptx
shetivia
 
Instant Issue Debit Cards - High School Spirit
Instant Issue Debit Cards - High School SpiritInstant Issue Debit Cards - High School Spirit
Instant Issue Debit Cards - High School Spirit
egoetzinger
 
How Non-Banking Financial Companies Empower Startups With Venture Debt Financing
How Non-Banking Financial Companies Empower Startups With Venture Debt FinancingHow Non-Banking Financial Companies Empower Startups With Venture Debt Financing
How Non-Banking Financial Companies Empower Startups With Venture Debt Financing
Vighnesh Shashtri
 
The WhatsPump Pseudonym Problem and the Hilarious Downfall of Artificial Enga...
The WhatsPump Pseudonym Problem and the Hilarious Downfall of Artificial Enga...The WhatsPump Pseudonym Problem and the Hilarious Downfall of Artificial Enga...
The WhatsPump Pseudonym Problem and the Hilarious Downfall of Artificial Enga...
muslimdavidovich670
 

Recently uploaded (20)

how to sell pi coins effectively (from 50 - 100k pi)
how to sell pi coins effectively (from 50 - 100k  pi)how to sell pi coins effectively (from 50 - 100k  pi)
how to sell pi coins effectively (from 50 - 100k pi)
 
Managing marketing information to gain customer insights
Managing marketing information to gain customer insightsManaging marketing information to gain customer insights
Managing marketing information to gain customer insights
 
BONKMILLON Unleashes Its Bonkers Potential on Solana.pdf
BONKMILLON Unleashes Its Bonkers Potential on Solana.pdfBONKMILLON Unleashes Its Bonkers Potential on Solana.pdf
BONKMILLON Unleashes Its Bonkers Potential on Solana.pdf
 
Donald Trump Presentation and his life.pptx
Donald Trump Presentation and his life.pptxDonald Trump Presentation and his life.pptx
Donald Trump Presentation and his life.pptx
 
Turin Startup Ecosystem 2024 - Ricerca sulle Startup e il Sistema dell'Innov...
Turin Startup Ecosystem 2024  - Ricerca sulle Startup e il Sistema dell'Innov...Turin Startup Ecosystem 2024  - Ricerca sulle Startup e il Sistema dell'Innov...
Turin Startup Ecosystem 2024 - Ricerca sulle Startup e il Sistema dell'Innov...
 
NEW NORMAL! WHAT BECOMES OF ACCOUNTING PROFESSION
NEW NORMAL!  WHAT BECOMES OF ACCOUNTING PROFESSION NEW NORMAL!  WHAT BECOMES OF ACCOUNTING PROFESSION
NEW NORMAL! WHAT BECOMES OF ACCOUNTING PROFESSION
 
Tumelo-deep-dive-into-pass-through-voting-Feb23 (1).pdf
Tumelo-deep-dive-into-pass-through-voting-Feb23 (1).pdfTumelo-deep-dive-into-pass-through-voting-Feb23 (1).pdf
Tumelo-deep-dive-into-pass-through-voting-Feb23 (1).pdf
 
APP I Lecture Notes to students 0f 4the year
APP I  Lecture Notes  to students 0f 4the yearAPP I  Lecture Notes  to students 0f 4the year
APP I Lecture Notes to students 0f 4the year
 
一比一原版(GWU,GW毕业证)加利福尼亚大学|尔湾分校毕业证如何办理
一比一原版(GWU,GW毕业证)加利福尼亚大学|尔湾分校毕业证如何办理一比一原版(GWU,GW毕业证)加利福尼亚大学|尔湾分校毕业证如何办理
一比一原版(GWU,GW毕业证)加利福尼亚大学|尔湾分校毕业证如何办理
 
一比一原版(UCSB毕业证)圣芭芭拉分校毕业证如何办理
一比一原版(UCSB毕业证)圣芭芭拉分校毕业证如何办理一比一原版(UCSB毕业证)圣芭芭拉分校毕业证如何办理
一比一原版(UCSB毕业证)圣芭芭拉分校毕业证如何办理
 
Tax System, Behaviour, Justice, and Voluntary Compliance Culture in Nigeria -...
Tax System, Behaviour, Justice, and Voluntary Compliance Culture in Nigeria -...Tax System, Behaviour, Justice, and Voluntary Compliance Culture in Nigeria -...
Tax System, Behaviour, Justice, and Voluntary Compliance Culture in Nigeria -...
 
一比一原版(IC毕业证)帝国理工大学毕业证如何办理
一比一原版(IC毕业证)帝国理工大学毕业证如何办理一比一原版(IC毕业证)帝国理工大学毕业证如何办理
一比一原版(IC毕业证)帝国理工大学毕业证如何办理
 
This assessment plan proposal is to outline a structured approach to evaluati...
This assessment plan proposal is to outline a structured approach to evaluati...This assessment plan proposal is to outline a structured approach to evaluati...
This assessment plan proposal is to outline a structured approach to evaluati...
 
The secret way to sell pi coins effortlessly.
The secret way to sell pi coins effortlessly.The secret way to sell pi coins effortlessly.
The secret way to sell pi coins effortlessly.
 
How to get verified on Coinbase Account?_.docx
How to get verified on Coinbase Account?_.docxHow to get verified on Coinbase Account?_.docx
How to get verified on Coinbase Account?_.docx
 
GeM ppt in railway for presentation on gem
GeM ppt in railway  for presentation on gemGeM ppt in railway  for presentation on gem
GeM ppt in railway for presentation on gem
 
Intro_Economics_ GPresentation Week 4.pptx
Intro_Economics_ GPresentation Week 4.pptxIntro_Economics_ GPresentation Week 4.pptx
Intro_Economics_ GPresentation Week 4.pptx
 
Instant Issue Debit Cards - High School Spirit
Instant Issue Debit Cards - High School SpiritInstant Issue Debit Cards - High School Spirit
Instant Issue Debit Cards - High School Spirit
 
How Non-Banking Financial Companies Empower Startups With Venture Debt Financing
How Non-Banking Financial Companies Empower Startups With Venture Debt FinancingHow Non-Banking Financial Companies Empower Startups With Venture Debt Financing
How Non-Banking Financial Companies Empower Startups With Venture Debt Financing
 
The WhatsPump Pseudonym Problem and the Hilarious Downfall of Artificial Enga...
The WhatsPump Pseudonym Problem and the Hilarious Downfall of Artificial Enga...The WhatsPump Pseudonym Problem and the Hilarious Downfall of Artificial Enga...
The WhatsPump Pseudonym Problem and the Hilarious Downfall of Artificial Enga...
 

Enhancement technique how to use validations

  • 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.