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
268

Hi Friends,

I have to do validation on selection screen for field FILCT-RPMAX which is posting period

first i had writen validation that it should be not initial

then this validation comes

entered values should be between 0 - 16

now my problem is when i enter 0 it is considering this as initial , but i dont want like this , i want 0 also to be considered as a value

1 REPLY 1
Read only

Former Member
0 Likes
240

Hi ,

you can use this code.

data : len type i.

parameters : s(2) .

AT SELECTION-SCREEN .

PERFORM screen_validation.

&----


*& Form screen_validation

&----


  • text

----


  • --> p1 text

  • <-- p2 text

----


FORM screen_validation.

len = strlen( s ) .

if len eq 0.

message e001 with 'error'.

endif.

ENDFORM. " screen_validation

reward if you find his helpful.

regards,

sumit.