Get Example source ABAP code based on a different SAP table
Strings Strings are elementary data objects> of variable length. There are text strings> and byte strings>. Like internal tables>, strings are dynamic data objects>. The corresponding built-in ABAP types are string> and xstring >. These are the dynamic equivalent of the data types c> and x>, which define text fields or byte fields of fixed length.
Text strings and text fields contain character strings>. Their common generic type is csequence>.
Byte strings and byte fields contain byte strings>. Their common generic type is xsequence>. Unlike a text field or byte field, the length of a string is not defined statically, but is variable and adapts to the current content of the data object at runtime. For this, dynamic memory management is used internally (see Memory Management for Deep Data Objects>). The initial value of a string is the empty string with length 0. If there is an assignment between strings with the same type, sharing> takes place. BEGIN_SECTION VERSION 5 OUT The maximum size> of a string is determined by the profile parameter> ztta/max_memreq_MB>> and is 2 GB at most. END_SECTION VERSION 5 OUT If an operation with a string> exceeds its maximum size, an exception of the class CX_SY_STRING_SIZE_TOO_LARGE>> occurs and can be handled. In contrast to text fields, trailing blanks are considered in text strings. There is a special text string literal> for text strings. As for byte fields, there is no special literal> for byte strings in general ABAP but there is a typed literal > in ABAP SQL and ABAP CDS. Strings are deep> data types. A structure that contains a string is a deep structure> and cannot be used as a character-like field like a flat structure>. Strings can be stored in data clusters> like internal tables. In the ABAP Dictionary, there are the built-in data types SSTRING>>, STRING>>, and RAWSTRING>> for strings that can also be the types of table fields in database tables, whereby certain restrictions> need to be considered .
ABAP_EXAMPLE_VX5 Inline declaration of a text string carrier_list> for adding a comma-separated list of character-like data. ABEXA 01293 ABAP_EXAMPLE_END