在使用SELECT SINGLE FROM ... 时,如:SELECT SINGLE * FROM MARA WHERE MATNR = MATERIAL.
报错提示"A target area must be declared either explicitly with an INTO clause or implicitly with a TABLES statement".
原因是在之前的TABLES: .... 声明中没有声明取数的表,声明后会给该表生成表头行才能使用取数语句。
不过建议自己定义一个表头行,例如:
DATA: LS_MARA TYPE MARA.
SELECT SINGLE * FROM MARA
INTO LS_MARA
WHERE MATNR = MATERIAL.