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

validating a selection screen on input parameters

Former Member
0 Likes
583

hi,

on my selection screen ,a parameter called no. of boxes and 3 select options are given.

i want to validate the 3 select options according to the entry done in no. of box .

ex. if 2 is entered in no. of boxes then only the 2 select options would be available to user for entering rest 1 would be isolated

Thanks in advance !!!

amit

4 REPLIES 4
Read only

Former Member
0 Likes
559

hi,

you can this in INITIALIZATION event.

Read only

kesavadas_thekkillath
Active Contributor
0 Likes
559

search in SCN for At selection-screen output

Read only

Former Member
0 Likes
559

Hi,

Check this,


PARAMETERS: p_1 type i.

SELECT-OPTIONS:num1 for mara-matnr.
SELECT-OPTIONS:num2 for mara-matnr.
SELECT-OPTIONS:num3 for mara-matnr.

AT SELECTION-SCREEN OUTPUT.

LOOP AT SCREEN.
if p_1 = '1'.
IF screen-name cs 'NUM2'.
screen-active = '0'.
MODIFY SCREEN.
ENDIF.
IF screen-name cs 'NUM3'.
screen-active = '0'.
MODIFY SCREEN.
ENDIF.
elseif p_1 = '2'.
IF screen-name cs 'NUM3'.
screen-active = '0'.
MODIFY SCREEN.
ENDIF.
endif.
endloop.

Regards,

Vik

Read only

Former Member
0 Likes
559

thnks