Application Development 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: 

Validate parameter.

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi,

Use

AT SELECTION-SCREEN ON quincena.

IF quincena is initial .

MESSAGE e000 WITH 'You must select one'.

ENDIF.

Alexandre Nogueira

Former Member
0 Kudos

Hi,

try this

IF quincena EQ '00000000'.

instead of this..

IF quincena EQ ''.

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

former_member188685
Active Contributor
0 Kudos

AT SELECTION-SCREEN ON quincena.

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

MESSAGE e000 WITH 'You must select one'.

ENDIF.

0 Kudos

Why don't you make this as mandatory?