Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 2069

Re: issue with find operation when searching character strings

$
0
0

No problem, you can go for this,

V_VALUE  ' ABC DEFG HIJK JKLM NOPQ RST'.

V_SEARCH = 'RST'.

 

CONCATENATE '\b' V_SEARCH '\b' INTO V_SEARCH.

FIND REGEX V_SEARCH IN V_VALUE.

 

IF SY-SUBRC = 0.

  WRITE 'matched'.

ENDIF.

OR

FIND REGEX '\b' && V_SEARCH && '\b' IN V_VALUE.

 

Hope this helps.


Viewing all articles
Browse latest Browse all 2069

Latest Images

Trending Articles



Latest Images