Auto Numbers under Oracle

Hello,
how do get oracle generate an auto number. i.e. next number in
sequence. for example for id number?
new number = old number +1
alex
null

Oracle has sequence objects to handle this issue.
CREATE SEQUENCE my_counter;Then in your insert statements do something like this:
INSERT INTO mytable(id, other)
VALUES
(my_counter.nextval, 'value');
, where other and value are whatever you need them to be.
sequence_name.nextval and sequence_name.currval are the two most
useful options for sequences.
You can, of course, create a separate counter for each table on
which incrementing is needed.
See docs on other params available to the create sequence
command.
Andrew
Alex Korneyev (guest) wrote:
: Hello,
: how do get oracle generate an auto number. i.e. next number
in
: sequence. for example for id number?
: new number = old number +1
: alex
null

Similar Messages

  • Auto numbering is happening even when F11 is pressed

    Hi ,
    We are developing a customer form wherein we have 2 data blocks . These two data blocks share the master-detail relationship. The detail block is a multi record block.
    We are auto numbering an item <line_number> in the detail block following the steps mentioned in the metalink [ID 33342.1]
    https://support.oracle.com/epmos/faces/ui/km/SearchDocDisplay.jspx?_afrLoop=130989808463426&recommended=true&type=DOCUMENT&id=33342.1&_afrWindowMode=0&_adf.ctrl-state=ud1uneota_69
    The steps mentioned in the link are generating numbers automatically when a new record is created and resequences the line numbers when a record is deleted. It works fine in these two scenarios.
    But we have two issues here :
    1) The line numbers are getting generated even when we press F11 in th detail block. This should not happen in our form. (We need to suppress the auto numbering in F11 mode)
    2) If we move the cursor to a new record in the detail block, the line number gets generated there but if we move back to the previous record without entering anything in the new record, that new record does not disappear. It stays there .
    Please let us know how can the above two issues be resolved
    TIA
    -SR

    Hi.
    From what I saw on metalink note this is expected behavior. So the first problem is simply to solve, Just call :SYSTEM.MODE function and if it's result is ENTER-QUERY then do nothing (do not call resequence routine). As for the second problem there is a simple solution if your business logic can accept it. You could make one item in child block required. This way a user could not walk away from that record without deleting it first. If this solution is not applicable to you then you will have to manually program logic for this situation.
    Best regards.
    Edited by: gregor13 on Mar 20, 2013 2:38 PM

  • Auto numbering tables

    I am currently using FrameMaker 8.0 and have had a problem with the auto numbering of tables.
    Can anyone tell me if it is possible to auto number tables using different chapter numbers within the one document?
    I know that it is possible to do this when the chapters are seperate documents within one book.
    E.g.
    First page - Chapter 1
    Table 1.1
    Table 1.2
    Next page - Chapter 2
    Table 2.1
    Table 2.2 etc.
    For some reason when I try to do this any tables under Chapter 2 are still named Table 1.1 and Table 1.2 etc.
    I have tried using a series but that still does not seem to work.
    Any help would be appreciated!

    Thank you both, this helped a great deal.<br /><br />However, I am still having trouble with one file in the book. It seems to be repeating the same chapter number not adding one when the style appears again.<br /><br />E.g. Page 1 has Chapter 1 (C:Chapter <n+>)<br />     Page 3 has Chapter 1 (which is meant to be Chapter 2)<br /><br />Also is there a way to continue the chapter numbers from a previous file in the book?<br /><br />E.g. File A has Chapters 1-4 in it<br />     File B has Chapters 5-8 in it<br /><br />At the moment they are restarting in each file.<br /><br />Any ideas?<br /><br />Thanks,<br />Skye

  • Adding Auto-Numbering ID

    Hi everybody
    I'm using oracle 9i , and I want to add auto-numbering identity column to existing tables, how can I do this? is it possible to add it for already existing rows?
    and is it necessary to link the related tables through this new added ID???
    thanks in advance

    An "auto-numbering identity column" is a bit of a SQL Server-ism. In Oracle, you can create a sequence object and use that in your insert statement or create a BEFORE INSERT trigger that populates the value, i.e.
    CREATE SEQUENCE my_sequence
      START WITH 1000
      INCREMENT BY 1
      CACHE 100;
    INSERT INTO my_table( new_id_column, <<column list>> )
      VALUES( my_sequence.nextval, <<more data> );Justin

  • How do I turn off auto-numbering?

    I want to turn off auto-numbering in iWeb. I tried doing it in the Inspector under Text/lists by selecting "none" but that didn't work. Can anyone help?

    Thanks, Old Toad. I'll try it. While continuing to work the problem last night, I discovered if I hold down "shift" when I hit "return" to go to the next line, it suppresses numbering and I can do it myself, the old-fashioned way. I remember seeing that trick in another iWeb context in a Google search, but it appears to work on numbering, too.
    Hey, if I want numbering, it's surely simple enough that I can do it myself, just like if I want to type the word "the"! I'm a touch typist, and I can fly when I get going, and any sort of "auto" function trips me out of the flow, actually making what I'm doing harder, not easier. The "shift-return" solution will also make it harder, until I get it down pat. Maybe one of these days the propellor beanies will bring in an actual user for a consult before they force such dubious improvements on the whole population. I'm sure there are folks who think this is cool, but that doesn't mean it's progress.
    Anyway, thanks for your help.
    Best,
    Steve

  • How to set the AS2 fileName for outbound Functional Ack 997 auto generated by Oracle B2B

    Hi Friends,
    How to set the AS2 fileName for outbound Functional Ack 997 auto generated by Oracle B2B.
    External Trading Partner is sending the EDI 856 via AS2 URL to our Oracle B2B Server.
    In the inbound 856 agreement, we have checked the option of Funtional Ack and also Functiona Ack handled by B2B is yes.
    We have the outbound agreement which is sending that Functional ack 997 (auto generated by oracle b2b) and we have specified the Outbound AS2 channel of the Partner.
    997 doc is being sent to external partner using AS2 channel, but the filename is generating as '40101'.
    Please can you let me know how to set the AS2 fileName for outbound Functional Ack 997 auto generated by Oracle B2B.
    Appreciate your valuable answers!!
    Thanks,
    Amirineni

    Amirineni,
    AFAIK, there is no option to set the file name when the 997 is generated automatically by B2B.
    Alternatively, if this is a must requirement, you can generate the FA from backend and  send to B2B with MSG_TYPE =9. In this case, you can set the header with filename (How to set the actionname property in B2B 11g)

  • Contacts with multiple numbers under the same labe...

    i
    I have many contacts which have numbers saved under the same label.
    For example a contact like this:
    First name: A
    Mobile: 11
    Mobile: 22
    Telephone: 33
    Telephone: 44
    When I open Ovi Suite / Contacts / Contacts in E51 and open the abovementioned contact "A" it shows:
    A
    Mobile: 11
    Telephone: 44
    Mobile (other): 22
    As you see it deleted one of "Telephone" labeled numbers. It also happened when I used PC suite.
    It is really annoying as if I save/sync the contact using Ovi, it causes loss of contacts data.
    BTW there is no problem using Backup/Restore function of Ovi/PC suite, nor "Copy to memory card" function of the phone itself.
    Ovi suit version : 2.1.1.1
    Nokia E51 v300.34.56
    Windows 7
    PS:
    tested another one with 6 different numbers under the same "Mobile" label
    the result in Ovi is:
    AA
    Mobile: 11
    Mobile (main): 33
    Mobile (other): 22
    the other 3 numbers were lost

    atammin wrote:
    Ah, you have an interesting setup here.
    Could you answer a few clarifying questions regarding this.
    > When I open Ovi Suite / Contacts / Contacts in E51 and open the abovementioned contact "A" it shows
    * Did you perform a sync? Or did you just connect the phone and look at the contact card in the phone view?
    I had performed sync before and realized that some contact data are missing in my phone, so I started investigating to see exactly which contacts are affected by creating some dummy contacts and editing them by clicking on my phones icon below the window of "Contacts" tab in ovi.
    * Did you check the contact in your phone (using the phone's UI)? Were all the details there - or are you saying that Ovi Suite lost some of the details?
    In fact both. Ovi fails to extract and show some numbers and thus fails to write them back to the phone correctly. The lost details are purged from the phone too.
    Just to confirm I've understood the scenario correctly
    1) you have contact card in phone with two mobile numbers  (same label) and two telephone numbers (same label)
    yep
    2) you sync with Ovi suite
    Either Sync or directly open and save contact.
    3) the mobile numbers have been re-labled  to Mobile and Mobile (other) but the numbers are preserved
    They are re-labled only when viewed in Ovi, but  written back to the phone with the same "Mobile" lable as created on the phone.
    4) one of the Telephone numbers is completely lost from Ovi Suite and phone.
    And this scenario happened with this setup:
    - Ovi suite version : 2.1.1.1
    - Nokia E51 v300.34.56
    - Windows 7
    I just want to be clear on the setup and scenario so we can investigate.
    thanks, Aki
    I also done another test
    This is the contact created in phone:
    BEGIN:VCARD
    VERSION:2.1
    N:;A
    TEL;CELL:11
    TEL;CELL:22
    TEL;CELL:33
    TEL;CELL:44
    TEL;CELL:55
    TEL;CELL:66
    TEL;VOICE:11
    TEL;VOICE:22
    TEL;VOICE:33
    TEL;VOICE;HOME:11
    TEL;VOICE;HOME:22
    TEL;VOICE;HOME:33
    TEL;VOICE;WORK:11
    TEL;VOICE;WORK:22
    TEL;VOICE;WORK:33
    X-CLASSrivate
    END:VCARD
    And this is what happens to contact when I just click edit and then save in Ovi.
    BEGIN:VCARD
    VERSION:2.1
    N:;A
    TEL;CELL;PREF:11
    TEL;CELL:33
    TEL;VOICE:33
    TEL;VOICE;HOME:33
    TEL;VOICE;WORK:33
    END:VCARD
    I also attached what ovi shows about this contact as an image.
    Attachments:
    displayed in ovi.PNG ‏9 KB

  • When making a photo book in Aperture. How do you eliminate having the image numbers under the pictures?

    When making a photo book in Aperture. How do you eliminate having the image numbers under the pictures?

    Click the "Book Actions" cogwheel and select "Page Numbers " -> "Off"
    Regards
    Léonie

  • Performance of PL/SQL-packages under Oracle 11gR2

    Under Oracle 9i I have used PL/SQL-packages/procedures to perform complicated initializations of the tables of a database schema.
    This was always a long job ... but an execution time of about 4 hours was acceptable!
    Now I changed to Oracle 11g.
    And now there is the following behaviour:
    When I create a NEW instance of the database and then create the schema the execution time ( using the same PL/SQL-packages as in Oracle 9i ) is more than 12 hours which is not acceptable anymore!
    When I only drop the schema ( in the EXISTING instance ) with a drop user (owner of the schema) cascading and then create the schema again the execution time for the same initialization is less than 3 hours which is OK.
    Does anyone have an idea about the reason for such a 'strange' behaviour?
    ... Or does anyone have a hint where I could look for such reasons?

    Hi,
    did you compare the execution plan in 9i and 11g R2?
    when you go to 11gR2, did you keep the statistic of the 9i, so if any regression, 11g can use 9i plan?
    thanks

  • I'm writing a report and need a title page, so I want the auto-numbering to start with the second page. So the title page is zero and the next page will read "1"

    I'm writing a report and need a title page, so I want the auto-numbering to start with the second page. So the title page is zero and the next page will read "1" How do I do this?

    Hi H4S,
    Click at the end of the Tile page.
    Menu > Insert > Section Break.
    Click in the second Section. Insert a page number in the Header or Footer.
    Inspector > Layout > Section:
    Regards,
    Ian.

  • Displaying line numbers in oracle Sql developer

    hi guys, can someone tell me how to display line numbers in oracle sql developer Version 2.1.1.64?.

    I absolutely didn't know where it was, so I had to look for it, and it appears easy to find.
    Hit Tools
    Hit Preferences
    Expand Code Editor
    Navigate to line gutter
    Now click 'Show line numbers'
    And, oh yes, there is a separate sql developer forum. Please keep sql developer issues in that forum.
    Sybrand Bakker
    Senior Oracle DBA

  • Auto payment under F110,

    Hi SDN,
                  While processing auto payment under F110, the adjustmemos are not getting adjusted. Only the negative figures are picked up from the vendors list an dnot the positives.  On processing, a text appears as "***Exceptions******". When we double click and go in side and tick "Reallocate" only then, the adjustment happens.  In a real time, we cannot go and tick "Reallocate", all the time.  Kindly advise.
    Thanks & Regards,
    Kumar

    Hi SDN,
       We have debug the standard program for F110 and found out the condition, which causes to show the line item as " ***** Exception******* ".
    Program name  : F110OO00
    The condition is  <b> IF XREGUO-VBLNR EQ SPACE.
                           WRITE TEXT-001 TO F110O-AZEI1+50.
                       ENDIF.</b>
    TEXT-001 contains " ***** Exceptions******* ".
    Kindly advise how to proceed.
    Solution will be appriciated.....
    Thanks & Regards,
    Kumar.

  • Problem when create auto numbering in BP master using Formatted Search

    Hi all,
    I have a problem in creating auto numbering in BP for Customer type using Formatted search
    My query is like this
    declare @tempNo as char(20)
    set @tempNo=(select  Isnull(max(REPLACE(OCRD.CardCode , LEFT(OCRD.CardCode,10),'')),0)  + 1
    from OCRD where (CardType ='C') and LEFT(OCRD.CardCode,3) = 'CU.' )
    set @tempNo='CU.'left(convert(varchar,GETDATE(),112),6)'.'+@tempNo
    select cast(@tempNo as char(20))
    It should be creating the new number for example
    CU.201101.1
    CU.201102.2
    CU.201103.3
    CU.201103.4
    The format will be like this CU.YYYYMM.autonumbering
    So if the current year is still the same it will always increase the number and it will reset the number become 1 if the current year is change.
    But when i execute the number , the number doesn't increase, still generate the last number CU.201103.4
    I have use this query in generate item number, it runs well but different format.
    Is there some thing wrong with my query?
    Thanks in advance
    Regards
    Jia shun

    Hi Jia shun,
    You have posted an identical threads. There is no such need. Please close this one and response to the one with answer already.
    Thanks,
    Gordon

  • How to use auto numbering with ENG_ECO_PUB.PROCESS_ECO (EBS version 12.1.1)

    Hi All,
    I'm trying to create a new ECO using the PL/SQL API "ENG_ECO_PUB.PROCESS_ECO". I want the ECO name to be automatically assigned by the system but when leaving the ECO_NAME empty (in paramter P_ECO_REC) I get the error message:
    "You must enter an ECO name and organization because they are the primary identifiers of a business object. Please ensure that these values exist in all your records and re-run the import process."
    I have set the profile option "ENG: Change Order Autonumbering - System Administrator access" to yes.
    I have set following fields in P_ECO_REC:
    p_eco_rec.organization_code := 'V1';
    p_eco_rec.change_type_code := 'ECO';
    p_eco_rec.description := 'Test';
    p_eco_rec.transaction_type := 'CREATE';
    p_eco_rec.plm_or_erp_change := 'ERP'; -- also tried with 'PLM'
    p_eco_rec.approval_status_name := 'Approved';
    Do I need to set anything else?
    Thanks,
    Carolin

    Hi Helios,
    thanks for reply.
    I checked note 1242524.1, but there's no advice what to configure for using auto numbering.
    I tried it again with adapted sample code and leaving the ECO_NAME empty:
    DECLARE
    -- API Input variables
    l_eco_name VARCHAR2(9) := '';
    l_org_code VARCHAR2(3) := 'V1';
    l_rev_item_number VARCHAR2(20):= 'CS_Test_Assem_10';
    l_eff_date DATE := '8-SEP-2011';
    l_new_revised_item_revision VARCHAR2(2) := 'A';
    l_eco_rec Eng_Eco_Pub.Eco_Rec_Type := Eng_Eco_Pub.g_miss_eco_rec;
    l_eco_revision_tbl Eng_Eco_Pub.Eco_Revision_Tbl_Type := Eng_Eco_Pub.g_miss_eco_revision_tbl;
    l_revised_item_tbl Eng_Eco_Pub.Revised_Item_Tbl_Type := Eng_Eco_Pub.g_miss_revised_item_tbl;
    l_rev_component_tbl Bom_Bo_Pub.Rev_Component_Tbl_Type := Eng_Eco_Pub.g_miss_rev_component_tbl;
    l_sub_component_tbl Bom_Bo_Pub.Sub_Component_Tbl_Type := Eng_Eco_Pub.g_miss_sub_component_tbl;
    l_ref_designator_tbl Bom_Bo_Pub.Ref_Designator_Tbl_Type := Eng_Eco_Pub.g_miss_ref_designator_tbl;
    l_rev_operation_tbl Bom_Rtg_Pub.Rev_Operation_Tbl_Type := Eng_Eco_Pub.g_miss_rev_operation_tbl;
    l_rev_op_resource_tbl Bom_Rtg_Pub.Rev_Op_Resource_Tbl_Type := Eng_Eco_Pub.g_miss_rev_op_resource_tbl;
    l_rev_sub_resource_tbl Bom_Rtg_Pub.Rev_Sub_Resource_Tbl_Type := Eng_Eco_Pub.g_miss_rev_sub_resource_tbl;
    -- API output variables
    x_eco_rec Eng_Eco_Pub.Eco_Rec_Type := Eng_Eco_Pub.g_miss_eco_rec;
    x_eco_revision_tbl Eng_Eco_Pub.Eco_Revision_Tbl_Type := Eng_Eco_Pub.g_miss_eco_revision_tbl;
    x_revised_item_tbl Eng_Eco_Pub.Revised_Item_Tbl_Type := Eng_Eco_Pub.g_miss_revised_item_tbl;
    x_rev_component_tbl Bom_Bo_Pub.Rev_Component_Tbl_Type := Eng_Eco_Pub.g_miss_rev_component_tbl;
    x_sub_component_tbl Bom_Bo_Pub.Sub_Component_Tbl_Type := Eng_Eco_Pub.g_miss_sub_component_tbl;
    x_ref_designator_tbl Bom_Bo_Pub.Ref_Designator_Tbl_Type := Eng_Eco_Pub.g_miss_ref_designator_tbl;
    x_rev_operation_tbl Bom_Rtg_Pub.Rev_Operation_Tbl_Type := Eng_Eco_Pub.g_miss_rev_operation_tbl;
    x_rev_op_resource_tbl Bom_Rtg_Pub.Rev_Op_Resource_Tbl_Type := Eng_Eco_Pub.g_miss_rev_op_resource_tbl;
    x_rev_sub_resource_tbl Bom_Rtg_Pub.Rev_Sub_Resource_Tbl_Type := Eng_Eco_Pub.g_miss_rev_sub_resource_tbl;
    -- Other API variables for return status / error handling / debugging
    l_error_table Error_Handler.Error_Tbl_Type;
    l_return_status VARCHAR2(1) := NULL;
    l_msg_count NUMBER := 0;
    l_output_dir VARCHAR2(500) := 'C:\temp';
    l_debug_filename VARCHAR2(60) := 'su_debug_10_15.dbg';
    -- WHO columns
    l_user_id          NUMBER := -1;
    l_resp_id          NUMBER := -1;
    l_application_id     NUMBER := -1;
    l_row_cnt          NUMBER := 1;
    l_user_name          VARCHAR2(30) := 'MFG';
    l_resp_name          VARCHAR2(30) := 'MFG_AND_DIST_SUPER_USER_APS';
    BEGIN
    -- Get the user_id
    SELECT user_id
    INTO l_user_id
    FROM fnd_user
    WHERE user_name = l_user_name;
    -- Get the application_id and responsibility_id
    SELECT application_id, responsibility_id
    INTO l_application_id, l_resp_id
    FROM fnd_responsibility
    WHERE responsibility_key = l_resp_name;
    FND_GLOBAL.APPS_INITIALIZE(l_user_id, l_resp_id, l_application_id); -- Mfg / Mfg & Dist Mgr / INV
    dbms_output.put_line('Initialized applications context: '|| l_user_id || ' '|| l_resp_id ||' '|| l_application_id );
    Error_Handler.Initialize;
    l_return_status := NULL;
    l_eco_rec.eco_name := l_eco_name;
    l_eco_rec.organization_code := l_org_code;
    l_eco_rec.change_type_code := 'ECO';
    l_eco_rec.eco_department_name := NULL;
    l_eco_rec.priority_code := NULL; --'Medium';
    l_eco_rec.approval_list_name := NULL; --'SU_ONLY';
    l_eco_rec.reason_code := NULL;
    l_eco_rec.Approval_Status_Name:= 'Approved'; -- will default to Not submitted for Approval
    l_eco_rec.Status_Name := 'Open';
    l_eco_rec.description := 'ECO - '||l_eco_rec.eco_name||' API Test';
    l_eco_rec.transaction_type := 'CREATE';
    l_eco_rec.plm_or_erp_change := 'ERP'; -- or 'PLM'
    l_eco_rec.return_status := NULL;
    dbms_output.put_line('Initialized ECO Header');
    l_revised_item_tbl(l_row_cnt).eco_name := l_eco_name;
    l_revised_item_tbl(l_row_cnt).organization_code := l_org_code;
    l_revised_item_tbl(l_row_cnt).revised_item_name := l_rev_item_number;
    l_revised_item_tbl(l_row_cnt).new_revised_item_revision := l_new_revised_item_revision;
    l_revised_item_tbl(l_row_cnt).start_effective_date := l_eff_date;
    l_revised_item_tbl(l_row_cnt).alternate_bom_code := NULL;
    l_revised_item_tbl(l_row_cnt).status_type := 1; -- 'Open'
    l_revised_item_tbl(l_row_cnt).change_description := 'Test';
    l_revised_item_tbl(l_row_cnt).transaction_type := 'CREATE'; -- transaction type : CREATE / UPDATE
    dbms_output.put_line('Initialized ECO revised items');
    -- Add RS_BOM_C3, acd_type = 1
    l_rev_component_tbl(l_row_cnt).eco_name := l_eco_name;
    l_rev_component_tbl(l_row_cnt).organization_code:= l_org_code;
    l_rev_component_tbl(l_row_cnt).revised_item_name := l_rev_item_number;
    l_rev_component_tbl(l_row_cnt).new_revised_item_revision := l_new_revised_item_revision;
    l_rev_component_tbl(l_row_cnt).start_effective_date := l_eff_date;
    l_rev_component_tbl(l_row_cnt).operation_sequence_number := 1;
    l_rev_component_tbl(l_row_cnt).component_item_name := 'CS_Sub_Item_10_D'; -- Add RS_BOM_C3
    l_rev_component_tbl(l_row_cnt).alternate_bom_code := NULL;
    l_rev_component_tbl(l_row_cnt).acd_type := 1;
    l_rev_component_tbl(l_row_cnt).item_sequence_number := 40; -- new item sequence number
    l_rev_component_tbl(l_row_cnt).quantity_per_assembly := 5;
    l_rev_component_tbl(l_row_cnt).transaction_type := 'CREATE'; -- transaction type : CREATE / UPDATE
    -- Change RS_BOM_C1, acd_type = 2
    l_row_cnt := l_row_cnt + 1;
    l_rev_component_tbl(l_row_cnt).eco_name := l_eco_name;
    l_rev_component_tbl(l_row_cnt).organization_code:= l_org_code;
    l_rev_component_tbl(l_row_cnt).revised_item_name := l_rev_item_number;
    l_rev_component_tbl(l_row_cnt).new_revised_item_revision := l_new_revised_item_revision;
    l_rev_component_tbl(l_row_cnt).start_effective_date := l_eff_date; -- effective date
    l_rev_component_tbl(l_row_cnt).operation_sequence_number := 1;
    l_rev_component_tbl(l_row_cnt).component_item_name := 'CS_Sub_Item_10_B'; -- Change qty for RS_BOM_C1
    l_rev_component_tbl(l_row_cnt).alternate_bom_code := NULL;
    l_rev_component_tbl(l_row_cnt).acd_type := 2;
    l_rev_component_tbl(l_row_cnt).old_effectivity_date := to_date('29-APR-2011 10:09:38', 'dd-MON-yyyy hh24:mi:ss'); -- old effectivity date from bill
    l_rev_component_tbl(l_row_cnt).old_operation_sequence_number := 1; -- old operation sequence number from bill
    l_rev_component_tbl(l_row_cnt).item_sequence_number := 20;
    l_rev_component_tbl(l_row_cnt).quantity_per_assembly := 5; -- existing comp qty on Bill = 2
    l_rev_component_tbl(l_row_cnt).transaction_type := 'CREATE'; -- transaction type : CREATE / UPDATE
    -- Disable RS_BOM_C2, acd_type = 3
    l_row_cnt := l_row_cnt + 1;
    l_rev_component_tbl(l_row_cnt).eco_name := l_eco_name;
    l_rev_component_tbl(l_row_cnt).organization_code:= l_org_code;
    l_rev_component_tbl(l_row_cnt).revised_item_name := l_rev_item_number;
    l_rev_component_tbl(l_row_cnt).new_revised_item_revision := l_new_revised_item_revision;
    l_rev_component_tbl(l_row_cnt).start_effective_date := l_eff_date;
    l_rev_component_tbl(l_row_cnt).disable_date := l_eff_date + 2; -- disable date is 2 day from effective_date
    l_rev_component_tbl(l_row_cnt).operation_sequence_number := 1;
    l_rev_component_tbl(l_row_cnt).component_item_name := 'CS_Sub_Item_10_C'; -- disable RS_BOM_C2
    l_rev_component_tbl(l_row_cnt).alternate_bom_code := NULL;
    l_rev_component_tbl(l_row_cnt).acd_type := 3;
    l_rev_component_tbl(l_row_cnt).old_effectivity_date := to_date('29-APR-2011 10:09:38', 'dd-MON-yyyy hh24:mi:ss'); -- old effectivity date from bill
    l_rev_component_tbl(l_row_cnt).old_operation_sequence_number := 1; -- old operation sequence number from bill
    l_rev_component_tbl(l_row_cnt).transaction_type := 'CREATE'; -- transaction type : CREATE / UPDATE
    dbms_output.put_line('Initialized ECO revised components');
    -- call API to create eco
    DBMS_OUTPUT.PUT_LINE('=======================================================');
    DBMS_OUTPUT.PUT_LINE('Calling Eng_Eco_PUB.Process_Eco API');
    Eng_Eco_PUB.Process_Eco( p_api_version_number => 1.0
    , p_init_msg_list => TRUE
    , x_return_status => l_return_status
    , x_msg_count => l_msg_count
    , p_bo_identifier => 'ECO'
    , p_eco_rec => l_eco_rec
    , p_eco_revision_tbl => l_eco_revision_tbl
    , p_revised_item_tbl => l_revised_item_tbl
    , p_rev_component_tbl => l_rev_component_tbl
    , p_ref_designator_tbl => l_ref_designator_tbl
    , p_sub_component_tbl => l_sub_component_tbl
    , p_rev_operation_tbl => l_rev_operation_tbl
    , p_rev_op_resource_tbl => l_rev_op_resource_tbl
    , p_rev_sub_resource_tbl => l_rev_sub_resource_tbl
    , x_eco_rec => x_eco_rec
    , x_eco_revision_tbl => x_eco_revision_tbl
    , x_revised_item_tbl => x_revised_item_tbl
    , x_rev_component_tbl => x_rev_component_tbl
    , x_ref_designator_tbl => x_ref_designator_tbl
    , x_sub_component_tbl => x_sub_component_tbl
    , x_rev_operation_tbl => x_rev_operation_tbl
    , x_rev_op_resource_tbl => x_rev_op_resource_tbl
    , x_rev_sub_resource_tbl => x_rev_sub_resource_tbl
    , p_debug => 'Y'
    , p_output_dir => l_output_dir
    , p_debug_filename => l_debug_filename
    dbms_output.put_line('x_eco_rec.eco_name:'|| x_eco_rec.eco_name );
    dbms_output.put_line('x_eco_rec.org_code:'|| x_eco_rec.organization_code);
    DBMS_OUTPUT.PUT_LINE('=======================================================');
    DBMS_OUTPUT.PUT_LINE('Return Status: '||l_return_status);
    IF (l_return_status <> FND_API.G_RET_STS_SUCCESS) THEN
    dbms_output.put_line('x_msg_count:' || l_msg_count);
    Error_Handler.GET_MESSAGE_LIST(x_message_list => l_error_table);
    DBMS_OUTPUT.PUT_LINE('Error Message Count :'||l_error_table.COUNT);
    FOR i IN 1..l_error_table.COUNT LOOP
    DBMS_OUTPUT.PUT_LINE(to_char(i)||':'||l_error_table(i).entity_index||':'||l_error_table(i).table_name);
    DBMS_OUTPUT.PUT_LINE(to_char(i)||':'||l_error_table(i).message_text);
    END LOOP;
    END IF;
    DBMS_OUTPUT.PUT_LINE('=======================================================');
    EXCEPTION
    WHEN OTHERS THEN
    DBMS_OUTPUT.PUT_LINE('Exception Occured :');
    DBMS_OUTPUT.PUT_LINE(SQLCODE ||':'||SQLERRM);
    DBMS_OUTPUT.PUT_LINE('=======================================================');
    RAISE;
    END;
    But with this example I again get same error message...
    Any idea?
    Thanks,
    Carolin

  • Personnel numbers under a given payroll area

    can anyone let me know any macros/ fm / utility that gets the personnel numbers given a payroll area , begin date and end date ?
    How to get the personnel numbers under a given payroll area , is it okay if  simply by looking in table PA0001 ?
    Thanks!
    Uma

    Please read this -:)
    <a href="/people/alvaro.tejadagalindo/blog/2006/02/19/how-to-deal-with-hr-payroll-reports to deal with HR Payroll reports</a>
    Greetings,
    Blag.

Maybe you are looking for

  • Fraud follow up

    I just recently had my account hacked. They used my phone upgrade and ordered an iphone5 and had it over-nighted to Denver. From what the local Verizon store person tells me, they didn't stop FedEx in time and this ******* got this iphone5. Verizon i

  • Exception handling in ODI - common exception handling framework

    Hi, I need to come up with a common exception handling framework in an environment where ESB and ODI are being used for interfacing and ELT operations. I am of the opinion that 1. I am not able to find any documentation wrt exception handling when OD

  • Resounding note with a MIDI keyboard in GarageBand

    Hi everyone! I am having a problem with a resounding note with a MIDI keyboard in GarageBand. I am running the following: GarageBand Version: 10.0.2 Keyboard: Korg PA50 Macbook Pro 2.3 GHz Intel Core i7 16 GB of RAM OSX 10.9.4 What happens is when I

  • How to display the Previous years

    Hi   CJE0 - 12KST1A costs:budget/actual/commt/rem.plan/assd How to display the previous years budget in above mentioned report. at present the report is showing only cumulative value of previous years,2009 and 2010..... My requirement is from 2005 to

  • How can I make photos on web page enlarge with mouse-over?

    How can I make photos on web page enlarge with mouse-over?