cancel
Showing results for 
Search instead for 
Did you mean: 

Assigning data to Dynamic ALV

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi,

I have already used this method. but when i try to get model, it gives me dump.

Data no longer available when SALV_WD_TABLE GET_MODEL called.

Any other suggestion.

any explicit binding or somthing else??

Thanks

Arvind

abhimanyu_lagishetti7
Active Contributor
0 Kudos

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 )

Former Member
0 Kudos

Hi,

you need to set the data before you are using get model.

Former Member
0 Kudos

Hi Abhimanyu,

Problem is solved.

Thanks and Regards,

Arvind

Answers (0)