Zero values are output without decimal places, although decimal places have been defined for the corresponding format class in the layout.
Key words: Report Writer
The number of decimal places for outputting a value is determined from the specification in the layout and the unit of the value. The number of decimal places assigned to the unit (currency unit or unit of measure) are not exceeded during output, however. Zero values for which no unit could be determined are always output without decimal places. Example: numbers in pieces are never output with decimal places because the unit of measure "Piece" has not been assigned any decimal places.
The maximum possible number of decimal places is increased accordingly when scaled - for example, numbers in pieces are output with a maximum of 3 decimal places when scaled in thousands.
If you always want to output the number of decimal places specified in the layout - independent of the unit - you can implement the following modification:
Please delete the lines marked with H21724 below from FORM routine E17_EDIT_AMOUNT, include FGRWEE17 (mark with asterisks).
...
*....... factor and decimals in output ...............................*
XCOUNT2 = E17_ROUND + E17_DECIMALS.
* IF XCOUNT2 < E17_DECIP. "<--delete H21724
* XCOUNT1 = XCOUNT2. "<--delete H21724
* ELSE. "<--delete H21724
XCOUNT1 = E17_DECIP.
* ENDIF. "<--delete H21724
...
ENDFORM.
You do not have to regenerate the report groups.
No comments:
Post a Comment