Skip to Content
0
Feb 24, 2010 at 07:55 AM

Need help to disable inputs at selection-screen

25 Views

Hi,

I have 2 selection screen as follows:

SELECTION-SCREEN BEGIN OF BLOCK b3 WITH FRAME TITLE text-002.

PARAMETERS: pfile1 TYPE string OBLIGATORY DEFAULT text-003,

pfile2 TYPE string OBLIGATORY DEFAULT text-003,

pfile3 TYPE string OBLIGATORY DEFAULT text-003.

SELECTION-SCREEN END OF BLOCK b3.

SELECTION-SCREEN BEGIN OF BLOCK b4 WITH FRAME TITLE text-019.

PARAMETERS:p_upld TYPE char1 AS CHECKBOX,

pfile TYPE string OBLIGATORY DEFAULT text-003.

SELECTION-SCREEN END OF BLOCK b4.

Now when p_upld is 'X' I want to disable entire BLOCK b3 ...how to do it...

I am trying as follows...not working:

IF p_upld IS NOT INITIAL.

LOOP AT SCREEN.

IF SCREEN-NAME = 'PFILE1'.

screen-input = 0.

MODIFY SCREEN.

ENDIF.

ENDLOOP.

LOOP AT SCREEN.

IF SCREEN-NAME = 'PFILE2'.

screen-input = 0.

MODIFY SCREEN.

ENDIF.

ENDLOOP.

LOOP AT SCREEN.

IF SCREEN-NAME = 'PFILE3'.

screen-input = 0.

MODIFY SCREEN.

ENDIF.

ENDLOOP.

ENDIF.