Errors while trying to create object Tables,kindly help.Anyone,please

Oracle 10.2g
This is what Iam trying to do
Creating the School Type
CREATE TYPE type_school AS OBJECT
(      SCHOOL               VARCHAR2(30)
,      VA                    NUMBER(4)
,      ID                    NUMBER(4)
,      SN                    VARCHAR2(30)) ; /Creating the School Information Type
CREATE TYPE type_schoolInfo As OBJECT
(      SCHOOLID               REF type_school
,      SCHOOLNAME          VARCHAR2(50)
,      PHONELIST               VARCHAR2(50)
,      ADDRESS ROW     ( STREETNAME VARCHAR2(30),
                      POSTCODE VARCHAR2(30))
,      HEADTEACHERNAME     VARCHAR2(30)
,      LEAPASSWORD          VARCHAR2(30)) ;
Warning: Type created with compilation errors.
SQL> show errors type type_schoolInfo;
Errors for TYPE TYPE_SCHOOLINFO:
LINE/COL ERROR
5/29     PLS-00103: Encountered the symbol "VARCHAR2" when expecting one
         of the following:
         . ( ) , * @ % & | = - + < / > at in is mod remainder not
         range rem => .. <an exponent (**)> <> or != or ~= >= <= <>
         and or like LIKE2_ LIKE4_ LIKEC_ between || multiset member
         SUBMULTISET_
         The symbol "." was substituted for "VARCHAR2" to continue.
6/16     PLS-00103: Encountered the symbol "VARCHAR2" when expecting one
         of the following:
         . ( ) , * @ % & | = - + < / > at in is mod remainder not
LINE/COL ERROR
         range rem => .. <an exponent (**)> <> or != or ~= >= <= <>
         and or like LIKE2_ LIKE4_ LIKEC_ between || multiset member
         SUBMULTISET_
         The symbol "." was substituted for "VARCHAR2" to continue.Thank you.
Edited by: Trooper on Jan 13, 2009 5:59 PM

The problem is here
ADDRESS ROW     ( STREETNAME VARCHAR2(30),
                      POSTCODE VARCHAR2(30))Solution
écrit file afiedt.buf
  1  CREATE TYPE address_objtyp AS OBJECT (
  2    streetname       VARCHAR2(30),
  3*   postcode         VARCHAR2(30));
SQL> /
Type créé.
SQL> edit
écrit file afiedt.buf
  1  CREATE TYPE type_schoolInfo As OBJECT
  2  (  SCHOOLID                        REF type_school
  3  ,  SCHOOLNAME              VARCHAR2(50)
  4  ,  PHONELIST                       VARCHAR2(50)
  5  ,  ADDRESS                address_objtyp
  6  ,  HEADTEACHERNAME VARCHAR2(30)
  7* ,  LEAPASSWORD             VARCHAR2(30)) ;
