Skip to Content
0
Former Member
May 12, 2008 at 06:06 PM

AT SELECTION-SCREEN OUTPUT not working!

1481 Views

Hi,

I am useing the statement AT SELECTION-SCREEN OUTPUT to disable some input fields based on a check box(PR_FILE).however when I execute the program the changes on the screen are not reflected!I have written the AT SELECTION-SCREEN OUTPUT stmt immediately after SELECTION-SCREEN stmt .

Defination for the screen elements is as follows:

SELECT-OPTIONS s_plants FOR ls_selected_plant-plant

NO INTERVALS.

SELECTION-SCREEN BEGIN OF BLOCK filesel WITH FRAME TITLE text-012.

PARAMETERS pr_file TYPE xfeld .

PARAMETER : pr_path LIKE rlgrap-filename .

SELECTION-SCREEN END OF BLOCK filesel.

AT SELECTION-SCREEN OUTPUT.

IF pr_file = 'X'.

LOOP AT SCREEN.

IF screen-name = 's_plants'.

screen-input = '0'.

MODIFY SCREEN.

ENDIF.

ENDLOOP.

ELSE.

LOOP AT SCREEN.

IF screen-name = 'pr_path'.

screen-input = '0'.

MODIFY SCREEN.

ENDIF.

ENDLOOP.

ENDIF.

Can anybody suggest what wrong i have done??