on 02-07-2011 3:51 PM
In my ALV output all by columns are hidden. I tried to un hide them using following statement (set_visible)but it doesnu2019t work . Can any one please tell me how to un-hide and display all Column in ALV. I want to understand why and how did columns got hidden.
*********************ALV component usage *********************
data lo_cmp_usage type ref to if_wd_component_usage.
lo_cmp_usage = wd_this->wd_cpuse_alv_table( ).
if lo_cmp_usage->has_active_component( ) is initial.
lo_cmp_usage->create_component( ).
endif.
interface controller *****************
data lo_interfacecontroller type ref to iwci_salv_wd_table .
lo_interfacecontroller = wd_this->wd_cpifc_alv_table( ).
data lo_value type ref to cl_salv_wd_config_table.
lo_value = lo_interfacecontroller->get_model( ).
lo_value->if_salv_wd_table_settings~set_visible( value = CL_WD_UIELEMENT=>E_VISIBLE-VISIBLE ).
lo_value->if_salv_wd_table_settings~set_visible_row_count( value = 10 ).
Thank you.
have you mapped the data node of the interface controller with a proper node from comp controller that has
attribute and elements.
thanks
sarbjeet singh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes I did, in fact in the ALV output if I go to Setting - > Column Selection I see all my column are under Hidden Columns . I am surprised I did not write any code to hide any column.
Now that I have corrected it, i wrote the code to display 10 rows then I have changed it back to display 6 row it still shows me 10 rows.
I think it is retaining the old ALV setting it is not refreshing the ALV buffer. how do i correct it.
Thank you.
Hi,
Are you developing and testing in the same system ?
seems to me that personalization is an option that your columns are hidden, number of rows displayed are changed through personalization.
You can check the WD_ANALYZE_CONFIG_USER service from sicf node.
sap/bc/webdynpro/sap/WD_ANALYZE_CONFIG_USER
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
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.