Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

How to make a particular column in table control as editable ?

Former Member
0 Kudos

Hi ,

I have designed a table control.

I am first taking some inputs from user. On the basis of that I want to make some particular

columns of table control as editable and uneditable . How to do it ?

Thanks in Advance.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

hi,

PROCESS PBO.

LOOP AT ITAB ......

MODULE Table_control.

ENDLOOP.

MODULE Table_control.

IF ITAB-FIELD1 = .........

LOOP AT SCREEN.

IF SCREEN-NAME = 'ITAB-FIELD2'.

SCREEN-INPUT = 0.

MODIFY SCREEN.

ENDIF.

ENDLOOP.

ENDIF.

ENDMODULE.

thanks

4 REPLIES 4

Former Member
0 Kudos

HI,

You need to use the LOOP AT SCREEN IN PBO.

Refer to the link ..[How to make editable the colums of table control in the PBO |]

Former Member
0 Kudos

Hello Nikita,

You can go by either of 2 ways;

1. Use ALV and in field-catalog set edit = 'X'.

wa_fcat-fieldname = 'CONNID'.
  wa_fcat-coltext   = 'Connection ID'.
  wa_catalog-edit = 'X'.
  wa_fcat-col_pos   = 2.
  append wa_fcat to t_fcat.

2. If Table-Control is used, then in that case; LOOP AT SCREEN about the specific column, has to be done in PBO.

Hope it helps you,

Zahack

Former Member
0 Kudos

hi,

U need to change the screen attributes of colunm by statament LOOP AT SCREEN/ENDLOOP into the loop of table control in PBO:

PROCESS PBO.

LOOP AT ITAB ......

MODULE LOOP_SCREEN_TC.

ENDLOOP.

MODULE LOOP_SCREEN_TC.

IF ITAB-FIELD1 = .........

LOOP AT SCREEN.

IF SCREEN-NAME = 'ITAB-FIELD2'.

SCREEN-INPUT = 0.

MODIFY SCREEN.

ENDIF.

ENDLOOP.

ENDIF.

ENDMODULE.

Rgds

siva

Former Member
0 Kudos

hi,

PROCESS PBO.

LOOP AT ITAB ......

MODULE Table_control.

ENDLOOP.

MODULE Table_control.

IF ITAB-FIELD1 = .........

LOOP AT SCREEN.

IF SCREEN-NAME = 'ITAB-FIELD2'.

SCREEN-INPUT = 0.

MODIFY SCREEN.

ENDIF.

ENDLOOP.

ENDIF.

ENDMODULE.

thanks