Help with itab in a Query.
I need a query that needs the data of the "A004 table pool", but the query doesn't accept this kind of table nor ITAB tables because they are not defined in the BAP dictionary.
How can a mix ITABS or TABLE POOL in a SELECT Statement...?
Thanks on advance.
I think you have delcared t_a004 as a structure not internal table.. use occurs 0 addition at the delcarion.
Here i am giving you the code with my understanding that you want to select data from a004 table and put it in your ztable.
data : i_a004 like standard table of a004.
select * from a004 into table i_a004.
if sy-subrc eq 0.
insert into <ZTABLE> from table i_a004.