Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

fbl5n

Former Member
0 Likes
405

how to add header data in std pgm(z copy) lke fbl5n

2 REPLIES 2
Read only

Former Member
0 Likes
354

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

Read only

0 Likes
354

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