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

ABAP CDS view join condition error

0 Likes
6,905

Hello,

I have issue in ABAP CDS view while joining ACCP data types.

Working on CDS views to create join with 2 tables(Eg : DKKOP join DSKOP) and gives syntax error as

'Data type conflict in a selection condition for DKKOP-BUPER'.

option is to create DB view by joining 2 tables.

I guess CAST cannot be used in the JOIN condition.

Please help me how to fix this issue.

define view ZCDS_DKKOP as select from dkkop
 join dskop
    on dkkop.koart = dskop.koart
    and dkkop.bukrs = dskop.bukrs
    and dkkop.buper = dskop.buper
     {
    dkkop.hkont
}

Thanks,

Venkat

Hello,

I have issue in ABAP CDS view while joining ACCP data types.

Working on CDS views to create join with 2 tables(Eg : DKKOP join DSKOP) and gives syntax error as

'Data type conflict in a selection condition for DKKOP-BUPER'.

option is to create DB view by joining 2 tables.

I guess CAST cannot be used in the JOIN condition.

Please help me how to fix this issue.

define view ZCDS_DKKOP as select from dkkop
 join dskop
    on dkkop.koart = dskop.koart
    and dkkop.bukrs = dskop.bukrs
    and dkkop.buper = dskop.buper
     {
    dkkop.hkont
}

Thanks,

Venkat

3 REPLIES 3
Read only

Florian
SAP Champion
SAP Champion
0 Likes
4,023

If you do not post your coding and joins there won't be help. Either here or elsewhere.

Read only

former_member1716
Active Contributor
0 Likes
4,023

venkat.petru,

Recommend you to go through the below thread, the same issue has been discussed already in the forum.

THREAD

Regards!

Read only

Sathya_Gunasekaran
Contributor
0 Likes
4,023

Hi,

Your code complies and works fine for me!

Sathya