<?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: Using SAP Number Range Objects vs. Using Oracle SEQUENCE in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-sap-number-range-objects-vs-using-oracle-sequence/m-p/1090937#M100682</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good point Frederic.   Couldn't have said it better myself.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;RIch Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 03 Nov 2005 20:35:52 GMT</pubDate>
    <dc:creator>RichHeilman</dc:creator>
    <dc:date>2005-11-03T20:35:52Z</dc:date>
    <item>
      <title>Using SAP Number Range Objects vs. Using Oracle SEQUENCE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-sap-number-range-objects-vs-using-oracle-sequence/m-p/1090934#M100679</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi - &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm just wondering if anyone out there has investigated using SAP number range objects vs. the Oracle SEQUENCE (which needs to be executed using native SQL) - and could recommend which way would be better.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm definitely leaning toward the SAP solution b/c of the flexibility of the number range.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to generate a sequential number which I'm using as a primary index to a table.  I've identified the following ways to do this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- SAP number range object ... where you setup a number range object using the OYSN transaction - and then in your code, you use the following functions:&lt;/P&gt;&lt;P&gt;     number_range_enqueue - to lock number range object&lt;/P&gt;&lt;P&gt;     number_get_next - to get the next sequential number&lt;/P&gt;&lt;P&gt;     number_range_dequeue - to unlock number range object&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Or you can use the native Oracle SEQUENCE function - and within your code call native sql to get the next value.  Example is below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EXEC SQL .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT MySequence.NEXTVAL&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INTO :W_NEXT_SEQUENCE_ID FROM DUAL&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDEXEC.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 04 Feb 2024 01:32:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-sap-number-range-objects-vs-using-oracle-sequence/m-p/1090934#M100679</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2024-02-04T01:32:53Z</dc:date>
    </item>
    <item>
      <title>Re: Using SAP Number Range Objects vs. Using Oracle SEQUENCE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-sap-number-range-objects-vs-using-oracle-sequence/m-p/1090935#M100680</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would definitly recommend using the Number ranges in SAP.  Looks like OYSN is for IDOCs,  you can use SNRO for other number ranges.  Most of the ABAPers here, will suggest using the number ranges in almost every case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Nov 2005 20:13:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-sap-number-range-objects-vs-using-oracle-sequence/m-p/1090935#M100680</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2005-11-03T20:13:11Z</dc:date>
    </item>
    <item>
      <title>Re: Using SAP Number Range Objects vs. Using Oracle SEQUENCE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-sap-number-range-objects-vs-using-oracle-sequence/m-p/1090936#M100681</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm join Rich.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SNRO is more usefull than Oracle, and when you use SAP you must forget the database. Just for example, if a day you have to change your database (oracle to -&amp;gt; SAPdb .. or anything else).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgd&lt;/P&gt;&lt;P&gt;Frédéric&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Nov 2005 20:30:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-sap-number-range-objects-vs-using-oracle-sequence/m-p/1090936#M100681</guid>
      <dc:creator>FredericGirod</dc:creator>
      <dc:date>2005-11-03T20:30:24Z</dc:date>
    </item>
    <item>
      <title>Re: Using SAP Number Range Objects vs. Using Oracle SEQUENCE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-sap-number-range-objects-vs-using-oracle-sequence/m-p/1090937#M100682</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good point Frederic.   Couldn't have said it better myself.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;RIch Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Nov 2005 20:35:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-sap-number-range-objects-vs-using-oracle-sequence/m-p/1090937#M100682</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2005-11-03T20:35:52Z</dc:date>
    </item>
    <item>
      <title>Re: Using SAP Number Range Objects vs. Using Oracle SEQUENCE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-sap-number-range-objects-vs-using-oracle-sequence/m-p/1090938#M100683</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I will definetely go with others here in recommending number ranges. Number ranges will abstract the database layer for you so that you don't have to know which underlying database you are dealing with. Next, in a multiple database instance scenario, how do ensure that your next sequence number is same irrespective of which database you logged onto? I don't know if the native command gives you the flexibility of allowing you to limit the numbers to a maximum and also provide you with a warning message when the number range is coming closer to the max value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Srinivas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Nov 2005 20:43:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-sap-number-range-objects-vs-using-oracle-sequence/m-p/1090938#M100683</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-03T20:43:00Z</dc:date>
    </item>
    <item>
      <title>Re: Using SAP Number Range Objects vs. Using Oracle SEQUENCE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-sap-number-range-objects-vs-using-oracle-sequence/m-p/1090939#M100684</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Don't forget that SAP's number ranges also have an available buffering mechanism.  You can configure them to retrieve several sets of numbers in the sequence and buffer them at the application server layer.  This is great if you are generating large volumes of records and don't need to account for every single number in the sequence.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't believe that you need to call the enqueue/dequeue functions when just getting the next number.  According to the documentation on the functions, these locks are only needed when you are going to change a Number Range Object/Group/Interval.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Nov 2005 20:51:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-sap-number-range-objects-vs-using-oracle-sequence/m-p/1090939#M100684</guid>
      <dc:creator>thomas_jung</dc:creator>
      <dc:date>2005-11-03T20:51:14Z</dc:date>
    </item>
    <item>
      <title>Re: Using SAP Number Range Objects vs. Using Oracle SEQUENCE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-sap-number-range-objects-vs-using-oracle-sequence/m-p/1090940#M100685</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the quick feedback ... number ranges it is ...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Nov 2005 21:09:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-sap-number-range-objects-vs-using-oracle-sequence/m-p/1090940#M100685</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-03T21:09:13Z</dc:date>
    </item>
  </channel>
</rss>

