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

Converting Currency to a string type

Former Member
0 Likes
2,086

Hi,

I'm trying to do the following:

WRITE my_alv-netwr TO ftpost-fval.

my_alv-netwtr is type NETWR BWERT CURR 13 2

and ftpost-fval is FVAL BDC_FVAL CHAR 132 0

The above does not work, i tried

my_alv-netwr = ftpost-fval.

And that did not work, what is the best way of doing this and making sure I do not lose any information?

Thanks

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,265

Hi sims,

1. just write

CONDENSE FTPOST-FVAL.

regards,

amit m.

Hi,

I'm trying to do the following:

WRITE my_alv-netwr TO ftpost-fval.

my_alv-netwtr is type NETWR BWERT CURR 13 2

and ftpost-fval is FVAL BDC_FVAL CHAR 132 0

The above does not work, i tried

my_alv-netwr = ftpost-fval.

And that did not work, what is the best way of doing this and making sure I do not lose any information?

Thanks

5 REPLIES 5
Read only

andreas_mann3
Active Contributor
0 Likes
1,265

hi,

it works but maybe you'll not see it on your display,

becaus it's formatted <b>right-justified.</b>

->try again with a char20

A.

Read only

0 Likes
1,265

Hi,

I had a look the value , using debug, and I could not see anything in it, it complains it's too long, can I force a left justification, also worried to make sure I do not lose any of the data

Read only

Former Member
0 Likes
1,266

Hi sims,

1. just write

CONDENSE FTPOST-FVAL.

regards,

amit m.

Read only

vinod_gunaware2
Active Contributor
0 Likes
1,265

BAPI_CURRENCY_CONV_TO_EXTERNAL Conversion

BAPI_CURRENCY_CONV_TO_INTERNAL Conversion

OR U can directly assign to foalt variable.

regards

vinod

Read only

Former Member
0 Likes
1,265

Hi,

try this Fm <b>HRCM_AMOUNT_TO_STRING_CONVERT</b>

Regards

vijay