Skip to Content
0
Former Member
Jul 31, 2008 at 12:20 PM

ALV Report through reuse_alv_grid_display

18 Views

Hii guys!!!

I am developing a new ALV report. I wanted a header to be written in that so i searched for a code for that purpose. i found the code as below:

FORM TOP-OF-PAGE.

*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 = 'SFLIGHT Table Report'.

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.

CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'

EXPORTING

IT_LIST_COMMENTARY = T_HEADER.

ENDFORM. "top-of-page

What i am not able to get over here is that the wa_header-typ is specified as 'H' and 'S' what does it stand for????

And also if want to add the line in header itself as "Records Found (no of records) how will i be able to do that.

Helpful answers wud be rewarded

Thanks & Regards