‎2007 Jul 23 8:18 AM
I am getting a short dump in class "CL_SSF_XSF_UTILITIES==========CP"
while running the smartform for the picking list.
The short dump says "division by 0 (type p) error." in "CONVERT_METRIC" method
The code where actual dump occurs is:
<b>when unit_character.
case ounit.
when unit_twip.
ovalue = ivalue * 1440 / cpi.
when unit_point.
ovalue = ivalue * 72 / cpi.
when unit_inch.
ovalue = ivalue / cpi.</b>.
Any help would be appreciated.
Thanks
‎2007 Jul 23 8:31 AM
Hi
Just before the division give a condition like
<b>if not cpi is initial</b>. or<b> if cpi <> 0.</b>
when unit_twip.
if not cpi is initial.
ovalue = ivalue * 1440 / cpi.
endif.
when unit_point.
if not cpi is initial.
ovalue = ivalue * 72 / cpi.
endif.
when unit_inch.
if not cpi is initial.
ovalue = ivalue / cpi..
endif.
<b>Reward points for useful Answers</b>
Regards
Anji
‎2010 Feb 12 9:43 AM
hi friends,
i am facing with the same problem..
can you please let me know what is the solution for this problem ?
please remember actually it is a standard program we cant modify it... ?
Thanks in advance...
ysr
Edited by: ysr@jay on Feb 12, 2010 10:50 AM