Skip to Content
0
Former Member
Jul 22, 2008 at 10:33 AM

using at last statement

3487 Views

hi,

I am using at last statement in my code in the following code:-

LOOP AT ITAB1.

AT LAST.

SUM .

WRITE: / ITAB1-SPART,ITAB1-TOT1.

ENDAT.

ENDLOOP.

The code above perform the calculation of the field ITAB1-TOT1.

But in output it does not display the division number (ITAB1-SPART) and instead of it shows **.

I want to show the division no also but due to using of the keyword SUM it does not display it and i had tried to define field spart along with sum but it gives the syntax error.

can any body provide me guidlines for solving this problem.