<?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: Invalid SQL Function SERIES_GENERATE_INTEGER in AMDP Procedure after Update in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/invalid-sql-function-series-generate-integer-in-amdp-procedure-after-update/qaa-p/12664329#M4751285</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;do you see it there : transaction ST04 select * from "SYS"."FUNCTIONS" ?&lt;/P&gt;&lt;P&gt;If no, you may ask SAP support for why the function is missing aftere the upgrade&lt;/P&gt;&lt;P&gt;Our system is SAP 7.56 SP 1&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2154497-image.png" /&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 17 Mar 2023 19:43:19 GMT</pubDate>
    <dc:creator>chaouki_akir</dc:creator>
    <dc:date>2023-03-17T19:43:19Z</dc:date>
    <item>
      <title>Invalid SQL Function SERIES_GENERATE_INTEGER in AMDP Procedure after Update</title>
      <link>https://community.sap.com/t5/technology-q-a/invalid-sql-function-series-generate-integer-in-amdp-procedure-after-update/qaq-p/12664328</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
  &lt;P&gt;we used the SQL Function SERIES_GENERATE_INTEGER in an AMDP-Procedure. &lt;/P&gt;
  &lt;P&gt;This AMDP-Procedure worked fine on a Netweaver 7.50 on HANA 2. &lt;/P&gt;
  &lt;P&gt;After upgrading to S/4 HANA 2022 Initial Shipment, the following code doesn't compile anymore:&lt;/P&gt; 
  &lt;PRE&gt;&lt;CODE&gt;method fill_temporary_templates&lt;BR /&gt;by database procedure&lt;BR /&gt;for hdb language sqlscript.
 lt_ext_event_binder_tmp = 
   select generated_period_start as binder&lt;BR /&gt;   from series_generate_integer( 1, 20, 90 );&lt;BR /&gt;endmethod.&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;Error: SERIES_GENERATE_INTEGER is unkown.&lt;/P&gt;
  &lt;P&gt;Does anybody know why this function doesn't work anymore in an AMDP-Procedure? &lt;BR /&gt;The HANA-DB itself executes the command without any concern:&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2152484-image.png" /&gt;&lt;/P&gt;
  &lt;P&gt;Thanks!&lt;/P&gt;
  &lt;P&gt;Lars&lt;/P&gt;</description>
      <pubDate>Thu, 16 Mar 2023 09:59:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/invalid-sql-function-series-generate-integer-in-amdp-procedure-after-update/qaq-p/12664328</guid>
      <dc:creator>lkempkens</dc:creator>
      <dc:date>2023-03-16T09:59:45Z</dc:date>
    </item>
    <item>
      <title>Re: Invalid SQL Function SERIES_GENERATE_INTEGER in AMDP Procedure after Update</title>
      <link>https://community.sap.com/t5/technology-q-a/invalid-sql-function-series-generate-integer-in-amdp-procedure-after-update/qaa-p/12664329#M4751285</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;do you see it there : transaction ST04 select * from "SYS"."FUNCTIONS" ?&lt;/P&gt;&lt;P&gt;If no, you may ask SAP support for why the function is missing aftere the upgrade&lt;/P&gt;&lt;P&gt;Our system is SAP 7.56 SP 1&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2154497-image.png" /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Mar 2023 19:43:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/invalid-sql-function-series-generate-integer-in-amdp-procedure-after-update/qaa-p/12664329#M4751285</guid>
      <dc:creator>chaouki_akir</dc:creator>
      <dc:date>2023-03-17T19:43:19Z</dc:date>
    </item>
    <item>
      <title>Re: Invalid SQL Function SERIES_GENERATE_INTEGER in AMDP Procedure after Update</title>
      <link>https://community.sap.com/t5/technology-q-a/invalid-sql-function-series-generate-integer-in-amdp-procedure-after-update/qaa-p/12664330#M4751286</link>
      <description>&lt;P&gt;Hi Lars,&lt;/P&gt;&lt;P&gt;Maybe add schema SYS is necessary, doesn't make sense as I found a public synonym on HANA DB.&lt;/P&gt;&lt;P&gt;Anyhow I found ddic reading class CL_OSQL_SYSFUNCTIONS and look the method:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;  method generate_integer by database function for hdb language sqlscript.
    return select * from sys.series_generate_integer( :step, :from_value, :to_value );
  endmethod.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Fired by this data definition with same name SERIES_GENERATE_INTEGER:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;@EndUserText.label: 'Generate integer series'
