SAP StackFICOHRMMSDPMPSABAPNetWeaverTablesTcodes ☰MENU

SAP ABAP FIND statement

FIND statement is used for finding occurrences of a pattern within a string. It can also be used for finding the string pattern within an internal table.

Syntax

FIND <p> IN [SECTION OFFSET <off> LENGTH <len> OF] <text>

[IGNORING CASE|RESPECTING CASE]

[IN BYTE MODE|IN CHARACTER MODE]

[MATCH OFFSET <o>] [MATCH LENGTH <l>].

 

FIND statement search for the specified pattern (<p>) within the field (<text>).

Additions used with FIND statement

The main runtime errors for FIND statement for a field string

FIND string in an internal table

Syntax:

FIND [{FIRST OCCURRENCE}|{ALL OCCURRENCES} OF] pattern

IN TABLE itab [table_range]

[IN {BYTE|CHARACTER} MODE]

[{RESPECTING|IGNORING} CASE]

[MATCH COUNT  mcnt]

{ {[MATCH LINE   mlin]

[MATCH OFFSET moff]

[MATCH LENGTH mlen]}

| [RESULTS result_tab|result_wa] }

[SUBMATCHES s1 s2 …].

 

The main runtime errors for FIND statement for an internal table

 

sy-subrc values for FIND statement

Also Read : View Other ABAP Keywords & Syntax -> ABAP Transaction codes

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.
©2024 sapstack.com