SAP StackFICOHRMMSDPMPSABAPNetWeaverTablesTcodes ☰MENU

ABAP SEARCH statement to search in a string or internal table

How to do search for a string on another string or internal table in ABAP programming. Here is the keyword for that SEARCH. It is really a useful keyword in ABAP provides any type of search with simple additions in the statement. If the search is successful the system field SY-SUBRC value will be zero ( if failure it will be 4 ). We can do the search in a string or internal table with search term.

Basic Syntax

Getting the position of search term

Additions used with this statement are

See a sample source code and output with SEARCH statement
ABAP search string statement

SAP ALECRMSCMSRMSAP Solutions SAP ReferencesSAP BasicsPP ModuleWMSAP Partners
HomeContact & Privacy PolicyTwitter
All of the product names here are trademarks of their respective companies. The site sapstack.com is not affiliated with SAP AG.
©2019 sapstack.com