Hi all,
Being new to abap I am pondering over the difference in SELECT statement in MPP and Report Program.
I am using SELECT Statement:
SELECT SINGLE * FROM Ztable where A1 = wa_itab-A1 AND A2 = wa_itab-A2 AND K1 = wa_itab-K1.
IF sy-subrc = 4.
----------------------
.................
................
ENDIF.
In MPP the above syntax works but why doesn't the above statement works in Report Program. I get errors like.
" A target area must be defined either explicitly with INTO clause or implicitly with a TABLES statement."
Purpose: The purpose of the above syntax in MPP and Report Progg is to do a check if the data of itab exists in DB table: Ztable or not.
Cab any1 help in understaing the difference in use of SELECT in MPP and in Repost Progg and Why?
Regards
Chandan