Skip to Content
author's profile photo Former Member
Former Member

Regarding Output Currency Fields

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Dec 22, 2008 at 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

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      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

  • Posted on Dec 22, 2008 at 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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 22, 2008 at 11:50 AM

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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.