Skip to Content
author's profile photo
Former Member

Footer in alv grid

Hi ,

Could any one please let me know how i can print footer text at the bottom of the alv Grid.

i am not using alv classes. i am using REUSE_ALV_GRID_DISPLAY funtion module.

i've tried passing values to it_events parameter aswell.

Regards,

chinna

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

3 Answers

  • author's profile photo
    Former Member
    Posted on May 04, 2011 at 06:16 AM

    Hi Chinna,

    You can use the event 'End-of-Page' in the parameter 'It_events' in the function module 'REUSE_ALV_GRID_DISPLAY'.

    But it will only execute when print is taken. So take a printout and check whether End of page is working or not.

    As another option you can try the event 'End-of-coverpage' in the parameter 'It_events' in the function module 'REUSE_ALV_GRID_DISPLAY'.

    Thankyou,

    Jerry

    Add comment
    10|10000 characters needed characters exceeded

  • Posted on May 04, 2011 at 06:28 AM

    What is the event you're using to achieve this?

    An ALV Grid is displayed in a screen container & there is no "page-break" in the custom container. Hence END-OF-PAGE cannot be used.

    You should rather use I_CALLBACK_HTML_END_OF_LIST to display the footer in online mode, but bear in mind you cannot print it.

    You can try the END-OF-LIST event if you want to print the footer.

    BR,

    Suhas

    Add comment
    10|10000 characters needed characters exceeded

    • Hi.,

      if u write using write statement it wont display as it is in container not a list display., try this.,

      call function 'REUSE_ALV_GRID_DISPLAY'

      exporting

      i_callback_program = gd_repid

      i_callback_html_end_of_list = 'END_OF_LIST_HTML'

      is_layout = gs_layout

      it_fieldcat = fieldcatalog[]

      tables

      t_outtab = it_ekko

      exceptions

      program_error = 1

      others = 2.

      • Form Footer.

      FORM end_of_list_html USING end TYPE REF TO cl_dd_document.

      CALL METHOD end->add_text

      EXPORTING

      text = 'Number in Thousands:'.

      ENDFORM.

      hope this helps u.,

      Thanks & Regards

      Kiran

  • author's profile photo
    Former Member
    Posted on May 04, 2011 at 08:59 AM

    Hi Kiran,

    Good one. i can display the text as footer now.

    BUT....

    its not displaying right afer the last row of the grid. the text is being shown in a seperate block at footer.

    will it be possible to display the text right after the last rwow of the GRID and rigth corner of the GRID.

    Thank you.

    Regards,

    Chinna

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Kiran Kumar Valluru

      Hi Kiran,

      If i Use classes, i can able to Crete screen and i can be able to display at the bottom without any prob...

      here i am not using any clasess and screens...

      Rob,

      though i've passed value to parameter I_END_OF_LIST_GRID in REUSE_ALV_COMMENTARY_WRITE... its still not working...

      as i didnot find any solution....

      I've convinced the team. by....... passing value to the parameter i_grid_title in REUSE_ALV_GRID_DISPLAY...

      Now the titile of the grid is "Stock Valu in Thousands"

      Thank you all for your support....

      Regards,

      Chinna...