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

Convert string to quantity

Former Member
0 Likes
1,120

Hi, Dear all

DATA: L_STR TYPE CHAR50,

L_FKIMG TYPE FKIMG.

DATA: BEGIN OF LS,

FKIMG TYPE VBRP-FKIMG,

END OF LS.

L_STR = '200'.

CATCH SYSTEM-EXCEPTIONS ARITHMETIC_ERRORS = 4

OTHERS = 8.

LS-FKIMG = L_STR.

ENDCATCH.

When I debug, LS-FKIMG is '0.2', not '200.000'.

But when use it to calculate, system look it as '200.000'.

What funny is that this is not for all program.

Will appreciate it for your reply.

Thanks.

3 REPLIES 3
Read only

Former Member
0 Likes
611

Hi SY

I am afraid

i found

LS-FKIMG = 200.000 while debugging and output also.....

nothing strange in that nothing funny:)

Read only

Former Member
0 Likes
611

hi,

Thank you for your reply.

That happens when I print out tax invoice, t-code is VF02/VF03 , in printing program.

But if I create customizing report, it will be no issue.

How come?

Thanks.

Read only

Former Member
0 Likes
611

Any one can help?