<?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 database sequence in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/database-sequence/m-p/3875550#M931553</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;     I have created a sequence in my SAP DB..We are using MAXDB database as our backend.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have created a sequence in back end editor directly in database editor in server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when we give query select apid_seq.nextval from dual means it will give the next value in the sequence..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now i wrote this query in abap editor and execute it to get the maximum of sequence..but it is throwing error..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how to get the sequence through query..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can any body help me in this&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 14 May 2008 05:50:20 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-05-14T05:50:20Z</dc:date>
    <item>
      <title>database sequence</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/database-sequence/m-p/3875550#M931553</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;     I have created a sequence in my SAP DB..We are using MAXDB database as our backend.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have created a sequence in back end editor directly in database editor in server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when we give query select apid_seq.nextval from dual means it will give the next value in the sequence..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now i wrote this query in abap editor and execute it to get the maximum of sequence..but it is throwing error..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how to get the sequence through query..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can any body help me in this&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 May 2008 05:50:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/database-sequence/m-p/3875550#M931553</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-14T05:50:20Z</dc:date>
    </item>
    <item>
      <title>Re: database sequence</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/database-sequence/m-p/3875551#M931554</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mahesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in standard Open SQL ABAP you can only access fields that are defined in the ABAP DDIC. If you create something directly in the DB, bypassing the DDIC, Open SQL will not know about the field(s), which will cause an error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From my point of view, you can do one of two things:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Use native SQL (EXEC SQL. ... ). However, this would make your code non-portable across different RDBMSs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Use ABAP number ranges. These are the ABAP equivalent to database sequences and are portable across database systems.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would strongly suggest to use number ranges. Have a look on help.sap.com for the details.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards, Joerg Wegener&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 May 2008 08:41:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/database-sequence/m-p/3875551#M931554</guid>
      <dc:creator>joerg_wegener</dc:creator>
      <dc:date>2008-05-14T08:41:32Z</dc:date>
    </item>
    <item>
      <title>Re: database sequence</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/database-sequence/m-p/3875552#M931555</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;answered&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 May 2008 08:45:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/database-sequence/m-p/3875552#M931555</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-14T08:45:20Z</dc:date>
    </item>
  </channel>
</rss>

