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

Picking List Smart Form error

Former Member
0 Likes
441

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

2 REPLIES 2
Read only

Former Member
0 Likes
396

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

Read only

Former Member
0 Likes
396

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