12-22-2008 11:38 AM
Hi Experts,
I have a doubt regarding Currency fields.
In output work area, i have a currency fields.
In EC Check, it shows an error like,
Use Addition currency when outputting wa_p0221_suc-bet01.
Could you please anybody give me any suggessions, how to remove this EC check Error.
Thank in advance
Sai
12-22-2008 11:42 AM
Hello,
To remove this SLIN error you need to use the below addition with write statement, i.e. you need to specify explicitly that the field is currency field.
write <field> currency <Correct format for currency>.
Thanks,
Jayant
12-22-2008 11:42 AM
Hello,
To remove this SLIN error you need to use the below addition with write statement, i.e. you need to specify explicitly that the field is currency field.
write <field> currency <Correct format for currency>.
Thanks,
Jayant
12-22-2008 11:45 AM
Hi Jayant,
please explain some more
My code is like this
WRITE:/2 wa_p0221_suc-pernr,
11 wa_p0221_suc-perid ,
21 wa_p0221_suc-ename,
48 wa_p0221_suc-status,
50 wa_p0221_suc-bet01 ,
63 wa_p0221_suc-bet08 ,
75 wa_p0221_suc-bet02 ,
87 wa_p0221_suc-bet03 ,
99 wa_p0221_suc-bet04 ,
111 wa_p0221_suc-bet05 ,
123 wa_p0221_suc-bet06 ,
135 wa_p0221_suc-bet07 ,
152 space.
Give me some more inputs...
please............
12-22-2008 11:52 AM
Hello,
While getting the wage type amounts (BET01, BET01... ) also get the field WAERS (Currency) from IT0221.
WRITE:/2 wa_p0221_suc-pernr,
11 wa_p0221_suc-perid ,
21 wa_p0221_suc-ename,
48 wa_p0221_suc-status,
50 wa_p0221_suc-bet01 currency w_waers,
63 wa_p0221_suc-bet08 currency w_waers,
75 wa_p0221_suc-bet02 currency w_waers,
87 wa_p0221_suc-bet03 currency w_waers,
99 wa_p0221_suc-bet04 currency w_waers,
111 wa_p0221_suc-bet05 currency w_waers,
123 wa_p0221_suc-bet06 currency w_waers,
135 wa_p0221_suc-bet07 currency w_waers,
152 space.
Hope this helps.
Thanks
Jayant
12-22-2008 11:43 AM
Hello Sai,
This error is generally given when you use WRITE with an amount field.
WRITE v_amount.
You can correct this error by using the CURRENCY addition.
I hope you have the currency field with you, else just declare a variable v_curr & use as below:
DATA: v_curr TYPE waers.
WRITE v_amount CURRENCY v_curr.
This is reqd for internal formatting of amounts (e.g., depending on the currency it displays the decimals) hence CURRENCY addition is necessary.
Hope i am clear.
BR,
Suhas
12-22-2008 11:50 AM