<?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: CDS view associations and parameters error in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/cds-view-associations-and-parameters-error/m-p/791615#M40060</link>
    <description>&lt;P&gt;Hello Kunal,&lt;/P&gt;&lt;P&gt;To overcome a limitation with 4096 characters you can try to use CDS extension.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;@AbapCatalog.sqlViewAppendName: 'ZS_MY_EXT1'
@EndUserText.label: 'View Extension'
extend view ZS_MY_CDS with ZS_MY_EXTENSION 
association[0..1] to ZS_CASE_PROD_VERS_V as pv on pv.guid = cmg.guid
{
pv.pvs    as my_fld_1, // CHAR 512
pv.pvts   as my_fld_2  // CHAR 1024
}&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;The rest I did not check. Just had a similar issue with 4096 limitation and found SAP Note: 2154870. Hope it helps. &lt;/P&gt;&lt;P&gt;BR, Dima&lt;/P&gt;</description>
    <pubDate>Thu, 25 Apr 2019 07:54:38 GMT</pubDate>
    <dc:creator>dmitry_sharshatkin</dc:creator>
    <dc:date>2019-04-25T07:54:38Z</dc:date>
    <item>
      <title>CDS view associations and parameters error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cds-view-associations-and-parameters-error/m-p/791614#M40059</link>
      <description>&lt;P&gt;Team,&lt;/P&gt;
  &lt;P&gt;I am trying to have association between multiple CDS views&lt;/P&gt;
  &lt;P&gt;Option 1 : If I don't add parameters --&amp;gt; It throws Parameters are needed error&lt;/P&gt;
  &lt;P&gt;Option 2 : If I add parameters --&amp;gt; It throws Syntax error/ Parameters can not be defined here.&lt;/P&gt;
  &lt;P&gt;Note : It works when I am using Inner Join instead of Association but then it throws Table length error &amp;lt; 4096&lt;/P&gt;
  &lt;P&gt;--------------------------&lt;/P&gt;
  &lt;P&gt;Following is the piece of code&lt;/P&gt;
  &lt;P&gt;&lt;STRONG&gt;&lt;U&gt;Option 1 :&lt;/U&gt;&lt;/STRONG&gt;&lt;/P&gt;
  &lt;P&gt;define view Z_ABC_GROUP1 with parameters &lt;/P&gt;
  &lt;P&gt; @Consumption.hidden: true &lt;/P&gt;
  &lt;P&gt; @Environment.systemField: #SYSTEM_DATE&lt;/P&gt;
  &lt;P&gt; P_KeyDate : syst_datum , &lt;/P&gt;
  &lt;P&gt;@Consumption.hidden: true &lt;/P&gt;
  &lt;P&gt; @Environment.systemField: #SYSTEM_LANGUAGE &lt;/P&gt;
  &lt;P&gt; P_Language : syst_langu &lt;/P&gt;
  &lt;P&gt;as select from Z300001Z_PQR_FEATUREMARA_ &lt;/P&gt;
  &lt;P&gt; (P_KeyDate : $parameters.P_KeyDate ,P_Language : $parameters.P_Language) &lt;/P&gt;
  &lt;P&gt;as PQR_FEATURE &lt;/P&gt;
  &lt;P&gt;association to Z300001Z_GHI_FILMMARA_ as _GHI_FILM &lt;/P&gt;
  &lt;P&gt; on _PQR_FEATURE.Material = _GHI_FILM.Material&lt;/P&gt;
  &lt;P&gt;&lt;U&gt;&lt;STRONG&gt;// Error :&lt;/STRONG&gt; &lt;/U&gt;Entity Z300001Z_GHI_FILMMARA_ requires parameter P_KeyDate &lt;A href="https://answers.sap.com/storage/temp/303338-cds-option1-error.jpg"&gt;&lt;STRONG&gt;cds-option1-error.jpg&lt;/STRONG&gt;&lt;/A&gt;&lt;/P&gt;
  &lt;P&gt; Entity Z300001Z_GHI_FILMMARA_ requires parameter P_Language &lt;/P&gt;
  &lt;P&gt;---------------------------------------------------------------------------------------------&lt;/P&gt;
  &lt;P&gt;&lt;STRONG&gt;&lt;U&gt;Option 2 :&lt;/U&gt;&lt;/STRONG&gt;&lt;/P&gt;
  &lt;P&gt;define view Z_ABC_GROUP1 with parameters&lt;/P&gt;
  &lt;P&gt;@Consumption.hidden: true &lt;/P&gt;
  &lt;P&gt;@Environment.systemField: #SYSTEM_DATE&lt;/P&gt;
  &lt;P&gt;P_KeyDate : syst_datum , &lt;/P&gt;
  &lt;P&gt;@Consumption.hidden: true &lt;/P&gt;
  &lt;P&gt;@Environment.systemField: #SYSTEM_LANGUAGE &lt;/P&gt;
  &lt;P&gt;P_Language : syst_langu &lt;/P&gt;
  &lt;P&gt;as select from Z300001Z_PQR_FEATUREMARA_ &lt;/P&gt;
  &lt;P&gt;(P_KeyDate : $parameters.P_KeyDate ,P_Language : $parameters.P_Language) &lt;STRONG&gt;&lt;U&gt;//Error &lt;/U&gt;: unexpected word (; the keyword on was expected &lt;A href="https://answers.sap.com/storage/temp/303337-cds-option2-error.jpg"&gt;cds-option2-error.jpg&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;
  &lt;P&gt;as PQR_FEATURE &lt;/P&gt;
  &lt;P&gt;association to Z300001Z_GHI_FILMMARA_ &lt;/P&gt;
  &lt;P&gt;as _GHI_FILM &lt;/P&gt;
  &lt;P&gt;on _PQR_FEATURE.Material = _GHI_FILM.Material&lt;/P&gt;</description>
      <pubDate>Fri, 08 Mar 2019 06:26:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cds-view-associations-and-parameters-error/m-p/791614#M40059</guid>
      <dc:creator>former_member606144</dc:creator>
      <dc:date>2019-03-08T06:26:34Z</dc:date>
    </item>
    <item>
      <title>Re: CDS view associations and parameters error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cds-view-associations-and-parameters-error/m-p/791615#M40060</link>
      <description>&lt;P&gt;Hello Kunal,&lt;/P&gt;&lt;P&gt;To overcome a limitation with 4096 characters you can try to use CDS extension.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;@AbapCatalog.sqlViewAppendName: 'ZS_MY_EXT1'
@EndUserText.label: 'View Extension'
extend view ZS_MY_CDS with ZS_MY_EXTENSION 
association[0..1] to ZS_CASE_PROD_VERS_V as pv on pv.guid = cmg.guid
{
pv.pvs    as my_fld_1, // CHAR 512
pv.pvts   as my_fld_2  // CHAR 1024
}&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;The rest I did not check. Just had a similar issue with 4096 limitation and found SAP Note: 2154870. Hope it helps. &lt;/P&gt;&lt;P&gt;BR, Dima&lt;/P&gt;</description>
      <pubDate>Thu, 25 Apr 2019 07:54:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cds-view-associations-and-parameters-error/m-p/791615#M40060</guid>
      <dc:creator>dmitry_sharshatkin</dc:creator>
      <dc:date>2019-04-25T07:54:38Z</dc:date>
    </item>
  </channel>
</rss>

