<?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: Getting Error while creating Calculation view. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-error-while-creating-calculation-view/m-p/10636583#M1865000</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Lars,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If i understood correctly , you are suggesting to create var_out1 and var_out2 in output ? If yes can you please guide me on how to do that? I tried but did not find anything suitable to declare table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Girdhari&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 22 Sep 2014 14:18:38 GMT</pubDate>
    <dc:creator>former_member16553</dc:creator>
    <dc:date>2014-09-22T14:18:38Z</dc:date>
    <item>
      <title>Getting Error while creating Calculation view.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-error-while-creating-calculation-view/m-p/10636581#M1864998</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Expert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was trying to create one simple calculation view using SQL script but getting below error. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/********* Begin Procedure Script ************/ &lt;/P&gt;&lt;P&gt; BEGIN &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; create type var_out1 as table (ebeln varchar(10),menge decimal);&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var_out&amp;nbsp; = CE_COLUMN_TABLE ("SAPEH2"."EKKO",[EBELN,AEDAT] );&lt;/P&gt;&lt;P&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var_out1 = CE_COLUMN_TABLE ("SAPEH2"."EKPO",[EBELN,MENGE] );&lt;/P&gt;&lt;P&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var_out2 - CE_UNION_ALL (:var_out1,:var_out2);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;END &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/********* End Procedure Script ************/&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I thought , i might need to declare a table type for output table var_out1 and var_out2. I tried by declaring table like below couldn't get any success.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;create type var_out1 as table (ebeln varchar(10),menge decimal);&lt;/P&gt;&lt;P&gt;create type var_out2 as table (ebeln varchar(10), aedat DATE ,menge decimal);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;error:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Internal deployment of object failed;Repository: Encountered an error in repository runtime extension;Internal Error:Deploy Calculation View: SQL: sql syntax error: CREATE TYPE is not allowed in SQLScript: line 5 col 2 (at pos 277)nSet Schema DDL statement: set schema "SAPEH2"nType DDL: create type "_SYS_BIC"."pkg-sapuser03.test_giri/CA_SALES1/proc/tabletype/VAR_OUT" as table ("EBELN" VARCHAR(10), "AEDAT" DATE, "MENGE" DECIMAL(13,3))nProcedure DDL: create procedure "_SYS_BIC"."pkg-sapuser03.test_giri/CA_SALES1/proc" ( OUT var_out "_SYS_BIC"."pkg-sapuser03.test_giri/CA_SALES1/proc/tabletype/VAR_OUT" ) language sqlscript sql security definer reads sql data as&amp;nbsp; n /********* Begin Procedure Script ***********&lt;STRONG&gt;/ n BEGIN n n create type var_out1 as table (ebeln varchar(10),menge decimal);n create type var_out2 as table (ebeln varchar(10), aedat DATE ,menge decimal);n n t&amp;nbsp;&amp;nbsp; var_out&amp;nbsp; = CE_COLUMN_TABLE ("SAPEH2"."EKKO",[EBELN,AEDAT] );n t&amp;nbsp;&amp;nbsp; var_out1 = CE_COLUMN_TABLE ("SAPEH2"."EKPO",[EBELN,MENGE] );n t&amp;nbsp;&amp;nbsp; var_out2 - CE_UNION_ALL (:var_out1,:var_out2);nnEND /&lt;/STRONG&gt;******** End Procedure Script ************/n&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please help me to understand the cause of this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Girdhari&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Sep 2014 13:29:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-error-while-creating-calculation-view/m-p/10636581#M1864998</guid>
      <dc:creator>former_member16553</dc:creator>
      <dc:date>2014-09-22T13:29:41Z</dc:date>
    </item>
    <item>
      <title>Re: Getting Error while creating Calculation view.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-error-while-creating-calculation-view/m-p/10636582#M1864999</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When using the Information Modeler you don't need to write the CREATE TYPE... command yourself.&lt;/P&gt;&lt;P&gt;All you got to do is to simply specify the input/output structures of your procedure and the types will be generated automagically during activation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Lars&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Sep 2014 13:52:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-error-while-creating-calculation-view/m-p/10636582#M1864999</guid>
      <dc:creator>lbreddemann</dc:creator>
      <dc:date>2014-09-22T13:52:36Z</dc:date>
    </item>
    <item>
      <title>Re: Getting Error while creating Calculation view.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-error-while-creating-calculation-view/m-p/10636583#M1865000</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Lars,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If i understood correctly , you are suggesting to create var_out1 and var_out2 in output ? If yes can you please guide me on how to do that? I tried but did not find anything suitable to declare table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Girdhari&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Sep 2014 14:18:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-error-while-creating-calculation-view/m-p/10636583#M1865000</guid>
      <dc:creator>former_member16553</dc:creator>
      <dc:date>2014-09-22T14:18:38Z</dc:date>
    </item>
    <item>
      <title>Re: Getting Error while creating Calculation view.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-error-while-creating-calculation-view/m-p/10636584#M1865001</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How one can specify the input/output structures for scripted calculation views is explained in the SAP HANA Developer Guide.&lt;/P&gt;&lt;P&gt;It also comes integrated in your SAP HANA Studio (key 'F1' gets you there).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Lars&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Sep 2014 14:25:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-error-while-creating-calculation-view/m-p/10636584#M1865001</guid>
      <dc:creator>lbreddemann</dc:creator>
      <dc:date>2014-09-22T14:25:57Z</dc:date>
    </item>
    <item>
      <title>Re: Getting Error while creating Calculation view.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-error-while-creating-calculation-view/m-p/10636585#M1865002</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Lars..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will check and get back to you with result.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Sep 2014 14:59:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-error-while-creating-calculation-view/m-p/10636585#M1865002</guid>
      <dc:creator>former_member16553</dc:creator>
      <dc:date>2014-09-22T14:59:53Z</dc:date>
    </item>
    <item>
      <title>Re: Getting Error while creating Calculation view.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-error-while-creating-calculation-view/m-p/10636586#M1865003</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you trying to create more than 1 output parameter from CV ? or You are trying to create the table variables inside to be used?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Krishna Tangudu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Sep 2014 15:21:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-error-while-creating-calculation-view/m-p/10636586#M1865003</guid>
      <dc:creator>former_member182302</dc:creator>
      <dc:date>2014-09-22T15:21:07Z</dc:date>
    </item>
  </channel>
</rss>

