on 12-06-2011 10:20 AM
Hi experts,
i am facing problem in Dynamic ALV.
I am having data in a dynamic node .
when am trying to pass the same node to the ALV am not getting the data,
code as below :
dyn_node = wd_context->get_child_node( name = 'TEST_BLOCK' )
DATA: l_ref_cmp_usage TYPE REF TO if_wd_component_usage.
l_ref_cmp_usage = wd_this->wd_cpuse_alv( ).
IF l_ref_cmp_usage->has_active_component( ) IS INITIAL.
l_ref_cmp_usage->create_component( ).
ENDIF.
** Pass context node to ALV
DATA: l_ref_interfacecontroller TYPE REF TO iwci_salv_wd_table .
l_ref_interfacecontroller = wd_this->wd_cpifc_alv( ).
l_ref_interfacecontroller->set_data( dyn_node )
"dyn_node" is having data in it..
.
Help me in this....
Thanks
Aisurya
Hai,
Double click on component controller then click on controller usage button after that a popup window opens, in that select the alv . After that map the required node to the data node in component controller.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Aisurya,
Your dynamic node is only refering to TEST_BLOCK. But you have not given any values to the node.
You first bind your values (i.e internal table values) using BIND_TABLE method.
dyn_node = wd_context->get_child_node( name = 'TEST_BLOCK' ).
dyn_node->BIND_TABLE ( itab ).
Regards,
Harry
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
101 | |
13 | |
13 | |
11 | |
11 | |
7 | |
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.