Skip to Content

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

ALV heading on top of page - set_table_for_first_display

hi,

I want to print the selection screen parameters in the heading of alv.

I am using set_table_for_first_display to display my ALV.

Please let me know all steps to print the heading on top of the page.

Regards,

Shital

Former Member
Former Member replied

Hi,

Declare your internal tables for ALV

IF not select-options(what ever field there in selection screen) [] is initial.
    WA_HEADER-TYP = 'S'.
    WA_HEADER-KEY = (Selection screen field).
    IF select-options-high IS INITIAL.
      WA_HEADER-info = selection screen field-low.
      APPEND WA_HEADER to T_HEADER.
    ELSE.
      CONCATENATE  s_werks-low  s_werks-high
      APPEND WA_HEADER to T_HEADER.
    ENDIF.
    CLEAR: WA_HEADER.
  ENDIF.

  CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
    EXPORTING
      IT_LIST_COMMENTARY = t_header.
ENDFORM.                    " ALV_TOP-OF-PAGE

Hope it helps!

Regards,

Sandhya

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