SAP EQUALS STRING EXPR

Get Example source ABAP code based on a different SAP table
  



=, String Expression
• = ABAP_STRING_EXPR

Syntax
result = string_exp.

What does it do?
If a string expression string_exp is specified on the right side of the assignment operator =, its result of type string is calculated and assigned to the left side result.
The following can be specified for result:
A variable that has type string or to whose data type the result can be converted.
An inline declaration DATA(var). The data type of the declared variable var is string.

Example
The first assignment declares a target field of the type string inline and assigns it the chained text '12'. The second assignment converts the chained text '12' to the number 12. DATA(text) = '1' <(> <)><(> <)> '2'.

DATA number TYPE i.
number = 1 <(> <)><(> <)> 2.