<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: calling CDS view with input parameters using associations in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-cds-view-with-input-parameters-using-associations/m-p/11728920#M1948693</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Puneet,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you trying to use path expression in Open SQL to access the associated CDS view? If yes, you cannot pass input parameters to the associated CDS view.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;No actual parameters can be passed to input parameters of the CDS views of associations. There are no optional input parameters, which means that these views cannot currently be used in Open SQL path expressions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Panneer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 30 Jun 2016 12:50:27 GMT</pubDate>
    <dc:creator>Panneer</dc:creator>
    <dc:date>2016-06-30T12:50:27Z</dc:date>
    <item>
      <title>calling CDS view with input parameters using associations</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-cds-view-with-input-parameters-using-associations/m-p/11728918#M1948691</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a requirement to call an CDS view with input parameters using associations.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I understand it is possible to call a CDS view with input paramaters using below syntax :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT FROM TestView(startDate = '20150101')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But how to write association for CDS view with input paramaters?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Puneet Jain&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jun 2016 07:47:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-cds-view-with-input-parameters-using-associations/m-p/11728918#M1948691</guid>
      <dc:creator>former_member292563</dc:creator>
      <dc:date>2016-06-27T07:47:32Z</dc:date>
    </item>
    <item>
      <title>Re: calling CDS view with input parameters using associations</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-cds-view-with-input-parameters-using-associations/m-p/11728919#M1948692</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Punit,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please check the below code and try to modify as per your requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;define view zcds_p_assc&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; with parameters p_distance_l:S_DISTANCE,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; p_distance_o:S_DISTANCE,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; p_unit:S_DISTID&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; as select from spfli&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; association [1..1] to scarr as spfli_scarr&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; on $projection.carrid = spfli_scarr.carrid&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; { key spfli.carrid,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; key spfli.connid,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; spfli_scarr.carrname,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; spfli.cityfrom,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; spfli.cityto,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; spfli.distance,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; spfli.distid }&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; where spfli.distid = :p_unit and&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; spfli.distance between :p_distance_l&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; and :p_distance_o;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Lokeswar.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jun 2016 12:13:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-cds-view-with-input-parameters-using-associations/m-p/11728919#M1948692</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-06-30T12:13:28Z</dc:date>
    </item>
    <item>
      <title>Re: calling CDS view with input parameters using associations</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-cds-view-with-input-parameters-using-associations/m-p/11728920#M1948693</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Puneet,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you trying to use path expression in Open SQL to access the associated CDS view? If yes, you cannot pass input parameters to the associated CDS view.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;No actual parameters can be passed to input parameters of the CDS views of associations. There are no optional input parameters, which means that these views cannot currently be used in Open SQL path expressions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Panneer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jun 2016 12:50:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-cds-view-with-input-parameters-using-associations/m-p/11728920#M1948693</guid>
      <dc:creator>Panneer</dc:creator>
      <dc:date>2016-06-30T12:50:27Z</dc:date>
    </item>
    <item>
      <title>Re: calling CDS view with input parameters using associations</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-cds-view-with-input-parameters-using-associations/m-p/11728921#M1948694</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Panneer,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I got below example on how to use associations on CDS with input parameters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit; background-position: initial;"&gt;Example :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit; background-position: initial;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; text-decoration: underline; background-position: initial;"&gt;CDS with Input Paramater :&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit; background-position: initial;"&gt;define view ZCDSWithInputParams&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit; background-position: initial;"&gt;&amp;nbsp; with parameters&amp;nbsp; startDate : abap.dats , endDate : abap.dats&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit; background-position: initial;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; as select from salesOrder&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit; background-position: initial;"&gt;{&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit; background-position: initial;"&gt;key node as SalesOrderItem,&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit; background-position: initial;"&gt;amount&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit; background-position: initial;"&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit; background-position: initial;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; text-decoration: underline; background-position: initial;"&gt;Calling CDS with input parameters using association :&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit; background-position: initial;"&gt;define view ZCDSTest&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit; background-position: initial;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; as select from ZCDSTest2&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit; background-position: initial;"&gt;association[0..1] to &lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit; background-position: initial;"&gt;ZCDSWithInputParams as _mySales on $projection.node = &lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit; background-position: initial;"&gt;_mySales.node&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit; background-position: initial;"&gt;{&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit; background-position: initial;"&gt;_mySales(startDate : '20150101' , endDate : '20160101').&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit; background-position: initial;"&gt;SalesOrderItem&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit; background-position: initial;"&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit; background-position: initial;"&gt;Thanks,&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit; background-position: initial;"&gt;Puneet Jain&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://answers.sap.com/message-abuse!input.jspa?objectID=16812903&amp;amp;objectType=2" style="font-weight: inherit; font-style: inherit; font-size: 10.8px; font-family: inherit; color: #3778c7; background-position: initial;"&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Jul 2016 07:25:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-cds-view-with-input-parameters-using-associations/m-p/11728921#M1948694</guid>
      <dc:creator>former_member292563</dc:creator>
      <dc:date>2016-07-01T07:25:08Z</dc:date>
    </item>
    <item>
      <title>Re: calling CDS view with input parameters using associations</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-cds-view-with-input-parameters-using-associations/m-p/11728922#M1948695</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Puneet,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the code example. &lt;/P&gt;&lt;P&gt;Sure. it is possible to call the CDS via association from CDS itself.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;The restriction currently is only from Open SQL as I mentioned above.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you think you have got the answer, please mark appropriately.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Panneer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Jul 2016 11:03:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-cds-view-with-input-parameters-using-associations/m-p/11728922#M1948695</guid>
      <dc:creator>Panneer</dc:creator>
      <dc:date>2016-07-01T11:03:21Z</dc:date>
    </item>
    <item>
      <title>Re: calling CDS view with input parameters using associations</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-cds-view-with-input-parameters-using-associations/m-p/11728923#M1948696</link>
      <description>&lt;P&gt;Hi Puneet,&lt;/P&gt;&lt;P&gt;There is way you can use, As Parameters
