SAP NEWS-610-STRINGS
Get Example source ABAP code based on a different SAP table
The following new functions are available for character strings in Release 6.10:
1 Establish the length and number of characters
2 New statements
3 Faster access to strings
4 Support for strings in the database
5 Definition of string constants
6 Introduction of text string literals
ABAP_MODIFICATION_1 Establishing the length and number of characters
The function
ABAP_MODIFICATION_2 New statements
There is a new statement,
ABAP_MODIFICATION_3 Faster access to strings
Offset/length access is now the fastest way to process a string character by character. This technique is also faster than searching in a field of type C that is assigned to a field symbol.
ABAP_MODIFICATION_4 Support for strings in the database
From Release 6.10, character strings and binary data can be stored in database columns of types
When working with strings, some restrictions have to be observed. Further details are available
ABAP_MODIFICATION_5 Defining string constants
Strings can now also be defined as
DATA str2 TYPE string VALUE 'XYZ'.
str2 = str1.
str1 = str2. 'Syntax error
WRITE: / str1, str2.
ABAP_MODIFICATION_6 Introduction of text string literals
str2 TYPE string VALUE `ABC `,
cnt1 TYPE i,
cnt2 TYPE i.
cnt1 = strlen( str1 ).
cnt2 = strlen( str2 ).
WRITE: / cnt1, cnt2.
The length for the string