Replacements
Replacement indicators are placeholders that are evaluated at runtime, immediately before the process starts running. They are evaluated in processes used in the Orchestrator.
Syntax
${<Operator>:<Option>[:[<Offset>][(Length)][#Conversion[#Conversion]]]}
Option | Description |
---|---|
<Operator> | The operators are described in detail below |
<Option> | The option depends on the operator |
<Offset> | Optional: Provides an offset to the resulting value. If the offset is negative, it is taken from the end of the string. |
<Length> | Optional: Length of the resulting value |
<Conversion> | Optional: Additional conversion of the resulting value |
Example
${J:BUKRS:-2(2)#NUMC}
Result is the value of the parameter BUKRS
taking the last 2 characters with a length 2 and convert it to a NUMC
format.
Evaluation Order
Replacements are evaluated AFTER the any RedwoodExpressionLanguage (REL) expressions have been evaluated, provided the parameter is not Runtime. This means that you can specify REL expressions in replacements. Replacements in parameters that have the Runtime property set are not evaluated, the parameter will retain the replacement expression as In value.
Conversions
Conversions can be used inside the replacement.
Conversion Operator | Description |
---|---|
FIRST_COMMA | Returns the first part of a list separated by a comma. |
FIRST_SEMICOLON | Returns the first part of a list separated by a semicolon. |
FIRST_VERTICAL | Returns the first part of a list separated by a vertical line. |
FIRST_BLANK | Returns the first part of a list separated by a blank. |
LAST_COMMA | Returns the last part of a list separated by a comma. |
LAST_SEMICOLON | Returns the last part of a list separated by a semicolon. |
LAST_VERTICAL | Returns the last part of a list separated by a vertical line. |
LAST_BLANK | Returns the last part of a list separated by a blank. |
MR_LIST | Returns one element of a merge record as list. |
NUMC | The NUMC conversion ensures that a numeric field has leading zeros defined. |
SELOPT | The SELOPT conversion adds the square brackets to the result. If the result is empty, it is replaced by >!< . If the result is >!< , then no brackets are added. |
SELOPT_OPTIMIZE | The SELOPT_OPTIMIZE conversion adds the square brackets to the result and optimizes the input for select-options. If the result is empty, it is replaced by >!< . If the result is >!< , then no brackets are added. |
NL_TO_COMMA | Converts a list separated by new line to a comma separated list. |
COMMA_TO_SEMICOLON | Converts a list of comma-separated list to a semi-colon-separated list. |
SEMICOLON_TO_COMMA | Converts a list of semi-colon-separated list to a comma-separated list. |
UPPERCASE | Converts all letters to upper case. |
LOWER_CASE | Converts all letters to lower case. |
See Also
- Base Replacements
- SAP FCc Replacements
- FCc Specific Replacements
- FPA Specific Replacements
- Generic SAP Replacements
financeTopic