Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Error in Smartforms

Hi Experts,

While executing my report it is giving short dump.it is due to some conversion problem.

now please suggest me how to resolve this.

FORM cpp_power .

DATA: a LIKE imrg-cntrr,

b LIKE imrg-cntrr,

c LIKE imrg-cntrr,

d LIKE imrg-cntrr,

a1 LIKE imrg-cdiff,

b1 LIKE imrg-cdiff,

c1 LIKE imrg-cdiff,

d1 LIKE imrg-cdiff.

CONSTANTS k TYPE p LENGTH 4 DECIMALS 1

VALUE '1.6'.

LOOP AT it_imrg.

CASE it_imrg-zpoint.

*

  • WHEN '0000000000911'.

  • MOVE it_imrg-zftd TO a.

  • MOVE it_imrg-zcum TO a1.

*

  • WHEN '000000000912'.

  • MOVE it_imrg-zftd TO b.

  • MOVE it_imrg-zcum TO b1.

*

  • WHEN '000000000913'.

  • MOVE it_imrg-zftd TO c.

  • MOVE it_imrg-zcum TO c1.

*

  • WHEN '000000000914'.

  • MOVE it_imrg-zftd TO d.

  • MOVE it_imrg-zcum TO d1.

WHEN '000000012701'.

MOVE it_imrg-zftd TO a.

MOVE it_imrg-zcum TO a1.

WHEN '000000012702'.

MOVE it_imrg-zftd TO b.

MOVE it_imrg-zcum TO b1.

WHEN '000000012703'.

MOVE it_imrg-zftd TO c.

MOVE it_imrg-zcum TO c1.

WHEN '000000012704'.

MOVE it_imrg-zftd TO d.

MOVE it_imrg-zcum TO d1.

ENDCASE.

cpp_po = ( a - b + c - d ) * k .

cpp_po1 = ( a1 - b1 + c1 - d1 ) * k .

ENDLOOP.

Tags:
Former Member
Not what you were looking for? View more on this topic or Ask a question