Skip to Content
0
Former Member
Feb 26, 2007 at 04:11 PM

alv

32 Views

Dear Experts,

Please see the below report. While Debugging,after select query select query the control passes to the <b>CALL FUNCTION 'CONTROL_CHECK_WARNING_STATUS'</b> which is not used in my program and the message at status bar is <b>'the specified table name not</b> <b>recognised'</b> and also internal table (ig_ek)contains values after select query.When it has been executed the ALV doesn't contains any values.

REPORT zreport .

TYPES : BEGIN OF ig_ekt,

c1 TYPE zinfo6-zcol1,

c2 TYPE zinfo9-zcol2,

END OF ig_ekt.

data ig_ek type ig_ekt occurs 0.

DATA alv_list1 TYPE REF TO cl_gui_alv_grid.

SELECT zcol1 zcol2 FROM zinfo6 INTO TABLE ig_ek.

CREATE OBJECT alv_list1

EXPORTING i_parent = cl_gui_container=>screen0.

CALL METHOD alv_list1->set_table_for_first_display

EXPORTING

i_structure_name = 'ZInfo6'

CHANGING

it_outtab = ig_ek[].

CALL SCREEN 221.

I suspect the error has occured at declaration part of structure and internal table.

If it is so,Can any one write down the syntax for declaring an internal table which is of type structure.The structure contains fields come from more than one tables in abap objects programming?

Hope to get answers from SAP community,

Thanks,

Raj