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 Views

Former Member
0 Likes
1,650

When i am creating basic view taking any table ,suppose mara and adding three fields which are non key after executing this basic view i am getting records of these three fields only.

but when i create composite view adding my basic view in it and performing some operations like string operations or performing parameterized cds views and when executing this composite view its showing me mandt field along with my fields and operations output.

some times its showing mandt field and sometimes not. why its happening this like?

When i am creating basic view taking any table ,suppose mara and adding three fields which are non key after executing this basic view i am getting records of these three fields only.

but when i create composite view adding my basic view in it and performing some operations like string operations or performing parameterized cds views and when executing this composite view its showing me mandt field along with my fields and operations output.

some times its showing mandt field and sometimes not. why its happening this like?

2 REPLIES 2
Read only

BhargavaTanguturi
Active Participant
0 Likes
1,294
Read only

former_member1716
Active Contributor
0 Likes
1,294

Hello varun1995,

Not sure if you have maintained the annotation @ClientHandling.type in your CDS, in case you have not maintained then the value #INHERITED is applied by default. This means that depends upon the Data sources and fields used in your CDS the client handling is handled.

Recommend you to check the backend CDS View created in SE16N/SE11 transaction, you will find the client field for the above scenario.

In your scenario where you specify it as a composite view, I hope you would using client in then Join condition. If possible can you give us the code you have used.

You can also go through the BLOG for better understading.

Regards!