Skip to Content
0
Former Member
Dec 22, 2011 at 07:49 PM

Problem in using find command - Need Pointers

30 Views

Hi Experts,

I am using FIND Command to search for a string in fields of internal table.

Example:

Search string : test

Code

Loop at itab into wa.

wa = 'test record found or not '.

find all occurrences of 'test' in wa. (This gives me correct result)

but in scenario like this:

wa = 'testing is in progress'

find all occurrences of 'test' in wa.

it gives me a sy-subrc 0 as word 'test' is found in word 'testing'.

i would like to ignore this record for further processing.

Any suggestions on what should i do to search for the exact keword in the string ?

Thanks

Bhanu