Application Development 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: 

Client Handling in CDS views

0 Kudos

Hi Experts,

Using Calculation view as the external source for the designed CDS.

Trying to handle the client, used @ClientHandling.algorithm: #SESSION_VARIABLE

and used a parameter
@Consumption.hidden: true
@Environment.systemField: #CLIENT
P_Mandt : symandt

But, I am getting results from multiple clients. Can someone help me on this.

4 REPLIES 4

nabheetscn
Active Contributor
0 Kudos

Can you please provide more detail the exact code and information about your calculation view?

natiele_bohn
Advisor
Advisor

Hi,

You might take a look on the ABAP CDS Documentation:

https://help.sap.com/doc/abapdocu_750_index_htm/7.50/en-US/abencds_f1_session_variable.htm

Here there is an example on how to use the $session expresssion to call results from only one client.

Thanks,

Natiele

0 Kudos

Hi,

Try to use the annotation @ClientDependent: true and check with the results.

0 Kudos

Thanks all.

Fixed using where condition at Basic view itself.
where _ABC.sapclient=$session.client