SAP Message WL490 - Operation '&' between data type '&' and '&' not allowed

Diagnosis
You have tried to compare two container elements or expressions or linkthem in an arithmetic operation (addition etc.). However, the selectedoperation is not allowed or not worthwhile on the underlying datatypes.
Example:

  • numbers cannot be compared with objects

  • character strings cannot be added to numbers

  • the result of an operation must be compatible with the operands used

  • assignment to a constant is not possible

  • The following abbreviations are used in the message:
    l,,Integers (ABAP Dictionary data type Int1, Int2,Int4)
    P,,Packed numbers with decimal places and signs (Dec, Packed
    )
    N,,Character string with numeric values (Numc)
    C,,Character string (Character)
    D,,Date (Date)
    T,,Time (Time)
    O o,,Objects from the Business Object Repository

    Procedure
    Only use elements or expressions which can be linked with the selectedoperation, that is only define the operation between compatible ABAPdata types or between object types.

    • You can only calculate using numbers (type I, P).

    • Exception: the following operations are permitted with date/time:
      'Date - Date' returns an integer
      'Date - number' returns a date
      'Time - number' returns a time
      'Time - Time' returns an integer
      • You can only compare numbers with numbers (type I, P, N), date with
      • date, time with time, character-based types (C, N). Objects can becompared to see whether they are the same (o).
        • The type of the result of an arithmetic operation or an assignment must
        • be compatible with the type of the operand(s).
          • Hexadecimal numbers (X, RAW) and floating point numbers (F, FLTP) are
          • not supported in container operations at present. If necessary, defineobject methods to implement operations with these types in a program.
            Further information can be found in the online help in the ABAP editoron the ABAP key words Data and Move.