SAP ABAP IMG Activity ORFA_OAVC (Define Validation)
Hierarchy
BBPCRM (Software Component) BBPCRM
   CRM (Application Component) Customer Relationship Management
     CRM_APPLICATION (Package) All CRM Components Without Special Structure Packages
       AC (Package) Application Development R/3 Assets: Customizing
IMG Activity
ID ORFA_OAVC Define Validation  
Transaction Code S_ALR_87009005   IMG Activity: ORFA_OAVC 
Created on 19981222    
Customizing Attributes ORFA_OAVC   Define Validation 
Customizing Activity ORFA_OAVC   Define Validation 
Document
Document Class SIMG   Hypertext: Object Class - Class to which a document belongs.
Document Name ORFA_OAVC    

In this step, you define validation conditions for master data maintenance. The validation adds to the options provided in the master data maintenance in

  • the ability to define the screen layout
  • the maintenance level and
  • the use of default value

During the validation, certain input values are checked against one or more conditions defined by the user. The validation runs after the first screen change after the entry is made. If the condition is met, the system accepts the entered values. If it is not, the system outputs an error message. This error message can also be specified by the user in the validation condition.

Example

In this way, you can determine, for example, that only certain depreciation keys are allowed for fixed assets of one asset class.

Activities

Define validation conditions for master data maintenance according to your requirements:

  1. Choose function New entries
  2. Specify the company code and determine the check date by specifying
    • the master data section (general master data = A, depreciation areas = B)
    • the logical field group (screen)
    • and the event description (1 = master data maintenance).
  3. Specify the key of the validation rule to be used.
  4. If you did not define a validation rule, you can define new rules:
    1. Enter the company code and the key for your new validation rule.
    2. Choose Goto -> Validation.
    3. In the following screen, choose the function Create validation. Press ENTER.
    4. Choose the function Insert entry.
    5. Specify your validation rule by making the following specifications:

Requirement under which the validation rule is to be checked.

Check condition of the validation rule

Error message to be output in case check condition is not met. You must create this error message yourself (transaction: SE61).

The creation of the requirement and the condition is supported by the function Fields for requir.
Please also consider the F1 field help for the definition of the Boolean rule. There you will find notes on the required syntax.
Caution
You have to make entries for the fields "company code," "asset class," "asset main number/sub-number" using leading zeros. The system shows the length of these fields when you use the function Fields for requir.

  1. Set the activation level in the definition of the validation condition.

Further notes

SAP Library FI-AA: Master Data -> Validations and Substitutions

Business Attributes
ASAP Roadmap ID 204   Establish Functions and Processes 
Mandatory / Optional 3   Nonrequired activity 
Critical / Non-Critical 2   Non-critical 
Country-Dependency A   Valid for all countries 
Assigned Application Components
Documentation Object Class Documentation Object Name Current line number Application Component Application Component Name
SIMG ORFA_OAVC 0 HLA0001285 Asset Maintenance 
Maintenance Objects
Maintenance object type C   Customizing Object 
Assigned objects
Customizing Object Object Type Transaction Code Sub-object Do not Summarize Skip Subset Dialog Box Description for multiple selections
V_T093V V - View OACV 9999999999 Validation rules for master data maintenance 
History
Last changed by/on SAP  19990222 
SAP Release Created in