SQL> /
Type créé.[http://www.stanford.edu/dept/itss/docs/oracle/10g/appdev.101/b10799/adobjdes.htm]
Edited by: Salim Chelabi on 2009-01-13 13:14

Similar Messages

  • Error while trying to create a table in SQL

    I am fairly new to Visual Studio. I am using the Visual Studio 2012. So I had to create a project in MVC. I made the Views and the controllers. I did add a Database from, _AppDate->Add->New Item-> SQL Server Compact 4.0 Local Database.
    Now that I am trying to create a new table from the Server Explorer window. Right click on Tables->Create Table. I'm getting the following error.
    "Could not load file or assembly 'Microsoft.SqlServer.SqlTDiagM, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91' or one of its dependencies. The system cannot find the file specified."
    I have no idea how to resolve this. Any help in this matter would be highly appreciated.
    Thank You.

    Hi Charvi,
    What type of database/application are you trying to connect? Are you getting any error message?
    Missing primary key message is just a warning and is not related to the issue.
    Cheers
    Mohan

  • Error while trying to create tree using same EMP how to tutorial

    Hi,
    I get the following error while trying to create a sample tree similar to the one
    posted in the how-tos web page.
    The final query that creates the tree is also as follows
    The Current Query shown in my apex window and the one on the howtos tutorial is as follows
    select "EMPNO" id,
    "MGR" pid,
    "ENAME" name,
    null link,
    null a1,
    null a2
    from "RJOSEEMPCLUB"."EMP"
    where DEPTNO = 1
    The error is as follows
    ORA-06502: PL/SQL: numeric or value error: character to number conversion error
    Debug:
    1: begin
    2: wwv_flow_wiz_confirm.create_tree (
    3: p_flow_id => :FB_FLOW_ID,
    4: p_region_template => replace(:F4000_P112_REGION_TEMPLATE,'%'||'null%',null),
    5: p_start_option => :F4000_P112_START_OPTION,
    6: p_owner => :F4000_P112_OWNER,
    7: p_table_name => :F4000_P112_TABLE,
    8: p_id => :F4000_P112_ID,
    9: p_pid => :F4000_P112_PID,
    10: p_name => :F4000_P112_NAME,
    11: p_link_option => :F4000_P112_LINK_OPTION,
    12: p_link_page_id => :F4000_P112_LINK_PAGE_ID,
    13: p_link_item => :F4000_P112_LINK_ITEM,
    14: p_where => :F4000_P112_WHERE,
    15: p_order_by => :F4000_P112_ORDER_BY,
    16: p_page_id => :F4000_P112_PAGE_ID,
    17: p_page_name => :F4000_P112_PAGE_NAME,
    18: p_tab_set => :F4000_P112_TAB_SET,
    19: p_tab_text => :F4000_P112_TAB_TEXT,
    20: p_region_name => :F4000_P112_REGION_NAME,
    21: p_tree_name => :F4000_P112_TREE_NAME,
    22: p_tree_type => :F4000_P112_TREE_TYPE,
    23: p_max_levels => :F4000_P112_MAX_LEVELS);
    24: end;

    Hi Kart,
    If you have the sample EMP table, the DEPTNO values are 10, 20 or 30.
    Did you specify a root value for the tree?
    Regards
    Andy

  • Error while trying to create a new company

    Hey All
    I found an error while trying to create a new company.
    the Error like - No matching Records Found - [ODBC -2028]
    This can generate only database but not any tables in that database.
    Please help me.
    Thanking you
    Hepil Doshi

    Hello,
    I would prefer local language instead of US english.....
    My tips.
    1. DID you tried to Not apply the UDO/UDF things?
    2. Do not log in to the database, start from
    3. Please post the error message itself....
    4. If you are running on MS SQL 2005 server (not express) , You can start SQL profiler, and monitor the New Database creation.... you will see in profielr where is the error message and which tables / data is missing.
    If i know well,
    When you create a new company, the SBO-COMMON database is used to deploy the new database....
    If you get stock, reinstall your sbo-common from the last applyied patch..... (Detach SBO-common, move the files another directory, and start upgarder.exe).
    Regards,
    J.

  • Getting error while trying to create the push certificate...

    I am getting the following error while trying to create a push certificate for the mdm from the apple site.
    Certificate Signature Verification failed because the signature  is invalid.
    I am mdm vendor as well as the customer. I did the following steps.
    openssl x509 -inform der -in mdm_identity.cer -out mdm.pem
    openssl x509 -inform der -in AppleWWDRCA.cer -out intermediate.pem
    openssl x509 -inform der -in AppleIncRootCertificate.cer -out root.pem
    openssl req -inform pem -outform der -in customer.csr -out customer.der
    created the plist_encoded file using a java program which uses the "SHA1WthRSA"
    When i tried to upload the plist_encoded file to the apple site (https://identity.apple.com/pushcert/), it creates a file with the following error
    {"ErrorCode":-80018,"ErrorMessage":"Certificate Signature Verification failed","ErrorDescription":"Certificate Signature Verification failed because the <a href=\"http://www.apple.com/business/mdm\" target=\"_blank\">signature<\/a> is invalid."}
    Any help would be greatly appreciated....

    Please see the solution in (The Descriptive Flexfield With Application Name Receivables (AR) and Name Party Site Information (HZ_PARTY_SITES) Is Not Frozen [ID 743262.1]).
    Thanks,
    Hussein

  • Error while trying to create new assignment with supervisor through API

    Hi Experts,
    I'am trying to create new assignment with supervisor for employee, but i'am facing this error:
    =============================================================
    ORA-20008: Error While Create new assignment..-20001
    ORA-20001: The supervisor assignment that you have entered is invalid.
    Please check that you have entered the supervisor,
    that the supervisor assignment belongs to this supervisor and that the assignment is effective.
    ORA-06512: at line 198
    =============================================================
    This is my script, (Oracle EBS 12.1.1)(DB 11):
    DECLARE
    v_user_id NUMBER;
    v_res_id NUMBER;
    v_res_appl_id NUMBER;
    v_org_now_no_manager_warning BOOLEAN;
    v_spp_delete_warning BOOLEAN;
    v_other_manager_warning BOOLEAN;
    v_tax_district_changed_warning BOOLEAN;
    v_entries_changed_warning VARCHAR(4000);
    v_person_id per_all_assignments_f.person_id %TYPE;
    v_business_group_id hr_all_organization_units_tl.organization_id %TYPE;
    v_people_group_id per_all_assignments_f.people_group_id %TYPE;
    v_object_version_number per_all_assignments_f.object_version_number %TYPE;
    v_special_ceiling_step_id per_all_assignments_f.special_ceiling_step_id %TYPE;
    v_group_name pay_people_groups.group_name %TYPE;
    v_ass_effective_start_date per_all_assignments_f.effective_start_date %TYPE;
    v_effective_start_date per_all_assignments_f.effective_start_date %TYPE;
    v_effective_end_date per_all_assignments_f.effective_end_date %TYPE;
    v_assignment_id per_all_assignments_f.assignment_id %TYPE;
    v_sup_assignment_id per_all_assignments_f.assignment_id %TYPE;
    v_supervisor_assignment_id per_all_assignments_f.assignment_id %TYPE;
    v_job_id per_jobs.job_id %TYPE;
    v_grade_id per_grades.grade_id %TYPE;
    v_location_id hr_locations_all.location_id %TYPE;
    v_payroll_id pay_all_payrolls_f.payroll_id %TYPE;
    v_pay_basis_id per_pay_bases.pay_basis_id %TYPE;
    BEGIN
    v_user_id := FND_GLOBAL.user_id ;
    v_res_id := FND_GLOBAL.resp_id ;
    v_res_appl_id:= FND_GLOBAL.resp_appl_id;
    FND_GLOBAL.apps_initialize(v_user_id, v_res_id, v_res_appl_id);
    BEGIN
    SELECT organization_id
    INTO v_business_group_id
    FROM hr_all_organization_units_tl
    WHERE name = 'Vision University'
    AND language = 'US';
    EXCEPTION
    WHEN OTHERS THEN
    RAISE_APPLICATION_ERROR(-20000,'Error While Retrieving (Business Group ID) Info...'||SQLCODE||' '||SQLERRM);
    END;
    FOR R IN (SELECT * FROM xx_assignment) LOOP
    BEGIN
    SELECT assignment_id , ass_f.object_version_number
    INTO v_assignment_id , v_object_version_number
    FROM per_all_assignments_f ass_f, per_all_people_f p_f
    WHERE ass_f.person_id = p_f.person_id
    AND ass_f.business_group_id = p_f.business_group_id
    AND ass_f.business_group_id = v_business_group_id
    AND p_f.employee_number = R.employee_number
    AND TRUNC(p_f.effective_start_date)= TRUNC(ass_f.effective_start_date)
    AND TRUNC(p_f.effective_end_date) = TRUNC(ass_f.effective_end_date);
    EXCEPTION
    WHEN OTHERS THEN
    RAISE_APPLICATION_ERROR(-20001,'Error While Retrieving (Assignmet_ID) for employee..'||SQLCODE||' '||SQLERRM);
    END;
    BEGIN
    SELECT job_id
    INTO v_job_id
    FROM per_jobs
    WHERE trim(lower(name)) = trim(lower(r.employee_job))
    AND business_group_id = v_business_group_id;
    EXCEPTION
    WHEN OTHERS THEN
    RAISE_APPLICATION_ERROR(-20002,'Error While Retrieving (Job_ID) Info...'||SQLCODE||' '||SQLERRM);
    END;
    BEGIN
    SELECT grade_id
    INTO v_grade_id
    FROM per_grades
    WHERE trim(lower(name)) = trim(lower(r.employee_grade))
    AND business_group_id = v_business_group_id;
    EXCEPTION
    WHEN OTHERS THEN
    RAISE_APPLICATION_ERROR(-20003,'Error While Retrieving (Grade_ID) Info...'||SQLCODE||' '||SQLERRM);
    END;
    BEGIN
    SELECT location_id
    INTO v_location_id
    FROM hr_locations_all
    WHERE trim(lower(description))= trim(lower(r.employee_location))
    AND business_group_id = v_business_group_id;
    EXCEPTION
    WHEN OTHERS THEN
    RAISE_APPLICATION_ERROR(-20004,'Error While Retrieving (Location_ID) Info...'||SQLCODE||' '||SQLERRM);
    END;
    BEGIN
    SELECT payroll_id
    INTO v_payroll_id
    FROM pay_all_payrolls_f
    WHERE trim(lower(payroll_name)) = trim(lower(r.payroll_name))
    AND business_group_id = v_business_group_id;
    EXCEPTION
    WHEN OTHERS THEN
    RAISE_APPLICATION_ERROR(-20005,'Error While Retrieving (Payroll_ID) Info...'||SQLCODE||' '||SQLERRM);
    END;
    BEGIN
    SELECT pay_basis_id
    INTO v_pay_basis_id
    FROM per_pay_bases
    WHERE trim(lower(pay_basis)) = trim(lower(r.pay_basis))
    AND business_group_id = v_business_group_id;
    EXCEPTION
    WHEN OTHERS THEN
    RAISE_APPLICATION_ERROR(-20006,'Error While Retrieving (Pay_Basis_ID) Info...'||SQLCODE||' '||SQLERRM);
    END;
    BEGIN
    SELECT person_id
    INTO v_person_id
    FROM per_all_people_f
    WHERE employee_number = r.supervisor_number
    AND business_group_id= v_business_group_id;
    SELECT assignment_id
    INTO v_sup_assignment_id
    FROM per_all_assignments_f
    WHERE person_id = v_person_id
    AND business_group_id = v_business_group_id;
    EXCEPTION
    WHEN OTHERS THEN
    RAISE_APPLICATION_ERROR(-20007,'Error While Retrieving (Assignmet_ID) for supervisor..'||SQLCODE||' '||SQLERRM);
    end;
    BEGIN
    hr_assignment_api.update_emp_asg_criteria(p_effective_date => TRUNC(SYSDATE),
    p_datetrack_update_mode => 'CORRECTION',
    p_assignment_id => v_assignment_id,
    p_validate => FALSE,
    p_called_from_mass_update => NULL,
    p_grade_id => v_grade_id,
    p_position_id => NULL,
    p_job_id => v_job_id,
    p_payroll_id => null,--v_payroll_id,
    p_location_id => v_location_id,
    p_organization_id => v_business_group_id,
    p_pay_basis_id => v_pay_basis_id,
    p_segment1 => NULL,
    p_segment2 => NULL,
    p_segment3 => NULL,
    p_segment4 => NULL,
    p_segment5 => NULL,
    p_segment6 => NULL,
    p_segment7 => NULL,
    p_segment8 => NULL,
    p_segment9 => NULL,
    p_segment10 => NULL,
    p_segment11 => NULL,
    p_segment12 => NULL,
    p_segment13 => NULL,
    p_segment14 => NULL,
    p_segment15 => NULL,
    p_segment16 => NULL,
    p_segment17 => NULL,
    p_segment18 => NULL,
    p_segment19 => NULL,
    p_segment20 => NULL,
    p_segment21 => NULL,
    p_segment22 => NULL,
    p_segment23 => NULL,
    p_segment24 => NULL,
    p_segment25 => NULL,
    p_segment26 => NULL,
    p_segment27 => NULL,
    p_segment28 => NULL,
    p_segment29 => NULL,
    p_segment30 => NULL,
    p_employment_category => NULL,
    p_concat_segments => NULL,
    p_grade_ladder_pgm_id => NULL,
    p_supervisor_assignment_id => v_sup_assignment_id,
    p_people_group_id => v_people_group_id,
    p_object_version_number => v_object_version_number,
    p_special_ceiling_step_id => v_special_ceiling_step_id,
    p_group_name => v_group_name,
    p_effective_start_date => v_ass_effective_start_date,
    p_effective_end_date => v_effective_end_date,
    p_org_now_no_manager_warning => v_org_now_no_manager_warning ,
    p_spp_delete_warning => v_spp_delete_warning,
    p_entries_changed_warning => v_entries_changed_warning,
    p_tax_district_changed_warning => v_tax_district_changed_warning,
    p_other_manager_warning => v_other_manager_warning);
    EXCEPTION
    WHEN OTHERS THEN
    RAISE_APPLICATION_ERROR(-20008,'Error While Create new assignment..'||SQLCODE||' '||SQLERRM);
    END;
    END LOOP;
    COMMIT;
    END;
    Thank you & Best Regards

    I think this is essentially saying that the Supervisor Assignment is wrong or no longer effective. Looking at your SQL to fetch the Supervisor Assignment there are a number of potential issues. This is what you've currently got:
    SELECT person_id
    INTO v_person_id
    FROM per_all_people_f
    WHERE employee_number = r.supervisor_number
    AND business_group_id= v_business_group_id;
    SELECT assignment_id
    INTO v_sup_assignment_id
    FROM per_all_assignments_f
    WHERE person_id = v_person_id
    AND business_group_id = v_business_group_id;
    Potential Problems/Clarifications
    1. What is r.supervisor_number, what does it contain and how is it derived? I can't see that anywhere else in the block...
    2. Is there a chance that r.supervisor_number is referencing an employee who has left, ie, now an ex-employee?
    3. The SELECT statement that fetches the assignment_id does not perform any date-effective restrictions, which means you might be lucky enough to fetch the person's current assignment. But you might also fetch an old or future-dated assignment.
    4. The SELECT statement that fetches the assignment_id does not restrict the type of assignment, so if this manager has applied for a job (ie, they have an applicant assignment) or some other type of non-employee assignment you might be picking that up.
    This would work better for you:
    SELECT paaf.assignment_id
    INTO v_sup_assignment_id
    FROM per_all_people_f papf
    ,per_all_assignments_f paaf
    WHERE papf.employee_number = r.supervisor_number
    AND papf.business_group_id = v_business_group_id
    AND nvl(papf.current_employee_flag, 'N') = 'Y'
    AND trunc(sysdate) BETWEEN
    papf.effective_start_date AND papf.effective_end_date
    AND papf.person_id = paaf.person_id
    AND paaf.assignment_type = 'E'
    AND paaf.primary_flag = 'Y'
    AND trunc(sysdate) BETWEEN
    paaf.effective_start_date AND paaf.effective_end_date;
    If it doesn't return a row it means that the supervisor (or whatever employee is returned by r.supervisor_number) is not active as at sysdate and cannot be used. Note that this SQL only applies for employees. If you can have Contingent Workers as supervisors in your implementation then this needs tweaking.
    Does that help?

  • Error while trying to create a Universe on Function Module in IDT

    Hi,
    We are using BO 4.1 Support Pack 2. I am trying to create a Universe on Function Module. I created data foundation layer, but when I right click on the table and click on 'Show table values' it doesn't bring any data (and there is data available in that table). When I click on 'Check Integrity' it says 'Missing Primary key'. Please see the screen shot. Please let me know if any has any idea and I am doing something wrong? I really appreciate it.
    Thanks,
    Charvi.

    Hi Charvi,
    What type of database/application are you trying to connect? Are you getting any error message?
    Missing primary key message is just a warning and is not related to the issue.
    Cheers
    Mohan

  • Error while trying to create a outbound plug

    Hi ,
    I am getting an error message while trying to add an outbound plug to a component .any suggestions

    Hi Vaibhav,
    The best thing to do is to create the desired outbound plug manually.  We do it many times when this error comes, it will not take much time and easy to do, just replicate the exact steps for creating op which is already there in your system or component.
    I strongly suggest you not to delete any existing enhancement. Please let me know if you want me to explain the process of creating op manually.
    Regards
    Bhushan

  • Error while trying to create a Solr collection (java.io.IOException: The device is not ready)

    Hello, everyone.
    I'm trying to create a .cfm document that will erase a specific Solr collection and then re-create it, index it, and optimize it.
    The delete works flawlessly. 
    Unfortunately, creating it isn't working, at all.  I get the following message:
    Unable to create collection publicsearch - An error occurred while creating the collection: java.io.IOException: The device is not ready.
    This is a Windows 7 server running Apache and CFServer 9.0.1 (the version before Verity was cut.)  I'm not getting any more details than the one error message.  Any idea of what could be causing this?  I've Googled this and I'm seeing a lot of issues similar, but not quite what I have happening.
    Thanks,
    ^_^

    Nevermind.. no one bothered to inform the developer that the path to the collection AND the path to the directory that the collection is for are different on this other server.
    Fixed.

  • Quicktime 7 will not install fully on my windows 7 64 home premium keeps stoping with an error while trying to create directory

    I have a Laptop with Windows 7 64 Home premium, I have tried a few times to install Quicktime 7 on my laptop. But keeps stopping with an error saying "An error occured while attemping to create the directory: C:\windows\Installer\{F5266D28-E0B2-4130-BFC5-EE1-55AD514DC}
    Windows is fully up todate, I have no virus or anything harmful on my computer. After clicking retry the error keeps popping up. I then click on cancel and delete the downloaded quicktime installer. I shut down my computer and try again. Same error with not luck. Any help?

    Just in case, let's check for disk/file damage.
    The first thing I'd try with that is running a disk check (chkdsk) over your C drive.
    XP instructions in the following document: How to perform disk error checking in Windows XP
    Vista instructions in the following document: Check your hard disk for errors
    Windows 7 instructions in the following document: How to use CHKDSK (Check Disk)
    Select both Automatically fix file system errors and Scan for and attempt recovery of bad sectors, or use chkdsk /r (depending on which way you decide to go about doing this). You'll almost certainly have to schedule the chkdsk to run on startup. The scan should take quite a while ... if it quits after a few minutes or seconds, something's interfering with the scan.
    Does the chkdsk find/repair any damage? If so, can you get an install to go through properly afterwards?

  • Error while trying to create Transaction variant for FV60 layout change

    Hi Gurus,
    I am trying to change the "order/sequence" of FV60 layout (rearranging columns). For which I tried to create Transaction Variant (in sandbox). I keyed in the t-code (FV60) and gave a variant name in the field for Transaction variant. But it gives me a wierd error - "Enter transaction code". Has anybody come across this before? This is enhancement pack 7 so the config button is not available.

    Thanks Ravi. I went through the note and did exactly the same. But the two check boxes displayed in the note for "Adopt column sequence" and "Adopt column width" is not displayed in my screen!!! Screen shot attached.

  • Error while trying to create sales order using oe_order_pub.process_order

    Hi All,
    I am trying to create a sales order using oe_order_pub.process_order api..
    The Procedure i had written is as follows.
    CREATE OR REPLACE PROCEDURE TEST_PROC
    AS
    x_return_status VARCHAR2(250);
    x_msg_count NUMBER;
    x_msg_data VARCHAR2(250);
    F varchar2(2000);
    --out parameters
    x_header_rec OE_Order_PUB.Header_Rec_Type;
    x_header_val_rec OE_Order_PUB.Header_Val_Rec_Type;
    x_Header_Adj_tbl OE_Order_PUB.Header_Adj_Tbl_Type;
    x_Header_Adj_val_tbl OE_Order_PUB.Header_Adj_Val_Tbl_Type;
    x_Header_price_Att_tbl OE_Order_PUB.Header_Price_Att_Tbl_Type;
    x_Header_Adj_Att_tbl OE_Order_PUB.Header_Adj_Att_Tbl_Type;
    x_Header_Adj_Assoc_tbl OE_Order_PUB.Header_Adj_Assoc_Tbl_Type;
    x_Header_Scredit_tbl OE_Order_PUB.Header_Scredit_Tbl_Type;
    x_Header_Scredit_val_tbl OE_Order_PUB.Header_Scredit_Val_Tbl_Type;
    x_line_tbl OE_Order_PUB.Line_Tbl_Type;
    x_line_val_tbl OE_Order_PUB.Line_Val_Tbl_Type;
    x_Line_Adj_tbl OE_Order_PUB.Line_Adj_Tbl_Type;
    x_Line_Adj_val_tbl OE_Order_PUB.Line_Adj_Val_Tbl_Type;
    x_Line_price_Att_tbl OE_Order_PUB.Line_Price_Att_Tbl_Type;
    x_Line_Adj_Att_tbl OE_Order_PUB.Line_Adj_Att_Tbl_Type;
    x_Line_Adj_Assoc_tbl OE_Order_PUB.Line_Adj_Assoc_Tbl_Type;
    x_Line_Scredit_tbl OE_Order_PUB.Line_Scredit_Tbl_Type;
    x_Line_Scredit_val_tbl OE_Order_PUB.Line_Scredit_Val_Tbl_Type;
    x_Lot_Serial_tbl OE_Order_PUB.Lot_Serial_Tbl_Type;
    x_Lot_Serial_val_tbl OE_Order_PUB.Lot_Serial_Val_Tbl_Type;
    x_action_request_tbl OE_Order_PUB.Request_Tbl_Type;
    --in parameters
    l_header_rec OE_Order_PUB.Header_Rec_Type;
    t_line_tbl OE_ORDER_PUB.Line_Tbl_Type;
    BEGIN
    apps.mo_global.set_org_context(204,null,'ONT');
    l_header_rec := OE_ORDER_PUB.G_MISS_HEADER_REC;
    l_header_rec.ORG_ID := 204;
    l_header_rec.ORDER_TYPE_ID := 1437;
    l_header_rec.SOLD_TO_ORG_ID := 1290;
    l_header_rec.SHIP_TO_ORG_ID:=1425;
    l_header_rec.INVOICE_TO_ORG_ID:=1424;
    l_header_rec.PRICE_LIST_ID := 1000;
    l_header_rec.salesrep_id := 1006;
    l_header_rec.ORDER_CATEGORY_CODE := 'MIXED';
    l_header_rec.VERSION_NUMBER := 0;
    l_header_rec.OPEN_FLAG := 'Y';
    l_header_rec.BOOKED_FLAG := 'Y';
    l_header_rec.PRICING_DATE := sysdate;
    l_header_rec.TRANSACTIONAL_CURR_CODE := 'USD';
    l_header_rec.created_by := FND_GLOBAL.USER_ID;
    l_header_rec.creation_date := sysdate;
    l_header_rec.LAST_UPDATED_BY := FND_GLOBAL.USER_ID;
    l_header_rec.LAST_UPDATE_DATE := sysdate;
    l_header_rec.attribute1 := '250';
    l_header_rec.operation := 'CREATE';
    t_line_tbl(1) := OE_ORDER_PUB.G_MISS_LINE_REC; ---check
    t_line_tbl(1).inventory_item_id := 193742;
    t_line_tbl(1).ordered_quantity := 1;
    t_line_tbl(1).operation := 'CREATE';
    oe_debug_pub.initialize;
    --oe_debug_pub.SetDebugLevel(1);
    OE_MSG_PUB.INITIALIZE();
    OE_Order_PUB.Process_Order
    ( -- p_org_id => 204,
    --p_operating_unit => 'ONT',
    p_api_version_number => 1.0,
    p_init_msg_list => FND_API.G_TRUE,
    p_return_values => FND_API.G_TRUE,
    p_action_commit => FND_API.G_TRUE,
    x_return_status => x_return_status,
    x_msg_count => x_msg_count,
    x_msg_data => x_msg_data,
    p_header_rec => l_header_rec,
    p_old_header_rec => OE_Order_PUB.G_MISS_HEADER_REC,
    p_header_val_rec => OE_Order_PUB.G_MISS_HEADER_VAL_REC,
    p_old_header_val_rec => OE_Order_PUB.G_MISS_HEADER_VAL_REC,
    p_Header_Adj_tbl => OE_Order_PUB.G_MISS_HEADER_ADJ_TBL,
    p_old_Header_Adj_tbl => OE_Order_PUB.G_MISS_HEADER_ADJ_TBL,
    p_Header_Adj_val_tbl => OE_Order_PUB.G_MISS_HEADER_ADJ_VAL_TBL,
    p_old_Header_Adj_val_tbl => OE_Order_PUB.G_MISS_HEADER_ADJ_VAL_TBL,
    p_Header_price_Att_tbl => OE_Order_PUB.G_MISS_HEADER_PRICE_ATT_TBL,
    p_old_Header_Price_Att_tbl => OE_Order_PUB.G_MISS_HEADER_PRICE_ATT_TBL,
    p_Header_Adj_Att_tbl => OE_Order_PUB.G_MISS_HEADER_ADJ_ATT_TBL,
    p_old_Header_Adj_Att_tbl => OE_Order_PUB.G_MISS_HEADER_ADJ_ATT_TBL,
    p_Header_Adj_Assoc_tbl => OE_Order_PUB.G_MISS_HEADER_ADJ_ASSOC_TBL,
    p_old_Header_Adj_Assoc_tbl => OE_Order_PUB.G_MISS_HEADER_ADJ_ASSOC_TBL,
    p_Header_Scredit_tbl => OE_Order_PUB.G_MISS_HEADER_SCREDIT_TBL,
    p_old_Header_Scredit_tbl => OE_Order_PUB.G_MISS_HEADER_SCREDIT_TBL,
    p_Header_Scredit_val_tbl => OE_Order_PUB.G_MISS_HEADER_SCREDIT_VAL_TBL,
    p_old_Header_Scredit_val_tbl => OE_Order_PUB.G_MISS_HEADER_SCREDIT_VAL_TBL,
    p_line_tbl => t_line_tbl,
    p_old_line_tbl => OE_Order_PUB.G_MISS_LINE_TBL,
    p_line_val_tbl => OE_Order_PUB.G_MISS_LINE_VAL_TBL,
    p_old_line_val_tbl => OE_Order_PUB.G_MISS_LINE_VAL_TBL,
    p_Line_Adj_tbl => OE_Order_PUB.G_MISS_LINE_ADJ_TBL,
    p_old_Line_Adj_tbl => OE_Order_PUB.G_MISS_LINE_ADJ_TBL,
    p_Line_Adj_val_tbl => OE_Order_PUB.G_MISS_LINE_ADJ_VAL_TBL,
    p_old_Line_Adj_val_tbl => OE_Order_PUB.G_MISS_LINE_ADJ_VAL_TBL,
    p_Line_price_Att_tbl => OE_Order_PUB.G_MISS_LINE_PRICE_ATT_TBL,
    p_old_Line_Price_Att_tbl => OE_Order_PUB.G_MISS_LINE_PRICE_ATT_TBL,
    p_Line_Adj_Att_tbl => OE_Order_PUB.G_MISS_LINE_ADJ_ATT_TBL,
    p_old_Line_Adj_Att_tbl => OE_Order_PUB.G_MISS_LINE_ADJ_ATT_TBL,
    p_Line_Adj_Assoc_tbl => OE_Order_PUB.G_MISS_LINE_ADJ_ASSOC_TBL,
    p_old_Line_Adj_Assoc_tbl => OE_Order_PUB.G_MISS_LINE_ADJ_ASSOC_TBL,
    p_Line_Scredit_tbl => OE_Order_PUB.G_MISS_LINE_SCREDIT_TBL,
    p_old_Line_Scredit_tbl => OE_Order_PUB.G_MISS_LINE_SCREDIT_TBL,
    p_Line_Scredit_val_tbl => OE_Order_PUB.G_MISS_LINE_SCREDIT_VAL_TBL,
    p_old_Line_Scredit_val_tbl => OE_Order_PUB.G_MISS_LINE_SCREDIT_VAL_TBL,
    p_Lot_Serial_tbl => OE_Order_PUB.G_MISS_LOT_SERIAL_TBL,
    p_old_Lot_Serial_tbl => OE_Order_PUB.G_MISS_LOT_SERIAL_TBL,
    p_Lot_Serial_val_tbl => OE_Order_PUB.G_MISS_LOT_SERIAL_VAL_TBL,
    p_old_Lot_Serial_val_tbl => OE_Order_PUB.G_MISS_LOT_SERIAL_VAL_TBL,
    p_action_request_tbl => OE_Order_PUB.G_MISS_REQUEST_TBL,
    x_header_rec => x_header_rec,
    x_header_val_rec => x_header_val_rec,
    x_Header_Adj_tbl => x_Header_Adj_tbl,
    x_Header_Adj_val_tbl => x_Header_Adj_val_tbl,
    x_Header_price_Att_tbl => x_Header_price_Att_tbl,
    x_Header_Adj_Att_tbl => x_Header_Adj_Att_tbl,
    x_Header_Adj_Assoc_tbl => x_Header_Adj_Assoc_tbl,
    x_Header_Scredit_tbl => x_Header_Scredit_tbl,
    x_Header_Scredit_val_tbl => x_Header_Scredit_val_tbl,
    x_line_tbl => x_line_tbl,
    x_line_val_tbl => x_line_val_tbl,
    x_Line_Adj_tbl => x_Line_Adj_tbl,
    x_Line_Adj_val_tbl => x_Line_Adj_val_tbl,
    x_Line_price_Att_tbl => x_Line_price_Att_tbl,
    x_Line_Adj_Att_tbl => x_Line_Adj_Att_tbl,
    x_Line_Adj_Assoc_tbl => x_Line_Adj_Assoc_tbl,
    x_Line_Scredit_tbl => x_Line_Scredit_tbl,
    x_Line_Scredit_val_tbl => x_Line_Scredit_val_tbl,
    x_Lot_Serial_tbl => x_Lot_Serial_tbl,
    x_Lot_Serial_val_tbl => x_Lot_Serial_val_tbl,
    x_action_request_tbl => x_action_request_tbl,
    --For bug 3390458
    p_rtrim_data => 'N',
    p_validate_desc_flex => 'Y' -- bug4343612
    COMMIT;
    if x_msg_count > 0 then
    for l_index in 1..x_msg_count loop
    x_msg_data := oe_msg_pub.get(p_msg_index => l_index, p_encoded => F);
    PRINT('x_msg_data: '||x_msg_data);
    end loop;
    end if;
    -- Check the return status
    if x_return_status = FND_API.G_RET_STS_SUCCESS then
    PRINT('success');
    else
    PRINT('failure');
    end if;
    PRINT('x_return_status: '||x_return_status);
    PRINT('x_msg_count: '||x_msg_count);
    PRINT('x_msg_data: '||x_msg_data);
    PRINT('x_header_val_rec: '||x_header_val_rec.accounting_rule);
    PRINT('x_header_rec header_id: ' ||x_header_rec.header_id);
    PRINT('x_header_rec order_number: ' ||x_header_rec.order_number);
    PRINT('x_header_rec ship_to_org_id: ' ||x_header_rec.ship_to_org_id);
    PRINT('x_header_rec payment_term_id: ' ||x_header_rec.payment_term_id);
    PRINT('x_header_rec order_source_id: ' ||x_header_rec.order_source_id);
    PRINT('x_header_rec order_type_id: ' ||x_header_rec.order_type_id);
    PRINT('x_header_rec price_list_id: ' ||x_header_rec.price_list_id);
    PRINT('x_header_rec invoicing_rule_id: ' ||x_header_rec.invoicing_rule_id);
    PRINT('x_header_rec accounting_rule_id: ' ||x_header_rec.accounting_rule_id);
    PRINT('x_header_rec org_id: ' ||x_header_rec.org_id);
    PRINT('x_header_rec sold_to_org_id: ' ||x_header_rec.sold_to_org_id);
    PRINT('x_header_rec invoice_to_org_id: ' ||x_header_rec.invoice_to_org_id);
    PRINT('x_header_rec salesrep_id: ' ||x_header_rec.salesrep_id);
    PRINT('x_header_rec invoice_to_org_id: ' ||x_header_rec.invoice_to_org_id);
    PRINT('x_header_rec operation: ' ||x_header_rec.operation);
    PRINT('x_header_rec transactional_curr_code: ' ||x_header_rec.transactional_curr_code);
    PRINT('x_header_rec orig_sys_document_ref: ' ||x_header_rec.orig_sys_document_ref);
    PRINT('x_header_rec request_date: ' ||x_header_rec.request_date);
    PRINT('x_header_rec conversion_rate_date: ' ||x_header_rec.conversion_rate_date);
    PRINT('x_header_rec last_update_date: ' ||x_header_rec.last_update_date);
    PRINT('x_header_rec ordered_date: ' ||x_header_rec.ordered_date);
    PRINT('x_header_rec creation_date: ' ||x_header_rec.creation_date);
    PRINT('x_header_rec created_by: ' ||x_header_rec.created_by);
    END;
    It is throwing the following Error.
    SQL> exec TEST_PROC;
    x_msg_data: ORA-01403: no data found in Package OE_ORDER_WF_UTIL Procedure
    Create_HdrWorkItem
    x_msg_data: User-Defined Exception in Package OE_ORDER_WF_UTIL Procedure
    Start_HdrProcess
    failure
    x_return_status: U
    x_msg_count: 2
    x_msg_data: User-Defined Exception in Package OE_ORDER_WF_UTIL Procedure
    Start_HdrProcess
    x_header_val_rec: Immediate
    x_header_rec header_id: 156408
    x_header_rec order_number: 64097
    x_header_rec ship_to_org_id: 1425
    x_header_rec payment_term_id: 4
    x_header_rec order_source_id: 0
    x_header_rec order_type_id: 1437
    x_header_rec price_list_id: 1000
    x_header_rec invoicing_rule_id: -2
    x_header_rec accounting_rule_id: 1
    x_header_rec org_id: 204
    x_header_rec sold_to_org_id: 1290
    x_header_rec invoice_to_org_id: 1424
    x_header_rec salesrep_id: 1006
    x_header_rec invoice_to_org_id: 1424
    x_header_rec operation: CREATE
    x_header_rec transactional_curr_code: USD
    x_header_rec orig_sys_document_ref: OE_ORDER_HEADERS_ALL156408
    x_header_rec request_date: 02-APR-09
    x_header_rec conversion_rate_date:
    x_header_rec last_update_date: 02-APR-09
    x_header_rec ordered_date: 02-APR-09
    x_header_rec creation_date: 02-APR-09
    x_header_rec created_by: 13615
    Any help on this would be appreciated.
    I am using R12..

    Hi Nagamohan,
    Thanks for the reply..It was Vision Instance that i was working on..
    There was some problem in setups. I had run the same script on other instance and it is working.
    Before signing off i have one more doubt...
    The script which i used is creating a sales order with booked_flag='Y' but flow_status_code is still 'ENTERED'
    how can i change it to 'BOOKED' using API...
    Thanks for the help...

  • Error while trying to create Contact for Bank in Cash Management

    Hi,
    I have a Bank created in Cash Management. I am trying to create a Contact for the bank but when I click on the Create Contact button, the page appears with the following error on top
    "No field listener is registered to resolve field CUST.CUSTOMER_NUMBER referenced by the flexfield with application short name AR and name RA_PHONES_HZ. Please contact your system administrator. "
    I can enter the desired values in the contact details fields like name , job code etc but then nothing happens when I click on the Apply button.
    I found the following notes on metalink for similar errors but none of them explains how to resolve the issue.
    1087754.1,
    889794.1
    791190.1
    Could someone please help me resolve the issue? I am a newbie to Oracle Apps.
    Thanks
    Susovan

    Please see the solution in (The Descriptive Flexfield With Application Name Receivables (AR) and Name Party Site Information (HZ_PARTY_SITES) Is Not Frozen [ID 743262.1]).
    Thanks,
    Hussein

  • Getting error while trying to create a new customer in R12

    I am getting the following error on top of the web window when trying to create a new customer using Solution beacon - R12 instance. Below is my navigation
    OM Super User --> Customer --> Standard.
    And when the web screen opens and I click on 'Create' it gives the below 3 error message and not displaying the proper fields. Can someone help me how to fix this?
    Error
    The descriptive flexfield with application name Receivables (AR) and name Party Information (HZ_PARTIES) is not frozen. Please contact your system administrator.
    The descriptive flexfield with application name Receivables (AR) and name Customer Information (RA_CUSTOMERS_HZ) is not frozen. Please contact your system administrator.
    The descriptive flexfield with application name Receivables (AR) and name Address (Remit Address HZ) is not compiled. Please contact your system administrator.

    Please see the solution in (The Descriptive Flexfield With Application Name Receivables (AR) and Name Party Site Information (HZ_PARTY_SITES) Is Not Frozen [ID 743262.1]).
    Thanks,
    Hussein

  • Error while trying to Create Recovery Disks - Lenovo 300 N200

    Hi,
    when trying to make Recovery Disks the program starts to extract files but after a few minutes i get this error:
    "An Internal error has caused this process to fail"
    when running lenovo system update i got an error:
    "An error occurred while gathering user information."
    i tried to update the "lenovo system update" but i'm getting errors while uninstall the previous version and also when installing the new one. After i tried to update, the "system update" is no longer loading, i'm getting a windows error and it's closing.
    btw, i have vista with SP1.
    does anyone have an idea ?
    Thanks, Erez.

    Someone ?!

Maybe you are looking for

  • I want to purchase. how do i know if i need 16, 32 or 64G?

    i like individual games (i.e. scrabble, angrybirds) and shared games (words with friends) that i play on my iPhone. I don't know how to choose the G i need and what criteria to use to figure that out. can someone help? thx

  • Mac Mini with Superdrive?

    So I noticed that mac mini's seem to have the combo drive built in, but do they sell a model with the SuperDrive which would allow you to burn DVD's and all the other "good stuff" with it?

  • Html page maximize

    Hi All, i have small doubts in html page, actually my client requirement is to increase the size the of the html page, i already gave the height and width, but he wants maximize button, actually maximize button is disabled  in my html page, how to en

  • Very Weird AirTunes Behavior!!! (College campus related)

    Ok, I am a graphic designer at a private university and use a Powermac G5 for my work. The G5 DOES NOT have a wireless card. It is connected to the University network, however. I have iTunes 7.0.1. Just recently, I noticed that a popup menubar has sh

  • Test Engineer Opening-La​bView Programmin​g Skills Needed

    Basler Electric, serving the world market with power systems, control devices, and magnetic products for the past 63 years, is currently in search of a Test Engineer with excellent Labview software skills. This position will be located at our Corpora