Skip to Content
0
Former Member
Feb 16, 2009 at 02:28 PM

alv grid internal settings

27 Views

Hi experts,

I want a display one internal table by alv grid oops.

There is no need of making it interactive or layout designing just to display.

I have the following code.

data: ok_code like sy-ucomm,

gt_sflight type table of sflight,

g_container type scrfname value 'cc_alv',

grid1 type ref to cl_gui_alv_grid,

g_custom_container type ref to cl_gui_custom_container.

data : begin of it_ekko1 occurs 0,

ekgrp type ekko-ekgrp,

lifnr type ekko-lifnr,

bukrs type ekko-bukrs,

ebeln type ekko-ebeln,

end of it_ekko1.

  • let this table be populated by some queries.****

call screen 100.

if g_custom_container is initial.

create object g_custom_container

exporting container_name = g_container.

create object grid1

exporting i_parent = g_custom_container.

call method grid1->set_table_for_first_display

exporting i_structure_name = 'it_ekko1'

changing it_outtab = it_ekko1.

endif.

can u please suggest wat r the settings i need to make for the execution of the code.

for example going to scrren painter and setting scrren 100.

any settings like strucure defining ,

is fieldcatalod a mandatory one.

it is giving error of it_outtab type non-compatible.

thanks in advance.