Skip to Content
0
Former Member
Jun 05, 2011 at 02:08 PM

Need to Get selected row data of the table

631 Views

Hi, all

I m new to web dynpro programming, im developing a page in which i want to get the data of the selected row. like for e.g

table has columns like

material code description

now i want to fetch only the material no. from the selected row and when i click it will show some data of that material no.

now the issue is i searched the forum and tried various but for each solution im getting stuck.

so can any one kindly help me out in the same.

details:

i have a function module attached to the context and in changing of that FM there is a table of which i want to select the row i.e. material no.

DATA : sel_rec  type WDR_CONTEXT_ELEMENT_SET.
DATA : wa_selrow like LINE OF lt_c_zmat.
CALL METHOD lo_zmat->GET_SELECTED_ELEMENTS
RECEIVING
SET = lt_elementset.

CALL METHOD sel_rec->get_static_attributes
        IMPORTING
          static_attributes = wa_selrow

i have tried 2-3 ways in which i was failed one of them is this.

thanks you.