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

reports

Former Member
0 Likes
389

Hi ,

i have created emp file report . it is of some three pages. i want to display the total of their salaries in each page and finally in the last page as grand total.

i think we can do it with ctrl break st ie sum.

But iam not getting for subtotal.

Pls suggest.

Regards,

Nasru

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
362

Hi,

U can do like follows :

Say, if u are using Employee code which is unique then u can do as follows :

LOOP AT ITAB. (Itab contains ur data)

AT END OF EMPCODE. (Make sure EMPCODE is ur first field and table is

sorted by it. This will give the subtotal for each

employee)

SUM.

ENDAT.

AT LAST. (This will give the grand total)

SUM.

ENDAT.

ENDLOOP.

Regards,

Himanshu

Message was edited by:

Himanshu Aggarwal

2 REPLIES 2
Read only

Former Member
0 Likes
363

Hi,

U can do like follows :

Say, if u are using Employee code which is unique then u can do as follows :

LOOP AT ITAB. (Itab contains ur data)

AT END OF EMPCODE. (Make sure EMPCODE is ur first field and table is

sorted by it. This will give the subtotal for each

employee)

SUM.

ENDAT.

AT LAST. (This will give the grand total)

SUM.

ENDAT.

ENDLOOP.

Regards,

Himanshu

Message was edited by:

Himanshu Aggarwal

Read only

0 Likes
362

Hi Himanshu,

Thanks a lot

Regards,

Nasru