on 09-26-2007 4:38 PM
Hi ,
I need to decide number of columns at run time out of fixed number of coulmn in table.
one way of doing it through ALV column hiding but problem is what ever coloumns I hide programeticaly user can always to go ALV settings and unhide them and that defeats the purpose.
is there any otherway I can determine my number of columns dynamicaly.
It can be a table or ALV table.
Thanks
Gaurav
How about creating a dynamic node with the number of columns that you need?
Let me know if that helps. I have a code for creating cloumns dynamically.
Thank You.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi gaurav,
In d Do_init method ,
read the table following table
data : ls_function TYPE salv_wd_s_a_function_ref,
Disable Setting on ALV
READ TABLE wd_this->alv_config_table->
if_salv_wd_function_settings~t_functions
INTO ls_function
WITH KEY id = 'SALV_WD_SETTINGS'.
IF sy-subrc = 0.
ls_function-r_function->set_visible( cl_wd_uielement=>e_visible-none ).
ENDIF.
reward If Usefull
User | Count |
---|---|
84 | |
25 | |
12 | |
9 | |
6 | |
6 | |
5 | |
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.