‎2006 Sep 19 1:22 PM
Hi all,
we have a requirement on modifying the screen field attributes for a table control.
scenario : f1 f2 f3 f4
-
-
-
now when the user enters the input for field f1 a pop-up appears wherein you will have to make a selection. the selected one will copy to field f2.
now for a particular input of f1 the field f2 for that particular row has to be greyed out.
we are trying this by looping at <b>screen</b> table , but this is greying out the entire column instead of that particular cell.
Thanks in Advance.
Kishore Kumar Yerra.
‎2006 Sep 19 1:39 PM
HI,
look at the code below write this code in the PBO flow logic, in the module of loop endloop of table control.
check for the fields are initial or not.
if fields contains value then make them disable other wise make them enable.
<b>
LOOP AT SCREEN.
IF screen-name = 'F1'.
IF grid_itab-F1 IS INITIAL.
screen-input = 1.
ELSE.
screen-input = 0.
ENDIF.
MODIFY SCREEN.
ENDIF.
ENDLOOP.</b>
Regards,
‎2006 Sep 19 1:40 PM
Hi
You have to insert the LOOP SCREEN into TC loop of PBO with a validation:
PROCESS PBO
LOOP AT ITAB ....
MODULE LOOP_SCREEN.
ENDLOOP.
MODULE LOOP_SCREEN.
IF ITAB-FIELD1 = .....
LOOP AT SCREEN.
IF SCREEN-NAME = .....
SCREEN-INPUT = 0.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
ENDIF.
ENDMODULE.
Max
‎2006 Sep 19 1:43 PM
hi,
Screen modifications applies to the entire column. It can not be done for a single cell.
Regards,
Sailaja.
‎2006 Sep 19 1:50 PM
HI sailaja,
I have done this in one of my table control in module pool program.
as i have explained above. it is possible.
Regards,