SAP NetWeaver AS ABAP Release 740, ©Copyright 2014 SAP AG. All rights reserved.
ABAP Keyword Documentation → ABAP − Reference → Processing External Data → ABAP Database Accesses → Open SQL → Open SQL - Read Accesses → SELECT → SELECT - INTO →SELECT - Assignment Rules
Prerequisites
The following table shows the prerequisites for assigning individual columns of the result set to individual data objects - that is, for all forms of the SELECT statement, except when all columns in a work area wa are read with * and CORRESPONDING FIELDS is not specified at the same time. The table shows which data types of the result set can be assigned to which ABAP data types.
Data Type of Column in Result Set | ABAP Data Type |
CHAR, CLNT, CUKY, LANG, SSTRING, STRING, UNIT, VARC | c, string |
ACCP, NUMC | c, n |
LCHR | c |
RAW, RAWSTRING | x, xstring |
LRAW | x |
DF16_DEC | decfloat16, decfloat34 |
DF16_RAW, DF16_SCL | decfloat16 |
DF34_DEC, DF34_RAW, DF34_SCL | decfloat34 |
CURR, DEC, INT1, INT2, INT4, PREC, QUAN | (b, s), i, p, f |
FLTP | f |
DATS | d |
TIMS | t |
Note
Fields of the types STRING and RAWSTRING (LOBs) from the result set can be assigned to reference variables for LOB handles as well as to strings. The static type of these reference variables must be one of the class system classes or one of the intf system interfaces which support streaming and locators for Open SQL.
Rules
The following rules apply to the assignment procedure:
For the assignment of LOBs to reference variables, refer to Creating LOB Handles.