2006 Oct 11 12:50 PM
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.
2006 Oct 11 12:55 PM
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.
2006 Oct 11 12:55 PM
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.
2006 Oct 11 1:11 PM
Hi
Thanks for your reply,
it mainly tells top-of-page ,headings and end of page.
I want to display the list..