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-Output

Former Member
0 Likes
407

Hi

In ALV,after getting list,below that list in same screen i want to display some data.

Examp: I have 10(5males,5 females) Employyes whose basic salary is Rs.1,50,000(Total)

Now i want to display No of male employees..Total salaryfor 5 employees.....Deductions...

Can anyone tell me how to display like this.

Thanks in advance.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
379

Create a event end_of_page

Create Events

PERFORM get_events.

&----


*& Form get_events

&----


  • Events

----


FORM get_events.

CLEAR: w_event, i_event.

REFRESH: i_event.

w_event-name = slis_ev_end_of_page.

w_event-form = 'END_OF_PAGE.

APPEND w_event TO i_event.

ENDFORM. " get_even

USe the 'REUSE_ALV_COMMENTARY_WRITE to write the data into the form end_of_page.

&----


*& Form end_of_page

&----


  • end_of_page

----


FORM end_of_page.

DATA: gs_line TYPE slis_listheader,

i_header TYPE slis_t_listheader.

gs_line-typ = c_a.

gs_line-info = p_top.

APPEND gs_line TO i_header.

CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'

EXPORTING

it_list_commentary = i_header.

ENDFORM. " end_of_page

Check the sample program in the below link:

http://www.sap-img.com/abap/sample-programs-on-alv-grid.htm

Regards,

Prakash.

Hi

In ALV,after getting list,below that list in same screen i want to display some data.

Examp: I have 10(5males,5 females) Employyes whose basic salary is Rs.1,50,000(Total)

Now i want to display No of male employees..Total salaryfor 5 employees.....Deductions...

Can anyone tell me how to display like this.

Thanks in advance.

2 REPLIES 2
Read only

Former Member
0 Likes
380

Create a event end_of_page

Create Events

PERFORM get_events.

&----


*& Form get_events

&----


  • Events

----


FORM get_events.

CLEAR: w_event, i_event.

REFRESH: i_event.

w_event-name = slis_ev_end_of_page.

w_event-form = 'END_OF_PAGE.

APPEND w_event TO i_event.

ENDFORM. " get_even

USe the 'REUSE_ALV_COMMENTARY_WRITE to write the data into the form end_of_page.

&----


*& Form end_of_page

&----


  • end_of_page

----


FORM end_of_page.

DATA: gs_line TYPE slis_listheader,

i_header TYPE slis_t_listheader.

gs_line-typ = c_a.

gs_line-info = p_top.

APPEND gs_line TO i_header.

CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'

EXPORTING

it_list_commentary = i_header.

ENDFORM. " end_of_page

Check the sample program in the below link:

http://www.sap-img.com/abap/sample-programs-on-alv-grid.htm

Regards,

Prakash.

Read only

Former Member
0 Likes
379

Hi

Thanks for your reply,

it mainly tells top-of-page ,headings and end of page.

I want to display the list..