04-08-2009 9:41 AM
Hi,
The errors that I need to fix is are
1) Use addition CURRENCY when outputting REPORT_ITAB-AMTDIF
2) Use addition UNIT when outputting REPORT_ITAB-QTYDEL
These are the two errors...
AMTDIF is a currency field and
QTYDEL is a Quatity field..
BOth the errors are Code Inspector Errors.
Pls suggest me like how can I fix this error.
Thanks & Regards
Suraj
04-08-2009 9:45 AM
HI
You need to give the curreny and unit refrerency..you can pass the variable instead of hardcoding for USD and KG.
WRITE REPORT_ITAB-AMTDIF CURRENCY 'USD'.
WRITE REPORT_ITAB-QTYDEL UNIT 'KG'.
04-08-2009 9:47 AM
Hello,
If you have the Currency key & Unit in your table REPORT_ITAB, then you can try:
WRITE:
REPORT_ITAB-AMTDIF CURRENCY REPORT_ITAB-CUKY,
REPORT_ITAB-QTYDEL UNIT REPORT_ITAB-UOM.
If you donot have the Curr. Key and/or UoM, then you can try like:
DATA:
v_qty TYPE meinh,
v_cuky TYPE waers.
WRITE:
REPORT_ITAB-AMTDIF CURRENCY v_cuky,
REPORT_ITAB-QTYDEL UNIT v_qty.
Hope this helps.
BR,
Suhas
04-08-2009 9:47 AM
use the following code:
data: lv_currency type char21,
lv_quantity type char21.
*for the currency
write: lwa_report-AMTDIF to lv_currency currency 'HUF'.
similiarly try for quantity.
Hope this helps.
Edited by: ADITYA KULKARNI on Apr 8, 2009 10:48 AM