Skip to Content
author's profile photo Former Member
Former Member

alv

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Feb 26, 2007 at 04:24 PM

    Hello,

    If the structure of ZINFO9 is same as IG_EKT1, then declare IG_EK as:-

    DATA ig_ek type table of ZINFO9.

    If the structure is different, then you need to create a FIELD CATALOG with same fields as your TYPE IG_EKT1. And pass this FIELD CATALOG to the Method to create ALV and not the structure name ZINFO9.

    Regards,

    Beejal

    **reward if this helps

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Feb 26, 2007 at 04:16 PM

    Hi,

    Give structure name in capital letters

    i_structure_name = 'ZINFO6'

    Thanks,

    Naren

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.