<?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: Error reading infoprovider for cds view - Table function in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-reading-infoprovider-for-cds-view-table-function/m-p/819373#M42584</link>
    <description>&lt;P&gt;Try creating a simple basic view with a select query of fields from table function &lt;U&gt;ZBH_TBF_TEST4 &lt;/U&gt; and then use this basic view in the consumption view.It will work&lt;/P&gt;</description>
    <pubDate>Thu, 21 Feb 2019 06:30:34 GMT</pubDate>
    <dc:creator>shilpabasavaraj</dc:creator>
    <dc:date>2019-02-21T06:30:34Z</dc:date>
    <item>
      <title>Error reading infoprovider for cds view - Table function</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-reading-infoprovider-for-cds-view-table-function/m-p/819372#M42583</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
  &lt;P&gt;I am trying to use table function and AMDP Class method for one of the requirement. However table function is getting activated without any error but when I am trying to use that table function in consumption view... It throws error as &lt;STRONG&gt;'ERROR READING INFOPROVIDER FOR CDS VIEW'&lt;/STRONG&gt;&lt;/P&gt;
  &lt;P&gt;&lt;U&gt;@&lt;/U&gt;EndUserText.label:'ZBHTBFTEST4'&lt;/P&gt;
  &lt;P&gt;&lt;STRONG&gt;define &lt;/STRONG&gt;&lt;STRONG&gt;table &lt;/STRONG&gt;&lt;STRONG&gt;function&lt;/STRONG&gt; ZBH_TBF_TEST4&lt;/P&gt;
  &lt;P&gt;&lt;STRONG&gt;returns&lt;/STRONG&gt;&lt;STRONG&gt;{&lt;/STRONG&gt;&lt;/P&gt;
  &lt;P&gt; Mandt &lt;STRONG&gt;:&lt;/STRONG&gt; &lt;EM&gt;abap&lt;/EM&gt;&lt;STRONG&gt;.&lt;/STRONG&gt;&lt;EM&gt;clnt&lt;/EM&gt;&lt;STRONG&gt;;&lt;/STRONG&gt;&lt;/P&gt;
  &lt;P&gt; Po&lt;STRONG&gt;:&lt;/STRONG&gt; &lt;EM&gt;ebeln&lt;/EM&gt;&lt;STRONG&gt;;&lt;/STRONG&gt;-- ekko.ebeln &lt;/P&gt;
  &lt;P&gt; Vendor&lt;STRONG&gt;:&lt;/STRONG&gt; &lt;EM&gt;elifn&lt;/EM&gt; &lt;STRONG&gt;;&lt;/STRONG&gt;-- ekko.lifnr&lt;/P&gt;
  &lt;P&gt; Material&lt;STRONG&gt;:&lt;/STRONG&gt; &lt;EM&gt;matnr&lt;/EM&gt; &lt;STRONG&gt;;&lt;/STRONG&gt;-- ekpo.matnr&lt;/P&gt;
  &lt;P&gt; DocCat&lt;STRONG&gt;:&lt;/STRONG&gt; &lt;EM&gt;bstyp&lt;/EM&gt;&lt;STRONG&gt;;&lt;/STRONG&gt;-- ekko.bstyp&lt;/P&gt;
  &lt;P&gt; Item&lt;STRONG&gt;:&lt;/STRONG&gt; &lt;EM&gt;ebelp&lt;/EM&gt;&lt;STRONG&gt;;&lt;/STRONG&gt;-- ekpo.ebelp&lt;/P&gt;
  &lt;P&gt; NetPrice&lt;STRONG&gt;:&lt;/STRONG&gt; &lt;EM&gt;bprei&lt;/EM&gt;&lt;STRONG&gt;;&lt;/STRONG&gt;-- ekpo.NETPR&lt;/P&gt;
  &lt;P&gt; PriceUnit&lt;STRONG&gt;:&lt;/STRONG&gt; &lt;EM&gt;epein&lt;/EM&gt;&lt;STRONG&gt;;&lt;/STRONG&gt;-- ekpo.PEINH&lt;/P&gt;
  &lt;P&gt; Plant&lt;STRONG&gt;:&lt;/STRONG&gt; &lt;EM&gt;ewerk&lt;/EM&gt;&lt;STRONG&gt;;&lt;/STRONG&gt;-- ekpo.werks&lt;/P&gt;
  &lt;P&gt; CreationDate&lt;STRONG&gt;:&lt;/STRONG&gt; &lt;EM&gt;erdat&lt;/EM&gt;&lt;STRONG&gt;;&lt;/STRONG&gt;-- ekko.aedat&lt;/P&gt;
  &lt;P&gt; PriceControl&lt;STRONG&gt;:&lt;/STRONG&gt; &lt;EM&gt;vprsv&lt;/EM&gt;&lt;STRONG&gt;;&lt;/STRONG&gt;-- mbew.vprsv&lt;/P&gt;
  &lt;P&gt; MaterialPrice&lt;STRONG&gt;:&lt;/STRONG&gt; &lt;EM&gt;verpr&lt;/EM&gt;&lt;STRONG&gt;;&lt;/STRONG&gt;-- mbew.stprs/verpr &lt;/P&gt;
  &lt;P&gt; MaterialPriceUnit&lt;STRONG&gt;:&lt;/STRONG&gt; &lt;EM&gt;peinh&lt;/EM&gt;&lt;STRONG&gt;;&lt;/STRONG&gt;-- mbew.peinh&lt;/P&gt;
  &lt;P&gt;&lt;STRONG&gt;}&lt;/STRONG&gt;&lt;/P&gt;
  &lt;P&gt;&lt;STRONG&gt;implemented&lt;/STRONG&gt;&lt;STRONG&gt;by&lt;/STRONG&gt;&lt;STRONG&gt;method&lt;/STRONG&gt; ZCL_BH_TBF4&lt;STRONG&gt;=&amp;gt;&lt;/STRONG&gt;FETCH_DATA&lt;STRONG&gt;;&lt;/STRONG&gt;&lt;/P&gt;
  &lt;P&gt;======================================================&lt;/P&gt;
  &lt;P&gt;@AbapCatalog.sqlViewName:'ZBHCTBFTEST4'&lt;/P&gt;
  &lt;P&gt;@AbapCatalog.compiler.compareFilter:true&lt;/P&gt;
  &lt;P&gt;@AccessControl.authorizationCheck:#NOT_REQUIRED&lt;/P&gt;
  &lt;P&gt;@VDM.viewType:#CONSUMPTION&lt;/P&gt;
  &lt;P&gt;@Analytics.query:true&lt;/P&gt;
  &lt;P&gt;@OData.&lt;U&gt;publish:&lt;/U&gt;&lt;U&gt;&lt;/U&gt;&lt;U&gt;true&lt;/U&gt;&lt;/P&gt;
  &lt;P&gt;@EndUserText.label:'Test Consumption'&lt;/P&gt;
  &lt;P&gt;&lt;STRONG&gt;define &lt;/STRONG&gt;&lt;STRONG&gt;view&lt;/STRONG&gt; ZBH_C_TBF_TEST4 &lt;STRONG&gt;as &lt;/STRONG&gt;&lt;STRONG&gt;select &lt;/STRONG&gt;&lt;STRONG&gt;from&lt;/STRONG&gt; &lt;U&gt;ZBH_TBF_TEST4&lt;/U&gt;&lt;/P&gt;
  &lt;P&gt;&lt;STRONG&gt;{&lt;/STRONG&gt;&lt;/P&gt;
  &lt;P&gt;@EndUserText.label:'Purchase Order'&lt;/P&gt;
  &lt;P&gt;&lt;STRONG&gt;key&lt;/STRONG&gt; Po&lt;STRONG&gt;,&lt;/STRONG&gt;&lt;/P&gt;
  &lt;P&gt;@Consumption.filter:{selectionType:#SINGLE,multipleSelections:false,mandatory:false}&lt;/P&gt;
  &lt;P&gt;&lt;STRONG&gt;key&lt;/STRONG&gt; Vendor&lt;STRONG&gt;,&lt;/STRONG&gt;&lt;/P&gt;
  &lt;P&gt;@Consumption.filter:{selectionType:#SINGLE,multipleSelections:false,mandatory:false}&lt;/P&gt;
  &lt;P&gt;&lt;STRONG&gt;key&lt;/STRONG&gt; Material&lt;STRONG&gt;,&lt;/STRONG&gt;&lt;/P&gt;
  &lt;P&gt;DocCat&lt;STRONG&gt;,&lt;/STRONG&gt;&lt;/P&gt;
  &lt;P&gt;Item&lt;STRONG&gt;,&lt;/STRONG&gt;&lt;/P&gt;
  &lt;P&gt;@DefaultAggregation:#SUM&lt;/P&gt;
  &lt;P&gt;@Semantics.amount.currencyCode:'ekko.waers'&lt;/P&gt;
  &lt;P&gt;NetPrice&lt;STRONG&gt;,&lt;/STRONG&gt;&lt;/P&gt;
  &lt;P&gt;PriceUnit&lt;STRONG&gt;,&lt;/STRONG&gt;&lt;/P&gt;
  &lt;P&gt;@Consumption.filter:{selectionType:#SINGLE,multipleSelections:false,mandatory:false}&lt;/P&gt;
  &lt;P&gt;Plant&lt;STRONG&gt;,&lt;/STRONG&gt;&lt;/P&gt;
  &lt;P&gt;@Consumption.filter:{selectionType:#SINGLE,multipleSelections:false,mandatory:false}&lt;/P&gt;
  &lt;P&gt;CreationDate&lt;STRONG&gt;,&lt;/STRONG&gt;&lt;/P&gt;
  &lt;P&gt;PriceControl&lt;STRONG&gt;,&lt;/STRONG&gt;&lt;/P&gt;
  &lt;P&gt;@Semantics.amount.currencyCode:'t001.waers'&lt;/P&gt;
  &lt;P&gt;MaterialPrice&lt;STRONG&gt;,&lt;/STRONG&gt;&lt;/P&gt;
  &lt;P&gt;MaterialPriceUnit&lt;/P&gt;
  &lt;P&gt;&lt;STRONG&gt;}&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Feb 2019 04:24:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-reading-infoprovider-for-cds-view-table-function/m-p/819372#M42583</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2019-02-20T04:24:48Z</dc:date>
    </item>
    <item>
      <title>Re: Error reading infoprovider for cds view - Table function</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-reading-infoprovider-for-cds-view-table-function/m-p/819373#M42584</link>
      <description>&lt;P&gt;Try creating a simple basic view with a select query of fields from table function &lt;U&gt;ZBH_TBF_TEST4 &lt;/U&gt; and then use this basic view in the consumption view.It will work&lt;/P&gt;</description>
      <pubDate>Thu, 21 Feb 2019 06:30:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-reading-infoprovider-for-cds-view-table-function/m-p/819373#M42584</guid>
      <dc:creator>shilpabasavaraj</dc:creator>
      <dc:date>2019-02-21T06:30:34Z</dc:date>
    </item>
    <item>
      <title>Re: Error reading infoprovider for cds view - Table function</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-reading-infoprovider-for-cds-view-table-function/m-p/819374#M42585</link>
      <description>&lt;P&gt;Hello Shilpa,&lt;/P&gt;&lt;P&gt;Thank you so much for the response. Suggestion worked. Only Minor change had to do was instead of Basic view made it as composite view as view contained few aggregated columns&lt;/P&gt;&lt;P&gt;@VDM.viewType: #COMPOSITE &lt;/P&gt;&lt;P&gt;@Analytics.dataCategory: #CUBE &lt;/P&gt;&lt;P&gt;@Analytics.dataExtraction.enabled: true&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Another thing, Is it every time we have to make use of separate view to resolve this error ? can't we do changes in the original view&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Cheers. Have a nice day !!!&lt;/P&gt;</description>
      <pubDate>Thu, 21 Feb 2019 10:01:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-reading-infoprovider-for-cds-view-table-function/m-p/819374#M42585</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2019-02-21T10:01:52Z</dc:date>
    </item>
  </channel>
</rss>

