Ansicht
Dokumentation

ABAPFIND_SECTION_OF - FIND SECTION OF

ABAPFIND_SECTION_OF - FIND SECTION OF

BAL Application Log Documentation   ROGBILLS - Synchronize billing plans  
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.






General Data in Customer Master   ROGBILLS - Synchronize billing plans  
This documentation is copyright by SAP AG.

Length: 2280 Date: 20240419 Time: 100110     sap01-206 ( 23 ms )