Can Sequence.NextVal fill the gaps?

If a table is sparse, holding sequence number 1-100, and then 10,000 -- 20,000 for example. Can the sequence number generator fill the gap, meaning to generate number 101 -- 9999, and then pick it up from 20,001 and keep going?

Thanks for the advices.
We are adding a record to the table when the users change a line item to keep the versions of the changes. As you can imagine, we are going to consume the numbers very quickly.
We can purge the old records after a while, maybe once a year. That is how we can make the sequence number sparse. We can make the sequence number length longer so that we won't run out of numebrs in 5 years or 10 years. We currently make it Number(11).
However, it will eventually run out. I just thought this is a mathematic problem that Oracle has designed to solve it. I guess not:(

Similar Messages

  • How to fill the gaps in SAP Fico configuration

    Hi Guys,
    Can anyone please explain me that how to fill the gaps in SAP FICO implementation project
    Thanks in advance
    Vasu

    Hello,
    Perhaps you might find some useful info here http://help.sap.com/saphelp_sm70ehp1_sp23/helpdata/en/36/f1a5e16cde4121acc69a91728b9082/frameset.htm
    Regards,
    Paul

  • Fill-the-gap with multiple gaps - show right answers colored

    Hello,
    I'm using CP5 on OSX 10.6.4
    I create a quiz "fill-the-gap" with multiple gaps (textfields/drop-down menu) in a single slide.
    When a user doesn't fill all gaps he get the info, that he have to fill all gaps. O.K.
    When he fills wrong answers he get the info, that it is not correct. But he can't see, which answers are right answers.
    Has CP5 (i.e with a variable) the feature to color right answers (i.e the font turns to green) others turns to red?
    Or right answers turns to non-editable textfields or drop-downs aren't available after setting the right answer.
    Ishan

    Hello,
    I never used CP5 on Mac, just on Windows. So I'm not totally sure my answers will apply.
    About your question to see the right answers: normally this will be done during Review, provided you did allow Review in the Quiz Settings (Allow the user to review the Quiz). You can see the message that will be showed when selecting the Review area on the stage and looking at the Properties. The messages can be edited. In the screenshot you see the default messages. For an incorrect answer both the given answer ('Your answer:...')  and the correct answer will be put in the Review area during review.
    For your second questions: as far as I know, this is not possible with the default dropdown list of the Question slide for 'Fill-in-the-Blank'. It could be made possible by constructing your own Question slide, using the available objects, user variables and advanced actions.
    Lilybiri

  • Font antialiasing in Dropdown or Short Answer Areas in Fill-the-gap

    Hello,
    the more I test, the more I love CP5.
    But CP5 has a lot of issues, or it's me :-)
    I create a fill-the-gap test. Everythings fine, but in preview the font in the dropdown menu or the short answer textfield is pixelized and not antialias
    It's very ugly, please see the attached screenshot.
    Anybody knows, why the fonts aren't antialiased?
    Im using CP5 on OSX.
    Ishan

    Hi there
    I am hopeful that one of the Captivate team members can offer up some sage advice on this.
    I'm unaware of any setting in Captivate 5 that governs the anti-aliasing. I know they changed the manner in which text is rendered. Not sure if that's why you are seeing what you are, but it could have something to do with it.
    I would strongly encourage you (and anyone else encountering this) to consider logging this issue as a bug so that Adobe is aware of it and it will gain priority for a fix at some future point.
    Personally, I'm a bit surprised that your screen capture depicted the full word showing. My own Captivate seems unable to accomplish this and I see a truncated answer after selecting as shown below:
    Cheers... Rick
    Helpful and Handy Links
    Captivate Wish Form/Bug Reporting Form
    Adobe Certified Captivate Training
    SorcererStone Blog
    Captivate eBooks

  • Explan the methods to fill the gaps in abap ?

    Hi I am newly appoined in abap mine role is to fill the gaps between clinet and us 
    explain me with fine example ? THis is very help ful to me in my life... thanking U

    Can you be more clear on what you need help??

  • Filling the gap with previous data and newdate...

    input data
    GLOBAL_NAME     PRODUCT_MODEL     TRX_TYPE     POS_DATE     QUANTITY
    ABC          MAW3147NC     POS          3/17/2008     111
    ABC          MAW3147NC     POS          4/14/2008     100
    ABC          MAW3147NC     POS          5/26/2008     200
    ABC          MAW3147NC     SHIPMENT     3/17/2008     222
    ABC          MAW3147NC     SHIPMENT     4/7/2008     40
    ABC          MAW3147NC     SHIPMENT     4/14/2008     80
    ABC          MAW3147NC     SHIPMENT     4/21/2008     160
    ABC          MAW3147NC     SHIPMENT     4/28/2008     162
    ABC          MAW3147NC     SHIPMENT     5/19/2008     182
    ABC          MAW3147NC     SHIPMENT     5/26/2008     262output
    GLOBAL_NAME     PRODUCT_MODEL     TRX_TYPE     POS_DATE     QUANTITY
    ABC          MAW3147NC     POS          3/17/2008     111
    ABC          MAW3147NC     POS          3/24/2008     111 --> previous record values but pos_date should be next monday
    ABC          MAW3147NC     POS          3/31/2008     111--> previous record values but pos_date should be next monday
    ABC          MAW3147NC     POS          4/7/2008     111--> previous record values but pos_date should be next monday
    ABC          MAW3147NC     POS          4/14/2008     100
    ABC          MAW3147NC     POS          4/21/2008     100--> previous record values but pos_date should be next monday
    ABC          MAW3147NC     POS          4/28/2008     100--> previous record values but pos_date should be next monday
    ABC          MAW3147NC     POS          5/05/2008     200
    ABC          MAW3147NC     SHIPMENT     3/17/2008     222
    ABC          MAW3147NC     SHIPMENT     3/24/2008     222--> previous record values but pos_date should be next monday
    ABC          MAW3147NC     SHIPMENT     3/31/2008     222--> previous record values but pos_date should be next monday
    ABC          MAW3147NC     SHIPMENT     4/7/2008     40
    ABC          MAW3147NC     SHIPMENT     4/14/2008     80
    ABC          MAW3147NC     SHIPMENT     4/21/2008     160
    ABC          MAW3147NC     SHIPMENT     4/28/2008     162
    ABC          MAW3147NC     SHIPMENT     5/05/2008     162--> previous record values but pos_date should be next monday
    ABC          MAW3147NC     SHIPMENT     5/12/2008     162--> previous record values but pos_date should be next monday
    ABC          MAW3147NC     SHIPMENT     5/19/2008     182
    ABC          MAW3147NC     SHIPMENT     5/26/2008     262all posdates are monday dates?
    any ideas?

    In other words that monday is missing from the original data set, so you are missing mondays and want to recover them by copying the data down from the last existing monday.
    Here's some code that you can modify that will do just that. SEQ_WITH_GAPS and X correspond to the original data with gaps, while SEQ_WITH_NO_GAPS and COPY is the data you are looking for. You just need to define the source of your filler data to provide all the dates of interest and join it to your POS_DATE column and replicate the copy column for each of the columns of your original data that you want to copy.
    WITH mydata AS
        ( SELECT level x, sum(level) over (order by level) seq_with_gaps
            FROM dual CONNECT BY level < 5
      , filler AS
        ( SELECT level seq_with_no_gaps FROM dual CONNECT BY level <= 12
    SELECT seq_with_gaps
      , x
      , seq_with_no_gaps
      , last_value( x ignore nulls ) over( order by f.seq_with_no_gaps ) copy
       FROM mydata d
    RIGHT JOIN filler f
         ON d.seq_with_gaps=f.seq_with_no_gaps
    SEQ_WITH_GAPS    X                     SEQ_WITH_NO_GAPS    COPY                
    1                1                     1                   1                   
                                           2                   1                   
    3                2                     3                   2                   
                                           4                   2                   
                                           5                   2                   
    6                3                     6                   3                   
                                           7                   3                   
                                           8                   3                   
                                           9                   3                   
    10               4                     10                  4                   
                                           11                  4                   
                                           12                  4                   
    12 rows selected

  • Sequence.nextval doubles the returned value with Execute Statement (F9)

    There appears to be a quirk with sequences in Raptor.
    Has anyone noticed that depending on how you execute this sql (SELECT MYSEQ.NEXTVAL FROM DUAL;) the value returned is either the correct nextval or double what you expected?
    For example, MYSEQ is a simple sequence which increments by 1. If you Execute Statement (F9) then the value returned jumps by 2 instead of 1. If you Run Script (F5) then the value returns jumps by 1, as expected.
    If MYSEQ is changed to increment by 2. The when you Execute Statement (F9) then the value returned jumps by 4 instead of 2. If you Run Script (F5) then the value returns jumps by 2, as expected. No matter what you put for the increment by Execute Statement (F9) always doubles it.
    It always seems to be double. Executing the same scenario in TOAD always returns the correct value (i.e. properly increments).
    Is the query being executed multiple times with Execute Statement? Why is this happening?

    While there is no guarantee from Oracle that sequences produce sequential numbers, this is obviously a case where SQL Developer is running the select statement twice.
    The issue is that queries can actually change information, rather than just retrieve data from the database.
    The following package is a test case:
    create or replace package test_query is
    function get_next_count return number;
    end;
    create or replace package body test_query is
    cnt number := 0;
    function get_next_count return number is
    begin
    cnt := cnt + 1;
    return cnt;
    end;
    end;
    select test_query.get_next_count from dual;
    This query, which should return 1, 2, 3, 4, etc actually returns 2, 4, 6, 8, etc, because SQL Developer is running the select twice.

  • Can I pre-fill the answer to a specific question? i.e. customer number for a customer questionnaire.

    I am building a customer questionnaire for our existing customers and, on the first page, have fields to type in the customer name and number (a unique number we assign to each customer.) 
    I would prefer to specify these myself when I send out the questionairre in case the customer doesn't know their customer number.  Theoretically, this would work with a query string or something similar so that each customer would get a unique URL to the form (i.e. formcentral.acrobat.com/myquestionnaire.html?custId=1234). 
    I'm intending to track and graph all of my results and don't want multiple submissions from the same customer to skew the findings.  I'm also setting up some mecahnisms to get back in touch with customers who fill out the questionnaire and answer any questions or concerns they expressed with it, which I obviously wouldn't be able to do if they didn't specify adequate identifying informaiton. 

    Hi,
    Currently we do not have a feature that allows you pre-fill in customer response data, or a way to prevent multiple submissions.  Preventing multiple submissions is something that is requested frequently, and we are looking at for a future release.  We do look to the ideas section to help guide us on what features we work on next.  I suggest you add your idea about pre-filling in customer resposne data to the ideas section, and also voting for the preventing of multiple responses idea.
    Thanks,
    Todd

  • Collections : filling the gap

    It would really be great that collection attributes and columns be allowed as 'expr_list' expressions in membership conditions.
    For instance, let's imagine we've got varray T_va (say) of varchar2(10), then we create the following table :
    create table tab
    ( id integer
    , va T_va
    It is natural to think that the following query should work :
    select id
    from tab t
    where 'bidule' in t.va ;
    as it is in the SQL3 standard.

    sorry, just a mistake. the following code works very well :
    select id
    from Tab t, table(t.va) v
    where 'bidule' in value(v) ;

  • Can you quick fill a format?

    Hello.
    I'm trying to do some presentation cards for school. I have the format ready, all I need to do is to fill the gaps with the kids names. The problem is, there's over 500 kids.
    I was wondering if there was a tool or something to quick fill the formats instead of filling them one by one. I have the names on a list, so I can copy & paste them over, but it still is very tedious.
    Or maybe just a way to have the text boxs preset in the format so I don't have to create one for every name.
    Here's the format.
    Thanks a lot in advance.

    Using Photoshop data driven graphics you can generates cards for each kid. https://www.youtube.com/watch?v=i9Ms34nYRFI
    Very easy to do that with Photoshop and my Photoshop script pasteimageroll.  The script will tile image into a new document. In your case you would prepare one image the aspect ratio you  want the tiles to be as a template for data driven graphics. Then create the kid cards.  Then run my script set the DPI you want to print at and the paper width the you want to use and set the tile size and number of image copies you want in your case 1  then let the script run by clicking ok. The script will present you with an open dialog select all your kids card image. For example if you want 3" x 2" cards without boarder like you show set the script dialog like this: 12" wide roll paper 4 cards per row 500 cards would require around 20' of roll paper.  You can create smaller document by selecting fewer images to print on sheet paper. On 13"x19" paper 36" images would fit. On 8.5" x 11"  rotate tiles to 2"x3" that will handle 12 cards per sheet like your sample image.
    The script is included in my Photo Collage Toolkit here is how the script works with examples http://www.mouseprints.net/old/dpr/PasteImageRoll.html
    The following example was for 4"  wide by 6" high tiles on 12" paper the rotate option has the script rotate images to the tile orientation for best fit.

  • Why (out of the blue) airport extreme can't connect to the internet?

    Suddenly the airport extreme on my macbook pro (10.6.8) decided to completely stop working. the modem/router work fine as i tested them with another computer and i've brought my macbook to another house and tested it there and the same thing happens.  if i'm hardwired via ethernet cable the internet works like normal. which is what i'm doing now.
    the wireless icon on the top of the screen shows full strength and when i click on it it shows my network with a check mark next to it but if i try to open a browser window it won't work. opening network preferences shows that airport is not connected and it does not have an IP address and can't connect to the internet. if i open airport utility (5.6.1) it says "airport utility unable to find any airport wireless devices".
    everything was working fine a few days ago.
    what's going on?

    The same thing happened to me, and I took it to get looked at and they even replaced my base station, but then it kept disconnecting. I finally  found the answer that solved my problem, but now I can't find the post that solved it to direct you toward. So I'll try to re-create it as best as I can.
    Like that user, I have Xfinity. The other user had received this assistance from Comcast tech support (Which is sad that Comcast was more helpful than ... anyone ... but especially Apple), so if it doesn't work they should be able to help fill the gaps. Chances are, you may be better off getting assistance from your ISP than from Apple.
    Basically, Comcast switched over to IPv6, and it needs to be accounted for or else the AEBS will drop the signal from the DSL modem.
    1. Open Airport Utility
    2. Click Edit on your AEBS icon.
    3. Click the Internet tab.
    4. Click Internet Options.
    5. Make sure IPv6 Mode is set to "Tunnel."
    6. Click the "Enable IPv6 Connection Sharing" radio button so that it's active.
    7. Save changes, Update the new settings, and let the AEBS restart with the new changes.
    I fixed it a couple of days ago, and it's worked perfectly since then.
    Here's the post that fixed it. https://discussions.apple.com/message/21916742#21916742
    Here's the Comcast information the post refers to. http://www.comcast6.net/index.php/6to4config#faq3
    Message was edited by: Crimsondude

  • Waht is the gap

    can explain waht is the gap
    gap in sap and non sap
    in bussiness clint side we side means in sap

    HI
    The Gaps can differ from company to company. Most commonly, however, missing functionality is industry-specific.
    Examples:
    1. MGM Studios and Lycos sometime back worked with SAP to develop its new intellectual property management and media advertising management functionality, respectively.
    2. A leading Oral care product company wanted the promotion of free-goods where they wanted 'Buy one get 2 different products free'.
    2 gaps are,In customer master data the client requirement needs legacy customer number which can be solved with User exit.,
    In sales order we need customer Phone number,We can use user exit
    These 2 are gaps which we cant find in Standard SAP
    1. if client want new field in customer master like nearest fire station ..
    2. order will be uploaded directly with out va01. through BDC... bcoz lot of orders if they get daily, they can opt these...
    Movement type 1 uses when a material have two movement types.. like example 101 and 261.. one is incoming raw material and and going for production..http://erp.ittoolbox.com/groups/strategy-planning/erp-projectmanagement/gap-analysis-1480978
    http://www.ibm.com/developerworks/forums/dw_thread.jsp?forum=340&thread=63972&cat=24
    Simply Gap Is Nothing But, 
    Client Requirement Doesn’t Meet With The SAP Application, 
    The Distance Between Actual And Existing/Supporting,
    E.g.: On Purchase Of Material-X, The Other Material Will Get 50% Discount, Which Sap Doesn’t Support, 
    Commission Paid To The Agent Also , Not Supported In SAP,
    To Fill This Gap, We Use The Enhancements,
    These Enhancements Divided Into Exits, 
    Like
    User exits,
    Field Exits
    Screen Exits & 
    Menu Exits.
    These Enhancements Used To Update The Standard Program In Its Respective Business Transactions, Used As A Gateway To Meet The Client Requirements.
    Refer below
    In n simple terms: Gap means small cracks. In SAP world or in Information Technology world, gap analysis is the study of the differences between two different information systems or applications( ex; existing system or legacy system with Client and new is SAP), often for the purpose of determining how to get from one state to a new state. A gap is sometimes spoken of as "the space between where we are and where we want to be." 
    Gap Analysis is undertaken as a means of bridging that space. Actual Gap Analysis is time consuming and it plays vital role in Business Blueprint[AS IS Process] stage.
    A through Gap Analysis will identify the gaps between how the business operates and its needs against what the package can can't do. For each gap there will be one of three outcomes, which must be recorded and auctioned, 
    1. GAP must be closed and customized software can be developed 
    2. GAP must be closed but software cannot be written therefore a workaround is required
    3. GAP does not need to be closed. 
    A point worth mentioning here is that at time people confuse between user-exits and Gap Analysis. User exits are standard gate ways provided by SAP to exit the standard code and we can write our own code with the help of ABAP workbench, its not new functionality which we are trying to build in sap but its slight enhancement within the same code. 
    Gap analysis is start point of Realization and once business Blueprint is finished we have to find the realization of sap system for client requirement and there will be certain gaps when compared to system fit. Those gaps can be closed either by re-engineering of business process to fit with SAP or we have to use USER exits in case of small deviations or complete enhancements with the help of ABAP to fit with the SAP system.
    The Gaps can differ from company to company. Most commonly, however, missing functionality is industry-specific. 
    Examples:
    1. MGM Studios and Lycos sometime back worked with SAP to develop its new intellectual property management and media advertising management functionality, respectively. 
    2. A leading Oral care product company wanted the promotion of free-goods where they wanted 'Buy one get 2 different products free'.

  • Can I automatically size the page?

    I have a PDF with several pages that are landscape and several that are portrait.  It creates a gap on the right side by the pages that are portrait.  I would rather not see the gap.  Even though the pages are different sizes, I would like to see that they fill the gap.

    Thanks for the feedback.
    This is something that we, too, have considered improving, but haven't come up with a great solution to it yet.
    Dennis

  • What are the GAP analysis? could you pls... explain with examples?

    hi everybody.....
    may i know what are the GAP analysis with examples?
    thanks in advance...
    and hope u will get it me that.

    Dear arunteja vasan ,
    GAP Analysis
    A through gap analysis will identify the gaps between how the business operates ad its needs against what the package can can't do.   For each gap there will be one of three outcomes which must be recorded and actioned, GAP must be closed and customised software can be developed close the gap, GAP must be closed but software cannot be written therefore a workaround is required, GAP does not need to be closed.
    In simple terms: Gap means small cracks. In SAP world.  In information technology, gap analysis is the study of the differences between two different information systems or applications( ex; existing system or legacy system with Client and new is SAP), often for the purpose of determining how to get from one state to a new state. A gap is sometimes spoken of as "the space between where we are and where we want to be." Gap analysis is undertaken as a means of bridging that space.
    Actual gap analysis is time consuming and it plays vital role in blue print stage.
    Cut Over Plans
    Detailed plans need to be developed for cutting over from the old system(s) to the new.   Parallel runs of what will happen over the conversion period using test data, convert and watch for a period after wards to ensure nothing unexpected happens.
    Train Users
    Well trained users will support and defend the system on site.  Unsupportive users will continually undermine the system and eventually it will be replaced.   Therefore the more effort you put into helping the users master the system early the better.
    Do award points if you found them useful.
    Regards,
    Rakesh

  • I upgraded Firefox, and now there is a blue band on my screen above the window, and I'm not getting the full use of the screen in viewing web pages. How can I get the window to expand to fill the screen as it did before?

    There is a horizontal band or gap above the Firefox window at the top of the screen, where you can see the Windows desktop behind the Firefox window. On the left side of this band are the window tabs, and the menu bar, and another bar with the names of the open windows. I would like to have the Firefox window expand to fill the entire screen, like it did before the upgrade. Thanks.

    Do you mean running Firefox in full screen mode?
    *https://support.mozilla.org/kb/how-to-use-full-screen
    If you are in full screen mode then you can hover the mouse to the top to make the Navigation Toolbar and Tab bar appear.<br />
    You can click the Maximize button at the top right to leave full screen mode or right click empty space on a toolbar and use "Exit Full Screen Mode" or press F11.
    *https://support.mozilla.org/kb/how-to-use-full-screen
    You can also run Firefox in a maximized window to have easier access to the Menu bar and Navigation Toolbar.

Maybe you are looking for

  • ITunes opens to "ALBUMS" instead of "SONGS".

    I want iTunes to open to "SONGS" when I open it and sometimes it does but often it opens to "ALBUMS" instead. Is there a setting for this? Thanks.

  • A long list of complaints that no one at BT will a...

    I was a customer of BT for about 2 years and before that had always had a BT landline in properties I lived within and never found any problems with their service until I came to moving house and then some very serious customer service problems start

  • Untagged Fields

    Hello, When I open a form in LiveCycle 8.1 and go to the PDF Structure, there are no tags or anything showing except something that says PDF Structure can only be used in PDF forms that contain artwork. Since I created the forms in LiveCycle should t

  • Error Handling on LSMW

    Hi Experts, Now I want to use a batch input recording to implement LSMW.We all konw that we can get return message if we use call transaction like below.  CALL TRANSACTION     CALL TRANSACTION 'VA01'                USING  V_IT_BDCDATA              OP

  • Is Oracle XML parser thread safe ?

    Hi, Is XML Parser thread safe ? In other words, if I call parse() from one thread, can I call the same method (or a different method) from another thread ? Is it safe ?. Is there an API that will let me use parser in a thread -safe way ? Thanks Vissu