Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

join select from cluster tables

Former Member
0 Likes
801

It seems join select does not function from cluster tables. How to avoid that.(maybe you have an example).

I get message:"You cannot use comparisons with column column references in pool and

cluster tables: "KONV~KNUMV". column references in pool and cluster

tables: "KONV~KNUMV". column references in pool and cluster tables:

"KONV~KNUMV". references in pool a..."

when I use SELECT konvknumv konvkposn konvstunr konvkschl konv~kwert

INTO CORRESPONDING FIELDS OF TABLE S000 from konv

JOIN vbrk ON

vbrkknumv = konvknumv

JOIN VBRP ON

VBRPPOSNR = KONVkposn and

vbrpvbeln = vbrKvbeln

WHERE vbrkfkdat le datumhigh and vbrkfkdat ge

datumlow.

modify zresult from table s000.

4 REPLIES 4
Read only

Former Member
0 Likes
640

<b>Hi

U cant use JOIN in POOLED or cluster tables.

Use FOR ALL ENTRIES IN ITAB for that.

SELECT konv-knumv konv-kposn konv-stunr konv-kschl konv-kwert

INTO CORRESPONDING FIELDS OF TABLE S000 from konv.

select * from vbrk into corresponding fields of table itab for all entries in S000 where knumv = s000-knumv

Like this.

Regs

Manas Ranjan Panda</b>

Message was edited by:

MANAS PANDA

Message was edited by:

MANAS PANDA

Read only

Former Member
0 Likes
640

You cannot use joins on cluster tables.

You will have to select the data individually either by using FOR ALL ENTRIES or SELECT with in the loop.

1. SELECT data from 1 table, SELECT data form 2 table using FOR ALL ENTRIES

2. SELECT data from 1 tab

loop at the internal and get data from the 2nd one.

Regards

Ravi

Note please mark all the helpful answers

Read only

Former Member
0 Likes
640

Don't think Join will work for Cluster tables.

Go for For all entries statement.

Read only

0 Likes
640

hi,

join will not work for pooled and cluster table.

use <b>FOR ALL ENTRIES</b> insted of JOIN

Rgds

Anver