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

Amount conversion

Former Member
0 Likes
639

Hi All,

I had passed amount value as 15,000,000.95, which throws below exception while creating PO:

Unable to interpret "1.500000095E7 " as a number.

Now the variable which holds the amount value is of type currency and lenth 11.How to resolve it?

Thanks

5 REPLIES 5
Read only

Former Member
0 Likes
619

Hi,

Try passing this way 15000000.95

Read only

Former Member
0 Likes
619

Hi,

remove the comma's and pass the value

instead of '15,000,000.95' pass as '15000000.95'.

Hope it helps!!

Regards,

Pavan

Read only

Former Member
0 Likes
619

Hi,

you have to remove the comman's while creating the PO

do below

Move that to a character field and use REPLACE keyword.

data: w_menge_po(17).

w_menge = wa_menge_orignal.
REPLACE ALL OCCURRENCES OF ',' IN w_menge_po WITH ''.

hope it workds

Read only

Former Member
0 Likes
619

Hi Debabrata ,



* Before passing the variable remove the commas using the syntax.

Replace ',' with space into w_currency.

condence w_currecy no-gaps.

* then pass the currency into varaible.

Regards,

Prabhudas

Read only

0 Likes
619

Hi,

Try with the Function Module CONVERSION_EXIT_ALPHA_INPUT

Thank you,

Sekhar.