REUSE_ALV:TOP_OF_PAGE

ALV

*&———————————————————————*
*& Form ALV_TOP_OF_PAGE
*&———————————————————————*
* Create Top of Page of ALV
*———————————————————————-*
form ALV_TOP_OF_PAGE.
data: WA_LINE type line of SLIS_T_LISTHEADER,
I_TOP type SLIS_T_LISTHEADER.

refresh: I_TOP.

clear: WA_LINE.
WA_LINE-TYP = ‘H’.
concatenate SY-REPID ‘-‘ SY-TITLE into WA_LINE-INFO separated by ‘ ‘.
append WA_LINE to I_TOP.

clear: WA_LINE.
WA_LINE-TYP = ‘S’.
WA_LINE-INFO = ‘Second Line’.
append WA_LINE to I_TOP.

clear: WA_LINE.
WA_LINE-TYP = ‘S’.
concatenate ‘วันที่ ‘ SY-DATUM+6(2) ‘/’ SY-DATUM+4(2) ‘/’ SY-DATUM(4)
‘ เวลา ‘ SY-UZEIT(2) ‘:’ SY-UZEIT+2(2) ‘:’ SY-UZEIT+4(2)
into WA_LINE-INFO.
append WA_LINE to I_TOP.
call function ‘REUSE_ALV_COMMENTARY_WRITE’
exporting
IT_LIST_COMMENTARY = I_TOP
* I_LOGO =
* I_END_OF_LIST_GRID =
* I_ALV_FORM =
.

endform. “ALV_TOP_OF_PAGE