Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

TMG making cell disable not entire column

0 Kudos


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.

1 ACCEPTED SOLUTION

former_member210541
Active Participant
0 Kudos

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.


*

4 REPLIES 4

raymond_giuseppi
Active Contributor
0 Kudos

Put this code in the PBO: LOOK ... WITH CONTROL block.

Regards,

Raymond

0 Kudos

Hi raymond can you please elaborate a little

former_member210541
Active Participant
0 Kudos

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.


*

0 Kudos

Thanks !!  perfect answer