on 10-15-2007 7:17 PM
hi folks,
I have this simple one... but could not find the right answer
data: w_caseno(11) type c.
w_caseno = ' 023.456.7890 '.
SEARCH w_caseno for ' . '.
when I checked this, it gave the value as '4'.
the code did not work. also I cannot change the field to string data type. It should take the character type too. Is'nt it?
Any thoughts??
Thanks
SK
How can I correct this?
Thanks,
SK
Hello
you got value 4 in which field SY-subrc or SY-FDPOS .
if SY-FDPOS is 4 then i.e the offset where it finds the '.' .
if sy-subrc is 4 then your search was unsuccesful.
try like:
data : w_str type string.
w_str = w_caseno.
SEARCH w_str for ' . '.
& Check sy-subrc should be 0 & SY-FDPOS shold be 4 (the offset from starting where it finds the '.')
reward points if helpful
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
107 | |
12 | |
11 | |
6 | |
5 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.