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

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

## Add comment