Skip to Content
author's profile photo
Former Member

ALV list heading

Hello ABAPers,

I am displaying some records in an internal table in the form of an ALV list.

I need 'Number of records displayed: xxx' at the header level or at the end of the list.

(xxx number of records in the internal table)

I am using the function module and calling this in form top_of_page.

CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'

EXPORTING

it_list_commentary = lt_list_top_of_page.

but it seems like it is not working. Any suggestions.

Thanks,

Naren

Message was edited by: Naren Somen

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • Best Answer
    Oct 07, 2005 at 03:22 PM

    You have to fill the Record count into this table, with

    describe <itab> lines <record_count>

    data: ls_line type slis_listheader.

    data: c_date(12), c_time(12).

    • LIST HEADING LINE: TYPE H

    clear ls_line.

    ls_line-typ = 'H'.

    • LS_LINE-KEY: NOT USED FOR THIS TYPE

    • write p_datum to c_date.

    • concatenate sy-title 'as of' c_date into ls_line-info.

    ls_line-info = sy-title.

    append ls_line to lt_top_of_page.

    Add comment
    10|10000 characters needed characters exceeded