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

error while calling methods

hi,

i want to call SET_TABLE_FOR_FIRST_DISPLAY method from CL_GUI_ALV_GRID.

for this i defined and created reference(w_alv_grid).

the i am calling method as

CALL METHOD w_alv_grid->SET_TABLE_FOR_FIRST_DISPLAY

my peroblem is when i do error checking its giving the error messgae as

<b>The Obligatory parameter "I_PARRENT" had no vlaue assign to it.</b>.

please help me.

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 Oct 12, 2005 at 04:45 AM

    Hi

    Why dont you directly call the method from patterns button in SE38. Dont create a reference .

    In pattern -> choose ABAP Object patterns.

    Then give class -> CL_GUI_ALV_GRID and method SET_TABLE_FOR_FIRST_DISPLAY .

    or if you want to create a new refernce to class in your program try this -

    <b>data: grid_custom_container TYPE REF TO cl_gui_custom_container,

    grid_container TYPE scrfname VALUE 'MYGRID',

    alv_grid tYPE REF TO cl_gui_alv_grid.

    CREATE OBJECT grid_custom_container

    EXPORTING container_name = grid_container.

    CREATE OBJECT alv_grid

    EXPORTING i_parent = grid_custom_container.</b>

    Cheers.

    ( Don't forget to reward if answers were helpful )

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 12, 2005 at 04:38 AM

    could you plz explain ur prob bit more

    if possible paste the code.

    ambichan

    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.