Hierarchy
⤷ PY-DE (Application Component) Germany
⤷ P01C (Package) HR Customizing: Germany
IMG Activity
ID | OHADBECC0 | Maintain Output Rules |
Transaction Code | S_AHR_61004585 | IMG Activity: OHADBECC0 |
Created on | 19981221 | |
Customizing Attributes | OHADBECC0 | Maintain Output Rules |
Customizing Activity | OHADBECC0 | Maintain Output Rules |
Document
Document Class | SIMG | Hypertext: Object Class - Class to which a document belongs. |
Document Name | OHADBECC0 |
In this step you can set up processing rules.
You only need to carry out this step if you want to print certain items of information on a statement according to particular conditions.
Example
- You only want to print the amount of a wage type if it is greater than zero.
- Depending on whether or not a condition is met, a question is answered with "YES" or "NO".
Assignment of a rule to a particular item of information takes place using the rule number. In the step Maintain data positioning, you make an entry in the "Rule" field to determine which rule is checked for the data to be printed.
STRUCTURE AND PROCESSING OF A RULE
A rule can contain one or more lines. Each line is made up of the following:
- Identification component
- IF component
- THEN component
- Subsequent component
Meaning of components
Identification component
Identifies the rule line and is made up of the following fields:
- Rl: Rule
- No: Number
IF component
This component contains the logical condition for a rule. It contains the following fields:
- Field: Field name
- C: Comparison type
- CO: Comparison operator
- Val.1: Comparison value 1
THEN component
This component contains the substitute values for an item of information. The substitute values are taken into account if the condition of the IF component is met. The THEN component includes the following fields:
- Val.2: Comparison value 2
- Off: Offset
- Lgth: Output length
- NwVal.: New value if condition is met
- Conv: Conversion
Subsequent component
The subsequent component determines whether further lines are processed in a rule. This component contains the following field:
- R: Subsequent rule indicator
Explanation of fields
Rule
The "Rule" field contains a two-digit number for each rule (01-99). This number is used to assign entries from the step "Maintain data positioning".
Number
The "Number" field is used to assign numbers to rule lines. The first rule line is assigned the number "01" and consecutive numbering continues in ascending order. In other words, the first rule line is assigned "01", the second is assigned "02" and so on.
Example
Identification of two-line rule "01" is as follows:
Rule Number
01 01
01 02
Field name
This field contains the table field for which rule evaluation is performed. Generally, this entry corresponds to the entry made in the field "Field name" during the step "Maintain data positioning". However, it is possible that only the table name is specified during "Maintain data positioning" so that the table field for which rule evaluation is performed is not specified explicitly until now.
Comparison type
The comparison type enables you to specify whether a numerical comparison or a comparison of character strings takes place within the IF component. The comparison type is a single-character value with two possible specifications:
- "C" Comparison of character strings
- "N" Numerical comparison
Comparison operator
This field enables you to specify the comparison operator used for the comparison that is carried out within the IF component. The comparison operator is a two-character value that can have the following specifications:
- "EQ" Equal
- "NE" Not Equal
- "GE" Greater or Equal
- "GT" Greater Than
- "LE" Less or Equal
- "LT" Less Than
- "CS" Contains String
The comparison type and comparison operator are linked as follows:
- Comparison operator "CS" can only be used in combination with comparison type "C".
- Comparison operators "GE", "GT", "LE" and "LT" can only be used in combination with comparison type "N".
Value1
This is a comparison value.
Please note that an explicitly entered value must start with an apostrophe (ie. ').
Example
Field OffLg C CO Value 1
BRT-BETRG N GT '0
S10-ENDDA C EQ HIGH-DATE
Value2
This field is used in statements to effect special control of table output (as opposed to how this field is used to effect control of other forms). Please refer to the section Special features of rule evaluation for statements - controlling table output.
Offset
This field enables you to determine the column as of which information (original information or a substitute value) is printed.
Output length
The length of the field to be printed.
New value if condition is met
This field contains the substitute value that must be printed instead of the variable information if the condition set by the IF component is met. It is either a table field, eg. FEHL-BEGDA, or the entry TEXT-xxxx. In the case of the latter, a text is printed that is specified in the step Maintain fixed texts. "xxxx" enables you to determine which text must be printed.
Conversion
A conversion can be selected for printing the information. Please refer to Allowed conversions to find out which conversions are supported by the system. If a flag has been set in the column for table T512Q, the conversion is allowed.
CAUTION: Conversion "99" must NOT be specified here. It can only be specified in the step "Maintain data positioning".
Subsequent rule indicator
The IF component check can lead to one of the following:
- The condition set by the IF component has been met. If this is the case, the THEN component is processed, ie. its substitute values are taken into account. The subsequent component is then interpreted.
- The condition set by the IF component has not been met. If this is the case, the subsequent component is interpreted immediately.
The subsequent component determines whether more rule lines must be processed, assuming that they exist. The possible specifications of a subsequent rule indicator are as follows:
- " " (space)
- "*"
- "S"
The meaning of these specifications depends on whether the condition in the preceding IF component is met or not.
- " " (space) The condition was
- successful:
No search is performed for a subsequent line in the same rule. - unsuccessful:
A search is performed for a subsequent line in the same rule. - "*" A search is performed for a subsequent line in the same rule depending on whether the condition was met.
- "S" The condition was
- successful:
A search is performed for a subsequent line in the same rule for which the key word is incompatible with the key word in the current rule line. - unsuccessful:
A search is performed for a subsequent line in the same rule for which the key word is compatible with the key word in the current line.
Special features of rule evaluation for statements - controlling table output
Table output is controlled by entries in the field "VALUE2".
Entries in this field determine the format that is used, eg. the number of columns, maximum number of printouts, etc.
Character 1: Number of columns
The first character determines
- that a table will be printed
- the number of columns contained in the table printout
This is set by entering a number that is equal to or greater than 1.
Example
Entry: 1 single-column table printout
Entry: 2 two-column table printout
The printout looks as follows:
single-column two-column
01.93 1,000.00 01.93 1,000.00 02.93 1,000.00
02.93 1,000.00 03.93 1,000.00 03.93 1,000.00
Characters 2/3: The distance between columns for statements that consist of more than one column or controlling whether
Business Attributes
ASAP Roadmap ID | 204 | Establish Functions and Processes |
Mandatory / Optional | 2 | Optional activity |
Critical / Non-Critical | 2 | Non-critical |
Country-Dependency | I | Valid for countries specified |
Customizing Attributes | Country Key | Country Name |
---|---|---|
OHADBECC0 | DE | Germany |
Assigned Application Components
Documentation Object Class | Documentation Object Name | Current line number | Application Component | Application Component Name |
---|---|---|---|---|
SIMG | OHADBECC0 | 0 | HLA0003772 | Statements |
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_T512N | V - View | OH00 | 60 | Rule Table for Form | ||
V_T514C | V - View | OH14 | BEXX 52 | Permitted Conversions | ||
V_T514K | V - View | OH14 | BEXX 52 | Permitted Table Names | ||
V_T514N | V - View | OH14 | BEXX 52 | Permitted Field Names |
History
Last changed by/on | SAP | 19981221 |
SAP Release Created in |