2007 Feb 20 10:29 AM
Hi all,
I'm using function
FIND `##` IN l_text MATCH OFFSET l_off.
to search the pattern '##' in string l_text. But the function fails and returns sy-subrc = 4. The pattern '##' is definitely included in l_text. What am I doing wrong?
Regards,
Dominik
Hi all,
I'm using function
FIND `##` IN l_text MATCH OFFSET l_off.
to search the pattern '##' in string l_text. But the function fails and returns sy-subrc = 4. The pattern '##' is definitely included in l_text. What am I doing wrong?
Regards,
Dominik
2007 Feb 20 10:31 AM
2007 Feb 20 10:43 AM
data l_text(20).
data d1 type i.
l_text = 'amit##tyagi'.
FIND '##' IN l_text MATCH OFFSET d1.
if sy-subrc = 0.
write d1.
else.
write ' not found'.
endif.
2007 Feb 20 10:36 AM
2007 Feb 20 10:38 AM
The had ## you see in not ##. it must be an end of line character.
2007 Feb 20 10:44 AM
Hi,
I tried
FIND `##` IN l_text MATCH OFFSET l_off IN CHARACTER MODE.
It doesn't work.
I'm sure it's an end-of-line-character. But how can I find 2 end-of-line-characters in a text if the solution above doesn't work?
Best regards,
Dominik
2007 Feb 20 10:39 AM
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |