Skip to Content
author's profile photo Former Member
Former Member

ALV END OF PAGE!

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

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Posted on Dec 09, 2004 at 07:58 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 15, 2004 at 03:18 PM

    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
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.