Use 'frac', 'trunc', and the other mathematical operators for numeric value analysis operations.
Hi,
How about WRITEing the MENGE field to a character field with the additional clause UNIT EBAN-MEINS, ie.
DATA: L_MENGE(20) TYPE C. WRITE EBAN-MENGE TO L_MENGE UNIT EBAN-MEINS.
This should format per the number of decimals places in the unit in EBAN-MEINS, so EA would be 0 DP but other units may have >0 DP.
Regards, Andy
Add comment