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

ALV-Displaying

Former Member
0 Likes
469

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

4 REPLIES 4
Read only

Former Member
0 Likes
429

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

Read only

0 Likes
429

Thanks...

what is this gl_trans_am..

Read only

0 Likes
429

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

Read only

0 Likes
429

Hi

I understood that was for ur requirement.

I want to sort based on 1 field (Male and female)