Ansicht
Dokumentation

ABAPFIND_SECTION_OF - FIND SECTION OF

ABAPFIND_SECTION_OF - FIND SECTION OF

BAL_S_LOG - Application Log: Log header data   Vendor Master (General Section)  
This documentation is copyright by SAP AG.
SAP E-Book

FIND, section_of

Short Reference



... SECTION $[OFFSET off$] $[LENGTH len$] OF ...

Effect

This addition restricts the search of the statements FIND and REPLACE in dobj to the section from the offset specified in off with the length specified in len. Without the addition SECTION, the entire data object is searched. With SECTION, at least one of the additions OFFSET or LENGTH must be specified. If an offset is specified without specifying the length, the data object dobj is searched from the offset off to its end. If a length is specified but no offset, the offset 0 is used implicitly.

off and len are numeric expression positions with the operand type i. Apart from one exception, the values of off and len must be greater than or equal to 0 and the section specified by off and len must be within the length of dobj. As an exception, the value of len can also be -1 and this value has the same effect as omitting the addition LENGTH.

Note

The specification -1 for len works in the same way as not using the addition LENGTH by passing a value to the statement.

The FIND statement searches from offset 12 and finds the "html" substring at offset 20.

The FIND statement searches from offset 12 and finds the "html" substring at offset 20.






BAL_S_LOG - Application Log: Log header data   BAL_S_LOG - Application Log: Log header data  
This documentation is copyright by SAP AG.

Length: 2280 Date: 20240623 Time: 194435     sap01-206 ( 48 ms )