on 05-18-2010 3:36 PM
how to get Column reference of attribute in table
How to use Get_colums method from CL_WD_table
Hi!
Have a look at the code sample below.
data: lo_cmp_usage TYPE REF TO if_wd_component_usage,
lo_interfacecontroller TYPE REF TO iwci_salv_wd_table,
lt_columns TYPE salv_wd_t_column_ref,
lr_column_settings TYPE REF TO if_salv_wd_column_settings,
lo_value TYPE REF TO cl_salv_wd_config_table.
lo_cmp_usage = wd_this->wd_cpuse_<component_usage_name>( ).
IF lo_cmp_usage->has_active_component( ) IS INITIAL.
lo_cmp_usage->create_component( ).
ENDIF.
lo_interfacecontroller = wd_this->wd_cpifc_<component_usage_name>( ).
lo_value = lo_interfacecontroller->get_model( ).
lr_column_settings ?= lo_value.
lt_columns = lr_column_settings->get_columns( ).
Now you can access all column objects in lt_column!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.