10-08-2007 3:34 PM
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
================================================
10-08-2007 3:46 PM
10-08-2007 3:46 PM
10-08-2007 3:51 PM
This is taken from structure DFIES and its length is 6.
P_OUTPUTLEN LIKE DFIES-OUTPUTLEN
10-08-2007 4:00 PM
If you change declaration of P_OUTPUTLEN to TYPE I, it should solve your problem.
Please check once again.
ashish
10-08-2007 3:51 PM
Hi,
declare the P_OUTPUTLEN as TYPE I then you won't get this problem
Regards
Sudheer