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 cluster table

Former Member
0 Likes
3,130

Hi

I would like to make a joint with a table cluster (bseg) but the system put an error compilation. what a solution? Thank you for answer.

Even the creation of a view does not make with the tables cluster.

7 REPLIES 7
Read only

Former Member
0 Likes
1,156

Hi,

You cannot write join for cluster tables like BSEG..Instead you can use FOR ALL ENTRIES options..

EX..

DATA: T_BKPF TYPE STANDARD TABLE OF BKPF,

T_BSEG TYPE STANDARD TABLE OF BSEG.

SELECT * FROM BKPF

INTO TABLE T_BKPF

WHERE....

IF NOT T_BKPF IS INITIAL.

SELECT * FROM BSEG

INTO TABLE T_BSEG

FOR ALL ENTRIES IN T_BKPF

WHERE BUKRS = T_BKPF-BUKRS

AND BELNR = T_BKPF-BELNR

AND GJAHR = T_BKPF-GJAHR..

ENDIF.

Thanks,

Naren

Read only

Former Member
0 Likes
1,156

You cannot join a cluster table.

Read only

Former Member
0 Likes
1,156

hi,

Joins donot work on cluster tables use FOR ALL ENTRIES instead of joins..

Regards,

Santosh

Read only

Former Member
0 Likes
1,156

Do as Written below :

DATA: IT_BKPF TYPE STANDARD TABLE OF BKPF,

IT_BSEG TYPE STANDARD TABLE OF BSEG.

SELECT * FROM BKPF

INTO TABLE IT_BKPF

WHERE ...conditions

IF NOT IT_BKPF[] IS INITIAL.

SELECT * FROM BSEG

INTO TABLE IT_BSEG

FOR ALL ENTRIES IN IT_BKPF

WHERE BUKRS = IT_BKPF-BUKRS AND

BELNR = IT_BKPF-BELNR AND

GJAHR = IT_BKPF-GJAHR.

ENDIF.

Read only

0 Likes
1,156

yes its good. Thanks for all your answers.

Read only

Former Member
0 Likes
1,156

Hi,

You can not use joint for cluster table BSEG.

Have you looked to use logical database (SE36)?

Regards,

Ferry Lianto

Read only

Former Member
0 Likes
1,156

Hi,

inner join cant be used on cluster tables

and views whic is alos simulation of inner join.

use all entries logic to get values from bseg

select * rrom bsef in into table i_bseg

for all entries in i_bkpf

where ...

Regards

amole