09-02-2015 12:51 PM
Hi Gurus,
for a TMG i want to make a single cell disabled.
when i am writting code as below in PBO
LOOP AT SCREEN .
IF SCREEN-NAME = 'I'.
SCREEN-INPUT = 0.
* SCREEN-ACTIVE = 0.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
the entire column is getting disabled.
how can i acheive that..... logic being if the field is not initial then it should be in display mode. and rest fields should be editable mode.
09-02-2015 1:05 PM
You must have something like this
LOOP AT EXTRACT WITH CONTROL
TCTRL_"YOUR TABLE" CURSOR NEXTLINE.
MODULE LISTE_SHOW_LISTE.
ENDLOOP.
In this you add one more module of your own
LOOP AT EXTRACT WITH CONTROL
TCTRL_"YOUR TABLE" CURSOR NEXTLINE.
MODULE "YOUR NEW MODULE"
MODULE LISTE_SHOW_LISTE.
ENDLOOP.
and write the following code
If "YOUR CONDITION" = true
Loop at screen.
if screen-name = "YOUR FIELD NAME"
screen-input = 0.
modify screen.
endif
endloop.
ENDIF.
*
09-02-2015 12:55 PM
Put this code in the PBO: LOOK ... WITH CONTROL block.
Regards,
Raymond
09-02-2015 1:04 PM
09-02-2015 1:05 PM
You must have something like this
LOOP AT EXTRACT WITH CONTROL
TCTRL_"YOUR TABLE" CURSOR NEXTLINE.
MODULE LISTE_SHOW_LISTE.
ENDLOOP.
In this you add one more module of your own
LOOP AT EXTRACT WITH CONTROL
TCTRL_"YOUR TABLE" CURSOR NEXTLINE.
MODULE "YOUR NEW MODULE"
MODULE LISTE_SHOW_LISTE.
ENDLOOP.
and write the following code
If "YOUR CONDITION" = true
Loop at screen.
if screen-name = "YOUR FIELD NAME"
screen-input = 0.
modify screen.
endif
endloop.
ENDIF.
*
09-02-2015 2:46 PM