Update sequence number in PLAF table.

Hi
There is a requirement where I have to update sequence number for Planned Order in ECC.
Sequence Data is stored in PLAF-SEQNR field [Seq. number order].
BAPI_PLANNEDORDER_CHANGE did not work for me. There are only 27 field which i think we can edit (ie field in import parameters BAPIPLAF_I2).
So can someone help me to find a way to update PLAF-SEQNR.
Thanks
Bhavesh

Use an Enhancement Spot

Similar Messages

  • JDBC Adapter - Multiple Table Update - Sequence Number

    I have to design a integration scenario where I will be updating 4 tables in a oracle database. One of these tables is a header table and the rest are detail tables. I have to generate a sequence number using Oracle Sequence number object which is one of the columns in the header table.
    How can i use the Oracle SEquence number object to get the next value with JDBC Adapter?

    Use an Enhancement Spot

  • Passing sequence number to queue table

    Hi anyone,
    I am very new to the advance queue. Have a user_info table. I would like to pass the userid sequence to the queuence table up on insert or update on to the usere_info table.. Here is the step I did so far.
    create type user_id as object(userid number, login varchar2(100));
    execute dbms_aqadm.create_queue_table(queue_tale => 'user_fque_tab', queue_payload_type => 'user_id');
    execute dbms_aqadm.create_queue(queue_name => 'user_que', queue_table => 'user_que');
    execute dbms_aqadm.start_queue(queue_nama => 'user_que');
    Now I am trying to create the trigger on the user_info table to pass the next sequence id to the queue table but not sure what to do.
    so far I created on the trigger
    create or replace trigger user_infor_queue after insert on user_info
    for each row
    declare
    p_userid number;
    enqueue_options dbms_aq.enquue_options_t;
    message_properties dbms_aq.message_properties_t;
    login varchar2(100);
    v_message userdata.user_id;
    begin
    v_message:= userdata.user_id( p_userid =>new.id, login =>:new.login)
    Please help on the creating the trigger...
    thanks

    Hi Bob,
    In TestStand 3.0 and later you can pass the sequence context as a CAObjHandle in CVI. The easiest way to get an example of this is to create a blank sequence and insert an Action step. Right-click on the step and select specify module. On the module tab specify a name for the function. Next on the Source Code tab click Create Code... This will prompt you for a location and name for a project file and a c file. It will then create code for you that demonstrates how to pass the sequence context and use it.
    If you're using an older version of TestStand then the parameters you can pass are fixed. I would suggest looking at one of the shipping examples. The Register step in the following example demonstates how to pass the sequence context and use it: C:
    \Program Files\National Instruments\TestStand 3.1\Examples\Demo\C\cpu.seq
    (This path will be different depending on your version of TestStand.)
    I hope this helps!!
    Regards,
    Sarah Miracle
    National Instruments

  • API to update credit_card number in iby_creditcard table

    We got a requirement to update the credit card number stored in iby_creditcard table with a magic number and the API 'iby_creditcard_pkg.update_card' doesn't have the option to update the credit card. Is there any other API to update the credit card number in iby table?

    Thanks for the reply Sajid. In order to meet PCI compliance we are supposed to wipe out the actual credit card numbers from the system. The actual credit card numbers are stored in encrypted format in IBY_SECURITY_SEGMENTS. So, I am searching if there is any API to update the data in that table as there is no API to delete card information.

  • Need to update sequence value in two table

    Hi guys
    Please help me in the below query
    I will need to insert a row in two different table
    table1
    col1 col2
    table2
    column1 column2
    the col1 in table1 will be assigned a sequence.nextval
    i need to assign the same value in table2 column 1.
    can i do it in a single insert statement

    i would do like this. INSERT ALL is the way to go...
    SQL> create sequence my_seq;
    Sequence created.
    SQL> create or replace function my_seq_fn return number
      2  as
      3  lNum number;
      4  begin
      5  select my_seq.nextval into lNum from dual;
      6  return lNum;
      7  end;
      8  /
    Function created.
    SQL> create table t1(a number, b number);
    Table created.
    SQL> create table t2(c number, d number);
    Table created.
    SQL> insert all
      2  into t1(a,b) values(seq, val1)
      3  into t2(c,d) values(seq, val2)
      4  select my_seq_fn() as seq, level+5 as val1, level+10 as val2
      5  from dual
      6  connect by level <=10;
    20 rows created.
    SQL> /
    20 rows created.
    SQL> select * from t1;
             A          B
             1          6
             2          7
             3          8
             4          9
             5         10
             6         11
             7         12
             8         13
             9         14
            10         15
            11          6
             A          B
            12          7
            13          8
            14          9
            15         10
            16         11
            17         12
            18         13
            19         14
            20         15
    20 rows selected.
    SQL> select * from t2;
             C          D
             1         11
             2         12
             3         13
             4         14
             5         15
             6         16
             7         17
             8         18
             9         19
            10         20
            11         11
             C          D
            12         12
            13         13
            14         14
            15         15
            16         16
            17         17
            18         18
            19         19
            20         20
    20 rows selected.
    SQL> select my_seq.currval from dual;
       CURRVAL
            20 Thanks,
    Karthick

  • Sequence number the internal table

    How can i get my internal table numbered sequentially.

    Hi khan,
    <b>check this code</b>
    data : begin of itab occurs 0,
           sno like sy-tabix,
           vbeln like likp-vbeln,
           netwr like likp-netwr,
           end of itab.
    itab-vbeln = '0005002035'.
    itab-netwr = '5.78'.
    append itab.
    clear itab.
    itab-vbeln = '0005002035'.
    itab-netwr = '-3.25'.
    append itab.
    clear itab.
    itab-vbeln = '0005002035'.
    itab-netwr = '-8.47'.
    append itab.
    clear itab.
    itab-vbeln = '0005002035'.
    itab-netwr = '1.98'.
    append itab.
    clear itab.
    loop at itab.
    itab-sno = sy-tabix.
    modify itab index sy-tabix.
    endloop.
    loop at itab.
       write : / itab-sno , itab-vbeln , itab-netwr  .
    endloop.

  • Table Sequence number

    Hi All,
    I have a scenario which goes like this:
    We have a common table(Table1) in our DB which maintains the sequence numbers(we are not using oracle supplied db sequence).
    For every transaction we are using the current sequence number from the table Table1 and put in Table2, while saving
    we increment that number by 1 in Table1 for next transactions use. For every transaction the sequence number should be unique.
    At any point of time a record with same sequence number should not be inserted in Table2.
    In Table2 this sequnce number is not a unique column.
    To achieve this, we are checking using view object whether current sequence num already exists in Table2 before saving.
    If exists we refresh with new number from Table1. In normal scenario this works fine.
    But if concurrent users are accessing, there are cases where same sequence number getting inserted in the Table2
    with a time difference of 2 seconds or so(very short span, hence programmatic check fails).
    We are unable handle this case using programmatic check of records in table.
    Cany any one suggest the best solution possible to tackle this scenario.
    Thanks,
    Sanjaykar

    sanjaykar,
    Unless you use locking on the "sequence number generator" table, you WILL at some time get duplicates when two people try to insert at nearly the same time. Sounds like you are going for the infamous "gap-free sequence." My honest and not sarcastic nor facetious suggestion would be to go with a sequence number and abandon your approach.
    However, if you insist, you can do this by locking the row in the sequence generator table. You can do this in Oracle by using the FOR UPDATE clause of the SELECT statement like this:
    select current_value
    from my_sequence_table
    where sequence_name = 'foobar'
    FOR UPDATEThat will lock the row. You can then increment the number, specify it as your key value, update the current_value in your sequence table and commit. If another user jumps in around the same time, the SELECT FOR UPDATE will block, as the row is already locked. However, I cannot stress enough that if you are looking for a high-performance application, one that lets more than one person work at the same time, this is a horrible idea. Just pop over to http://asktom.oracle.com and search for gap-free sequences to read plenty of long discussions why.
    Best,
    John

  • Sequence Number on Labels

    Hope someone can help.  I have a request from client to print a sequential number on an avery label.  For example, if i used address labels that were 30 to a page, the first label would have 1 and the second label would have 2, etc.   No data is being printed so i don't have a table,  just the seq number.  Am i missing something easy here or can it not be done in crystal 2008.
    Thanks for any help or suggestions.
    Jeff

    Jeff,
    There's no reason to use Access, Excel, or any other outside application. A just about any modern database will support the use of temporary tables... and that's all you need.
    If your report is built be using linked tables, add the following code as a SQL Command (tested in SQL Server)
    DECLARE @SeqNum INT, @MaxValue INT;
    SET @SeqNum = 1
    SET @MaxValue = (SELECT MAX(SequenceNumber) FROM TableName)
    IF object_id('tempdb..#MyTempTable') IS NOT NULL
    BEGIN
       DROP TABLE #MyTempTable
    END
    CREATE TABLE #MyTempTable (SeqNum INT)
    WHILE @SeqNum < @MaxValue
    BEGIN
         INSERT INTO #MyTempTable (SeqNum) Values (@SeqNum)
         SET @SeqNum = @SeqNum + 1
    END
    SELECT SeqNum FROM #MyTempTable
    1) Be sure to alter line 3 of the code, where is says set @MaxValue = , so that  it is pulling the maximum sequence number from your table... This will make sure the proper number of rows are created... Not too many, not too few.
    2) Link this back to your table using an LEFT OUTER JOIN... With the new command on the left side.
    -- If you are already using a command to pull your data, just add this code to the existing command and reference the #MyTempTable in the main select statement.
    HTH,
    Jason

  • APEX Sequence number when passing data from different instances

    Hello there,
    I have a question for you guys.
    I have an application sitting in my Production area, and the one in test needs to be up-to-date (the data). So I grab the excel file, truncate the table in my test area and load the table from prod into the one in TEST.
    The problem with this is that when I tried to insert a record to the table it gave me the unique constrain error. Because the sequence for the table in test next number is 500 and the last number (primary key) in PROD is 10,000.
    I tried to change that number in APEX but it won't alow me to. The only thing I can change is the minimum and the maximum value.
    Can I change the min to 10,001 so it can now start fro there or what would you recommend to shance the last sequence number of the table to 10,001?
    Regards,
    Ruben Tapia

    Hi,
    Copy your sequence SQL e.g. to notepad. Drop that sequence.
    Edit SQL in notepad by changing number after START WITH to be 10001.
    Then just recreate sequence from your edited SQL =)
    Br,Jari

  • XML insertion/updation using merge and generate sequence number

    Hi,
    I am working on Oracle 11g.
    I have a doubt with XML load.
    I get an xml and I have to insert or update data into a table A. This I can achieve using MERGE statement.
    But there is one column in Table A, that I need to populate with a sequence number, based on the data sent in the xml.
    The xml does not send this column data.
    And I have to make sure the sequence is created based on the order in which records are present in xml.
    For example the MERGE is inserting five rows and then updating next two rows and again inserting 3 rows from xml into table A. The sequence number should be created in the same order for the column in table A.
    Also for each new xml, the sequence starts with 1 and ends with the number of records in the xml. So I cannot create a sequence and use seq.nextval.
    Please let me know, there is a way of achieveing this.
    Thank you!
    Edited by: 934451 on Aug 8, 2012 6:33 AM
    Edited by: 934451 on Aug 8, 2012 6:50 AM

    Hi,
    Following up on your previous thread : {thread:id=2403469}
    You can use the FOR ORDINALITY clause in XMLTable to generate the required sequence :
    MERGE INTO target_table t
    USING (
      SELECT x.seq_num, x.pk_id, x.col1, x.col2, ...
      FROM XMLTable(
             '/root/record'
             passing my_xml_doc
             columns seq_num FOR ORDINALITY
                   , pk_id   number       path 'ID'
                   , col1    varchar2(30) path 'COL1'
                   , col2    varchar2(30) path 'COL2'
           ) x
    ) src
    ON ( t.pk_id = src.pk_id )
    WHEN MATCHED THEN UPDATE
    SET t.seq_num = src.seq_num
       , t.col1 = src.col1
       , t.col2 = src.col2
    WHEN NOT MATCHED THEN INSERT
    (seq_num, pk_id, col1, col2, ...)
    VALUES (src.seq_num, src.pk_id, src.col1, src.col2, ...)
    ;

  • Requirements Plan Number - PLAF Table

    Hai PP Gurus,
    Requirement plan number not updating in the PLAF table.
    What would be the reason?
    Pls throw some light on this.
    Thanks & Regards,
    S.Ganeshraja

    Hi ganesh,
    Before using the fuction module use following table.
    PBHI.
    list out the all the data on particular date (PDATU).
    PBIM:
    Pass the all records with refernce to
    PBHI- BDZEI -> PBIM-BDZEI.
    Now u will get list of records for  material number and plant
    Now use fuction module  for planned order Number,
    i think MRP run  create one planned order for all req Plans for  a day.
    Plz tery and comer back & reward and clsoe teh thread.
    regards
    pardeep

  • How can find SCN or sequence number on the update operation?

    nedd to recovery database, how can find the SCN or sequence number before the update exection?
    thanks

    nedd to recovery database, how can find the SCN or
    sequence number before the update exection?Sorry - there is something confusing about your question ...
    It seems to me the SCN is the 'system change number', which identifies when a change (table, row, block, flush log buffer to log file, etc) has ocurred.
    You seem to be asking for the SCN associated with an update before the update actually occurred.
    Are you actually asking "How do I perform a point in time recovery to immediately before a specific update?"
    Perhaps you could include a few more details, such as database version. For some reason different versions have different capabilities - that could be helpful here.

  • "Sequence number already exists in table" maintining Data Sources

    Hi fellows, i am seting up a new connector in GRC 10.0, but when configuring the connector for the User detailed Data sources i get the same error; "Sequence number already exists in table".
    I have tried with over 200 numbers which I know for sure are available and still get the same error. Where can I find the table with this information?
    Can the information be removed to clean up table space?
    Thanks for your help!!!

    Hi Gabriela
    I recall getting this error a lot and it seemed to be a buffering/memory problem where it was remember the old value was getting remember. I had to exit out of the IMG navigation and reenter it again. It'd happen if I deleted one entry and then went to add another (even after saving). Not sure if you are getting this
    Other thing is to check the backed tables to see if any orphaned values on the primary key
    Regards
    Colleen

  • Updating the sequence number on import?

    OK, this is probably and oldie, and obvious to the informed observer, but I looked out on the web and in here, and apparently I"m not asking the right question 'cause I didn't find the answer:
    When doing an import into Lightroom, I can rename the files.  As part of the rename I'm incorporating
    a sequence number.  I can set the Start Number, BUT once I"ve imported the files, how do I get the
    Starst Number AUTOMATICALLY updated so on the next import it starts at the new value?
    AND, have it retained betwen sessions?  I don't want to have to run around finding the Start Number the
    next time I start Lightroom...

    Ok, I think I have found out what is going on and have answered my own question.
    The 'Import #' and 'Image #' use the entries from catalog settings ONLY if you are importing pictures.
    It does NOT work if you are using 'File / Rename Photo'.
    In that case, they always seem to start at 1.
    It doesn't sound like the logical way to function, but at least I think I have a handle on it now.
    Gary

  • How to create Parent and Children is a tree table / trigger sequence number

    How to create Parent and Children is a tree table when the primary key of the parent is generated via a trigger and a sequence number in the database?
    My problem is when I create a parent and then right away a children. The parent still not have a primary key until the transaction get to the database. I get a error when trying the create the children, cannot insert null in the foreign key field of the children.
    Please help.
    Stephane

    You should have the parent key be marked as a DBSequence type.
    Then you should have the association between the master and detail defined as composite association to make sure that the posting order to the database is correct.
    http://download.oracle.com/docs/cd/E24382_01/web.1112/e16182/bcentities.htm#BABFECDJ

Maybe you are looking for

  • Transaction or report for showing partitions and total amount in BW 3.5?

    Hello, I want to fulfill a unicode conversion of a BW 3.5 system and found out, that this system has some tables with plenty of table partitions (700-1200). To calculate the table splitting it would be very helpful if there is a transaction or report

  • I need to print logo in alv grid

    I need to print logo in alv grid .As of now its getting displayed but it cannot be printed .Kindly tell me wether there is any option to print it .Eitjer using ALV or Object oriented ALV.Please reply soon

  • Solid Red Light - Must Remove Battery to Restart - Gray Load Screen w/ Hourglass

    My Sprint 8830 will randomly glitch, the screen will go black and the light will stay red.  The only way to restart the phone is to remove the battery and go through an extended loading process. I currently don't have insurance so I'm hesitant to rep

  • Adobe Flex - Air Setting??

    Where can I find Air setting of Adobe flex??? kkm

  • Problem with posting links to AD content.

    I was creating a post to refer to an existing solution from another user I'd located via the search feature. Although I copied & pasted the link for the page from my browser when I tested the link it looped back to the current thread rather than the