‎2008 Aug 27 8:04 AM
Hi,
can you give me an example to join between a cluster table + transparent table.
Best regards.
‎2008 Aug 27 8:07 AM
Cluster tables cannot be used in an ABAP join. For this reason, you have to select the key from the transparent table first and then select the cluster table with 'for all entries' syntax.
You may also check if a logical database is available by se36.
‎2008 Aug 27 8:06 AM
Hi,
Join doesnt work on cluster table use FOR ALL ENTRIES for that
refer below code
SELECT bukrs
zuonr
gjahr
belnr
budat
bldat
blart
shkzg
dmbtr
xref3
FROM bsis
INTO CORRESPONDING FIELDS OF TABLE it_bsis
WHERE bukrs EQ p_bukrs
AND hkont EQ p_hkont
AND blart IN s_blart
AND budat IN s_budat.
IF NOT it_bsis[] IS INITIAL.
SELECT belnr
gjahr
awkey
FROM bkpf
INTO TABLE it_bkpf
FOR ALL ENTRIES IN it_bsis
WHERE bukrs EQ it_bsis-bukrs
AND belnr EQ it_bsis-belnr
AND gjahr EQ it_bsis-gjahr.
IF sy-subrc EQ 0.
SORT it_bkpf BY belnr gjahr.
ENDIF.
ENDIF.
Regards,
Prashant
‎2008 Aug 27 8:07 AM
Cluster tables cannot be used in an ABAP join. For this reason, you have to select the key from the transparent table first and then select the cluster table with 'for all entries' syntax.
You may also check if a logical database is available by se36.