09-19-2008 10:58 AM
Hi,
My question is - how can I develop table control having three columns with only one column editable?
09-19-2008 11:01 AM
We can make only one column editable in the table control by using below code:
step1: In one of the module in the PBO event
step2: Write beloe code :
LOOP AT SCREEN.
CASE SCREEN-NAME.
WHEN 'IG_ITAB-VBELN'.
SCREEN-INPUT = '0'.
MODIFY SCREEN.
WHEN 'IG_ITAB-ERDAT'.
SCREEN-INPUT = '0'.
MODIFY SCREEN.
ENDCASE.
ENDLOOP.
step3: Where in the above code, the fields "vbeln & erdat" are two columns which we cant edit in the table control... likewise you can make a column non- editable .
Regards,
Sarkar
09-19-2008 11:01 AM
We can make only one column editable in the table control by using below code:
step1: In one of the module in the PBO event
step2: Write beloe code :
LOOP AT SCREEN.
CASE SCREEN-NAME.
WHEN 'IG_ITAB-VBELN'.
SCREEN-INPUT = '0'.
MODIFY SCREEN.
WHEN 'IG_ITAB-ERDAT'.
SCREEN-INPUT = '0'.
MODIFY SCREEN.
ENDCASE.
ENDLOOP.
step3: Where in the above code, the fields "vbeln & erdat" are two columns which we cant edit in the table control... likewise you can make a column non- editable .
Regards,
Sarkar
09-19-2008 11:05 AM
Hi,
try this..
data : cols like line of tc-cols.
loop at tc-cols into cols.
if cols-screen-name = 'col1'.
screen-input = 0.
endif.
if cols-screen-name = 'col2'.
screen-input = 0.
endif.
modify tc-cols from cols.
endloop.
09-19-2008 11:05 AM
Hi,
write module in PBO as below
&----
*& Module FIELD_STATUS_9012 OUTPUT
&----
text
----
module FIELD_STATUS_9012 output.
LOOP AT SCREEN.
CASE screen-name.
The following are the screen field names
WHEN 'WA_LC_BG_ACCT-BELNR' OR
'WA_LC_BG_ACCT-WRBTR' OR
'WA_LC_BG_ACCT-ZFBDT' OR
'WA_LC_BG_ACCT-PYDATE' OR
'WA_LC_BG_ACCT-BCHARG' OR
'WA_LC_BG_ACCT-INTRST'.
screen-input = 0.
MODIFY SCREEN.
ENDCASE.
ENDLOOP.
endmodule. " FIELD_STATUS_9012 OUTPUT
Regards,
Raju.
09-19-2008 11:06 AM
Hi ,
Double click on Column of Table control in screen . Beside one Screen will open. down three radio buttons are there.
Buttons : Dict , Program , Display.
Click on Program , So There u can find out small put field.So there
u can give not possible which columns u dont want to Edit.Which column u want to Edit , related to that give possible in input field.
Regards,
Ramya.