05-05-2016 3:52 PM
Hi Experts,
Im fetching amount BSEG-DMBTR to display in Report output.
to field catalog , passing DMBTR as reference only.
Even during debugging I observed that the amount in the internal table is same as FB03 document/BSEG-DMBTR. But in output, decimal is being removed and displaying the whole amount i.e., amount is being multplied by 100.
Please help in resolving the issue.
Regards,
Sree
05-05-2016 5:55 PM
Use CURRENCY addition of WRITE statement which will control the number of decimals.
in ALV/SALV: google helps
Basic question.
Regards Clemens
05-05-2016 4:01 PM
Hello Sreekanth,
you can try using WRITE statement rather MOVE for amount fields while filling output table.
Regards,
Shruthi
05-05-2016 4:05 PM
With currencies, you have to specify the currency to be used when displaying the value. With the WRITE statement this is done using the CURRENCY clause, in ALV grids, this is done by naming the associated currency field in the CFIELDNAME (?) field in the Field Catalog.
The same applies to quantities where the UNIT clause for the WRITE command is used, or the QFIELDNAME field in the field catalog for ALV grids.
Rich
05-05-2016 4:22 PM
Hi,
Could you please provide the field catalogue details what exactly its filled for DMBTR field?
05-05-2016 4:45 PM
You need to add your currency field in your catalog,
FIELD_CAT-CFIELDNAME = FIELDNAME. "DMBTR in your case
also look at problem in currency in fieldcatalog | SCN
Hope this helps.
05-05-2016 5:55 PM
Use CURRENCY addition of WRITE statement which will control the number of decimals.
in ALV/SALV: google helps
Basic question.
Regards Clemens
05-06-2016 9:03 AM