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: 

conversion of currency values to character values

Former Member
0 Kudos

Hi,

I am working on a bdc program where i have to upload 4 numerical values(293,00 1 293,00 1.293,00 1293.00).The field name for these values if wrbtr(amount in document currency)taken from bbseg structure.So before uploading these values I want to convert these currency values to character values.Is there any function module for this?If so, could u pls give me an example?

Regards,

Hema

4 REPLIES 4

Former Member
0 Kudos

You can use the WRITE statement to convert the currency value to a character value.

WRITE <curr field> TO <char field> CURRENCY <currency>.

Please mark points if the solution was useful.

Regards,

Manoj

Former Member
0 Kudos

Hi Hema,

Try out this FM.

<b>

TRS_CONVERT_AMOUNT_TO_TEXT</b>

<b>

Reward points if this helps,</b>

Kiran

former_member194797
Active Contributor
0 Kudos

For the same left-justified and without thousand separator:

FM CURRENCY_AMOUNT_SAP_TO_IDOC

0 Kudos

Hi,

Could u pls give an example with this function module and where should i use this in the program?

Regards,

Hema