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: 

Regarding Output Currency Fields

Former Member
0 Kudos

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

1 ACCEPTED SOLUTION

Former Member
0 Kudos

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

5 REPLIES 5

Former Member
0 Kudos

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

0 Kudos

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

0 Kudos

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

SuhaSaha
Advisor
Advisor
0 Kudos

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

Former Member
0 Kudos

Thank you............