cancel
Showing results for 
Search instead for 
Did you mean: 

How to make a column in Table popin read only

Former Member
0 Kudos

Hi Everyone

Could anyone let me know how to make a column in table popin read only.

Regards

Accepted Solutions (1)

Accepted Solutions (1)

former_member205703
Participant
0 Kudos

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

Answers (2)

Answers (2)

Former Member
0 Kudos

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

Former Member
0 Kudos

hi sudheendra.

Are you displaying a table in the tablepopin?

Or what do you mean?

Cheers,

Sascha