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

conerting US dollars to indian rupees in ALV

hi

i have created a ALV for the excise department. The problem i face is that, for the goods to be exported the value comes in US$.The excise department needs the US$ to be displayed in indian rupees.i like to know how to convert US $ to indian rupees

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jun 09, 2008 at 08:37 AM

    Hi,

    If possible to change the program code then make the currency to INR using the FM 'CONVERT_TO_LOCAL_CURRENCY'.

    Rgds,

    Bujji

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 09, 2008 at 08:38 AM

    Hi,

    Convert the USD amount to INR by using FM CONVERT_TO_LOCAL_CURRENCY.

    Thanks,

    Sriram Ponna.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 09, 2008 at 08:44 AM

    Hi,

    try this code.

    CALL FUNCTION 'CONVERT_TO_LOCAL_CURRENCY'
      EXPORTING
       client                  = sy-mandt
        date                   = sy-datum
        foreign_amount         = '1000.00'
        foreign_currency       = 'USD'
        local_currency         = 'INR'
    *        RATE                    = 0
       type_of_rate            = 'M'
       read_tcurr              = 'X'
     IMPORTING
       local_amount             = lv_netwr
     EXCEPTIONS
       no_rate_found           = 1
       overflow                = 2
       no_factors_found        = 3
       no_spread_found         = 4
       derived_2_times         = 5
       OTHERS                  = 6
              .
    IF sy-subrc <> 0.
      MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
              WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
    
    

    Regards

    Sandipan

    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.