SAP interview question

How to find if the substring exists in the given string?