‎2008 Dec 15 10:29 AM
Moderator message: please try to use a more informative subject in future
Hi every one..
I am doing Modul Pool Programming.
I want to enable table control's field's INPUT ONLY' field through programming..
means depending on some condition.
Edited by: Matt on Dec 15, 2008 12:50 PM
‎2008 Dec 15 10:36 AM
Hi
In PBO,
Loop at screen.
if some_condition.
if screen-name = 'YOUR_NAME_FIELD'.
screen-input = 0 (1 means editable 0 means grey mode)
modify screen
ENDIF.
endif.
endloop.
Regards
Ramchander Rao.k
‎2008 Dec 15 10:40 AM
HI,
Check this code...
PBO
loop at it_mdpmx with control tc2 cursor tc2-top_line.
module batch_status.
endloop.
DATA: cols LIKE LINE OF tc2-cols.
MODULE batch_status OUTPUT.
if ( IT_MDPMX-xchpf = SPACE ).
loop at screen.
if screen-group1 = 'GP9'.
screen-input = 0.
endif.
endloop.
modify screen.
ENDIF.
ENDMODULE.
‎2008 Dec 15 10:48 AM
Hi
for this u hav to create a wa type table control columns.
data: wa_tabc type tabc-cols. (tabc is ur table control).
in PBO,
loop at itab with control tabc. ( itab is ur table used in table controls)
module tab_edit.
endloop.
in SE 38
Module Tab_Edit .
loop at tabc-cols into wa_tabc.
if wa_tabc-screen-name = 'Field name'.
if itab-field = "condtion'.
screen-input = 0.
else.
screen-input = 1.
endif.
modify tabc-cols from wa_tabc.
endloop.
endif.
endmodule.