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

Validate parameter.

Former Member
0 Likes
739

Hi,

I want to validate a parameter:

PARAMETERS: quincena TYPE d.

I'm trying to use:

AT SELECTION-SCREEN ON quincena.

IF quincena EQ ''.

MESSAGE e000 WITH 'You must select one'.

ENDIF.

But it doesn't work, the program continues anyway.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
721

José Manuel ,

Please make changes as per BOLD!!!!!!

AT SELECTION-SCREEN ON quincena.

IF quincena is initial.

MESSAGE e000 WITH 'You must select one'.

ENDIF.

Thanks

Kam

5 REPLIES 5
Read only

Former Member
0 Likes
722

José Manuel ,

Please make changes as per BOLD!!!!!!

AT SELECTION-SCREEN ON quincena.

IF quincena is initial.

MESSAGE e000 WITH 'You must select one'.

ENDIF.

Thanks

Kam

Read only

Former Member
0 Likes
721

Hi,

Use

AT SELECTION-SCREEN ON quincena.

IF quincena is initial .

MESSAGE e000 WITH 'You must select one'.

ENDIF.

Alexandre Nogueira

Read only

Former Member
0 Likes
721

Hi,

try this

IF quincena EQ '00000000'.

instead of this..

IF quincena EQ ''.

because the intial value for type d is '00000000'.

Read only

Former Member
0 Likes
721

AT SELECTION-SCREEN ON quincena.

IF quincena EQ <b>'00000000'</b>.

MESSAGE e000 WITH 'You must select one'.

ENDIF.

Read only

0 Likes
721

Why don't you make this as mandatory?