2020 Dec 10 3:08 AM
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?
2020 Dec 10 5:24 AM
Hi,
Look into the client handling in CDS Views
https://help.sap.com/doc/abapdocu_752_index_htm/7.52/en-us/abencds_client_handling.htm
2020 Dec 10 9:32 AM
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!