Change sequence number

In application somebody want to change the sequence number. For example first line's number is 1 , second line's number is 2, third line's is 3. If I want to change second line's number from 2 to 3 and third line's number from 3 to 2 at the same time. There is an error about deadlock when I commit them. How can I solute it?
Thanks :)

you will always get this deadlock issue unless you do this:
save record 3 as something else (ie: 99999)
save record 2 as 3
save 99999 as 2
hope that is clear.

Similar Messages

  • Reading or changing sequence number in TCP packets

    I don't know wether this is feasible,But you're my last chance to figure out something else.Can i read the sequence number that comes inside the TCP header in the incomming packets?This sound illogical but since there is a method for getting the IP of the sender(And that IP exits in the IP header Network layer i),then the sequence number (TCP header inside the Transport layer)must exits in the packet.Can i read it?
    -And an even more illogical question? can i change that sequence number or the acknowlege number to form a new packet ? Its like converting a packet to and from a packet object to a string of bits ?
    I know excatly where the sequence and acknowledge numbers are located (after how many bits) inside the TCP header?

    ejp wrote:
    first off I'm wanna appply this to javame application and jpcap have some native code i dunno how to use it on a cell phone.You cant.You can migrate the code to work on a mobile phone, in theory. This is unlikely to be worth it even if you succeed.
    I was thinking if i can change the acknowledge numberYou can't.Like sticking your hand in a blender. Its simpler to say you can't but I say you shouldn't want to.
    i can order the server i'm connected to to send the data from a specific byte no sequentially.Use a protocol that already understands that. HTTP and FTP spring to mind.There are existing protocols for this which work and your phone is likely to support HTTP with XHTML basic already.
    -Drop this packet and then form another packet with the same info as if it were formed automatically except replaciong the acknolwedge number with the size of my buffered data + 1.TCP/IP will never let this work even if you could do it, which you can't. You cannot skip data this way. This is not what acknowledgements and sequence numbers are for.
    I also know that some protocols support requesting files from a specific byte(like HTTP) but i wanna do it inside the network layer not the application layerWhy?You prefer the blender, I see.

  • How to change the sequence number in the test packages?

    Hello,
    I need to change the sequence number in the test packages. Currently I use "move test case." However you can only move one item at a time.
    There is another option to make this change?
    Best regards,
    Elisabete

    Hi Elisabete,
    Sorry, I've to acknowledge the reply from Fabricius.
    That's poor in release 7.0. A former version provided a solution where it was possible to move a testcase even over pages at once.  May be SAP changed this functionality because of other problems caused by the former solution.
    Therefore I am looking for a business blueprint structure meeting the logical and operational process for little need of changes in sequences.  And I create E2E-scenarios / E2E-processes as an additional structure in a project to have an easier approach in the Test Workbench.  An other option is to divide test packages into smaller ones.
    I hope we can look foreward to a better and more comfortable solution in release 7.1.
    Best regards,
    Adelbert

  • How to pass the sequence number of current loop in a for loop in FPGA vi to the host

    PCI-7830R
    LV 8.2
    What I was trying to do is to use multiple DIO to generate pulse at different sequence. Mode one is to automatically sweep from DIO1 to DIO20; mode 2 is several DIOs generate pulse simoutaneously.  So I use a case structure to make the selection, in the mean time, I set up two for loop in each case so that I can use multiple pulse generations. For example, in scanning mode, if I set 2 exposures, it sweeps from 1 to 20 then do it again.  
    Then I need to get the loop sequence number, i of each scenario. So I put an indicator within the first loop, and create a local variable of it and put in the second one.  Running the FPGA vi alone, I can see the indicator change in each case from 0 to N-1, N being the for loop time.But in the host vi, I tried to add this indicator as an element in the read/write invoke method, in the debugging mode, I could only see it directly jump to N-1 without all the changes I saw in FPGA vi. 
    Is it possible to get this number passed correctly from FPGA vi to the host vi? Thanks

    Thanks for the reply Jared.
    Excuse me if it looks incorrect, but I'm new to FPGA programming, so I would have to look into the FIFO you referred to.  I used local variables because for one thing I have several different cases containing for loop in each of them, and I only want one indicator for the "i".  If I put the indicator out of any for loop, it's only gonna show the last number which is N-1.  For the other thing, it seems like property nodes are not allowed in FPGA vi.  And by doing this, I can see the i number changing from 0 to N-1 in each case, well, in FPGA vi's front panel.  But while I ran the host vi with everything, the indicator in host vi's front panel only showed the last number N-1. It may be the reason you said, it happened too fast before the indicator in host vi can catch it.
    What I want to realize is to group the data I collect in host vi, for example, when I choose multiple exposure in each mode, and the FPGA runs 1 through 20 then do it again, I want the data stored in two groups using the loop sequence number as the seperator in file name.  So it goes like 1-1, 2-1.......20-1; then 1-2, 2-2,.....20-2.

  • Batch rename with minimum numeber of digits in sequence number

    I'm pretty sure I remember this working how I wanted in previous versions of Bridge, but at least since cs4, it has not worked as I would like. I've tried searching for an answer or a setting that I'm missing, but have come back empty-handed.
    Here's my situation. Let's say I'm renaming 18 files. Each file has a sequence number. I want the sequence numeber for the first 9 to be one digit, and for the second nine to be 2 digits.
    i.e. image_1.jpg, image_2.jgp, image_3.jpg...image_10.jpg, image_11.jpg...
    The best way I've found that I can do this is to select all 18 images, and assign a 2-digit sequence number. Then, once that is complete, select the first 9 and repeat, but with a 1 digit number.
    In the past, I could select all 18 images, and choose a 1 digit number, and after 9, it would switch to 10, instead of going back to zero. Is there still a way to do that? I know it's only one extra step, but that one extra step is actually kind of two, because each time I have to reset tho starting number back to 1 or 10, and switch the setting from 2-digits to 1-digit and back again. And I usually have to rename multiple groups of files at once, so it does add up. Granted, much better than renaming one at a time, but not as convenient as I feel it could be, and as it once was.
    Am I missing something?
    Thanks,
    iLan

    While I certainly can understand the way in which computers work, I also understand that in a program as complex as any of the components in Adobe's Creative Suite, there is most certainly a way to override the computer's numerical logic so that it can remove the initial "0" from a 2-digit number. Granted, that may not be possible in the current version of Bridge, theoretically it is "Possible". And I'm quite sure it functioned that way in previous versions, although I really don't know which version I was using when it worked that way. Maybe cs2?
    As a developer, the whole reason for this question is to avoid having to create extra code in my applications to add an unnecessary "0" to digits 0-9 in any filenames of any files I want to load. Although it looks as though adobe changed the default behavior of the batch rename function, and removed (or in some peoples' minds improved) some functionality without an option to get it back.
    Unfortunately for me anyways...
    Thanks for the help,
    ilan

  • Daily sequence number

    Hi,
    I need a clean solution for a daily sequence number (starts from 1 everyday). Clean in the sense that upon initial setup, I do not have to do anything and I can get my number everyday by just one jdbc call/query.
    Thank you in advance.

    What is the business justification for this requirement? Normally, you should just use a regular non-resetting sequence. If users want to see a "pretty" sequence number, simply generate something for them when you query the data using the row_number, rank, or dense_rank analytic functions. If users want to see sequences reset, they probably also want to see gap-free sequences, which is not something that you can ever guarantee in a scalable system where multiple users are allowed, though you can present gap-free sequences of values at query time.
    You can have a job that either drops and recreates the sequence every day or that goes through some logic to reset the sequence to 1 by changing the increment. This gets rather hairy, though, because the job will fail (or fail to run) on occasion and requires that no one be processing data at the time.
    Justin
    Distributed Database Consulting, Inc.
    http://www.ddbcinc.com/askDDBC

  • A sequence number error in a form

    I am currently creating a form with a sequence number in forms 10g
    <pre>
    table name: emp
    table desc: emp_id number,emp_name varchar2(20),emp_no number
    </pre>
    i have to generate the emp_id automatically.
    <pre>
    create sequence emp_seq
    minvalue 1
    start with 1
    increment by 1
    cache 20
    </pre>
    I use pre_insert trigger in block
    <pre>
    begin
    select emp_seq.nextval into :emp.emp_id from dual
    end
    </pre>
    problem;
    I can not insert a record because of sequence number in :emp.emp_id
    no compilation error but there is no automatic sequence number appeared in :emp.emp_id after run a form.
    It used to work before(fine with automatic sequence number in :emp.emp_id).
    it happens after I changed layout format and someone add more columns in emp table.
    eventhough i did not use sequence number in emp.emp_id
    in pre-insert-trigger
    <pre>
    begin
    select nvl(max(emp_id),0)+1
    into :emp.emp_id
    from emp;
    </pre>
    still can not show up any number in :emp.emp_id
    please help me out

    Thank you . It works now.
    would you mind explain to me; what I can not use automatic sequence number in emp.empid text field in pre-insert-trigger in my case
    is it trigger confliction in my forms?

  • Sequence number in filenames

    Hello,
    When DB dumps next segment of its log, new files are named autolog_name.XXX, where XXX is my problem. I thought that when I perform full backup, this number will reset and start with "001" but it did not
    How can I reset this sequence number in filenames generated by autolog?

    > Hello,
    >
    > I agree that DB won't know which is correct. But if I
    > make full DB backup and keep it safe (1), old log
    > backup are useless,
    Nope - you can always use an "older" backup and apply the archive logs, this is the same as using a newer backup and use newer archivelogs.
    >  so I thought that I can start
    > numerating backup files from "001" again. I change
    > name of autolog media after every successfull full
    > backup, so there files would not be overwritten
    > anyway.
    >
    If you have a problem with the backup for whatever reason, you won't be easily be able to recover an "older" one with that scenario. I have no idea, what problem you have with the "filenamenumbers" but if that is ok for you it's for me too
    Markus

  • Sequence number for group of values in column

    I need to create a sequnece number in a column starting from 5 and incremented by 5, based on values presenet in first column. If the value in first column changes then the sequence should start again with 5 and increment by 5.
    for example: I want to generate the following output
    Cat_code     Seq_No
    1001          5
    1001          10
    1001          15
    1001          20
    2001          5
    2001          10
    2001          15
    3001          5
    3001          10
    4001          5
    4001          10
    4001          15
    4001          20
    5001          5
    6001          5
    7001          5
    7001          10
    7001          15
    7001          20
    7001          25
    So if the cat_code changes, the sequence number should again start from 5 and should be generate sequence number until the cat_code changes again.
    any help apreciated.
    Thanks
    Rahul

    Hi, Rahul,
    You can use the analytic ROW_NUMEBR function to generate the numbers, like this:
    SELECT       cat_code
    ,       5 * ROW_NUMBER () OVER ( PARTITION BY  cat_code
                                     ORDER BY        NULL
                         )       AS seq_no
    FROM       table_x
    ORDER BY  cat_code
    ,            seq_no
    ;You must use an analytic ORDER BY clause when you call ROW_NUMBER. If you don't really care about the order, then you can ORDER BY a constant, but you still need the analytic ORDER BY clause.

  • Sequence Number By Date Option For File Naming

    I would like to see Lightroom have the option to have the sequence numbers be reset when the date changes and increment accordingly. For example, I have the file naming set to use Date (YYYYMMDD) Sequence Number (0001) and the sequence number starting at 1. As Lightroom is now I will end up with 200909010001, 200909010002, 200909020003, 200909020004, 200909030005 200909030006 etc. and what I would like to see is the option for 200909010001, 200909010002, 200909020001, 200909020002, 200909030001 200909030002.
    This would make it much faster for renaming or import when using this combination of date and sequence in file names.

    Hi
    For the Transport Protocol "File Transfer Protocol (FTP)" files are always processed in ascending alphabetical order
    If you want the file to be processed in sequence then you can use Quality of Service EOIO in the sender adapter.
    The files are processed in the sequence they are picked up.
    otherwise use BPM for File Sequencing..
    Refer the following Threads
    FTP Sender Adapter - Processing Sequence
    Processing Sequence issue of FTP protocol
    Regards
    Abhijit
    Edited by: Abhijit Bolakhe on Nov 4, 2009 10:32 AM

  • Sequence number adjustment in the column

    In my table maintenance generator,
    I have one field called sequence number which increments by '1', each time user enters a new record in my table maintenance generator(have coded in such a way).
    now the internal table, under sequence column if some records get deleted,
    then the numbering of that column should be adjusted automatically.
    Like
    1st record -     1 A B D
    2nd record -     2 A B C
    3rd record -     3 A B D
    4th record -     4 A B C
    5th record -     5 E D F
    If some user deletes 3rd record , then instead of showing the TMG as below
    1st record -     1  A B D
    2nd record -     2  A B C
    3th record -     4  A B C
    4th record -     5  E D F
    the TMG should should show  as
    (I need that to be sequence column adjusted as )
    1st record -     1  A B D
    2nd record -     2  A B C
    3th record -     3  A B C
    4th record -     4  E D F
    My thought is to write on new module in PAI,
    and buils the logic in case of syst-ucomm = 'DELE'.
    Please suggest me any function module availble or any good logic for this
    Thanks in ADV.

    This really isn't the way the TMG was meant to be used. Normally, one just uses it to manually add change or remove individual records, not a number of records based on some logic. It would probably be simpler to build a simple dynpro to take care of this.
    Rob

  • Re-sequence number problem

    hi all
    i created two text items in form one for sequence number and other for non sequence, i want when i add 01 in non sequence item-text so the sequence number does not change and it should remain the same? is it possible plz help me out thanks in advance.
    sarah
    Edited by: SarahSarahSarah on Aug 30, 2009 12:37 AM

    here is the code:
    on key-commit trigger
    begin
    if
    :ins1.EDNO is null
    then
    SELECT sarahseq.NEXTVAL INTO :ins1.serial FROM DUAL;
    end if;
    :ins1.branch1 := :ins1.branch;
    :ins1.class1 := :ins1.class;
    :ins1.year1 := :ins1.year;
    :ins1.serial1 := :ins1.serial;
    :ins1.cno1 := :ins1.cno;
    :ins1.edno1 := :ins1.edno;
    :global.data := :branch || ' ' || :class || ' ' || :year || ' ' || :serial || ' ' || :cno || ' ' || :edno;
    commit_form;
    call_form ( 'c:\temp\plate no.fmx', no_hide, no_replace, no_query_only );
    END;
    sarah

  • 70D changed sequence numbers from 6.. to 5...

    Month old 70D was issuing sequnce numbers OK in August 31  in the 600 range but on September 2  (the next time I used the camera) the sequence numbers changed to 5000. I manually changed the date to October but the sequence numbers remained in the 5000 range so it probably had nothing to do with the month change. I did a menu RESET,  took a photo and it was just the next number (5102) so no help there. In both cases there is a number 100 and a dash preceding the sequence number. Any suggestions? Thanks 
    BTW the camera FILE NUMBERING setting is CONTINUOUS
    Solved!
    Go to Solution.

    Hello bob70D,
    The most likely culprit with something like this is going to be the card.  It is very likely that the camera is reading an old file numbering scheme (could even be from another Canon EOS DSLR) and "picking up" where the numbers leave off. 
    To test this, and really to resolve this issue, you'd need to format the card.  Only do this in the camera and only once you've backed up your pictures.  First, set the camera's file numbering to Manual Reset and then Format.  It will bring everything back to 0001.  Then go back into the Menu and back to file numbering and choose Continuous this time. 
    Did this answer your question? Please click the Accept as Solution button so that others may find the answer as well.

  • Bapi BAPI_GET_PAYROLL_RESULT_LIST fetches wrong sequence number

    Hi,
    I am using bapi BAPI_GET_PAYROLL_RESULT_LIST to get the sequence number by passing personal number and date range. This bapi instead of fetching the supplied period's sequence number, it fetches sequence number one less than expected.
    This data can be viewed from transaction pc_payresult. Can anybody suggest please.
    Regards,
    Taj.

    The infotype has to be changed to relevant.
    Edited by: Mohd Tajuddin on Dec 20, 2009 8:45 AM

  • CM25 Sequence Number Maintenance View

    Dear guru ,
    i enter sequence number operation in the specific view of CM25.
    In the sequence number maintenance view the production orders are sorted in order of production order number.
    I want that production orders are sorted in this view in order of  sequence number operation.
    How can i do this ?
    Thanks in advance.

    I assume that you want to display the sequence number of each order in the mid and lower graphic panel, is that ?? And be able to sort order based in this field ?
    Try this
    Customizing
    Production Planning
    Capacity Leveling - Transaction: OPD0 : Overall profile
    Go to list Profile: SAPSFCI001
    Goto Profile for list variant: SAPSFCD001
    Check also the profile for evaluation;
    Subprofile for displayed fields: SAPSFCF0
    Subprofile for sort criteria: SAPSFCS0
    make the required changes, adding Sequence as field
    I would suggest to create a complete set of new Z profiles.
    Regards

Maybe you are looking for

  • Macbook Pro intel core duo, will not boot to anything.

    Greetings, I am currently having issues with my MacBook Pro.  I get the flashing folder with the ?, but I can't boot to any of the startup utilities.  I have tried all that I have read about on other posts, such as, trying to boot with the C key held

  • B1PO2R3SO line items are repeated

    Good day, When a purchase order (B1.2005_PO) containing 5 lines is sent from B1 to an R3 SO (ORDERS05) the IDOC is created and processed without an error, however the line items within the IDOC are repeated twice. After downloading the message from t

  • EXPORT to Memory

    I want to get rid of EXPORT and IMPORT statement.  What are the alternative ways for Import and export. EXPORT TO memory ID & IMPORT from Memory ID BRegards Pravin

  • Inc0/1 and arch backup at the same time

    Hi! During the inc0/1 backups I need to run additional archivelog backups. Otherwise the FRA is filled up. But then the the last part of the inc0/1 backup - the archivelog part - fails: Starting backup at 07//09/2010 current log archived released cha

  • Type dissappearing in InDesign document

    I am working in CS4 and transferring files from a mac pro in my home office to a mac pro in my clients office. When I open the document, type is missing. There is a text box for the type but the type is gone and has to be typed in again. Has anyone e