‎2007 Nov 14 4:08 AM
Hi Forum,
I'm new to abap. I tried passing fields of two tables into a single table using inner join command. But one of the tables is a pooled table so the command "inner join" is not supporting that. How to pass the fields in those two tables into a single table? Kindly help me out.
Rgrds,
Mahathi
‎2007 Nov 14 4:10 AM
Hi,
You can use FOR ALL ENTRIES in such case.
You will get data in two tables. Then LOOP at one internal table and read the another internal table and move the data to third internal table.
Regards,
Atish
‎2007 Nov 14 4:10 AM
Hi,
You can use FOR ALL ENTRIES in such case.
You will get data in two tables. Then LOOP at one internal table and read the another internal table and move the data to third internal table.
Regards,
Atish
‎2007 Nov 14 4:55 AM
Could you please give an example..Suppose two table BSEG & BKPF. out of two BSEG is a spooled one. Now pls tell me how to write code for this.
‎2007 Nov 14 5:00 AM
Hi,
You will have three internal tables
data it_bkpf type table of bkpf.
data it_bseg type table of bseg.
data it_final <define the fields from both the table which you want.
select * from bkpf into it_bkpf.....
if it_bppf is not initial.
select * from bseg into it_bseg for all entries in it_bkpf where....
endif.
loop at it_bkpf.
loop at it_bseg where..
move data here in final table
endloop
endloop
just a rough idea
.
Regards,
Atish
‎2007 Nov 14 4:12 AM
used for all entries.
else.
loop at itab into wa.
read table itab into wa with key field wa-field.
endloop.
‎2007 Nov 14 4:54 AM
Could you please give an example..Suppose two table BSEG & BKPF. out of two BSEG is a spooled one. Now pls tell me who to write code for this.
‎2007 Nov 14 4:55 AM
Could you please give an example..Suppose two table BSEG & BKPF. out of two BSEG is a spooled one. Now pls tell me how to write code for this.
‎2007 Nov 14 4:39 AM