cancel
Showing results for 
Search instead for 
Did you mean: 

Select rows from a table - WDA

Former Member
0 Kudos

Hi all!!

I call a WS on a WDA, with the output of this WS I have to display a table. On this table, I must select a row and display its detail using another WS.

I got display the table, but I don´t know how select the table row.

Do you know how I can do this?

Thanks,

Manuel.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

in this <a href="/people/koen.labie2/blog/2006/11/17/custom-f4-functionality-in-webdynpro-for-abap you can find a code example.

grtz

Koen

Former Member
0 Kudos

Hi.. well in WDJ we have somnethgn called Lead selection in a table. Its a event where in we can select a row and do teh required processing. Please check if the same functinality is avlble.. in WDA..

Hope it helps..Soumya

Former Member
0 Kudos

Hi!!

On the view where the table is displayed I have created a CONTINUE button, to generate an action which get the fields of the row selected, to do this I use the method GET_SELECTION_FIELDS, but when this statement is executed the exception 'Zugriff über 'NULL' Objektreferenz nicht möglich' (Access over ' ZERO ' object reference not possible) is displayed.

This is the code to retrieve the data of the fields of selected row, is on the method resulting of press CONTINUE button..

DATA:

lt_fields TYPE if_wd_select_options=>tt_selection_screen_item.

wd_this->select_row->get_selection_fields( IMPORTING et_fields = lt_fields ).

Is this correct?

Thank and regards,

Manuel

Former Member
0 Kudos

Hi Manuel,

try reading the NODE that holds the table, then get the selected element.

From the selected element, get the static attributes.

lr_node =wd_context->get_child_node(....)   " get node under root,
lr_element = lr_node->get_element( )   " get lead element
ls_my_stru = lr_element->get_static_attributes

Check other posts in the forum.

Reading the context is a must know how, to survive in WDA programming,

regards

Phil

Answers (0)