Application Development and Automation 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: 
Read only

selection screen validation...!

Former Member
0 Likes
860

I have one check box on the selection screen and 5 parameters.

Header is checkbox.

File1 parameter

File2 parameter

File3 parameter

File4 parameter

File5 parameter

When I select the header check box all the above should disable and when im not selected that all the above should enable.

Kindly let me know the code.

Akshitha.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
803

Hi,

Use At selection screen output. and use following

Loop at Screen.

IF Screen-name = p_chk.

if p_chk = 'X'..

( Write screen visible / disable commands)

ENDIF.

Endif.

Endloop.

Regards,

Nandha

Reward if it solved the query

8 REPLIES 8
Read only

Former Member
0 Likes
804

Hi,

Use At selection screen output. and use following

Loop at Screen.

IF Screen-name = p_chk.

if p_chk = 'X'..

( Write screen visible / disable commands)

ENDIF.

Endif.

Endloop.

Regards,

Nandha

Reward if it solved the query

Read only

0 Likes
803

Hi,

Use like this

AT SELECTION-SCREEN OUTPUT.

LOOP AT SCREEN.

CHECK SCREEN-GROUP1 = 'XYZ'.

SCREEN-VISIBLE = '!'.

MODIFY SCREEN.

ENDLOOP.

Regards,

Nandha

Read only

Former Member
0 Likes
803

Hi,

at Selection-Screen Output.

Loop At Screen.

If Screen-Name = 'check'.

Screen-Input = 0.

Modify Screen.

Endif.

Endloop.

Thanks,

Anitha

Read only

Former Member
0 Likes
803

at selection-screen output.

LOOP AT SCREEN.

IF SCREEN-NAME = 'FILE1' OR SCREEN-NAME = 'FILE2' AND........='FILE5'.

IF HEADER EQ 'X'.

SCREEN-ACTIVE = 0.

MODIFY SCREEN.

ENDIF. "HEADER

ENDIF.

ENDLOOP.

Read only

Former Member
0 Likes
803

HI.

at Selection-Screen Output.

Loop At Screen.

If Screen-Name = 'check'.

Screen-Input1 = 0.

Screen-Input2 = 0.

Screen-Input3 = 0.

Screen-Input4 = 0.

Screen-Input5 = 0.

Modify Screen.

else.

Screen-Input1 = 1.

Screen-Input2 = 1.

Screen-Input3 = 1.

Screen-Input4 = 1.

Screen-Input5 = 1.

Endif.

Endloop.

Rewards all helpfull answers.

Regards.

Jay

Read only

Former Member
0 Likes
803

hi,

try like this

At selection screen output.

Loop at Screen.

IF Screen-name = p_header and p_header = 'X'.

screen-input = 0.

modify screen.

else.

Screen-input = 1.

ENDIF.

Endloop.

reward some points if useful.

Regards,

Suresh.A

Read only

0 Likes
803

its Not working, i tried all the ways......

let me explain u once again.

i have one check box and five parameters

header is check box.

file 1

file 2 .......so on to file 5

when i select the header check box all the above should disable, and when im not selected that all the above should enable...

Akshitha.

Read only

0 Likes
803

Try this code dear, i've checked it, it works. You need to press enter after u mark the checkbox to get desired result.

parameters:

header as checkbox,

FILE1 LIKE RLGRAP-FILENAME,

FILE2 LIKE RLGRAP-FILENAME,

FILE3 LIKE RLGRAP-FILENAME,

FILE4 LIKE RLGRAP-FILENAME,

FILE5 LIKE RLGRAP-FILENAME.

AT SELECTION-SCREEN OUTPUT.

LOOP AT SCREEN.

IF SCREEN-NAME EQ 'FILE1' OR

SCREEN-NAME EQ 'FILE2' OR

SCREEN-NAME EQ 'FILE3' OR

SCREEN-NAME EQ 'FILE4' OR

SCREEN-NAME EQ 'FILE5'.

IF HEADER EQ 'X'.

SCREEN-INPUT = '0'.

ELSE.

SCREEN-INPUT = '1'.

ENDIF.

MODIFY SCREEN.

ENDIF.

ENDLOOP.