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: 

Function module

Former Member
0 Kudos

Hi all,

Is there any function module to get the amount in Yen as there are no decimal places in yen.

Thanks

11 REPLIES 11

Former Member
0 Kudos

hi neha,

check this thread

it might be helpful to you

thanks

Sachin

Former Member
0 Kudos

Hi,

U can try out with CURRENCY_CONVERT FM.

Hope it helps u

Thanks & Regards

sujeet2918
Active Contributor
0 Kudos

Hello Neha,

Use like below:

CALL FUNCTION 'CURRENCY_CONVERT'

EXPORTING

I_VALUE =

I_AFABER =

I_T091C =

I_T093B = 'YEN'

I_ANLAV =

I_DATE = SY-DATUM

  • IMPORTING

  • E_VALUE =

Regards,

Sujeet

Former Member
0 Kudos

You can use this FM,

CONVERT_TO_FOREIGN_CURRENCY

Joan

Former Member
0 Kudos

Hi,

You can use this FM 'CURRENCY_CONVERT'.

Regards,

Jyothi CH.

Former Member
0 Kudos

Hi Neha ,

Please try the FM SD_CONVERT_CURRENCY_FORMAT .

Regards ,

Nilesh Jain .

Former Member
0 Kudos

Hi,

You can try using READ_EXCHANGE_RATE function module.

Regards,

Deepthi.

RemiKaimal
Active Contributor
0 Kudos

Hi,

To which currency you want the exchange rate of YEN?

Assuming it to be in USD, check :


DATA wrk_exrate TYPE bapi1093_0.
DATA return     TYPE bapireturn1.
DATA amount     TYPE wrbtr value 500.

*--- Initialize
wrk_exrate-exch_rate = 1. 

CALL FUNCTION 'BAPI_EXCHANGERATE_GETDETAIL'
  EXPORTING
    rate_type  = 'M'
    from_curr  = 'JPY'  "--- Yen
    to_currncy = 'USD'
    date       = sy-datum
  IMPORTING
    exch_rate  = wrk_exrate
    return     = return.

*--- Multiply wrk_exrate-exch_rate * amount = get amount in YEN
amount = floor( amount * wrk_exrate-exch_rate ). 

This will the get the current exchange rate of YEN in USD without decimals.

Cheers,

Remi

Former Member
0 Kudos

Hi,

Did you try this

BAPI_EXCHANGERATE_GETDETAIL

0 Kudos

Hi,

We can use

WRITE <field1> to <field2> currency 'YEN'.

Regards,

surya kiran

Former Member
0 Kudos

The problem has been solved