abaplint: Statement does not exist in ABAPv755(or a parser error), "SELECT"(parser_error)
The following SELECT statement is valid:
CONSTANTS: lc_name1(5) TYPE c VALUE 'name1',
lc_name2(5) TYPE c VALUE 'name2',
lc_name3(5) TYPE c VALUE 'name3'.
SELECT vbeln, vbtyp,
CASE
WHEN auart = 'ZAMA' THEN @lc_name1
WHEN auart = 'ZACR' THEN @lc_name2
ELSE @lc_name3
END AS ernam
FROM vbak
INTO @DATA(ls_vbak2).
ENDSELECT.
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 15 (8 by maintainers)
Commits related to this issue
- SQL CASE, #1747 — committed to abaplint/abaplint by larshp 3 years ago
- 2.66.8, scope end position, SELECT CASE (#1749) * update deps * set scope end positions, #808 * minor changes * SQL CASE, #1747 * 2.66.8 — committed to abaplint/abaplint by larshp 3 years ago
You could alternatively just select into a table: