on 08-31-2010 7:14 PM
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.
Hi,
Please explain the requirement in detail.
Thanks,
Manogna
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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> ).
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.