Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

alv

hi all,

i am new for abap,

in this program when i excute the, datas from ekko table not displayed .how to display the data from ekko table using alv! please help me!!

&----


*& Report ZDR_ALV

*&

&----


*&

*&

&----


REPORT ZDR_ALV1.

tables: ekko,ekpo.

type-pools :slis.

*data: gv_alv type slis_t_fieldcat_alv.

types:begin of stru,

lv_docno type ekko-ebeln,

lv_comcod type ekko-bukrs,

lv_cky type ekko-waers,

lv_ter type ekko-zterm,

lv_tele type ekko-telf1,

end of stru.

data :itab type table of stru,

wa like line of itab.

data gv_alv_ty type slis_t_fieldcat_alv.

data gv_wa like line of gv_alv_ty.

gv_wa-fieldname = 'bukrs '.

gv_wa-row_pos = 10.

append gv_wa to gv_alv_ty.

clear gv_wa.

gv_wa-fieldname = 'ebeln '.

append gv_wa to gv_alv_ty.

clear gv_wa.

CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'

EXPORTING

IT_FIELDCAT = gv_alv_ty

TABLES

t_outtab = itab

  • EXCEPTIONS

Tags:
replied

Hi,

What is there in itab?

It's empty , you need to fill the internal table first .

Regards,

Sandeep

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question