Hi,
are you searching for string operations?
check this help dokus:
-Comparing Strings - BC - ABAP Programming - SAP Library
-Finding Character Strings - BC - ABAP Programming - SAP Library
go for CS as mentioned above, if you need to know how often the string was found go for search-string
Hint:
you dont need to check the sy-subrc in above scenario
regards
Stefan Seeburger