Ansicht
Dokumentation

STRING_LENGTH - (Onsolete) Calculate the length of a string

STRING_LENGTH - (Onsolete) Calculate the length of a string

ROGBILLS - Synchronize billing plans   PERFORM Short Reference  
This documentation is copyright by SAP AG.
SAP E-Book
Functionality

This function module calculates the number of characters in a string. Leading blanks are also counted, trailing blanks are not.

Examples

' a b ' has length 4.

Sample call:

DATA: LEN TYPE I.

CALL FUNCTION 'STRING_LENGTH'

EXPORTING STRING = ' abcdefg '

IMPORTING LENGTH = LEN.

Note

The ABAP/4 keyword COMPUTE ... = STRLEN(...) provides the same functionality as the function module. Please refer to the ABAP/4 documentation for COMPUTE.

The ABAP/4 language element provides better performance than the function module call.

The call was retained to ensure compatibility with future releases.





Parameters

LENGTH
STRING

Exceptions

Function Group

CSTR

SUBST_MERGE_LIST - merge external lists to one complete list with #if... logic for R3up   CPI1466 during Backup  
This documentation is copyright by SAP AG.

Length: 1283 Date: 20240523 Time: 100547     sap01-206 ( 17 ms )