Skip to Content
avatar image
Former Member

Web Dynpro context

Hello,

i am new to web dynpro und i have a question.

i must read a context node. The Problem is that i need all data in an internal table not only

the data with the lead selection.

Can somebody tell me how to do that ?

thanks

PS: Sorry for my english, its not that good.

Edited by: René Hölterling on Oct 13, 2008 10:56 AM

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Best Answer
    avatar image
    Former Member
    Oct 13, 2008 at 09:07 AM

    Hi,

    Check this Code,

    DATA lo_nd_sflight TYPE REF TO if_wd_context_node.
      DATA lo_el_sflight TYPE REF TO if_wd_context_element.
      DATA lt_sflight TYPE wd_this->elements_sflight.
      
    * navigate from <CONTEXT> to <SFLIGHT> via lead selection
      lo_nd_sflight = wd_context->get_child_node( name = wd_this->wdctx_sflight ).
    
      lo_nd_sflight->get_static_attributes_table(
        IMPORTING
          table = lt_sflight ).

    Regards,

    Padmam.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 13, 2008 at 08:59 AM

    Hi rene,

    Chekc this code...

    data: Node_sflight typ ref to if_wd_context_node,

    it_flights type if_main=>elements_flights.

    node_sflight = wd_context->get_child_node( 'FLIGHTS' ).

    CALL METHOD

    NODE_SFLIGHT->GET_STATIC_ATTRIBUTES_TABLE

    • EXPORTING

    • FROM = 1

    • TO = 2147483647

    IMPORTING

    TABLE = it_sflight

    .

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 13, 2008 at 09:13 AM

    Thank you. It works fine 😊.

    Add comment
    10|10000 characters needed characters exceeded