cancel
Showing results for 
Search instead for 
Did you mean: 

Issue in reading values from dynamic ALV

Former Member
0 Kudos

Hi Experts,

I have created a dynamic alv. Now i need to fetch the values from that ALV.

DATA lo_nd_node_mr_in TYPE REF TO if_wd_context_node.

DATA lt_node_mr_in TYPE wd_this->elements_mr_in. "Existing Node (MR_IN)

lo_nd_node_mr_in = wd_context->get_child_node( 'DATA' ). "Dynamically created node

lo_nd_node_mr_in->get_static_attributes_table( importing table = lt_node_mr_in ).

MR_IN have attributes : MATNR WERKS

DATA have MATNR WERKS NAME1 NAME2 (which is in dynamic ALV)

How can i get the values from ALV?

Kindly help me on this.

Regards,

Aishwarya.

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member1151507
Participant
0 Kudos

Hi,

Please explain the requirement in detail.

Thanks,

Manogna

Former Member
0 Kudos

Hi,

I have solved the issue by self. Here is the ans.

READ THE DATA FROM ALV***********

DATA lo_nd_node_mr_in TYPE REF TO if_wd_context_node.

DATA lt_node_mr_in TYPE wd_this->elements_mr_in.

data: lo_nd_node type ref to if_wd_context_node_info.

lo_nd_node_mr_in = wd_context->get_child_node( 'DATA' ).

DATA lr_struct TYPE REF TO cl_abap_structdescr.

data: ls_data type ref to data.

data: lt_data type ref to data.

field-symbols: <fs_line> type any, <fs_itab> type standard table.

lo_nd_node = lo_nd_node_mr_in->get_node_info( ).

lr_struct = lo_nd_node->get_static_attributes_type( ).

CREATE DATA ls_data TYPE HANDLE lr_struct.

ASSIGN ls_data->* TO <fs_line>.

CREATE DATA lt_data LIKE TABLE OF <fs_line>.

ASSIGN lt_data->* TO <fs_itab>.

lo_nd_node_mr_in->get_static_attributes_table( importing table = <fs_itab> ).

lo_nd_node_mr_in->bind_table( <fs_itab> ).