cancel
Showing results for 
Search instead for 
Did you mean: 

Currencies

Former Member
0 Kudos

I have to create USD and EUR currency key figures and populate them via the value and translation (I have the KURST value) of local currency. Has someone done this and could they advise? Thanks

Accepted Solutions (1)

Accepted Solutions (1)

edwin_harpino
Active Contributor
0 Kudos

hi Niten,

try convert in update rules with code or in query with steps in 'how to currency' ...

CALL FUNCTION 'CONVERT_TO_FOREIGN_CURRENCY'

EXPORTING

DATE = COMM_STRUCTURE-[date for exchange rate]

FOREIGN_CURRENCY = 'USD'

LOCAL_AMOUNT = COMM_STRUCTURE-[your local currency keyfigure]

LOCAL_CURRENCY = COMM_STRUCTURE-[currency used]

IMPORTING

FOREIGN_AMOUNT = RESULT

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.

RESULT = 0.

ENDIF.

or use other code as mentioned here

hope this helps.

Former Member
0 Kudos

Thanks for that, I like the FM 'CONVERT_TO_FOREIGN_CURRENCY'. Would you have the full title of the How to currency and will search on the web

Former Member
0 Kudos

Thanks for that not able to open one of the links, but my ideal scenario is to write the logic in the UR. Hence if there is a How to guide for the FM that Edwin has mentioned that would be ideal

former_member188975
Active Contributor
0 Kudos

Hi Niten,

Not sure if there is an How to with the code, but if you look at the link posted by Edwin, it is directed to a thread where I have provided the complete code for curr conv in the update rules (I have used this code in numerous places)

Former Member
0 Kudos

thanks for that, will do and post questions otherwise if I have an issue. Have awarded points

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

You can maintain currency translation by transaction 'ob08'.

regards,

Pinaki