‎2008 Feb 18 9:11 AM
hi experts,
the users here sometines by mistake upload wrong material number. now i want to make a velidation so that it allows just character types . like there should be nospace ( leading , trailing, in between), or any special character ( leading , trailing, in between).
can anyone please tell me the same.
thanx in advance
‎2008 Feb 18 9:19 AM
Hi,
Use the following code
AT SELECTION-SCREEN on S_MATNR.
DATA v_l_matnr TYPE mara-matnr.
CLEAR v_l_matnr.
* Fetch Functional Location
SELECT SINGLE matnr FROM mara
INTO v_l_matnr
WHERE matnr IN s_matnr .
IF sy-subrc NE 0.
'Error Message'
ENDIF.REWARD POINTS IF USEFUL
‎2008 Feb 18 9:21 AM
Check u r previous...PLZ dont post duplicate QNS..its confusing..
I have given the answer for the previous one