cancel
Showing results for 
Search instead for 
Did you mean: 

Web Dynpro context

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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.

Answers (2)

Answers (2)

Former Member
0 Kudos

Thank you. It works fine .

Former Member
0 Kudos

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

.

Former Member
0 Kudos

Sorry but can you please explain this to me ?

Thank you