Application Development and Automation 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: 
Read only

Program for function module

Former Member
0 Likes
591

hi,

Can anyone give a simple program of using the function module

Convert_to_local_currency.

simple codes only ,I need to understand the function of that module.

1 ACCEPTED SOLUTION
Read only

JozsefSzikszai
Active Contributor
0 Likes
568

hi,

start transaction SE37, enter the function module name and click on Where used list... You will get lots of program, which uses this FM...

hope this helps

ec

3 REPLIES 3
Read only

JozsefSzikszai
Active Contributor
0 Likes
569

hi,

start transaction SE37, enter the function module name and click on Where used list... You will get lots of program, which uses this FM...

hope this helps

ec

Read only

Former Member
0 Likes
568

Hi,

Check This COde


Report z_test.
data v_amnt type wrbtr.
data v_amnt1 type wrbtr.

move '1000' to v_amnt.


CALL FUNCTION 'CONVERT_TO_LOCAL_CURRENCY'
  EXPORTING
*   CLIENT                  = SY-MANDT
    date                    = sy-datum
    foreign_amount          = v_amnt
    foreign_currency        = 'EUR'
    local_currency          = 'INR'
*   RATE                    = 0
*   TYPE_OF_RATE            = 'M'
*   READ_TCURR              = 'X'
 IMPORTING
*   EXCHANGE_RATE           =
*   FOREIGN_FACTOR          =
   LOCAL_AMOUNT            = v_amnt1
*   LOCAL_FACTOR            =
*   EXCHANGE_RATEX          =
*   FIXED_RATE              =
*   DERIVED_RATE_TYPE       =
* 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.

Reward If Helpful

Regards

Sandipan

Edited by: Sandipan Ghosh on Mar 26, 2008 6:37 PM

Read only

Former Member
0 Likes
568

got some related answer