Ansicht
Dokumentation

EHS_MD_135_08 - Configure Call of Rule Sets in a Rule Set Sequence

EHS_MD_135_08 - Configure Call of Rule Sets in a Rule Set Sequence

CL_GUI_FRONTEND_SERVICES - Frontend Services   CPI1466 during Backup  
This documentation is copyright by SAP AG.
SAP E-Book

Using rule set sequences, you execute multiple sets of rules for a specification one after another in a defined sequence. This means the sets of rules do not have to be called and executed individually.

In the Customizing activity Manage User Exits, you can specify rule set sequences that are executed with the Expert.

The sets of rules to be executed are defined and environment parameters have been specified for them.

  1. In the Customizing activity Manage User Exits, create a new user exit with the user exit category SUB_SEDACA.
  2. You must create the following parameters and values for the user exit with function module C1E8_CALL_MULTIPLE_RULE_SET:
  • EXPERT_CALL_XX (XX = 00 to 99): Specifies the sets of rules to be called within the rule set sequence. The number assigned allows you to control the sequence in which sets of rules are called.

  1. You can create the following parameters and values for the user exit with function module C1E8_CALL_MULTIPLE_RULE_SET:
  • EXPERT_ABORT_CALCULATION: If you specify X for the value, execution of the rule set sequence is terminated if a set of rules it contains causes the Expert to terminate.

  • EXPERT_APPL_LOG_LEVEL: Specify one of the following values with which you control the messages written to the application log:

Value Description
0 Messages are not written to the application log.
1 Only error messages are written to the application log.
2 Error messages and warning messages are written to the application log.
3 All messages are written to the application log.

If you do not specify a value, no messages are written to the application log.
  • EXPERT_SUPPR_INFOMSG: If you specify X for the value, success messages and information messages are suppressed, which means only error and warning messages are written.

  • EXPERT_COMMIT_FLG:

If you specify X for the value, the data for the rule set sequence and the sets of rules it calls are written to the buffer by the Expert server after processing. Note: This is the recommended setting.
If you do not specify a value, the data for the rule set sequence and the sets of rules it calls are written to the buffer by the Expert server during processing.
If the parameter value of the sets of rules included differs from the parameter value of the rule set sequence, the parameter value of the rule set sequence is used.
  • EXPERT_EMAIL_ONLINE: If you specify X for the value, a status notification is sent to the recipients specified in the environment parameters EXPERT_REC_EXTMAIL_XX and EXPERT_REC_SAPMAIL_XX once the rule set sequence has been executed.

  • EXPERT_REC_EXTMAIL_XX: Specify the e-mail address of the recipient of the status notifications here.

  • EXPERT_REC_SAPMAIL_XX: Specify the SAP user of the recipient of the status notifications here.

  • EXPERT_PARAMETER_CHANGE_MODE:

If you specify E for the value, the Parameter Entry for Rule Set Sequence dialog box is displayed before the rule set sequence is executed. You can select either online or background processing at this point.
If you specify H for the value, the Parameter Entry for Rule Set Sequence dialog box is not displayed before the rule set sequence is executed. In this case, specify in the EXPERT_HIDDEN_PROCESSING_MODE environment parameter whether the rule set sequence is to be executed immediately (ONLINE) or in the background (BACKGROUND).
  • EXPERT_HIDDEN_PROCESSING_MODE:

If you specify ONLINE as the value, the rule set sequence is executed as soon as you select Execute.
If you specify BACKGROUND as the value, the rule set sequence is executed in the background. The value X is specified for the EXPERT_ASK_FOR_STARTTIME environment parameter for the start time prompt. If this value is not specified, the rule set sequence is executed immediately.
  • EXPERT_ASK_FOR_STARTTIME: If you specify X for the value, you are asked to specify exactly when the rule set sequence is to be executed in the background.

Note

The parameter values for the sets of rules included are temporarily set by the system for the following environment parameters:

Environment Parameter Parameter Value Description of the Parameter Value
EXPERT_PARAMETER_CHANGE_MODE H The Determine secondary data dialog box is not displayed for each individual set of rules in display or edit mode.
EXPERT_EXPLANATION_DISPLAY [blank] The explanation for each set of rules is not displayed following the run for each set of rules when the rule set sequence is executed in foreground.
EXPERT_HIDDEN_PROCESSING_MODE ONLINE The specific set of rules starts immediately in the rule set sequence. If the rule set sequence is started as a background job, each set of rules is started immediately within the job.
EXPERT_PREVENT_DB_COMMIT_FLG X The data in each set of rules run is stored in the buffer until all sets of rules in the rule set sequence have been saved for a specification.
EXPERT_APPL_LOG_LEVEL 0 The messages for the application log are not stored individually for each set of rules but are collected for the entire rule set sequence.

For all other parameter values, either the environment parameters are copied from each set of rules or the default values are set. With foreground processing, it is therefore not possible to adjust the settings for the EXPERT_READ_RATING environment parameter, for example:

The messages for the application log are not stored individually for each set of rules but are collected for the entire rule set sequence.




CL_GUI_FRONTEND_SERVICES - Frontend Services   General Data in Customer Master  
This documentation is copyright by SAP AG.

Length: 10103 Date: 20240329 Time: 160040     sap01-206 ( 108 ms )
Environment Parameter Sample value
EXPERT_ABORT_CALCULATION
EXPERT_APPL_LOG_LEVEL 3
EXPERT_ASK_FOR_STARTTIME
EXPERT_CALL_01 DEMO_RULE1
EXPERT_CALL_02 DEMO_RULE2
EXPERT_CALL_03 DEMO_RULE3
EXPERT_COMMIT_FLG X
EXPERT_EMAIL_ONLINE X
EXPERT_HIDDEN_PROCESSING_MODE
EXPERT_PARAMETER_CHANGE_MODE E
EXPERT_REC_EXTMAIL_01 johnsmith@mail.com
EXPERT_REC_SAPMAIL_01 JOHNSMITH
EXPERT_SUPPR_INFOMSG