Practice Practice 4-1 4-1 Defining Defining aa cross-validation cross-validation rule rule
Copyright Oracle Corporation, 2000. All rights reserved.
Practice 4-1 Instructions
Scenario Cross-validation rules enable you to restrict users from entering certain account numbers, or combinations of segment value codes. In this practice, you will use the Accounting Flexfield structure you defined in Practice 3-1. You will create a cross-validation rule to prevent the Orange company from using the Development cost center. Because cross-validation rules apply to all users, when you test your flexfield you will not be able to enter the combination of company and cost center excluded in the rule. Instead, the error message defined for the rule will appear, and the cursor will return to the segment specified as the error segment. Whenever you add or change cross-validation rules, you must recompile the flexfield structure to ensure that your changes are reflected in the applications. Define a Cross-Validation Rule Use the Cross-Validation Rules window to define a cross-validation rule for the Accounting Flexfield structure you defined in Practice 3-1, XX Chart of Accounts. Name the rule XX_CVR:01, give the rule a description, and ensure that the rule is enabled. Enter an error message to explain the rule to users, and specify the CO segment as the error segment. Define two cross-validation rule elements. Define the first cross-validation rule element to include all the possible code combinations, from lowest to highest. Copyright Oracle Corporation, 2000. All rights reserved.
Using Additional Flexfield Options
Chapter 4 - Page 14
Define the second cross-validation rule element to exclude any code
combinations that contain both the Orange company and the Development cost center. After defining the cross-validation rule, recompile the flexfield structure definition. Navigate to the Accounting Flexfield and test the results of your work, as described in step 4 of Practice 3-1. Practice 4-1 Solutions Define a Cross-Validation Rule 1 Navigate to the Cross-Validation Rules window. System Administrator: (N) Application>Flexfield>Key> CrossValidation 2 Query the XX Chart of Accounts structure for the Accounting Flexfield in the Oracle General Ledger application. 3 In the Cross-Validation Rules region, enter the information for the rule in the following fields: Name: XX_CVR:01 Description: XX Cross-Validation Rule 01 Enabled: Selected Error Message: The Orange company cannot use the Development cost center. Error Segment: CO 4 In the Cross-Validation Rule Elements region, enter the information for the first rule element in the following fields: Type: Include From: 00.000.0000.0000 To: zz.zzz.zzzz.zzzz 5 In the Cross-Validation Rule Elements region, enter the information for the second rule element in the following fields: Type: Exclude From: 02.300.0000.0000 To: 02.300.zzzz.zzzz 6 Save your work. 7 Navigate to the Key Flexfield Segments window. System Administrator: (N) Application>Flexfield>Key> Segments 8 Query the XX Chart of Accounts structure for the Accounting Flexfield in the Oracle General Ledger application. 9 Click the Compile button to compile the flexfield definition. Navigate to the Accounting Flexfield and test the results of your work, as described in step 4 of Practice 3-1. Copyright Oracle Corporation, 2000. All rights reserved.