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: 

How to convert "USD" into "доллар США" in ABAP?

atulmittal07
Explorer
0 Kudos

l-939btmp.pngHi All, I got this requirement wherein I need to convert the word "USD" written in English Characters in "доллар США" written in Cyrillic(Russian) characters. This is to be printed in pdf generating from Smartforms, is there any way we can do this during runtime of this Smartform to convert this word?
Attached is the Screenshot of the current scenario.

1 ACCEPTED SOLUTION

raymond_giuseppi
Active Contributor

Actually this is not the translation of 'USD' but the translation of 'U.S. dollar' from english to russian, so system wont translate it.

Adapt the Smartform to use the short text description of the currecny (TCURT-KTEXT) in the smartform instead the currency code (WAERS, ISO 4217 currency code, 3 characters)

6 REPLIES 6

JL23
Active Contributor

I'd rather think your translation is missing or not correct for the currency

check your IMG > SAP Netweaver > General settings > Check Currency Codes

select the currency and chose from menu GOTO > translation

0 Kudos

Thanks Jurgen, but one thing, how will it be translated? How the system will know that I have to translate it into Russian. Does it depends on Smartform Language or Payer Language or something else?

JL23
Active Contributor
0 Kudos

It will be translated in customizing, exact the place which I showed.

In a purchase order it would be fetched based on the communication language used in the document which is defaulted to the document from vendor master. For some forms it is taken from the language defined in the message record.

0 Kudos

Thanks Jurgen for all your knowledge but for now Raymond's answer will do good. And I think TCURT is the table which gets updated when using your solution. So this is what I wanted to know. 🙂

raymond_giuseppi
Active Contributor

Actually this is not the translation of 'USD' but the translation of 'U.S. dollar' from english to russian, so system wont translate it.

Adapt the Smartform to use the short text description of the currecny (TCURT-KTEXT) in the smartform instead the currency code (WAERS, ISO 4217 currency code, 3 characters)

0 Kudos

Thanks Raymond.It's working fine now.