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

context node

hi

i have a master node and the master node in child node

i want to attain this child node for bind a internal table on a supply function

i use code wizard but error message : mainView.child absent on this page. . ..

my code :

Node_sflight = wd_Context->get_Child_Node( Name = 'lo_nd_child' ). -->error row

Node_sflight->Bind_Table( gt_tab ).

Thanks.

Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • Best Answer
    Posted on Nov 03, 2008 at 05:46 AM

    Hi Mesut,

    I see that you are trying to get the reference of a node for binding some data to it. I see 2 things here.

    1) You have mentioned your node name in lower case.

    2) You seem to be passing some object reference to it by the way you have named your node starting with "lo"

    You should always pass your node name in upper case like:

    Node_sflight = wd_Context->get_Child_Node( Name = 'NODE1' ).

    For every node you create in the context of a controller, a constant with the name WDCTX_<node name> is automatically created in the corresponding interface IG_<Controller_Name> and IF_<Controller_Name>. In the program source code for the controller, this constant can then be used instead of a string literal for the node name by using the reference to the local controller interface (WD_THIS attribute). Example:

    wd_context->get_child_node( wd_this->wdctx_node_1 ).

    instead of

    wd_context->get_child_node( 'NODE_1' ).

    The advantage of using constants is that the compiler knows the constant and, therefore, syntax errors are reported if the name of the context node contains typing errors. However, it is also possible to pass a string literal.

    Regards,

    Uday

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 03, 2008 at 03:43 AM

    Hi Mesut,

    Your question is not clear.What exactly you want to do,in which context node(master or child )supply function you want to bind the internal table.

    Check this article about Context node in detail.You can also find about the supply fnction htps://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/60730016-dbba-2a10-8f96-9754a865b814

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 03, 2008 at 04:43 AM

    my code :

    Node_sflight = wd_Context->get_Child_Node( Name = 'LO_ND_CHILD'' ). --> IT SHOULD BE IN CAPS.

    Node_sflight->Bind_Table( gt_tab ).

    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.