can’t be directly used within the definition on Associated targets. Instead you
can expose fields in the associated target CDS view as shown in below example.&lt;/P&gt;&lt;P&gt;CDS with Parameter (to be used as association target)&lt;/P&gt;&lt;P&gt;@AbapCatalog.sqlViewName:'ZYX_SQL'&lt;/P&gt;&lt;P&gt;@AbapCatalog.compiler.compareFilter:true&lt;/P&gt;&lt;P&gt;@AbapCatalog.preserveKey:true&lt;/P&gt;&lt;P&gt;@AccessControl.authorizationCheck:#CHECK&lt;/P&gt;&lt;P&gt;@EndUserText.label:'Sales Order Item with Parameters'&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;define&lt;/STRONG&gt;&lt;STRONG&gt;view&lt;/STRONG&gt; ZC_ZYX&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;with&lt;/STRONG&gt;&lt;STRONG&gt;parameters&lt;/STRONG&gt; p_matkl &lt;STRONG&gt;:&lt;/STRONG&gt; &lt;EM&gt;matkl&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;as&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;select&lt;/STRONG&gt;&lt;STRONG&gt;from&lt;/STRONG&gt; vbap &lt;STRONG&gt;{&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;key&lt;/STRONG&gt;  vbeln&lt;STRONG&gt;,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;key&lt;/STRONG&gt;  posnr&lt;STRONG&gt;,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt; matnr&lt;STRONG&gt;,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;  matkl&lt;STRONG&gt;,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;  zmeng&lt;STRONG&gt;,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;  meins  &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;}&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;where&lt;/STRONG&gt; matkl &lt;STRONG&gt;=&lt;/STRONG&gt;&lt;STRONG&gt;:&lt;/STRONG&gt;p_matkl&lt;/P&gt;&lt;P&gt;Then Final CDS view where we want to use in association -- &lt;/P&gt;&lt;P&gt;@AbapCatalog.sqlViewName:'ZZZYX'&lt;/P&gt;&lt;P&gt;@AbapCatalog.compiler.compareFilter:true&lt;/P&gt;&lt;P&gt;@AbapCatalog.preserveKey:true&lt;/P&gt;&lt;P&gt;@AccessControl.authorizationCheck:#CHECK&lt;/P&gt;&lt;P&gt;@OData.publish:true&lt;/P&gt;&lt;P&gt;@EndUserText.label:&lt;U&gt;'Sales Order Header with Associations
&amp;amp; Parameters'&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;define&lt;/STRONG&gt;&lt;STRONG&gt;view&lt;/STRONG&gt; ZC_ZZYX&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;with&lt;/STRONG&gt;&lt;STRONG&gt;parameters&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt; p_matkl1 &lt;STRONG&gt;:&lt;/STRONG&gt; &lt;EM&gt;matkl&lt;/EM&gt;&lt;STRONG&gt;,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;  p_vbeln1 &lt;STRONG&gt;:&lt;/STRONG&gt; &lt;EM&gt;vbeln&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;as&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;select&lt;/STRONG&gt;&lt;STRONG&gt;from&lt;/STRONG&gt; vbak&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;association&lt;/STRONG&gt;&lt;STRONG&gt;[&lt;/STRONG&gt;0&lt;STRONG&gt;..*]&lt;/STRONG&gt;&lt;STRONG&gt;to&lt;/STRONG&gt; ZC_ZYX &lt;STRONG&gt;as&lt;/STRONG&gt; _item&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;on&lt;/STRONG&gt;&lt;STRONG&gt;$projection.&lt;/STRONG&gt;vbeln &lt;STRONG&gt;=&lt;/STRONG&gt; _item&lt;STRONG&gt;.&lt;/STRONG&gt;vbeln  &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;{&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;key&lt;/STRONG&gt; vbeln&lt;STRONG&gt;,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;key&lt;/STRONG&gt; &lt;U&gt;_item&lt;/U&gt;&lt;STRONG&gt;(&lt;/STRONG&gt;p_matkl&lt;STRONG&gt;:&lt;/STRONG&gt;&lt;STRONG&gt;:&lt;/STRONG&gt;p_matkl1&lt;STRONG&gt;).&lt;/STRONG&gt;posnr&lt;STRONG&gt;,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt; &lt;U&gt;_item&lt;/U&gt;&lt;STRONG&gt;(&lt;/STRONG&gt;p_matkl&lt;STRONG&gt;:&lt;/STRONG&gt;&lt;STRONG&gt;:&lt;/STRONG&gt;p_matkl1&lt;STRONG&gt;).&lt;/STRONG&gt;matkl&lt;STRONG&gt;,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;  &lt;U&gt;_item&lt;/U&gt;&lt;STRONG&gt;(&lt;/STRONG&gt;p_matkl&lt;STRONG&gt;:&lt;/STRONG&gt;&lt;STRONG&gt;:&lt;/STRONG&gt;p_matkl1&lt;STRONG&gt;).&lt;/STRONG&gt;matnr&lt;STRONG&gt;,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;  &lt;U&gt;_item&lt;/U&gt;&lt;STRONG&gt;(&lt;/STRONG&gt;p_matkl&lt;STRONG&gt;:&lt;/STRONG&gt;&lt;STRONG&gt;:&lt;/STRONG&gt;p_matkl1&lt;STRONG&gt;).&lt;/STRONG&gt;zmeng&lt;STRONG&gt;,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;  &lt;U&gt;_item&lt;/U&gt;&lt;STRONG&gt;(&lt;/STRONG&gt;p_matkl&lt;STRONG&gt;:&lt;/STRONG&gt;&lt;STRONG&gt;:&lt;/STRONG&gt;p_matkl1&lt;STRONG&gt;).&lt;/STRONG&gt;meins&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;}&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;where&lt;/STRONG&gt; vbeln &lt;STRONG&gt;=&lt;/STRONG&gt;&lt;STRONG&gt;:&lt;/STRONG&gt;p_vbeln1&lt;/P&gt;&lt;P&gt;This will work similar to Right outer join.
Alternatively, You can use CDS “ZC_ZYX” view as primary data source in
Final CDS.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Abhijeet Kankani&lt;/P&gt;</description>
      <pubDate>Sat, 05 Oct 2019 07:09:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-cds-view-with-input-parameters-using-associations/m-p/11728923#M1948696</guid>
      <dc:creator>AbhijeetK</dc:creator>
      <dc:date>2019-10-05T07:09:13Z</dc:date>
    </item>
    <item>
      <title>Re: calling CDS view with input parameters using associations</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-cds-view-with-input-parameters-using-associations/m-p/11728924#M1948697</link>
      <description>&lt;P&gt;Hi Puneet,&lt;/P&gt;&lt;P&gt;There is way you can use, As Parameters can’t be directly used within the definition on Associated targets. Instead you can expose fields in the associated target CDS view as shown in below example.&lt;/P&gt;&lt;P&gt;CDS with Parameter (to be used as association target)&lt;/P&gt;&lt;P&gt;@AbapCatalog.sqlViewName:'ZYX_SQL'&lt;/P&gt;&lt;P&gt;@AbapCatalog.compiler.compareFilter:true&lt;/P&gt;&lt;P&gt;@AbapCatalog.preserveKey:true&lt;/P&gt;&lt;P&gt;@AccessControl.authorizationCheck:#CHECK&lt;/P&gt;&lt;P&gt;@EndUserText.label:'Sales Order Item with Parameters'&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;define&lt;/STRONG&gt;&lt;STRONG&gt;view&lt;/STRONG&gt; ZC_ZYX&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;with&lt;/STRONG&gt;&lt;STRONG&gt;parameters&lt;/STRONG&gt; p_matkl &lt;STRONG&gt;:&lt;/STRONG&gt; &lt;EM&gt;matkl&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;as&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;select&lt;/STRONG&gt;&lt;STRONG&gt;from&lt;/STRONG&gt; vbap &lt;STRONG&gt;{&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;key&lt;/STRONG&gt; vbeln&lt;STRONG&gt;,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;key&lt;/STRONG&gt; posnr&lt;STRONG&gt;,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;matnr&lt;STRONG&gt;,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;matkl&lt;STRONG&gt;,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;zmeng&lt;STRONG&gt;,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;meins&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;}&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;where&lt;/STRONG&gt; matkl &lt;STRONG&gt;=&lt;/STRONG&gt;&lt;STRONG&gt;:&lt;/STRONG&gt;p_matkl&lt;/P&gt;&lt;P&gt;Then Final CDS view where we want to use association -- &lt;/P&gt;&lt;P&gt;@AbapCatalog.sqlViewName:'ZZZYX'&lt;/P&gt;&lt;P&gt;@AbapCatalog.compiler.compareFilter:true&lt;/P&gt;&lt;P&gt;@AbapCatalog.preserveKey:true&lt;/P&gt;&lt;P&gt;@AccessControl.authorizationCheck:#CHECK&lt;/P&gt;&lt;P&gt;@OData.publish:true&lt;/P&gt;&lt;P&gt;@EndUserText.label:&lt;U&gt;'Sales Order Header with Associations &amp;amp; Parameters'&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;define&lt;/STRONG&gt;&lt;STRONG&gt;view&lt;/STRONG&gt; ZC_ZZYX&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;with&lt;/STRONG&gt;&lt;STRONG&gt;parameters&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;p_matkl1 &lt;STRONG&gt;:&lt;/STRONG&gt; &lt;EM&gt;matkl&lt;/EM&gt;&lt;STRONG&gt;,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;p_vbeln1 &lt;STRONG&gt;:&lt;/STRONG&gt; &lt;EM&gt;vbeln&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;as&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;select&lt;/STRONG&gt;&lt;STRONG&gt;from&lt;/STRONG&gt; vbak&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;association&lt;/STRONG&gt;&lt;STRONG&gt;[&lt;/STRONG&gt;0&lt;STRONG&gt;..*]&lt;/STRONG&gt;&lt;STRONG&gt;to&lt;/STRONG&gt; ZC_ZYX&lt;STRONG&gt;as&lt;/STRONG&gt; _item&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;on&lt;/STRONG&gt;&lt;STRONG&gt;$projection.&lt;/STRONG&gt;vbeln &lt;STRONG&gt;=&lt;/STRONG&gt; _item&lt;STRONG&gt;.&lt;/STRONG&gt;vbeln&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;{&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;key&lt;/STRONG&gt; vbeln&lt;STRONG&gt;,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;key&lt;/STRONG&gt; &lt;U&gt;_item&lt;/U&gt;&lt;STRONG&gt;(&lt;/STRONG&gt;p_matkl&lt;STRONG&gt;:&lt;/STRONG&gt;&lt;STRONG&gt;:&lt;/STRONG&gt;p_matkl1&lt;STRONG&gt;).&lt;/STRONG&gt;posnr&lt;STRONG&gt;,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;U&gt;_item&lt;/U&gt;&lt;STRONG&gt;(&lt;/STRONG&gt;p_matkl&lt;STRONG&gt;:&lt;/STRONG&gt;&lt;STRONG&gt;:&lt;/STRONG&gt;p_matkl1&lt;STRONG&gt;).&lt;/STRONG&gt;matkl&lt;STRONG&gt;,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;U&gt;_item&lt;/U&gt;&lt;STRONG&gt;(&lt;/STRONG&gt;p_matkl&lt;STRONG&gt;:&lt;/STRONG&gt;&lt;STRONG&gt;:&lt;/STRONG&gt;p_matkl1&lt;STRONG&gt;).&lt;/STRONG&gt;matnr&lt;STRONG&gt;,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;U&gt;_item&lt;/U&gt;&lt;STRONG&gt;(&lt;/STRONG&gt;p_matkl&lt;STRONG&gt;:&lt;/STRONG&gt;&lt;STRONG&gt;:&lt;/STRONG&gt;p_matkl1&lt;STRONG&gt;).&lt;/STRONG&gt;zmeng&lt;STRONG&gt;,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;U&gt;_item&lt;/U&gt;&lt;STRONG&gt;(&lt;/STRONG&gt;p_matkl&lt;STRONG&gt;:&lt;/STRONG&gt;&lt;STRONG&gt;:&lt;/STRONG&gt;p_matkl1&lt;STRONG&gt;).&lt;/STRONG&gt;meins&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;}&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;where&lt;/STRONG&gt; vbeln &lt;STRONG&gt;=&lt;/STRONG&gt;&lt;STRONG&gt;:&lt;/STRONG&gt;p_vbeln1&lt;/P&gt;&lt;P&gt;This will work similar to Right outer join. Alternatively, You can use CDS “ZC_ZYX” view as primary data source in Final CDS.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Abhijeet Kankani&lt;/P&gt;</description>
      <pubDate>Sat, 05 Oct 2019 07:15:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-cds-view-with-input-parameters-using-associations/m-p/11728924#M1948697</guid>
      <dc:creator>AbhijeetK</dc:creator>
      <dc:date>2019-10-05T07:15:08Z</dc:date>
    </item>
    <item>
      <title>Re: calling CDS view with input parameters using associations</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-cds-view-with-input-parameters-using-associations/m-p/11728925#M1948698</link>
      <description>&lt;P&gt;  HI &lt;SPAN class="mention-scrubbed"&gt;abhijeet.kankani&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;Can the input parameters to the CDS be columns from another CDS view?  In the example, you show passing parameters from one view to another but no columns.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jay&lt;/P&gt;</description>
      <pubDate>Wed, 11 Aug 2021 05:11:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-cds-view-with-input-parameters-using-associations/m-p/11728925#M1948698</guid>
      <dc:creator>jmalla</dc:creator>
      <dc:date>2021-08-11T05:11:30Z</dc:date>
    </item>
    <item>
      <title>Re: calling CDS view with input parameters using associations</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-cds-view-with-input-parameters-using-associations/m-p/11728926#M1948699</link>
      <description>&lt;P&gt;Hi Jay, &lt;/P&gt;&lt;P&gt;Vbeln is from parent cds and zmeng is from other cds view columns or field. &lt;/P&gt;&lt;P&gt;Regards, &lt;/P&gt;&lt;P&gt;Abhijeet &lt;/P&gt;</description>
      <pubDate>Sat, 04 Sep 2021 14:16:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-cds-view-with-input-parameters-using-associations/m-p/11728926#M1948699</guid>
      <dc:creator>AbhijeetK</dc:creator>
      <dc:date>2021-09-04T14:16:22Z</dc:date>
    </item>
  </channel>
</rss>

