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

Currency to string

Former Member
0 Likes
2,645

How to convert currency to string

6 REPLIES 6
Read only

Former Member
0 Likes
1,226

Please use FM

Amount to string:

CALL FUNCTION 'HRCM_AMOUNT_TO_STRING_CONVERT'

EXPORTING

betrg = 3000

WAERS = 'DKK'

  • NEW_DECIMAL_SEPARATOR =

  • NEW_THOUSANDS_SEPARATOR =

IMPORTING

STRING = slam

Read only

Former Member
0 Likes
1,226

Use the Fm,

HRCM_AMOUNT_TO_STRING_CONVERT

SPELL_AMOUNT

Read only

Former Member
0 Likes
1,226

Hi Sekar ,

Try the FM :

SPELL_AMOUNT .

For the Amount ,the value should be 151.00 (eg) irrespective of the currency mode you choose.

You have to specify the decimal part also.

Regards,

Chitra

Read only

Former Member
0 Likes
1,226

if you dont find the function,

CHeck this thread .

Read only

Former Member
0 Likes
1,226

Hi,

You can use any of the FMs below :


HRCM_AMOUNT_TO_STRING_CONVERT
AMOUNT_STRING_CONVERT 

Thanks,

Sriram Ponna.

Read only

Former Member
0 Likes
1,226

see also FM's CURRENCY_AMOUNT_SAP_TO_IDOC and CURRENCY_AMOUNT_SAP_TO_BAPI.