06-01-2007 10:15 AM
Hi All,
I need to do the Validation for certain field that should contain only the numeric value.
If the Field entered with some wrong value then in the same selection screen the error message to be displayed and cursor should be in the wrong entered field.
Thanks in advance,
Ram M
06-01-2007 10:20 AM
hi Ram,,
AT SELECTION-SCREEN.
use FM NUMERIC_CHECK
if sy-subrc ne 0.
SET CURSOR FIELD 'P_FIELD'
message e001(ee) with 'Enter numbers'.
endif.
06-01-2007 10:20 AM
hi Ram,,
AT SELECTION-SCREEN.
use FM NUMERIC_CHECK
if sy-subrc ne 0.
SET CURSOR FIELD 'P_FIELD'
message e001(ee) with 'Enter numbers'.
endif.
06-01-2007 10:20 AM
Hi,
If you decalre the field with data type as i or num, then it will not allow the character fields to enter.
reward points if it is helpful.
Regards,
Sangeetha.a
06-01-2007 10:22 AM
you can use CA (contains any) to check if there are letters...you can also use SET CURSOR..