on 10-28-2008 2:37 PM
Hi,
alv (SALV_WD_TABLE) shows the entire fileds of the dictionary table on the output (browser)
Can I restrict so it shows only columns which are needed to display ?
Regards
sas
Yes. At runtime any user can go into the ALV settings and hide any columns they want. They can save their settings as a reusable layout. Admins can also use the same tools and save the settings as the default layout.
If you want to control this programatically, you can do so.
data l_salv_wd_table type ref to iwci_salv_wd_table.
l_salv_wd_table = wd_this->wd_cpifc_alv( ).
data l_table type ref to cl_salv_wd_config_table.
l_table = l_salv_wd_table->get_model( ).
data l_column type ref to cl_salv_wd_column.
l_column = l_table->if_salv_wd_column_settings~get_column( 'CLIENT' ).
l_column->set_visible( cl_wd_uielement=>e_visible-none ).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Interesting. The link pulled up a completely different forum thread earlier. I even opened it twice to make sure, becuase what it opened was so off topic I didn't see how it could possibly be related. Now it seems to be opening correctly to a thread that discusses ALV columns. Sorry for the confusion - guess I will just chalk this up to strangeness in the forums.
User | Count |
---|---|
83 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
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.