on 11-23-2010 9:12 AM
Hi All,
I ahve created the ALV with the filed catalog. with the help of following link
but i get the dump that
Data no longer available when SALV_WD_TABLE GET_MODEL called
I know that the data is not is not there when the ALV gets initialized.
How to assign data to new node.
the dynamic internal table i am getting is
data lt_table type ref to data.
so how to bind it.
Plz help
Thanks & Regards,
Arvind
You need to use SET_DATA method of the cl_salv_wd_config_table and pass the dynamic node to that method.
Edited by: Lekha on Nov 23, 2010 2:48 PM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
data: lr_cmp_usage type ref to if_wd_component_usage.
data: lr_intf_ctrl type ref to iwci_salv_wd_table.
data: lr_model type ref to cl_salv_wd_config_table.
data: lr_output type ref to if_wd_context_node.
lr_cmp_usage = wd_this->wd_cpuse_alv( ).
if lr_cmp_usage->has_active_component( ) is initial.
lr_cmp_usage->create_component( ).
endif.
lr_intf_ctrl = wd_this->wd_cpifc_alv( ).
lr_output = wd_context->get_child_node( 'OUTPUT' ).
lr_intf_ctrl->set_data( lr_output ).
lr_model = lr_intf_ctrl->get_model( ).
now you can use model to modify the table config ( OUTPUT is your dynamic node, remember by the time this gets executed you should hav created the OUTPUT dynamic node with attributes )
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
7 | |
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.