sapdev logo background
sapdev logo sapdev logo
Comments

SAP EQUALS STRING EXPR documentation, setup help and example usage



Return to SAP documentation index



= , String Expression

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.
    Documentation extract taken from SAP system, � Copyright SAP AG. All rights reserved




    EQUALS_RETURN_VALUES
    ERROR_HANDLING_GUIDL




    comments powered by Disqus