<?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>Question Re: Issue in table function in HANA Studio in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/issue-in-table-function-in-hana-studio/qaa-p/12592254#M4722484</link>
    <description>&lt;P&gt;In Hana Studio&lt;/P&gt;&lt;P&gt;Go to Windows - Preferences - General - Workspace&lt;/P&gt;&lt;P&gt;Set the Text encoding to Default UTF-8&lt;/P&gt;</description>
    <pubDate>Tue, 31 May 2022 14:08:35 GMT</pubDate>
    <dc:creator>venkateswaran_k</dc:creator>
    <dc:date>2022-05-31T14:08:35Z</dc:date>
    <item>
      <title>Issue in table function in HANA Studio</title>
      <link>https://community.sap.com/t5/technology-q-a/issue-in-table-function-in-hana-studio/qaq-p/12592253</link>
      <description>&lt;P&gt;Hi BW Experts,&lt;/P&gt;
  &lt;P&gt;I have written the TABLE FUNCTION. While executing, i am getting different error which i am unable to solve this issue. Please find the below code for your reference. Please find the error screenshot for the below code.&lt;/P&gt;
  &lt;P&gt;FUNCTION "XXX"."YYYY::AAAA" (IP_COMP_CODE VARCHAR(3),&lt;/P&gt;
  &lt;P&gt; IP_DAY_FROM DATE, IP_DAY_TO DATE) &lt;/P&gt;
  &lt;P&gt; RETURNS TABLE&lt;/P&gt;
  &lt;P&gt; (&lt;/P&gt;
  &lt;P&gt; WC_TRID1 VARCHAR(87),&lt;/P&gt;
  &lt;P&gt; SOURSYSTEM VARCHAR(2),&lt;/P&gt;
  &lt;P&gt; COMP_CODE VARCHAR(3),&lt;/P&gt;
  &lt;P&gt; "0CALDAY" VARCHAR(8),&lt;/P&gt;
  &lt;P&gt; DRIVE_ON_TIME DECIMAL(15,2),&lt;/P&gt;
  &lt;P&gt; NO_OF_PO DECIMAL(15,2) &lt;/P&gt;
  &lt;P&gt; )&lt;/P&gt;
  &lt;P&gt; LANGUAGE SQLSCRIPT&lt;/P&gt;
  &lt;P&gt; SQL SECURITY INVOKER AS&lt;/P&gt;
  &lt;P&gt;BEGIN&lt;/P&gt;
  &lt;P&gt; TABLE_TEMP = select "WC_TRID1", "0SOURSYSTEM", "0COMP_CODE", "0CALDAY",&lt;/P&gt;
  &lt;P&gt; AVG(WK_BDS) OVER(PARTITION BY "WC_MAFERT","WC_VTIPO","WC_SRPNO","WC_SDTF") AS "DRIVE_ON_TIME",&lt;/P&gt;
  &lt;P&gt; COUNT(*) OVER(PARTITION BY "WC_PONO") AS "NO_OF_PO"&lt;/P&gt;
  &lt;P&gt; from "ZTI_FLEETANALYTICS"."AHX1B_WRYCWR06" &lt;/P&gt;
  &lt;P&gt; where "WK_BDS" &amp;lt;&amp;gt; '0' AND "0COMP_CODE" = :IP_COMP_CODE AND "0CALDAY" BETWEEN :IP_DAY_FROM AND :IP_DAY_TO ;&lt;/P&gt;
  &lt;P&gt;RETURN&lt;/P&gt;
  &lt;P&gt; SELECT * FROM :TABLE_TEMP;&lt;/P&gt;
  &lt;P&gt; END;&lt;/P&gt;
  &lt;P&gt;Thanks.&lt;/P&gt;
  &lt;P&gt;&lt;A href="https://answers.sap.com/storage/temp/2051911-table-function-error.jpg" data-attachment="2051911"&gt;table-function-error.jpg&lt;/A&gt;&lt;/P&gt;
  &lt;P&gt;&lt;A href="https://answers.sap.com/storage/temp/2051912-table-function-error1.jpg" data-attachment="2051912"&gt;table-function-error1.jpg&lt;/A&gt;&lt;/P&gt;
  &lt;P&gt;&lt;A href="https://answers.sap.com/storage/temp/2051913-table-function-error2.jpg" data-attachment="2051913"&gt;table-function-error2.jpg&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 31 May 2022 13:43:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/issue-in-table-function-in-hana-studio/qaq-p/12592253</guid>
      <dc:creator>former_member184624</dc:creator>
      <dc:date>2022-05-31T13:43:37Z</dc:date>
    </item>
    <item>
      <title>Re: Issue in table function in HANA Studio</title>
      <link>https://community.sap.com/t5/technology-q-a/issue-in-table-function-in-hana-studio/qaa-p/12592254#M4722484</link>
      <description>&lt;P&gt;In Hana Studio&lt;/P&gt;&lt;P&gt;Go to Windows - Preferences - General - Workspace&lt;/P&gt;&lt;P&gt;Set the Text encoding to Default UTF-8&lt;/P&gt;</description>
      <pubDate>Tue, 31 May 2022 14:08:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/issue-in-table-function-in-hana-studio/qaa-p/12592254#M4722484</guid>
      <dc:creator>venkateswaran_k</dc:creator>
      <dc:date>2022-05-31T14:08:35Z</dc:date>
    </item>
    <item>
      <title>Re: Issue in table function in HANA Studio</title>
      <link>https://community.sap.com/t5/technology-q-a/issue-in-table-function-in-hana-studio/qaa-p/12592255#M4722485</link>
      <description>&lt;P&gt;Thank you Abhi and Venkat.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Jun 2022 11:42:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/issue-in-table-function-in-hana-studio/qaa-p/12592255#M4722485</guid>
      <dc:creator>former_member184624</dc:creator>
      <dc:date>2022-06-01T11:42:06Z</dc:date>
    </item>
    <item>
      <title>Re: Issue in table function in HANA Studio</title>
      <link>https://community.sap.com/t5/technology-q-a/issue-in-table-function-in-hana-studio/qaa-p/12592256#M4722486</link>
      <description>&lt;P&gt;Hi &lt;SPAN class="mention-scrubbed"&gt;jelina.masilamani&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;The Answer was reverted as un-accepted.  Is there any issues. Kindly update so that I can correct it.&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jun 2022 06:26:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/issue-in-table-function-in-hana-studio/qaa-p/12592256#M4722486</guid>
      <dc:creator>venkateswaran_k</dc:creator>
      <dc:date>2022-06-06T06:26:41Z</dc:date>
    </item>
    <item>
      <title>Re: Issue in table function in HANA Studio</title>
      <link>https://community.sap.com/t5/technology-q-a/issue-in-table-function-in-hana-studio/qaa-p/12592257#M4722487</link>
      <description>&lt;P&gt;Hi &lt;SPAN class="mention-scrubbed"&gt;jelina.masilamani&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mention-scrubbed"&gt;jelina.masilamani&lt;/SPAN&gt;Is this issue still not working?&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Venkat&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jun 2022 09:00:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/issue-in-table-function-in-hana-studio/qaa-p/12592257#M4722487</guid>
      <dc:creator>venkateswaran_k</dc:creator>
      <dc:date>2022-06-06T09:00:20Z</dc:date>
    </item>
  </channel>
</rss>

