cancel
Showing results for 
Search instead for 
Did you mean: 

short dump in during smartform activation in CL_SSF_XSF_UTILITIES=======CP"

Former Member
0 Kudos

I am getting a short dump in standard 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:

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..

Any help would be appreciated.

Thanks

ysr

Accepted Solutions (0)

Answers (3)

Answers (3)

0 Kudos

Make sure the "style" of the environment is SmartForm PRD.

I was also with this error, and was solved by inserting the "Style".

Sandra_Rossi
Active Contributor
0 Kudos

How did you create that smart form? Is it a migration or an import from somewhere?

Former Member
0 Kudos

hi,

thanks for all

i am able to activate the smartform now ..

ysr

Sandra_Rossi
Active Contributor
0 Kudos

What happened, how did you solve? (please share: understand we'd really like to know). For thank you, there is another way to say it, see forum rules.

dalibor_riger
Explorer
0 Kudos

I had this problem when migrating smartform from another system via export/import functionality. The problem was in style used in form and not been transfered to new system. Check if you have migrated style also.

Former Member
0 Kudos

Hi,

As this all seems to be happening in SAP code you should probably log this with SAP. The problem seems to be that the parameter CPI of the method CONVERT_METRIC is optional, but is then used to divide another number, resulting in the divide by 0 dump.

If you are calling this from your own code somewhere you'll need to debug it to find if you could pass this CPI value from your own code.

Regards,

Nick

Former Member
0 Kudos

hi Nick Young ,

Thanks for your quik reply ..

my quastion is i am unable to activate it ! ...

Thanks in advance ...

Ysr .

Former Member
0 Kudos

Unable to activate what?

Nick