Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

FIND with MATCH OFFSET not working

Hi,

I have a statement:

FIND '/' IN <ls_data_package>-/bic/zbib_sysn MATCH OFFSET off2.

this works in all the case except for when <ls_data_package>-/bic/zbib_sysn = SSULTANA-VMC/.

(i.e. when /bic/zbib_sysn = USERID-VMC/, here SSULTANA is the user ID)

*In this case off2 = .

Value of sy-subrc is 0 after this statement is executed

Can some one please point out what I am doing wrong.

Thank you,

CD

Edited by: CSD . on Sep 26, 2008 9:53 PM

Tags:
replied

>FIND with MATCH OFFSET not working

Most unlikely. More likely is that it isn't doing what you think it should be doing. Or you're using it incorrectly!

I can't really follow what your problem is. I assume you mean that you are getting off2 with value 0, when /bic/zbib_sysn contains USERID-VMC/

Can you be a little clearer in what the issue is?

DATA: off2 TYPE i.
FIND '/' IN 'this string /' MATCH OFFSET off2.
WRITE: / sy-subrc, off2.

This little program returns 0 and 12

matt

0 View this answer in context

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question