Skip to Content
avatar image
Former Member

Webdynpro help required..!

Hi Gurus,

I am new to webdynpro and learning the same through sample exercises available..

I am familiar with abap oops..

Could some one provide me with links where i can get to know the oops coding wrt to webdynpro.

For Eg:

node_node_alv = wd_context->get_child_node( name = if_input_view=>wdctx_node_alv )

In the above case get_child_node refers to what.?

Best Regards,

Navin fernandes

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

2 Answers

  • Best Answer
    avatar image
    Former Member
    Jun 25, 2009 at 07:48 AM
    Add comment
    10|10000 characters needed characters exceeded

  • Jun 25, 2009 at 08:42 AM

    Hi Navin,

    Each controller method automatically recognizes the reference to the root node of its associated context. This reference is called WD_CONTEXT and is always of the type IF_WD_CONTEXT_NODE. The GET_CHILD_NODE method now enables the generation of a reference to the required subnodes. Try going through this [pdf|https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/60730016-dbba-2a10-8f96-9754a865b814]to get a clear idea about how you can work with context nodes & attributes.

    Say suppose in your context you have a context node by name SFLIGHT then in order to get its reference you say as:

    wd_node = wd_context->get_child_node( name = 'SFLIGHT' ).

    Or else you can make use of the corresponding constant created in the interface and say as:

    wd_node = wd_context->get_child_node( name = if_input_view=>wdctx_sflight ).

    Please note that in the above case my views name is input_view because of which I have got the if_input_view=>wdctx_sflight. If my views name were MAIN then it would have been like if_main=>wdctx_sflight.

    Regards,

    Uday

    Add comment
    10|10000 characters needed characters exceeded