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

hi functional module

Former Member
0 Likes
929

hi to all

plz suggest an alternative to this functional module

AMOUNT_STRING_CONVERT since it is giving me e203 error

how to solve this

thanks in advance

Message was edited by: kiran kumar

8 REPLIES 8
Read only

Former Member
0 Likes
887

Hi Kiran,

Please try this FM HRCM_AMOUNT_TO_STRING_CONVERT perhaps it may help.

Regards,

Ferry Lianto

Read only

Former Member
0 Likes
887

That error is probably coming because of the fact that your profile have comma as decimal point and the string that you are passing has more than one comma in it. If you pass a value like 100.23, I think you will not get this error, but when you pass something like 1,200,756.12 then you may be getting this message.

It is an input error, not that the function module needs to be replaced.

Read only

0 Likes
887

hi srinivas iam getting problem when the customer country is other than nl and my input amount is 1,000.00

it is giving error

Read only

0 Likes
887

Can you see which country? If you see the message, it is talking about the 'number of decimal places'. This means that you are passing more decimal places than the country profile allows. In all probability you are getting this error with Japan or Italy where they use 0 decimal places for currencies where as you passing 2.

Read only

0 Likes
887

Hi Srinivas, when the data is retrieved from the MHND-DMSHB for Amount, this is dependent on the country of the customer. For example, when the customer country is CA or US, the amount comes as for eg. 5,500.00 and if the customer country is NL or FR, then the amount comes as 5.500,00. This is what causing the problem when the data enters the function module. Is there any solution wherein we can the amount remains 5.500,00 irrespective of the country of the customer?

Thanks in advance,

Kiran Kumar

Message was edited by: kiran kumar

Read only

0 Likes
887

Can you please post the code where you call this function module?

Read only

0 Likes
887

Try and write the value of mhnd-dmshb to another variable with curreny variation.

write mhnd-dmshb to lvalue currency xcurr.

Pass the lvalue to function module

Regards

Anurag

Read only

Former Member
0 Likes
887

Hai Kiran

Check the following Code

data: words type spell.

call function 'SPELL_AMOUNT'

exporting

amount = '100000'

  • CURRENCY = ' '

  • FILLER = ' '

  • LANGUAGE = SY-LANGU

importing

in_words = words.

if words-word = 'ONE HUNDRED THOUSAND'.

words-word = '1 LAKH'.

endif.

write:/ words-word.

Regards

Sreeni