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

Currency printing

Hi,

i am getting the currency from data base somany ways ( like 10,000.00,10.000,00) but

I have to convert currency format like this 10000.00

Plz tell me how we convert like that

Thanks in advance

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Dec 18, 2008 at 10:51 AM

    Hi,

    Take one variable as follows:

    data : var type p DECIMALS 2. then assign ur value to this variable.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Dec 18, 2008 at 10:54 AM

    Hello,

    You can make use of the WRITE stmt with NO-GROUPING addition.

    DATA:
      v_wrbtr  TYPE wrbtr VALUE '10000.00',
      v_wrbtr1 TYPE char16.
    
    CONSTANTS: l_c_usd TYPE waers VALUE 'USD'.
    
    WRITE v_wrbtr TO v_wrbtr1 CURRENCY l_c_usd.
    
    WRITE: v_wrbtr NO-GROUPING CURRENCY l_c_usd,
    / v_wrbtr1 CURRENCY l_c_usd.
    

    Hope this helps.

    BR,

    Suhas

    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.