Using the Analysis Tool

You can use the analysis tool to:

  • Activate a validation/substitution for a specific application component.

  • Find out in which validation(s) a specific user-defined message is used.

  • Find out which substitution was used to replace a specific dimension value.

You access the analysis tool on the Change Validation/Change Substitution: <Validation/Substitution Name> screen by choosing Start of the navigation path Environment Next navigation step Val./sub. analysis End of the navigation path .

Activating a Validation/Substitution

  1. On the Select Action:Valid./Subst.Menu screen, choose Activate validatn/substn .

  2. The Activation of Validation/Substitution screen appears.

  3. Select the application component for which you want to access the activation screen.

  4. Choose whether you want to activate a validation or substitution.

  5. The system calls up the relevant activation transaction of the application component you selected.

    If you selected the Special purpose ledger or Asset accounting application components, a dialog box appears in which you are required to enter further information. In the Selection: Special Purpose Ledger dialog box, you specify whether you want to access the activation screen for local or global ledgers. In the Selection: Asset Accounting dialog box, you specify whether you want to access the activation screen for master data or transaction data.

  6. Activate your validation or substitution if required or check the activation status of existing validations or substitutions.

Displaying Message Usage

You use the Message usage option to determine in which validation(s) a specific user-defined message is being used.

Example Example

When you post a document in Financial Accounting, the system displays the following message:

User JONES cannot post to account 100000

(Message ID = Z1 003)

This is a user-defined message ( Z is the naming convention for user-defined system messages), which suggests that a validation produced this message.

Using the Message usage option, you can enter the message class ( Z1 ) and number ( 003 ) to determine in which validation this message is used. The system displays a list of validations that could have produced the above message.

End of the example.

To check in which validation a system message is used:

  1. On the Select Action:Valid./Subst.Menu screen, choose Start of the navigation path Edit Next navigation step Message usage Next navigation step . End of the navigation path

  2. The Enter Message Number dialog box appears.

  3. Enter the appropriate message class and message number and choose Continue .

The Valid./Subst.: Use of Messages in Validations screen appears . The system displays a list of the validations in which the user-defined message you specified is used.

You can display the validation definition by choosing Start of the navigation path Edit Next navigation step Display validation End of the navigation path .

Displaying Substituted Fields

You use the Substituted fields option to find out which substitution was used to replace a specific dimension value.

Example Example

You post a document in Special Purpose Ledger. When you display the posting document, the cost center field does not contain the value that you originally entered during posting.

Using the Substituted fields option, you can enter the name of the cost center field to establish which substitution was used to replace the value you entered. The system displays a list of substitutions that could have been used to substitute the original cost center value.

End of the example.

To find out which substitution was used to replace a specific dimension value:

  1. On the Start of the navigation path Select Action: Valid./Subst.Menu screen, choose Edit Next navigation step Substituted fields. End of the navigation path

  2. The Enter Table and Field dialog box appears.

  3. Enter the table name and field name for which you want to display a list of possible substitutions and choose Continue .

The Valid./Subst.: List for Substituted Fields screen appears, listing the names of the substitutions defined for the table and field name you entered.

You can display the substitution definition by choosing Start of the navigation path Edit Next navigation step Display substitution End of the navigation path .

Regenerating ABAP Programs

Validations, substitutions and rules use the following automatically generated ABAP programs during runtime (e.g. during a posting):

GBAAAAAA

GBS<cc>SET

GBT<cc><aa>0

Where cc stands for a two-digit client code and aa for the application area (e.g. "FI" for Financial Accounting. You can decode the two-digit client using a test run of the function module G_CLIENT_DECODE.

If you encounter problems using this program (syntax error or runtime error such as PERFORM_NOT_FOUND), trigger the generation of this program. To do this, choose from the menu Start of the navigation path Edit Next navigation step Regenerate ABAPs End of the navigation path . For the last two programs mentioned, do this in the respective client.