If you selected expansion type NM and subexpansion type N, you can define an input template for numeric values.
Input template for predecimal places
You can use the following places in the input template:
1. | Z = optional place (eliminates leading zeros) |
2. | B = optional place (no leading zeros eliminated; if the SAP system does not find any values, it replaces B with a blank character) |
3. | 9 = fixed place (no following zeros eliminated; if the SAP system does not find any values, it replaces 9 with a zero) |
Note
The order of the decimal places in the template is as above from left to right before the decimal point. If the number of decimal places is greater than the number defined in the input template, the system displays asterisks (*) instead.
Input template for decimal places
You can use the following places in the input template:
1. | 9 = fixed place (no trailing zeros eliminated - if the SAP system does not find any values, it replaces 9 with a zero) |
2. | B = optional place (no trailing zeros eliminated) |
3. | Z = optional place (eliminates trailing zeros) |
Note
The order of the decimal places in the template is as above from left to right after the decimal point.
Example
Numerical Value | Input Template | Result |
---|---|---|
12,3456789 | 99.99BBZ | 12,34567 |
12,3 | 99.99BBZ | 12,30 |
123,45600 | 99.99BBZZ | **,4560 |
Specifying the decimal separator and thousand separator
Which character you must specify in the template as the decimal separator and which character as the thousand separator (decimal point or comma) depends on the setting for the decimal separator in the header data for the report generation variant for which you later want to use the report template.
Input template for dimensions
If you do not define a template, the system uses the dimension specified by the pass parameter.
You enter the input template for dimensions after the input template for the numerical value. Separate the template definitions with a space.
You can use the following places in the input template:
D = optional decimal place (if the system finds no value ⇒ D is replaced by a space) |
Note
If the number of characters of the unit is greater than the input template, the system displays an asterisk (*) behind the unit.
Example
Numerical Value | Input Template | Result |
---|---|---|
12.34 kg/l | 99.99 DD | 12.34 k* |
12.34 kg/l | 99.99 DDDDD | 12.34 kg/l |
Note
You can use D- to completely suppress the output of the dimension.
Example
Numerical Value | Input Template | Result |
---|---|---|
123.45 kg/l | 999.9 DDD | 123.4 kg* |
123.45 kg/l | 999,9 | 123.4 kg/l |
123.45 kg/l | 999.9 D- | 123,4 |
Input template for intervals
The system processes both values of the interval separately and prepares the input template accordingly.
Example
Numerical Value | Input Template | Result |
---|---|---|
12.34 - 13.5 kg/l | 99.99 DDDD | 12.34 - 13.50 kg/l |
The original accuracies are transferred.
Example
Numerical Value | Input Template | Result |
---|---|---|
> 12.34- < 13.5 kg/l | 99.99 DDDD | > 12.34- < 13.50 kg/l |
Note
You can also define an output function by copying the function module C14N_SYMBOL_METHOD and adapting it accordingly, for example, (see Function Module).