on 08-10-2007 10:21 AM
Hi Everyone
Could anyone let me know how to make a column in table popin read only.
Regards
Hi Sudheendra ,
To make it read only go to the propertys of element in the column and select the check box for property read only.
Regards
Amol
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
if you ar eusing an ALV table
try this
DATA: lr_salv_wd_table TYPE REF TO iwci_salv_wd_table,
r_table TYPE REF TO CL_SALV_WD_CONFIG_TABLE.
* get reference to ALV component interface
lr_salv_wd_table = wd_this->wd_cpifc_alvmain( ).
* get ConfigurationModel from ALV Component
wd_this->r_table = lr_salv_wd_table->get_model( ).
* init ColumnSettings
DATA: lr_column_settings TYPE REF TO if_salv_wd_column_settings,
lr_col_header TYPE REF TO cl_salv_wd_column_header.
lr_column_settings ?= wd_this->r_table.
* get table of column settings - each line one column
DATA: lt_columns TYPE salv_wd_t_column_ref.
lt_columns = lr_column_settings->get_columns( ).
* loop over table - in each loop another column can be modified
DATA: ls_column TYPE salv_wd_s_column_ref.
* define visible columns (fields) by naming them,
* exclude others by setting visibility to none
DATA: ls_tooltip TYPE string.
LOOP AT lt_columns INTO ls_column.
" get header of column
lr_col_header = ls_column-r_column->get_header( ).
" do settings here
ENDLOOP.
Or see this document for more tips.
<a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/40794172-b95a-2910-fb98-b86d8a0918b4">https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/40794172-b95a-2910-fb98-b86d8a0918b4</a>
regards,
Joris
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi sudheendra.
Are you displaying a table in the tablepopin?
Or what do you mean?
Cheers,
Sascha
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
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.