HI,
I Want to print some contents after the alv list, please tell me how to do it..
i am using grid title for top of page its fine and end of page i am using the events.
perform list_footer.
CALL FUNCTION 'REUSE_ALV_EVENTS_GET'
EXPORTING
i_list_type = 0
IMPORTING
et_events = events.
READ TABLE events WITH KEY name = slis_ev_pf_status_set
INTO wa_events.
IF sy-subrc IS INITIAL.
wa_events-form = 'SET_STATUS'.
APPEND wa_events TO events.
ENDIF.
READ TABLE EVENTS WITH KEY NAME = slis_ev_end_of_list
INTO wa_events.
IF SY-SUBRC = 0.
wa_events-form = 'END_OF_PAGE'.
APPEND wa_events TO events.
ENDIF.
READ TABLE EVENTS WITH KEY NAME = slis_ev_end_of_page
INTO wa_events.
IF SY-SUBRC = 0.
wa_events-form = 'END_OF_PAGE'.
APPEND wa_events TO events.
ENDIF.
READ TABLE events WITH KEY name = slis_ev_user_command
INTO wa_events.
IF sy-subrc IS INITIAL.
wa_events-form = 'user_command_mig'.
APPEND wa_events TO events.
ENDIF.
FORM set_list_footer .
List header for top-of-page - generic, common to all filetypes.
CLEAR wa_listhdr. REFRESH listhdr.
wa_listhdr-typ = 'H'.
wa_listhdr-info ='END OF PAGE'.
DATA : a(5) TYPE c VALUE 'Date:'.
b(5) TYPE c VALUE 'Time:',
c(22) TYPE c VALUE 'RSC-Propagation report',
d(5) TYPE c VALUE 'Page:'.
CONCATENATE a sy-datum
INTO wa_listhdr-info SEPARATED BY space.
APPEND wa_listhdr TO listhdr.
ENDFORM. " set_list_header
it is displaying the empty box but no values can be seen.
please tell me how to print the content in the end of the page as well as end of the list.
thanks in advance.
rajkumar
Hi Rajkumar
It is so implemented that the fullscreen ALV displays an empty box for the end-of-list content. However, what you enclose there should have be displayed when you print the list or display the print preview.
*--Serdar
hi,
If you are using grid then you will have to use I_CALLBACK_HTML_TOP_OF_PAGE and
I_CALLBACK_HTML_END_OF_LIST events for the purpose.
Even the current code of yours will work, but only when u take a print out. To display on screen you will have to use the above mentioned events (when u use REUSE_ALV_GRID_DISPLAY func. module).
END_OF_PAGE event to my knowledge is not working as of now. But some special service packs are expected in dec. which will hopefully get it fixed.
regards,
Satya
Add a comment