on 01-09-2013 1:45 PM
i have created alv in webdynpro but i need user can change column width as per there requirement.
we have enhancement package 1 also put code
lr_config->if_salv_wd_table_settings~set_fixed_table_layout( abap_true ).
anybody know why this is not working.
Hi Jitendra,
Maybe your code is not executed at the right place in the phase model. If I enter the following code into the component controller's wddoinit method, I get the option to resize columns with the mouse.
METHOD wddoinit .
DATA lo_cmp_usage TYPE REF TO if_wd_component_usage.
DATA lo_interfacecontroller TYPE REF TO iwci_salv_wd_table .
DATA lo_model TYPE REF TO cl_salv_wd_config_table.
DATA lo_settings TYPE REF TO if_salv_wd_table_settings.
* -- Instantiate the used component
lo_cmp_usage = wd_this->wd_cpuse_alv_table( ).
IF lo_cmp_usage->has_active_component( ) IS INITIAL.
lo_cmp_usage->create_component( ).
ENDIF.
* -- Get the ALV configuration model
lo_interfacecontroller = wd_this->wd_cpifc_alv_table( ).
lo_model = lo_interfacecontroller->get_model( ).
* -- Set fixed table layout
lo_model->if_salv_wd_table_settings~set_fixed_table_layout( ).
ENDMETHOD.
Cheers,
Amy
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
yes i have wriiten this method in wddoinit hook method of each view.
but still am not getting this symbol b\w column we have around 40 colmn
is it dependent on size of tansparant container we have fixed tranparent container size with few column left align and vartical scroll bar after few column
Hi Jitendra,
To troubleshoot your issue, one thing you could try is to simplify one ALV down to its bare essentials. Comment out any code that customizes its columns or configuration and see if you can make it work. There may be some setting or personalization in place (or a combination of) that is preventing the fixed layout.
Cheers,
Amy
Hi,
Have you used SET_WIDTH method..? After set width you have to use set_fixed_table_layout method.
Use set width method and the set_fixed_table_layout to abap_false to allow resize. To make it fixed pass abap_true!!!
Check this thread for reference: http://scn.sap.com/message/7564863
Hope this helps u.,
Regards,
Kiran
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.