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

CDS View with Join length mismatch

arsul_parshuram
Participant
0 Kudos
4,395

Hi Dear Friends,

I am trying to create CDS view with below tables and joins.

Tables:

/scdl/db_refdoc and LIPS

my inner join conditions

inner join lips as li on li.vbeln = refdoc.refdocno and li.posnr = refdoc.refitemno

I am facing below error

ABAP 7.5

Kindly advice me further on above error. My analysis as below.

1-> Functions are not supported while join condition's in CDS.

2-> Offset is not working while join conditions in CDS.

3-> Created another CDS view with Item as Alias by using CAST with REFITEM_PO as 6 NUMC, but after joining with new created field no data in result set.

4-> CDS Table function not tried yet..

Do we have any solution on above conditions...

Regards,

Arsul

3 REPLIES 3
Read only

retired_member
Product and Topic Expert
Product and Topic Expert
0 Kudos
1,997
Read only

diwaneamit
Participant
0 Kudos
1,997

Write a subselect query with string function somewhat like below:

inner join lips as li on li.vbeln = refdoc.refdocno and li.posnr IN (select right(refitemno_po,6) from /scdl/db_refdoc where <write down your condition>).

Regards,

Amit Diwane

Read only

chalapareddi2
Explorer
0 Kudos
1,500

It is working with Table Function