2007 Jan 25 1:26 AM
when i use BKPF and BSEG to join together, i've got an exception.
"For pooled tables, cluster tables and projection views, JOIN is not allowed: "BSEG""
Why i can't perform join table. Thanks.
SELECT ... FROM BKPF AS T1
INNER JOIN BSEG AS T2
ON T1BUKRS = T2BUKRS AND
T1BELNR = T2BELNR AND
T1GJAHR = T2GJAHR
when i use BKPF and BSEG to join together, i've got an exception.
"For pooled tables, cluster tables and projection views, JOIN is not allowed: "BSEG""
Why i can't perform join table. Thanks.
SELECT ... FROM BKPF AS T1
INNER JOIN BSEG AS T2
ON T1BUKRS = T2BUKRS AND
T1BELNR = T2BELNR AND
T1GJAHR = T2GJAHR
2007 Jan 25 1:27 AM
2007 Jan 25 1:47 AM
<i>That's right, you can use INNER JOIN on cluster/pooled tables</i>
Rich - You said "can" instead of "cant"
Santosh
2007 Jan 25 1:48 AM
2007 Jan 25 1:44 AM
BSEG is a cluster table consisting data from following tables
BSID,BSAD,BSIS,BSAS,BSIK,BSAK which all are transperent tables.
Cluster Table : Cluster tables are logical tables that must be assigned to a table cluster when they are defined. Cluster tables can be used to strore control data. They can also be used to store temporary data or texts, such as documentation.
For more info, refer below link:
Thanks,
Santosh
2007 Jan 25 1:58 AM
Hi Portfolio
As our friends have already explained, we can not join BKPF and BSEG tables.
The general approach would be using <b>FOR ALL ENTRIES</b>:
select bukrs belne gjahr .....
into table it_bkpf
from bkpf
where <cond>.
select belnr buzei dmbtr ....
into table it_bseg
for all entries in it_bkpf
from bseg
where bukrs = it_bkpf-bukrs
and belnr = it_bkpf-belnr
and gjahr = it_bkpf-gjahr
....Kind Regards
Eswar
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |