cancel
Showing results for 
Search instead for 
Did you mean: 

How to read multiple rows from a table

Former Member
0 Kudos

Hi All,

I have add a table control. i am extrated the data from the ztable and storing it to table. Now i want ro read all the ros one by one .

This there any method

With Regards

Hemalatha

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi

Read the node using the syntax

CALL METHOD node->get_static_attributes_table

  • EXPORTING

  • from = 1

  • to = 2147483647

IMPORTING

table = itab.

You will get the whole record in an itab, or u can use the method of interface if_wd_context_node, that use index of the node-> using that method u can read the node using index.

Regards

Sarath

Former Member
0 Kudos

Hi Sarath ,

thanks a lot , ur above code worked.

once again thanks a lot.

Thanks and Regards

Hemalatha

Former Member
0 Kudos

Is it possible to read only selected rows of a table Not Row

Former Member
0 Kudos

Is there any method to read the entire table if it contains a Drop Down list

Former Member
0 Kudos

DATA:

lo_node TYPE REF TO if_wd_context_node,

ls_user_entities TYPE wd_this->element_user_entities,

lt_elements TYPE wdr_context_element_set,

lo_elements TYPE REF TO if_wd_context_element.

lo_node = wd_context->get_child_node( name = wd_this->wdctx_user_entities ).

*............ no lead selection set.....

IF lo_node IS INITIAL.

RETURN.

ENDIF.

*****************************************************************************

*.... * step1 : To get all selected elements from user_entities table

*****************************************************************************

lt_elements = lo_node->get_selected_elements( ).

CHECK NOT lt_elements[] IS INITIAL.

  • IF lt_elements IS NOT INITIAL.

LOOP AT lt_elements INTO lo_elements.

  • Get Contents of selected Lines............

CALL METHOD lo_elements->get_static_attributes

IMPORTING

static_attributes = ls_user_entities.

ENDLOOP.

Answers (0)