Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

How to add heading for individual ALVs

Hi Experts,

I am using the following FMs for display multiple Internal tables in ALV in a single page..

REUSE_ALV_BLOCK_LIST_INIT

REUSE_ALV_BLOCK_LIST_APPEND

REUSE_ALV_BLOCK_LIST_DISPLAY

But how can i add title or heading for each and every ALV individually .

Please Advice.

Edited by: Avik Sinha Roy on Oct 3, 2008 12:53 PM

Tags:
Former Member
Former Member replied

Just populate the it_events of REUSE_ALV_BLOCK_LIST_APPEND

with top_of_page. and give ur heading with 'write' statement.

  is_events-name ='TOP_OF_PAGE'.
  is_events-form ='TOP1'.
  APPEND is_events TO it_evt_d.

  CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_APPEND'
    EXPORTING
      is_layout                        = it_layout
      it_fieldcat                      = it_fcat
      i_tabname                        = 'IT_FINAL_D2'
      it_events                        = it_evt_d
    TABLES
      t_outtab                         = it_final_d2
  EXCEPTIONS
    program_error                    = 1
    maximum_of_appends_reached       = 2
    OTHERS                           = 3
            .

*&---------------------------------------------------------------------*
*&      Form  TOP1
*&---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
FORM top1.
  SKIP.
  WRITE: /50 'ABCD'.
ENDFORM.                                                    "top5

Edited by: Sukriti Saha on Oct 3, 2008 12:57 PM

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question