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

Function module

Former Member
0 Likes
1,339

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
Read only

Former Member
0 Likes
1,144

hi neha,

check this thread

it might be helpful to you

thanks

Sachin

Read only

Former Member
0 Likes
1,144

Hi,

U can try out with CURRENCY_CONVERT FM.

Hope it helps u

Thanks & Regards

Read only

SujeetMishra
Active Contributor
0 Likes
1,144

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

Read only

Former Member
0 Likes
1,144

You can use this FM,

CONVERT_TO_FOREIGN_CURRENCY

Joan

Read only

Former Member
0 Likes
1,144

Hi,

You can use this FM 'CURRENCY_CONVERT'.

Regards,

Jyothi CH.

Read only

Former Member
0 Likes
1,144

Hi Neha ,

Please try the FM SD_CONVERT_CURRENCY_FORMAT .

Regards ,

Nilesh Jain .

Read only

Former Member
0 Likes
1,144

Hi,

You can try using READ_EXCHANGE_RATE function module.

Regards,

Deepthi.

Read only

RemiKaimal
Active Contributor
0 Likes
1,144

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

Read only

Former Member
0 Likes
1,144

Hi,

Did you try this

BAPI_EXCHANGERATE_GETDETAIL

Read only

Former Member
0 Likes
1,144

Hi,

We can use

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

Regards,

surya kiran

Read only

Former Member
0 Likes
1,144

The problem has been solved