Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Code Inspector Error

Former Member
0 Kudos

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

3 REPLIES 3

Former Member
0 Kudos

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'.

SuhaSaha
Advisor
Advisor
0 Kudos

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

Former Member
0 Kudos

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