‎2007 Jan 28 3:10 AM
‎2007 Jan 28 4:27 AM
Hi,
If you need to add some info in Header of FBL5n, then you will need to modify the FM FI_ITEMS_DISPLAY bcos that is where the FMs REUSE_ALV_LIST_DISPLAY and REUSE_ALV_GRID_DISPLAY are used. you should do that in the TOP_OF_PAGE subroutine.
regards,
Mahesh
‎2007 Jan 28 4:55 AM
hi mahesh
i have modified the fm u have specified and i have added the code as
DATA: ls_listheader TYPE SLIS_LISTHEADER,
lt_listheader TYPE SLIS_T_LISTHEADER.
*it_h_kna1 type tpit_t_vkna1 with header line.
data: it_kna1_1 like kna1 occurs 0 with header line.
*select regio telf1 telfx from kna1 into corresponding fields of table
*h_kna1 where kunnr = it_items-kunnr.
select * from kna1 into corresponding fields of table it_kna1_1 where
kunnr = it_items-kunnr.
loop at it_kna1_1.
read table it_kna1_1 with key kunnr = it_items-kunnr.
endloop.
LS_listheader-KEY = 'state'.
LS_listheader-INFO = it_kna1_1-regio.
APPEND LS_listheader TO lt_text.
LS_listheader-KEY = 'phone'.
LS_listheader-INFO = it_kna1_1-telf1.
APPEND LS_listheader TO lt_text.
LS_listheader-KEY = 'telfx'.
LS_listheader-INFO = it_kna1_1-telfx.
APPEND LS_listheader TO lt_text.
even thn it s not displaying in the report