Skip to Content

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

FIND with MATCH OFFSET not working


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,


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

Former Member

>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


0 View this answer in context

Helpful Answer

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