Application Development 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: 

Different value

Former Member
0 Kudos

Hi All,

For below lines of code, when I ran in debug mode. I can see P_OUTPUTLEN has value 000015. but P_Value_external(p_outputlen) appears as P_Value_external(1).

Why is it so? Any idea?? Why is it not like P_Value_external(15) ??

Due to which finally P_Value_external(1) appears as *.

l_fs = 333.68

P_OUTPUTLEN =000015

P_Value_external(1) = *

================================================

FORM CONVERT_CURR_INT2EX USING P_VALUE_INTERNAL

P_CURR

P_DECIMALS LIKE DFIES-DECIMALS

P_OUTPUTLEN LIKE DFIES-OUTPUTLEN

CHANGING P_VALUE_EXTERNAL.

data: l_p type p.

field-symbols: <l_fs> type p.

ASSIGN L_P TO <L_FS> DECIMALS p_DECIMALS.

<l_fs> = p_value_internal.

if p_curr is initial.

write <l_fs> to P_Value_external(p_outputlen).

else.

write <l_fs> to P_Value_external(p_outputlen) currency P_CURR.

endif.

ENDFORM. " CONVERT_CURR_INT2EX

================================================

1 ACCEPTED SOLUTION

Former Member
0 Kudos

HI,

please check the length of the field P_OUTPUTLEN.

gavas.

4 REPLIES 4

Former Member
0 Kudos

HI,

please check the length of the field P_OUTPUTLEN.

gavas.

0 Kudos

This is taken from structure DFIES and its length is 6.

P_OUTPUTLEN LIKE DFIES-OUTPUTLEN

0 Kudos

If you change declaration of P_OUTPUTLEN to TYPE I, it should solve your problem.

Please check once again.

ashish

Former Member
0 Kudos

Hi,

declare the P_OUTPUTLEN as TYPE I then you won't get this problem

Regards

Sudheer