@ClientHandling.type: #CLIENT_INDEPENDENT
@AccessControl.authorizationCheck: #NOT_ALLOWED
define table function series_generate_integer
with parameters
  step : abap.int4,
  from_value : abap.int4,
  to_value   : abap.int4
returns {
  generated_period_start : abap.int4;
  generated_period_end : abap.int4;
  element_number : abap.int8;
  fraction_of_min_max_range : abap.fltp; 
}
implemented by method cl_osql_sysfunctions=&amp;gt;generate_integer&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Regards, Fernando Da Rós&lt;/P&gt;</description>
      <pubDate>Fri, 17 Mar 2023 20:33:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/invalid-sql-function-series-generate-integer-in-amdp-procedure-after-update/qaa-p/12664330#M4751286</guid>
      <dc:creator>fedaros</dc:creator>
      <dc:date>2023-03-17T20:33:28Z</dc:date>
    </item>
    <item>
      <title>Re: Invalid SQL Function SERIES_GENERATE_INTEGER in AMDP Procedure after Update</title>
      <link>https://community.sap.com/t5/technology-q-a/invalid-sql-function-series-generate-integer-in-amdp-procedure-after-update/qaa-p/12664331#M4751287</link>
      <description>&lt;P&gt;Thank you, Fernando! That was the clou. After adding the (now) missing prefix "sys.", I was able to call the function without exception. &lt;/P&gt;</description>
      <pubDate>Sun, 19 Mar 2023 14:18:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/invalid-sql-function-series-generate-integer-in-amdp-procedure-after-update/qaa-p/12664331#M4751287</guid>
      <dc:creator>lkempkens</dc:creator>
      <dc:date>2023-03-19T14:18:08Z</dc:date>
    </item>
    <item>
      <title>Re: Invalid SQL Function SERIES_GENERATE_INTEGER in AMDP Procedure after Update</title>
      <link>https://community.sap.com/t5/technology-q-a/invalid-sql-function-series-generate-integer-in-amdp-procedure-after-update/qaa-p/12664332#M4751288</link>
      <description>&lt;P&gt;Thank you, Chaouki. I wasn't aware, that this table exists and in that it shows the missing schema (same as Fernando explainend in his post). That helped me to understand the missing link. &lt;/P&gt;</description>
      <pubDate>Sun, 19 Mar 2023 14:20:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/invalid-sql-function-series-generate-integer-in-amdp-procedure-after-update/qaa-p/12664332#M4751288</guid>
      <dc:creator>lkempkens</dc:creator>
      <dc:date>2023-03-19T14:20:12Z</dc:date>
    </item>
    <item>
      <title>Re: Invalid SQL Function SERIES_GENERATE_INTEGER in AMDP Procedure after Update</title>
      <link>https://community.sap.com/t5/technology-q-a/invalid-sql-function-series-generate-integer-in-amdp-procedure-after-update/qaa-p/12664333#M4751289</link>
      <description>&lt;P&gt;Be careful with &amp;lt;br&amp;gt; code formatting errors in the SAP Community forum. This is better formatted:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;method fill_temporary_templates
  by database procedure
  for hdb language sqlscript.
  
 lt_ext_event_binder_tmp = 
   select generated_period_start as binder
   from series_generate_integer( 1, 20, 90 );
endmethod.&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 19 Mar 2023 15:11:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/invalid-sql-function-series-generate-integer-in-amdp-procedure-after-update/qaa-p/12664333#M4751289</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2023-03-19T15:11:51Z</dc:date>
    </item>
  </channel>
</rss>

