Skip to Content
2
Former Member
Jul 28, 2007 at 06:25 PM

problem regarding alv

24 Views

report zalv_grid.

tables: kna1.

type-pools: slis.

data: fact type slis_t_fieldcat_alv,

i_repid like sy-repid.

data: begin of itab occurs 0,

kunnr like kna1-kunnr,

name1 like kna1-name1,

end of itab.

select-options: s_kunnr for kna1-kunnr.

select * from kna1 into corresponding fields of table itab up to 10 rows

where kunnr in s_kunnr.

call function 'reuse_alv_fieldcatalog_merge'

exporting

i_program_name = i_repid.

i_internal_tabname = 'itab'

i_inclname = i_repid

changing

ct_fieldcat = fcat.

call function 'resuse_alv_list_display'

exporting

i_callback_program = i_repid

it_fieldcat = fcat

i_save = 'a'

table

t_outtab = itab.

when i run this program it runs without any syntex errror but it gives message "fieldcatalog does not exist". how to resolve this problem plz help me i am new in ALV.