‎2008 Jan 10 7:41 AM
Hi All
My query is regarding the selection screen validation for character.
I am using a Select-option: S_ORDER FOR VBAK-VBELN OBLIGATORY.
and S_order should be only having the numeric field.
Please help how to validate it for character field.
‎2008 Jan 10 7:53 AM
Hi,
at selection-screen.
if not s_order[] is initial.
IF S_ORDER-low CA 'AB...Z'.
throw error message.
elseif s_order-high CA 'AB...Z'.
throw error message.
ENDIF.
ENDIF.
Regards,
nagaraj
‎2008 Jan 10 7:43 AM
Hi
Please use the FM NUMERIC_CHECK to check whether the value entered is numeric or not.
~ Ranganath
‎2008 Jan 10 7:45 AM
Hi,
Do as below :
at selection-screen.
if not s_order[] is initial.
if s_order-low CA 'ABCDEF.............Z'.
message 'Enter only numerics only' type 'E'.
endif.
"similarly for s_order-high also.
endif.
Thanks,
Sriram Ponna.
‎2008 Jan 10 7:53 AM
Hi,
at selection-screen.
if not s_order[] is initial.
IF S_ORDER-low CA 'AB...Z'.
throw error message.
elseif s_order-high CA 'AB...Z'.
throw error message.
ENDIF.
ENDIF.
Regards,
nagaraj
‎2008 Jan 10 9:08 AM
Well this code is taking my program to DUMP!!
Kindly check !!
‎2008 Jan 10 9:15 AM
Hi,
Here i cannot check it..kindly tell what the dump is about..I mean dump analysis.
Reagrds,
nagaraj
‎2008 Jan 10 9:55 AM
Hi
When i try validating the Character inputs, prog goes to dump.
ANd dump analysis says that Unable To interpret " A "as a number
and same is the case with other codes present in the thread.
Kindly help in this regard.
Edited by: Gaurav Verma on Jan 10, 2008 10:55 AM
‎2008 Jan 10 12:38 PM
‎2008 Jan 10 7:54 AM
Hi,
Try like this.
AT SELECTION-SCREEN.
if not s_order[]-low is initial.
if s_order-low CA SY-ABCDE.
message ' ' type 'E'.
endif.
if not s_order[]-high is initial.
if s_order-high CA SY-ABCDE.
message ' ' type 'E'.
endif.
Rewards points if helpful.
Regards,
Srinivas Ch
‎2008 Jan 10 9:15 AM
Verma,
at selection-screen.
if not s_order-low is initial.
if s_order-low CA Sy-abcde.
message 'Enter only numerics only' type 'E'.
endif.
if s_order-high CA Sy-abcde.
message 'Enter only numerics only' type 'E'.
endif.
endif.
Don't forget to reward if useful