‎2011 Jan 31 9:50 AM
Hi Experts,
I want to match the pattern '/SMB/'. I tried using if lv_str CP '/SMB/' . But even-though lv_str variable has a string with same pattern, if condition is not getting executed. Please help.
Thanks in Advance.
Cheers
Vinod
‎2011 Jan 31 10:07 AM
Hi Vinod.
CP compares the wholle string, maybe you have to look for
'/SMB/' or '/SMB/*'
Regards,
Klaus
‎2011 Jan 31 10:35 AM
Try composing a suitable REGular EXpression and use that. See keyword "FIND".
‎2011 Jan 31 11:34 AM
‎2011 Jan 31 12:28 PM
Hi Vinod,
consider the use of REGEX option in FIND/REPLACE command. See the REGEX documentation.
Can you give any example for a string that should but does not match the pattern '/SMB*/' ?
Check the documentation [log_exp - Comparison Operators for Character-Like Data Types|http://help.sap.com/abapdocu_702/en/abenlogexp_strings.htm]. This may help.
Thanks and regards
Clemens Li