2009 Apr 11 7:01 AM
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.
2009 Apr 13 8:15 AM
2009 Apr 11 7:14 AM
2009 Apr 13 8:07 AM
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
2009 Apr 13 8:15 AM
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
2009 Apr 13 8:15 AM