‎2006 Jun 28 9:52 AM
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
‎2006 Jun 28 10:03 AM
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.