Skip to Content
0
Former Member
May 28, 2007 at 04:49 PM

Change screen fields properties

15 Views

Hi all,

I am using a loop screen to change the properties of some teh fields od the following screen:

SELECTION-SCREEN BEGIN OF BLOCK bl3 WITH FRAME TITLE text-003.

PARAMETERS: cb_af_e AS CHECKBOX USER-COMMAND abc.

PARAMETERS: p_pep LIKE anla-posnr,

p_centro LIKE anlz-kostl.

SELECTION-SCREEN END OF BLOCK bl3.

AT SELECTION-SCREEN OUTPUT.

IF cb_af_e = 'X'.

LOOP AT SCREEN.

IF screen-name = 'P_PEP' OR screen-name = 'P_CENTRO'.

screen-input = 1.

ENDIF.

MODIFY SCREEN.

ENDLOOP.

ELSE.

LOOP AT SCREEN.

IF screen-name = 'P_PEP' OR screen-name = 'P_CENTRO'.

screen-input = 0.

ENDIF.

MODIFY SCREEN.

ENDLOOP.

ENDIF.

Now, I would like to make fields P_PEP and P_CENTRO obligatory when checkbox cb_af_e is active.

Thanks a lot!

Regards,

Reyes.