10-17-2006 11:23 AM
Hi
I need to display only totals below the list in same screen.
Example:
I have employee code ,name and gender(male and female)
assume i have 3 males and 2 females..
Total :5 emplcode 5 names and 5 gender...
Now i want 3 males and 2 females to be displayed seperately below the list.
Can anyone have this sort of program or done the scenario..plz help me
10-17-2006 11:25 AM
hi R.K,
do that in the end_of_list form ..i.e,
FORM event_list.
t_event-name = slis_ev_end_of_list.
t_event-form = 'END_OF_LIST'.
APPEND t_event TO it_event.
endform.
FORM end_of_list.
DELETE ADJACENT DUPLICATES FROM it_detail COMPARING own_no.
DESCRIBE TABLE it_detail LINES v_owner_count.
WRITE:/ 'TOTAL COUNT: ', v_owner_count.
WRITE:/ 'TOTAL AMOUNT:', v_tot.
SORT t_temp_det BY gl_acct_no.
LOOP AT t_temp_det.
AT END OF gl_acct_no .
SUM.
WRITE:/ t_temp_det-gl_acct_no,' ', t_temp_det-gl_trans_am.
ENDAT.
ENDLOOP.
ENDFORM.
Regards,
Santosh
10-17-2006 11:37 AM
10-17-2006 11:40 AM
hi RK,
that is a field( Amount ) which was specific to my requirement ... If your problem is solved . Please mark the helpful answers and close the thread ..
Reggards,
Santosh
10-17-2006 11:46 AM
Hi
I understood that was for ur requirement.
I want to sort based on 1 field (Male and female)