Skip to Content

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

Clear Header in ALV

Hi All

i want clear header when i excute report header displyed after when i go back header displaying agian not clearing header info,,when i go back i need to come out this programe now header displaying , now its 2 times i am gng back, pls if any one knws where should i clear that header i dont want to display again when i go back immediately need to go out of the program.

My code:


*ALV Header declarations

data: t_header type slis_t_listheader,

wa_header type slis_listheader,

t_line like wa_header-info,

ld_lines type i,

ld_linesc(10) type c.

  • Title

wa_header-typ = 'H'.

wa_header-info = ' HR Master Data Records'.

append wa_header to t_header.

clear wa_header.

  • Date

wa_header-typ = 'S'.

wa_header-key = 'Date: '.

CONCATENATE sy-datum+6(2) '.'

sy-datum+4(2) '.'

sy-datum(4) INTO wa_header-info. "todays date

append wa_header to t_header.

clear: wa_header.

    • Total No. of Records Selected

sort it_pa0001 by pernr.

describe table IT_PA0001 lines ld_lines.

ld_linesc = ld_lines.

concatenate 'Total No. of Records Selected: ' ld_linesc

into t_line separated by space.

wa_header-typ = 'A'.

wa_header-info = t_line.

append wa_header to t_header.

clear: wa_header, t_line.



it_list_commentary = t_header.

    • i_logo = 'Z_LOGO'.

Former Member
Not what you were looking for? View more on this topic or Ask a question