Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Read Complete internal table from Context...

How can I read the complete node with cardinality 1..N into an internal table with same ddic structure as the node ????

when uses the DYNPRO WIZARD, it is saying both types are not compatible...

Thanks

replied

Hi Stephan,

You can make use of the GET_STATIC_ATTRIBUTES_TABLE method of IF_WD_CONTEXT_NODE to download the contents of your entire context of cardinality 1..n into an internal table of the same structure. Refer the example coding as shown below.

Regards,

Uday

DATA: node_node_flighttab TYPE REF TO if_wd_context_node,
      lt_sflight TYPE if_resultview=>elements_node_flighttab.


node_node_flighttab = wd_context->get_child_node( name = `NODE_FLIGHTTAB` ).
node_node_flighttab->get_static_attributes_table( IMPORTING table = lt_sflight ).

Now lt_sflight will contain all the data which is bound to the context node NODE_FLIGHTTAB.

0 View this answer in context

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question