Oracle Project Contracts

Is there anyone who has used Oracle Project Contracts for a construction company?
If yes, can you kindly let me know if you are able to put all your BOQ items into the Oracle Project Contracts.
What other functions can be done in the Oracle Project Contracts as regards to the business processes of a construction company.
Regards

Hi
The Project contract is the commercial agreement between you and your customer. When you enter a new contract you need to link it to an existing project, which you have eralier set up in Oracle Projects. You would see that on the main page of the contract header. Note, system allows you to enter multiple different contracts for the same project. Therefore, it is nto always on to one relationship between a contract and a project.
The left side region allow you to search for contracts you have already entered into the system. You may view contracts by groups, organization, product and program. The system is adding any new contract to the appropriate grouping based on the program, owning organization and program you have assigned to the contract, on the main page of the contract header. Groups are set in a separate form, where you could assign individual contracts to groups based on your won business logic. Personal shortcuts allow the individual user to enter his own search criteria and save it, so in the futute he will find the contracts that meet that logic.
Item Master Org is the name of an inventory organization which is considered as the master of your company. The item master organization is the inventory organization where you can setup items, and enter their attributes, which will be shared by all other inventory organizations in the company. In that organization you can set up the list of purchable items, items that can be inventorized or items taht you build in your company. Later when you go on and author the contract lines, you could enter the item that needs to be delivered to the customer, or purchased from a vendor.
In Oracle Projects contracts you can link attachments to a contract. You could setup various categories of attachments. Each pdf file which was scanned can be loaded as an attachment. You can assign the name of the documnet and its category.
Dina

Similar Messages

  • Oracle Project Contract

    Hi,
    Can anybody guide me to Oracle Project Contract test scripts. I know project costing and Billing and I need to implement Project contract.
    If you can guide me to any document for setups, process flow and test script it would be great.
    Thanks

    Hi
    You may start with Oracle Project Contract Implementation Guide.
    It is also helpfull to review OKC documents (Oracle Contracts Core), since part of the OKE setups are done in OKC forms.
    Dina

  • Business Area for Oracle Project Contracts

    Hello: I just installed Oracle Discoverer Administration Edition. I must grant privileges to Users with responsibility "Project Contracts Super User" and "Project Contracts Users", but I dont know wich Business Areas must be grat to those users ? Somebody knows which Business Area is the most suitable for Oracle Projects Contracts users?
    Thanks,

    Hi mehdi;
    Please check below and see its helpful:
    R12 Responsibilities And Roles Based On Business Flows [ID 406401.1]
    Regard
    Helios

  • How Oracle Project Contract (OKE) is useful for construction business?

    Hello Experts
    I am new to Oracle Projects family. I am interested to gain knowledge in Oracle Projects particularly in the modules like Project Costing, Billing, Project Management and Project Contracts.
    I have some specific queries with reference to construction business requirements which are as under:
    1. In what way Project Costing, Project Management and Contracts modules can be helpful for a construction business?
    2. If the business is to construct the villas and then to sell those to different high worth individuals, what all modules from Project family should be implemented?
    3. Any construction business typically engage different contractors (suppliers) for various construction related services. These contractors may submit net or cumulative invoices for the services provided by them. As per terms there could be retainage and recovery of advance paid to the contractors. After applying the retainage and advance recovery, contractor invoice will be certified for payment. How this business requirement will get mapped into Oracle system and in which module? Do I have to use Purchasing module or only Project Contract module is sufficient? Pls specify if any other module is required to be used for mapping this business scenario.
    4. Which Oracle modules are required for handling contractors payment certificates?
    Kindly provide your inputs in detailed.
    Thanks in advance

    Hi Gurus
    Please reply to my following doubt. Eagerly awaiting your replies.
    Hello Experts
    I am new to Oracle Projects family. I am interested to gain knowledge in Oracle Projects particularly in the modules like Project Costing, Billing, Project Management and Project Contracts.
    I have some specific queries with reference to construction business requirements which are as under:
    1. In what way Project Costing, Project Management and Contracts modules can be helpful for a construction business?
    2. If the business is to construct the villas and then to sell those to different high worth individuals, what all modules from Project family should be implemented?
    3. Any construction business typically engage different contractors (suppliers) for various construction related services. These contractors may submit net or cumulative invoices for the services provided by them. As per terms there could be retainage and recovery of advance paid to the contractors. After applying the retainage and advance recovery, contractor invoice will be certified for payment. How this business requirement will get mapped into Oracle system and in which module? Do I have to use Purchasing module or only Project Contract module is sufficient? Pls specify if any other module is required to be used for mapping this business scenario.
    4. Which Oracle modules are required for handling contractors payment certificates?
    Kindly provide your inputs in detailed.
    Thanks in advance

  • Steps and setup for Creation of Project Contract from Scratch

    Dear All,
    Steps and setup how to create contract from oracle project contracts?
    Thanks
    HNP
    Edited by: user12197222 on Aug 1, 2012 1:30 AM

    Please refer Ch 2 Creating New Contract Documents on below link from user guide:
    http://docs.oracle.com/cd/B11454_01/11.5.9/acrobat/115okeug.pdf
    thanks

  • Project Contract BOQ Printing in Tree format

    Hello,
    I am having issue in making BOQ Printing report in Tree format in Project Contracts
    I found the option to print contract (Tools-Print ) but it doesn’t show the data in tree form,
    I tried using PARENT_LINE_ID, LSE_ID but it didn’t work
    Please  give me a clue.
    Thanks.
    i want to print like this parent then sub, then baseline.

    Hi
    There are APIs for loading Project Contracts.
    You may want to review the white paper published on Metalink - Oracle Project Contracts API Import Procedures - Doc ID: 234864.1
    I don't think Web ADI has been integrated with Project Contracts.
    Dina

  • OKE Project Contracts - Generate Supplier invoice directly from Deliverable

    Dear All,
    In Project Contracts, Customer does not want to initiate requisition for the deliverables (Buy Contract - Non Item), instead they want Supplier invoice to be generated directly from the deliverables.
    The process flow which the customer looking for in Oracle project contracts is as follows,
    1. Create a Contract for Buy Intent - Non item deliverables
    2. Authoring the Contract
    3. Create Default deliverables
    4. IN DTS, based on the deliverables, system should generate Supplier Invoice directly with contract and Project references.
    Standard Flow - Contract Authoring > Default Deliverables > Initiate Requisition > Purchase order creation > Supplier Invoice > Interface costs to Projects
    Proposed Flow - Contract Authoring > Default Deliverables > Initiate Supplier Invoice > Interface costs to Projects
    Show some lights on this requirement.
    Regards,
    Kottee

    Hi
    As you may understand, the required flow is not delivered by Oracle.
    You might consider a customization. Develop a program that finds the completed deliverables and create from them a supplier invoice. The program might insert the supplier invoice into AP open interface. From there you should import the invoice into Payables, validate and approve it.
    Dina

  • Project Contracts Default Deliverables

    On Selecting the <Default Deliverables> option from <GoTo>
    the system pops out an error msg..
    APP-OKE-248000: Oracle Project Contracts API encountered the following error
    (1/2):
    ORA-2002: 3103: Attribute 'API_VERSION' does not exist for
    item 'OKEDLVBL/1603: OKE_DELIVERABLE_BILLING:27JUN0508....
    in Package OKE_CONTRACT_PUB Procedure CREATE_DELIVERABLE
    .

    hi ,
    am closing the thread, as the error is resolved !!

  • Can we have UPK on Oracle Project billing ie for Contract Projects???

    Can we have UPK on Oracle Project billing ie for Contract Projects???

    Iin the pop up I need to have only one field, say Search field
    - Create the ViewCriteria for the LOV ViewObject, consisting of that one field you want to search.
    Then, in the List UI Hints for LOV VO, adjust 'Include Search Region" to the criteria you just created in the previous step.
    +On entering a value in Search field and clicking on 'Search' button it should try to match the value in empid, projectid and deptid. It should return all the records wherever these values match.+
    - Create two bind variable for LOV VO, and create another one ViewCriteria for LOV VO, consisting of another two fields attributes (empid, deptid).
    In that criteria, set attribute values to appropriate bind variables.
    Them, when you place a View Accessor for that LOV, click 'Edit (selected View Accessor)' button.
    On the dialog box that appears, move the View Criteria you just created from Available to the Selected list.
    At the same dialog box, you need to set Bind variable values.
    Assign them the values of the EmpId, DeptId respectively.

  • Oracle Projects Differences from 11i to R12

    Hello All,
    Currently we are upgrading from 11.5.10.2 to R 12.1.3
    We have oracle projects implemented in 11i.
    I am researching to get the differences occurred in oracle projects functional and technical from 11i to R12
    It will be a great help to us if we could get some documents or a link which shows the differences.
    Thanks and Regards,
    Ankit Vishwakarma

    Project new features
    Oracle Project Foundation
    New Concurrent Process
    ADM: Purge Obsolete Projects Data
    Oracle Project Costing
    Federal Budgetary Accounting for Project Expenditures via Subledger Accounting
    Contingency Worker Clearing Projects to allow CWK to charge multiple projects
    Additional Project Information in Oracle Time and Labor (Project Name and Task Name)
    Federal Budgetary Accounting for Project Revenue
    Additional journal entries are available in Subledger Accounting for the required Federal Budgetary entries.
    Date Effective Funds Consumption
    Project Type option that requires cost and event transaction dates to fall within the agreement start and end dates.
    Transactions are only billed against the agreement if the entire transaction amount can be funded (no partial recognition) for both revenue and invoicing.
    Without enabling this option, revenue generation supports partial billing for transactions.
    New Parameters for MGT: Invoice Review
    Project Status
    Project Closed After Date
    Project Range
    New Parameters for MGT: Unbilled Receivables Aging
    Project Status
    Project Closed After Date
    Project Range
    Oracle Project Management New Audit Process for Project Performance Reporting Setup
    AUD: Project Performance Reporting Setup
    New Parameters for Refresh Project Performance Data Process
    Actual or All Amounts (Plan and Actual)
    Workplan Version
    Financial Plan Version
    Workplan EnhancementsAbility to Delete Published Workplan Versions (except the latest published version, baseline version, and workplan versions included in a program hierarchy) Usability Enhancements
    Update Work Breakdown Structure page is now obsolete.
    View, maintain, and update a workplan structure from the Update Tasks page.
    Where no latest published workplan version exists, the current working version displays on the Update Tasks page when navigating to the Workplan Tasks.
    Indent or outdent multiple workplan tasks in a single step.
    Confirmation, information, and warning messages appear on HTML pages during Apply Latest Progress as well as the Submit Progress processes. Messages include status information during processing and the availability of the latest progress information.
    New Public API for Creating, Maintaining, and Deleting Programs New set of public API procedures:
    Designate a project as a program and indicate whether projects linked to the program can belong to multiple programs.
    Create links from a program to one or more projects
    Update links from a program to one or more projects
    Delete links from a program to one or more projects
    Budgeting And Forecasting Enhancements Enhanced Automatic Calculation and Derivation Logic
    For plan lines that do not have a specified a quantity, the amount is no longer copied to the quantity field with the rate value set to 1.
    Rate now has a lower precedence than quantity and amount in automatic calculations.  The rate will be re-derived when the quantity, rate and amount are entered at the same time for a plan line.
    When the burden multiplier is overridden by updates to the raw cost or burden cost, subsequent calculations of the burden cost will use the override burden multiplier.  The same is true when the markup percent is updated by changes to plan line components:  the override markup percentage will be used in revenue calculations.
    Enhanced Handling of Override Rates on Budget / Forecast Lines
    Override rates for a planning transaction on Edit Budget and Edit Forecast pages.
    o   Raw Cost Rateo   Budened Cost Rateo   Bill Rate
    Override rates are applied to all existing and new periodic lines for the planning transaction.
    Average rates fields on these pages are now disabled for entry and are used for display only.
    Simplified Addition of Planning Elements and Resources
    New but unbudgeted tasks and resources can be added to a budget or forecast version.
    Add either all new tasks and planning resources or new tasks only to the current plan version.
    Self Service Expenditure Inquiry
    Ability to drill into expenditure details from the Financials tab.
    Reporting Pack for Generation and Distribution of XML Publisher Reports
    A reporting pack is a set of report templates and recipients by project role.
    The Generate Reporting Pack concurrent program emails the reports generated from the report templates based on pre-defined intervals.
    The report template establishes each report’s layout and content.
    New reports templates are configured using XML Publisher tools.
    New or modified reports can be added to an existing reporting pack or be used to create an entirely new report set.
    Predefined data definition files that contain XML tags for performance measures and project data are provided.
    Predefined Reports:
    Project Change Document Report
    Project Committed Cost Report
    Project Cost Detail Report
    Project Cost Labor Report
    Project Cost Summary Report
    Project Earned Value Report
    Project Financial Summary Report
    Project Forecast Summary Report
    Project Revenue At Risk Report
    Budget Integration with Federal Budget Execution and/or 3rd Party Budget
    The budget integration workflow supports integration with the Federal Budget Execution module..
    The workflow can be customized to interface budget lines to external budgeting applications.
    Microsoft Project 2007 Certification
    Integration with Microsoft Project 2007 is supported.
    Project Performance Reporting: Additional MeasuresYTD, QTD and At Completion calculated measures are available on the following pages:
    Performance Overview Period-to-Date
    Summary/Analysis
    Task Summary/Analysis Resource Summary/Analysis
    Project Performance Reporting: Inter-Project Revenue / Billing AmountsInter project revenue / billing amounts are available on the following pages:
    Project List View Workplan Cost
    Exception Reporting Performance Overview
    Task Summary/Analysis Resource Summary/Analysis
    Period-to-Date Summary/Analysis
    Supplier Cost DashboardSubcontractor Payment ControlsSupport for Pay when Paid Scenarios
    A new “Pay when Paid” payment term for subcontracts automatically places holds on all subcontractor invoices under that subcontract until the corresponding customer payment is received.
    Subcontract Payment Controls workbench allows project manager to manage the holds, with visibility into both the customer invoices and the related subcontractor invoices.
    Workflow notifications about the receipt of the customer payment allow the project manager to automatically or manually release the subcontract invoice.
    Associations between the customer invoices and the subcontractor invoices may be automatically maintained based on the billing of project expenditures for cost-plus contracts, or may be manually maintained for fixed price contracts.
    Payment Controls for Subcontract Deliverables
    Support for the tracking and monitoring of subcontract deliverables that place automatic holds on subcontractor invoices in the case of noncompliance.
    Oracle Procurement Contracts allow a subcontract administrator to specify payment impact controls that will take effect when a subcontract deliverable is not met.
    From the Subcontractor Payment Controls workbench, the project manager can view a checklist of the all the current subcontract deliverables, to assist in evaluating the subcontractor status prior to releasing monthly progress payments.
    Oracle Project Resource ManagementResource Search Enhancements
    Resource Search by Email Address
    Resource Search by Person Type
    Streamlined Navigation on Staffing Home
    Cross Validation of Project and Assignment Dates
    Requirement start dates are equal to or greater than the project start date and less than the project end date and that finish dates are equal to or less than the project end date but greater than the project start date.
    Assignments cannot be added beyond the project end date.
    A project team role end date cannot be beyond the project end date. If the roles are created before the project end dates are entered, users will receive an error if they later try to enter an end date that is earlier than the end date for existing roles.
    When project transaction dates are moved corresponding assignment dates are validated against the new project dates. If the new project transaction dates fall outside the dates for existing assignments, users are given an option to shift the assignment dates or cancel the date adjustment.
    Defaulting of Work Patterns’ From and To Dates
    Work pattern from and to dates will default from the requirement start and end dates.
    Improved Exception Handling of Maintain Project Resources Process
    PRC: Maintain Project Resources delivers improved exception handling and notification when it encounters errors while processing employee records.
    New Public APIs for Resource ManagementThe new PJR APIs fall into the following four categories:
    Requirement Public APIs
    Assignment Public APIs
    Candidate Public APIs
    Competence Public APIs
    Organization Authority: Obsolete Forecast Authority
    Removes the forecast authority functionality from the organization authority form
    Removes existing security data relating to forecast authority.
    Replaces the PJR forecast functionality with the new HTML based forecasting functionality. The new forecasting functionality has its own security mechanism and does not honor the old forecast authority model.
    Improves the performance of security calls to organization authority because the existing security data is being removed.
    Oracle Grants AccountingAward Budgeting Enhancements Budget period validations
    Budget periods will not be validated across award budgets when those awards fund a single project.
    Flexibility to establish award budgets based on the actual duration of the award, while not being confined based on the existing budgets already established for the project.
    Automatic summarization of project budgets
    With the new budget period validations, automatically summarize to a project budget viewable in Project Status Inquiry.
    Two profile options have been added to identify the budget entry methods that will be used to summarize the project budgets.
    Budget Line Sorting Option
    Sort budget lines by Resource name, or by effective dates for budgets with date range periods.  Provides the flexibility to view the budget lines by period or by budgeted resource.
    Award Status Inquiry Enhancements View by budget period
    Allows the Find Award Status window to be limited to a single period, range of periods, or inception to date for a particular award.
    Reflects the budget periods entered on the award budget.
    GL and PA Date Parameters on Find Expenditure Items window
    GL and PA date parameters have been added to the Find Expenditure Items window.
    GL Date Parameters on Find Commitments window
    GL Date parameters have been added to the Find Commitments window.
    KKG

  • Unable to Create Project Contract  from back end (R12)

    Hello,
    I am trying to create project contract using following code:
    DECLARE
    lv_return_status VARCHAR2 ( 1000 );
    ln_msg_count NUMBER;
    lv_msg_data VARCHAR2 ( 1000 );
    l1 oke_import_contract_pub.chr_rec_type;
    l2 oke_import_contract_pub.chr_rec_type;
    error_message VARCHAR2 ( 3000 );
    v_msg_index_out NUMBER;
    BEGIN
    l1.project_id := 3188;
    l1.prime_k_number := 'PRJ-CNV-10016';
    l1.owning_organization_id := 365;
    l1.start_date := SYSDATE;
    l1.inv_organization_id := 364;
    l1.authoring_org_id := 82;
    l1.k_type_code := 'MIPR';
    l1.sts_code :='E';
    l1.template_yn:='N';
    l1.currency_code:='USD';
    oke_import_contract_pub.create_contract_header (
    p_api_version => '1.0'
    , p_init_msg_list => oke_api.g_false
    , p_ignore_oke_validation => 'N'
    , x_return_status => lv_return_status
    , x_msg_count => ln_msg_count
    , x_msg_data => lv_msg_data
    , p_chr_rec => l1
    , x_chr_rec => l2
    IF ln_msg_count > 0 THEN
    FOR v_index IN 1 .. ln_msg_count
    LOOP
    fnd_msg_pub.get (
    p_msg_index => v_index
    , p_encoded => 'F'
    , p_data => error_message
    , p_msg_index_out => v_msg_index_out
    DBMS_OUTPUT.put_line ('ERROR:' || error_message );
    END LOOP;
    END IF;
    END;
    The output results in following error: ERROR:You cannot save this entry before saving the header entry. (COL_NAME=sts_code) (CHILD_TABLE=OKC_K_HEADERS_V) (PARENT_TABLE=OKC_STATUSES_V)
    Anybody has used this API or knows other method of creating oracle contract please help.
    Thanks in advance.

    Hi,
    How are you. I am currently working on the Project contracts conversion, as in the process of understanding the API's, i have provided some static data to create contract headers, lines and Billing method API's.
    When i execute it, i could able to create the contract header but at line level i get the following errors .  I don't understand this error "OKE_NO_PARENT_RECORD (COL_NAME=billing_method_code) (CHILD_TABLE=OKE_K_LINES_V) (PARENT_TABLE=OKE_K_BILLING_METHODS)"
    Could you please help me in sending your script.
    thanks
    Ravi.
    The original contract number:4100401462_9886546
    Contract header id:875449
    Contract header number:4100401462_9886546
    Return Status  S
    l_msg_count    0
    l_msg_data    
    Return Status  S
    l_msg_count    0
    l_msg_data    
    Inventory_item_id for 5498563-79  is -->1285587
    1. Value for INVENTORY_ITEM_ID is invalid.
    2. OKE_NO_PARENT_RECORD (COL_NAME=billing_method_code) (CHILD_TABLE=OKE_K_LINES_V) (PARENT_TABLE=OKE_K_BILLING_METHODS)
    Return Status  E
    l_msg_count    2
    l_msg_data    
    Inventory_item_id for 5498563-9  is -->1285589
    1. Value for INVENTORY_ITEM_ID is invalid.
    2. OKE_NO_PARENT_RECORD (COL_NAME=billing_method_code) (CHILD_TABLE=OKE_K_LINES_V) (PARENT_TABLE=OKE_K_BILLING_METHODS)
    Return Status  E
    l_msg_count    2
    l_msg_data    
    Inventory_item_id for 7104853-1  is -->1306099
    1. Value for INVENTORY_ITEM_ID is invalid.
    2. OKE_NO_PARENT_RECORD (COL_NAME=billing_method_code) (CHILD_TABLE=OKE_K_LINES_V) (PARENT_TABLE=OKE_K_BILLING_METHODS)
    Return Status  E
    l_msg_count    2
    l_msg_data    
    PL/SQL procedure successfully completed.
    The following is the test script
    ========================================================
    declare
    gr_xxoke_l_chr_rec            xxoke_header%ROWTYPE;
    type gt_xxoke_header          is table of xxoke_header%rowtype              index by binary_integer;
    l_api_version                 number        := 1.0;
    l_init_msg_list               varchar2(20)  := oke_api.g_true;
    l_ignore_oke_validation       varchar2(1)   := xx_common.gc_yes;
    l_return_status               varchar2(20)  := xx_common.g_null;
    l_msg_count                   number        := xx_common.gn_zero;
    l_msg_data                    varchar2(500) := xx_common.g_null;
    --l_chr_rec                     xxoke_header%ROWTYPE;
    l_chr_rec                     oke_import_contract_pub.chr_rec_type;
    r_chr_rec                     oke_import_contract_pub.chr_rec_type;
    --r_chr_rec                     xxoke_header%ROWTYPE;
    l_cle_rec                     oke_import_contract_pub.cle_rec_type;  --xxoke_lines%ROWTYPE;
    r_cle_rec                     oke_import_contract_pub.cle_rec_type;  --xxoke_lines%ROWTYPE;
    bill_tbl                      OKE_IMPORT_CONTRACT_PUB.bill_tbl_type;
    l_inventory_item_id           number;
    cursor c_head is
    select
      k_header_id
    , contract_number_modifier
    , k_number
    , buy_or_sell
    , currency_code
    , status
    , status_code
    , scs_code
    , start_date
    , end_date
    , owning_organization
    , owning_organization_id
    , authoring_org
    --, esitmated_amount
    , date_approved
    , short_description
    , comments
    , description
    --, cognomen
    , template_yn
    --, archived_yn
    --, deleted_yn
    , customer_po_number
    , program_id
    , program_number
    , project_id
    , project_description
    , project_name
    , project_number
    , project_organization
    , boa_id
    , boa_number
    , k_type_code
    , priority_code
    , prime_k_alias
    , prime_k_number
    , authorize_date
    , authorizing_reason
    , award_cancel_date
    , date_definitized
    , date_issued
    , date_negotiated
    , date_received
    , date_sign_by_contractor
    , date_sign_by_customer
    , faa_approve_date
    , faa_reject_date
    , booked_flag
    , open_flag
    , cfe_flag
    , vat_code
    , country_of_origin_code
    , export_flag
    , human_subject_flag
    , cqa_flag
    , interim_rpt_req_flag
    , no_competition_authorize
    , penalty_clause_flag
    , product_line_code
    , reporting_flag
    , sb_plan_req_flag
    , sb_report_flag
    , nte_amount
    , nte_warning_flag
    , bill_without_def_flag
    , cas_flag
    , classified_flag
    , client_approve_req_flag
    , cost_of_money
    , dcaa_audit_req_flag
    , cost_share_flag
    , oh_rates_final_flag
    , prop_delivery_location
    , prop_due_date_time
    , prop_expire_date
    , copies_required
    , sic_code
    , tech_data_wh_rate
    , progress_payment_flag
    , progress_payment_liq_rate
    , progress_payment_rate
    , alternate_liquidation_rate
    , definitized_flag
    , financial_ctrl_verified_flag
    , prop_due_time
    , line_value_total
    , undef_line_value_total
    --, sfwt_flag
    --,chr_id_response   
    --,chr_id_award 
    --,chr_id_renewed 
    --, contract_number
    , chr_type
    , trn_code
    , authoring_org_id
    , issue_or_receive
    from oke_k_headers_full_v@testlink
    WHERE k_header_id = 608283;
    cursor c_line (l_header_id in number) is
    select
    k_line_id
    ,parent_line_id
    ,project_id
    ,project_name
    ,project_number
    ,project_organization
    ,task_id
    ,task_number
    ,task_name
    ,task_description
    ,billing_method_code
    ,inventory_item_id
    ,item_number
    ,item_description
    ,delivery_order_flag
    ,splited_flag
    ,priority_code
    ,customer_item_id
    ,customer_item_number
    ,line_quantity
    ,delivery_date
    ,unit_price
    ,uom_code
    ,billable_flag
    ,shippable_flag
    ,subcontracted_flag
    ,completed_flag
    ,nsp_flag
    ,app_code
    ,as_of_date
    ,authority
    ,country_of_origin_code
    ,drop_shipped_flag
    ,customer_approval_req_flag
    ,date_material_req
    ,inspection_req_flag
    ,interim_rpt_req_flag
    ,subj_a133_flag
    ,export_flag
    ,cfe_flag
    ,cop_required_flag
    ,export_license_num
    ,export_license_res
    ,copies_required
    ,cdrl_category
    ,data_item_name
    ,data_item_subtitle
    ,date_of_first_submission
    ,frequency
    ,requiring_office
    ,dcaa_audit_req_flag
    ,definitized_flag
    ,cost_of_money
    ,bill_undefinitized_flag
    ,nsn_number
    ,nte_warning_flag
    ,discount_for_payment
    ,financial_ctrl_flag
    ,c_scs_flag
    ,c_ssr_flag
    ,prepayment_amount
    ,prepayment_percentage
    ,progress_payment_flag
    ,progress_payment_liq_rate
    ,progress_payment_rate
    ,award_fee
    ,award_fee_pool_amount
    ,base_fee
    ,ceiling_cost
    ,ceiling_price
    ,labor_cost_index
    ,material_cost_index
    ,customer_percent_in_order
    ,cost_overrun_share_ratio
    ,cost_underrun_share_ratio
    ,date_of_price_redetermin
    ,estimated_total_quantity
    ,fee_ajt_formula
    ,final_fee
    ,fixed_quantity
    ,initial_fee
    ,initial_price
    ,level_of_effort_hours
    ,line_liquidation_rate
    ,maximum_fee
    ,maximum_quantity
    ,minimum_fee
    ,minimum_quantity
    ,number_of_options
    ,revised_price
    ,target_cost
    ,target_date_definitize
    ,target_fee
    ,target_price
    ,total_estimated_cost
    ,proposal_due_date
    ,cost_of_sale_rate
    ,line_value
    ,line_value_total
    ,undef_line_value
    ,undef_unit_price
    ,undef_line_value_total
    ,object_version_number
    ,sfwt_flag
    --,chr_id 
    --,cle_id 
    --,cle_id_renewed
    --,cle_id_renewed_to
    ,lse_id
    ,line_number
    ,display_sequence
    ,trn_code
    --,dnz_chr_id
    ,comments
    ,boe_description
    --,hidden_ind
    --,price_unit_percent
    --,price_negotiated
    --,price_negotiated_renewed
    --,price_level_ind
    --,invoice_line_level_ind
    --,dpas_rating
    --,block23text
    --,exception_yn
    --,template_used
    --,date_terminated
    --,name
    ,start_date
    ,end_date
    --,upg_orig_system_ref
    --,upg_orig_system_ref_id
    ,attribute_category
    ,attribute1 
    ,attribute2
    ,attribute3 
    ,attribute4
    ,attribute5
    ,attribute6
    ,attribute7  
    ,attribute8 
    ,attribute9 
    ,attribute10
    ,attribute11
    ,attribute12
    ,attribute13 
    ,attribute14
    ,attribute15
    --,price_type
    --,currency_code
    --,currency_code_renewed
    ,created_by   
    ,creation_date
    ,last_updated_by
    ,last_update_login
    ,last_update_date
    from  oke_k_lines_full_v@testlink
    where header_id = l_header_id
    order by line_number;
    l_seq_num                    number;
    begin
    for r_head in c_head loop
    select xxtest_conversion_s.nextval
    into l_seq_num
    from dual;
    l_chr_rec.contract_number:= r_head.k_number||'_'||l_seq_num;
    dbms_output.put_line('The original contract number:' || l_chr_rec.contract_number );
    l_chr_rec.buy_or_sell                   := r_head.buy_or_sell;
    l_chr_rec.currency_code                 := r_head.currency_code;
    l_chr_rec.sts_code                      := upper(r_head.status_code);
    l_chr_rec.scs_code                      := r_head.scs_code;
    l_chr_rec.start_date                    := r_head.start_date;
    l_chr_rec.end_date                      := r_head.end_date;
    l_chr_rec.inv_organization_id           := 91;  --r_head.owning_organization_id;
    l_chr_rec.authoring_org_id              := 82;  --r_head.authoring_org_id;
    --l_chr_rec.estimated_amount              := r_head. 5000000;
    l_chr_rec.date_approved                 := r_head.date_approved;
    l_chr_rec.short_description             := r_head.short_description;
    l_chr_rec.comments                      := r_head.comments;
    l_chr_rec.description                   := r_head.description;
    --l_chr_rec.cognomen                      := r_head. 'Test Contract Alias';
    l_chr_rec.template_yn                   := r_head.template_yn;
    --l_chr_rec.archived_yn                   := r_head. 'N';
    --l_chr_rec.deleted_yn                    := r_head. 'N';
    l_chr_rec.cust_po_number                := r_head.customer_po_number;
    l_chr_rec.program_id                    := 1035; --r_head.program_id;
    l_chr_rec.project_id                    := 158017; --r_head.project_id;
    l_chr_rec.boa_id                        := r_head.boa_id;
    l_chr_rec.k_type_code                   := 'Award'; ---r_head.k_type_code;
    l_chr_rec.priority_code                 := r_head.priority_code;
    l_chr_rec.prime_k_alias                 := r_head.prime_k_alias;
    l_chr_rec.prime_k_number                := r_head.prime_k_number;
    l_chr_rec.authorize_date                := r_head.authorize_date;
    l_chr_rec.authorizing_reason            := r_head.authorizing_reason;
    l_chr_rec.award_cancel_date             := r_head.award_cancel_date;
    --l_chr_rec.award_date                    := r_head.  sysdate - 16;
    l_chr_rec.date_definitized              := r_head.date_definitized;
    l_chr_rec.date_issued                   := r_head.date_issued;
    l_chr_rec.date_negotiated               := r_head.date_negotiated;
    l_chr_rec.date_received                 := r_head.date_received;
    l_chr_rec.date_sign_by_contractor       := r_head.date_sign_by_contractor;
    l_chr_rec.date_sign_by_customer         := r_head.date_sign_by_customer;
    l_chr_rec.faa_approve_date              := r_head.faa_approve_date;
    l_chr_rec.faa_reject_date               := r_head.faa_reject_date;
    -- l_chr_rec.booked_flag                := gr_xxoke_l_chr_rec NULL;
    -- l_chr_rec.open_flag                  := gr_xxoke_l_chr_rec NULL;
    l_chr_rec.cfe_flag                      := r_head.cfe_flag;
    l_chr_rec.vat_code                      := r_head.vat_code;
    l_chr_rec.country_of_origin_code        := r_head.country_of_origin_code;
    l_chr_rec.export_flag                   := r_head.export_flag;
    l_chr_rec.human_subject_flag            := r_head.human_subject_flag;
    l_chr_rec.cqa_flag                      := r_head.cqa_flag;
    l_chr_rec.interim_rpt_req_flag          := r_head.interim_rpt_req_flag;
    l_chr_rec.no_competition_authorize      := r_head.no_competition_authorize;
    l_chr_rec.penalty_clause_flag           := r_head.penalty_clause_flag;
    l_chr_rec.product_line_code             := 'CONTRACT MFG'; --r_head.product_line_code;
    l_chr_rec.reporting_flag                := r_head.reporting_flag;
    l_chr_rec.sb_plan_req_flag              := r_head.sb_plan_req_flag;
    l_chr_rec.sb_report_flag                := r_head.sb_report_flag;
    l_chr_rec.nte_amount                    := r_head.nte_amount;
    l_chr_rec.nte_warning_flag              := r_head.nte_warning_flag;
    l_chr_rec.bill_without_def_flag         := r_head.bill_without_def_flag;
    l_chr_rec.cas_flag                      := r_head.cas_flag;
    l_chr_rec.classified_flag               := r_head.classified_flag;
    l_chr_rec.client_approve_req_flag       := r_head.client_approve_req_flag;
    l_chr_rec.cost_of_money                 := r_head.cost_of_money;
    l_chr_rec.dcaa_audit_req_flag           := r_head.dcaa_audit_req_flag;
    l_chr_rec.cost_share_flag               := r_head.cost_share_flag;
    l_chr_rec.oh_rates_final_flag           := r_head.oh_rates_final_flag;
    l_chr_rec.prop_delivery_location        := r_head.prop_delivery_location;
    l_chr_rec.prop_due_date_time            := r_head.prop_due_date_time;
    l_chr_rec.prop_expire_date              := r_head.prop_expire_date;
    l_chr_rec.copies_required               := r_head.copies_required;
    l_chr_rec.sic_code                      := r_head.sic_code;
    l_chr_rec.tech_data_wh_rate             := r_head.tech_data_wh_rate;
    l_chr_rec.progress_payment_flag         := r_head.progress_payment_flag;
    l_chr_rec.progress_payment_liq_rate     := r_head.progress_payment_liq_rate;
    l_chr_rec.progress_payment_rate         := r_head.progress_payment_rate;
    l_chr_rec.alternate_liquidation_rate    := r_head.alternate_liquidation_rate;
    -- l_chr_rec.prop_due_time              := r_head. NULL;
    l_chr_rec.definitized_flag              := r_head.definitized_flag;
    l_chr_rec.financial_ctrl_verified_flag  := r_head.financial_ctrl_verified_flag;
    --l_chr_rec.cost_of_sale_rate             := r_head. 0.1;
    oke_import_contract_pub.create_contract_header(  p_api_version                  => l_api_version
                                                   , p_init_msg_list                => l_init_msg_list
                                                   , p_ignore_oke_validation        => l_ignore_oke_validation
                                                   , x_return_status                => l_return_status
                                                   , x_msg_count                    => l_msg_count
                                                   , x_msg_data                     => l_msg_data
                                                   , p_chr_rec                            => l_chr_rec
                                                   , x_chr_rec                            => r_chr_rec
    FOR I IN 1..l_msg_count
    LOOP
      dbms_output.put_line ( I||'. '||SubStr(FND_MSG_PUB.Get(p_encoded => FND_API.G_FALSE ), 1, 255));
    END LOOP;
    dbms_output.put_line('Contract header id:'|| r_chr_rec.k_header_id);
    dbms_output.put_line('Contract header number:'|| r_chr_rec.contract_number);
    dbms_output.put_line('Return Status  '||l_return_status);
    dbms_output.put_line('l_msg_count    '||l_msg_count);
    dbms_output.put_line('l_msg_data     '||l_msg_data);
    bill_tbl(1).k_header_id           := r_chr_rec.k_header_id;
    bill_tbl(1).billing_method_code   := 'Mixed';
    --bill_tbl(2).k_header_id           := r_chr_rec.k_header_id;
    --bill_tbl(2).billing_method_code   := 'Cost Plus';
    OKE_IMPORT_CONTRACT_PUB.define_billing_methods(p_api_version      => l_api_version
                                                  ,p_init_msg_list    => l_init_msg_list
                                                  ,x_return_status    => l_return_status
                                                  ,x_msg_count        => l_msg_count
                                                  ,x_msg_data         => l_msg_data
                                                  ,p_bill_tbl         => bill_tbl
    FOR I IN 1..l_msg_count
    LOOP
      dbms_output.put_line ( I||'. '||SubStr(FND_MSG_PUB.Get(p_encoded => FND_API.G_FALSE ), 1, 255));
    END LOOP;
    dbms_output.put_line('Return Status  '||l_return_status);
    dbms_output.put_line('l_msg_count    '||l_msg_count);
    dbms_output.put_line('l_msg_data     '||l_msg_data);
    for r_line in c_line (r_head.k_header_id) loop
    --------CREATE A TOP LINE -----------------
        -- validate inventory item
      begin
        select inventory_item_id
        into l_inventory_item_id
        from mtl_system_items_b
        where segment1 = r_line.item_number
        and organization_id = 91;
      exception
       when others then
       dbms_output.put_line('Error in deriving the inventory_item_id:'|| substr(sqlerrm,1,500));
      end;
      dbms_output.put_line('Inventory_item_id for '||r_line.item_number|| '  is -->' ||l_inventory_item_id);
    l_cle_rec.k_line_id                          := null;
    l_cle_rec.parent_line_id                    :=  null;
    l_cle_rec.project_id                          := 158017; --r_line.project_id;
    l_cle_rec.task_id                            := null; --r_line.task_id;
    l_cle_rec.billing_method_code              := 'Mixed';
    l_cle_rec.inventory_item_id                := l_inventory_item_id;
    l_cle_rec.delivery_order_flag              := r_line.delivery_order_flag;
    l_cle_rec.splited_flag                        := r_line.splited_flag;
    l_cle_rec.priority_code                      := r_line.priority_code;
    l_cle_rec.customer_item_id                  :=  r_line.customer_item_id;
    l_cle_rec.customer_item_number           := r_line.customer_item_number;
    l_cle_rec.line_quantity                      := r_line.line_quantity;
    l_cle_rec.delivery_date                      := r_line.delivery_date;
    l_cle_rec.unit_price                          := r_line.unit_price;
    l_cle_rec.uom_code                            := r_line.uom_code;
    l_cle_rec.billable_flag                      := r_line.billable_flag;
    l_cle_rec.shippable_flag                    := r_line.shippable_flag;
    l_cle_rec.subcontracted_flag             := r_line.subcontracted_flag;
    l_cle_rec.completed_flag                    := r_line.completed_flag;
    l_cle_rec.nsp_flag                            := r_line.nsp_flag;
    l_cle_rec.app_code                            := r_line.app_code;
    l_cle_rec.as_of_date                          := r_line.as_of_date;
    l_cle_rec.authority                          := r_line.authority;
    l_cle_rec.country_of_origin_code         := r_line.country_of_origin_code;
    l_cle_rec.drop_shipped_flag                := r_line.drop_shipped_flag;
    l_cle_rec.customer_approval_req_flag     := r_line.customer_approval_req_flag;
    l_cle_rec.date_material_req                := r_line.date_material_req;
    l_cle_rec.inspection_req_flag              := r_line.inspection_req_flag;
    l_cle_rec.interim_rpt_req_flag              := r_line.interim_rpt_req_flag;
    l_cle_rec.subj_a133_flag                    := r_line.subj_a133_flag;
    l_cle_rec.export_flag                        := r_line.export_flag;
    l_cle_rec.cfe_req_flag                        := r_line.cfe_flag;
    l_cle_rec.cop_required_flag                := r_line.cop_required_flag;
    l_cle_rec.export_license_num                := r_line.export_license_num;
    l_cle_rec.export_license_res             := r_line.export_license_res;
    l_cle_rec.copies_required                  := r_line.copies_required;
    l_cle_rec.cdrl_category                      := r_line.cdrl_category;
    l_cle_rec.data_item_name                    := r_line.data_item_name;
    l_cle_rec.data_item_subtitle                := r_line.data_item_subtitle;
    l_cle_rec.date_of_first_submission       := r_line.date_of_first_submission;
    l_cle_rec.frequency                          := r_line.frequency;
    l_cle_rec.requiring_office                  := r_line.requiring_office;
    l_cle_rec.dcaa_audit_req_flag              := r_line.dcaa_audit_req_flag;
    l_cle_rec.definitized_flag                  := r_line.definitized_flag;
    l_cle_rec.cost_of_money                      := r_line.cost_of_money;
    l_cle_rec.bill_undefinitized_flag        := r_line.bill_undefinitized_flag;
    l_cle_rec.nsn_number                          := r_line.nsn_number;
    l_cle_rec.nte_warning_flag                  := r_line.nte_warning_flag;
    l_cle_rec.discount_for_payment              := r_line.discount_for_payment;
    l_cle_rec.financial_ctrl_flag              := r_line.financial_ctrl_flag;
    l_cle_rec.c_scs_flag                          := r_line.c_scs_flag;
    l_cle_rec.c_ssr_flag                          := r_line.c_ssr_flag;
    l_cle_rec.prepayment_amount                := r_line.prepayment_amount;
    l_cle_rec.prepayment_percentage          := r_line.prepayment_percentage;
    l_cle_rec.progress_payment_flag          := r_line.progress_payment_flag;
    l_cle_rec.progress_payment_liq_rate      := r_line.progress_payment_liq_rate;
    l_cle_rec.progress_payment_rate          := r_line.progress_payment_rate;
    l_cle_rec.award_fee                          := r_line.award_fee;
    l_cle_rec.award_fee_pool_amount          := r_line.award_fee_pool_amount;
    l_cle_rec.base_fee                            := r_line.base_fee;
    l_cle_rec.ceiling_cost                        := r_line.ceiling_cost;
    l_cle_rec.ceiling_price                      := r_line.ceiling_price;
    l_cle_rec.labor_cost_index                  := r_line.labor_cost_index;
    l_cle_rec.material_cost_index              := r_line.material_cost_index;
    l_cle_rec.customers_percent_in_order     := r_line.cost_underrun_share_ratio;
    l_cle_rec.cost_overrun_share_ratio          := r_line.date_of_price_redetermin;
    l_cle_rec.cost_underrun_share_ratio        := r_line.cost_underrun_share_ratio;
    l_cle_rec.date_of_price_redetermin       := r_line.date_of_price_redetermin;
    l_cle_rec.estimated_total_quantity       := r_line.estimated_total_quantity;
    l_cle_rec.fee_ajt_formula                  := r_line.fee_ajt_formula;
    l_cle_rec.final_fee                          := r_line.final_fee;
    --l_cle_rec.final_pft_ajt_formula          := r_line.final_pft_ajt_formula;
    --l_cle_rec.fixed_fee                          := r_line.fixed_fee;
    l_cle_rec.fixed_quantity                    := r_line.fixed_quantity;
    l_cle_rec.initial_fee                        := r_line.initial_fee;
    l_cle_rec.initial_price                      := r_line.initial_price;
    l_cle_rec.level_of_effort_hours          := r_line.level_of_effort_hours;
    l_cle_rec.line_liquidation_rate          := r_line.line_liquidation_rate;
    l_cle_rec.maximum_fee                        := r_line.maximum_fee;
    l_cle_rec.maximum_quantity                  := r_line.maximum_quantity;
    l_cle_rec.minimum_fee                        := r_line.minimum_fee;
    l_cle_rec.minimum_quantity                  := r_line.minimum_quantity;
    l_cle_rec.number_of_options                := r_line.number_of_options;
    l_cle_rec.revised_price                      := r_line.revised_price;
    l_cle_rec.target_cost                        := r_line.target_cost;
    l_cle_rec.target_date_definitize         := r_line.target_date_definitize;
    l_cle_rec.target_fee                        := r_line.target_fee;
    l_cle_rec.target_price                        := r_line.target_price;
    l_cle_rec.total_estimated_cost           := r_line.total_estimated_cost;
    l_cle_rec.proposal_due_date                := r_line.proposal_due_date;
    l_cle_rec.cost_of_sale_rate                := r_line.cost_of_sale_rate;
    l_cle_rec.line_value                          := r_line.line_value;
    l_cle_rec.line_value_total                  := r_line.line_value_total;
    l_cle_rec.UNDEF_UNIT_PRICE                  := r_line.UNDEF_UNIT_PRICE;
    l_cle_rec.UNDEF_LINE_VALUE                  := r_line.UNDEF_LINE_VALUE;
    l_cle_rec.UNDEF_LINE_VALUE_TOTAL         := r_line.UNDEF_LINE_VALUE_TOTAL;
    l_cle_rec.object_version_number          := r_line.object_version_number;
    l_cle_rec.sfwt_flag                      := r_line.sfwt_flag;
    l_cle_rec.chr_id                         := r_chr_rec.k_header_id;
    --l_cle_rec.cle_id                         := r_line.cle_id;
    --l_cle_rec.cle_id_renewed                 := r_line.cle_id_renewed;
    --l_cle_rec.cle_id_renewed_to                  := r_line.cle_id_renewed_to;
    l_cle_rec.lse_id                         := r_line.lse_id;
    l_cle_rec.line_number                    := r_line.line_number;
    l_cle_rec.sts_code                       := r_head.status_code;  --r_line.sts_code;
    l_cle_rec.display_sequence               := r_line.display_sequence;
    l_cle_rec.trn_code                       := r_line.trn_code;
    l_cle_rec.dnz_chr_id                     := r_chr_rec.k_header_id;
    l_cle_rec.comments                       := r_line.comments;
    l_cle_rec.item_description               := r_line.item_description;
    l_cle_rec.oke_boe_description            := r_line.boe_description;
    --l_cle_rec.hidden_ind                     := r_line.hidden_ind;
    --l_cle_rec.price_unit                            := r_line.price_unit;
    --l_cle_rec.price_unit_percent                  := r_line.price_unit_percent;
    --l_cle_rec.price_negotiated               := r_line.price_negotiated;
    --l_cle_rec.price_negotiated_renewed       := r_line.price_negotiated_renewed;
    --l_cle_rec.price_level_ind                := r_line.price_level_ind;
    --l_cle_rec.invoice_line_level_ind         := r_line.invoice_line_level_ind;
    --l_cle_rec.dpas_rating                    := r_line.dpas_rating;
    --l_cle_rec.block23text                    := r_line.block23text;
    l_cle_rec.exception_yn                   := 'N'; --r_line.exception_yn;
    --l_cle_rec.template_used                  := r_line.template_used;
    --l_cle_rec.date_terminated                := r_line.date_terminated;
    --l_cle_rec.name                           := r_line.name;
    l_cle_rec.start_date                     := r_line.start_date;
    l_cle_rec.end_date                       := r_line.end_date;
    --l_cle_rec.upg_orig_system_ref            := r_line.upg_orig_system_ref;
    --l_cle_rec.upg_orig_system_ref_id         := r_line.upg_orig_system_ref_id;
    l_cle_rec.attribute_category             := r_line.attribute_category;
    l_cle_rec.attribute1                     := r_line.attribute1;
    l_cle_rec.attribute2                     := r_line.attribute2;
    l_cle_rec.attribute3                     := r_line.attribute3;
    l_cle_rec.attribute4                     := r_line.attribute4;
    l_cle_rec.attribute5                     := r_line.attribute5;
    l_cle_rec.attribute6                     := r_line.attribute6;
    l_cle_rec.attribute7                     := r_line.attribute7;
    l_cle_rec.attribute8                     := r_line.attribute8;
    l_cle_rec.attribute9                     := r_line.attribute9;
    l_cle_rec.attribute10                    := r_line.attribute10;
    l_cle_rec.attribute11                    := r_line.attribute11;
    l_cle_rec.attribute12                    := r_line.attribute12;
    l_cle_rec.attribute13                    := r_line.attribute13;
    l_cle_rec.attribute14                    := r_line.attribute14;
    l_cle_rec.attribute15                    := r_line.attribute15;
    --l_cle_rec.price_type                     := r_line.price_type;
    --l_cle_rec.currency_code                  := r_line.currency_code;
    --l_cle_rec.currency_code_renewed             := r_line.currency_code_renewed;
    l_cle_rec.created_by                       := r_line.created_by;
    l_cle_rec.creation_date                       := r_line.creation_date;
    l_cle_rec.last_updated_by                   := r_line.last_updated_by;
    l_cle_rec.last_update_login                 := r_line.last_update_login;
    l_cle_rec.last_update_date               := r_line.last_update_date;
    oke_import_contract_pub.create_contract_line(  p_api_version                  => l_api_version
                                                  ,p_init_msg_list                => l_init_msg_list
                                                  ,x_return_status                => l_return_status
                                                  ,x_msg_count                    => l_msg_count
                                                  ,x_msg_data                     => l_msg_data
                                                  ,p_cle_rec                            => l_cle_rec
                                                  ,x_cle_rec                            => r_cle_rec
                FOR I IN 1..l_msg_count
                LOOP
                  dbms_output.put_line ( I||'. '||SubStr(FND_MSG_PUB.Get(p_encoded => FND_API.G_FALSE ), 1, 255));
                END LOOP;
                dbms_output.put_line('Return Status  '||l_return_status);
                dbms_output.put_line('l_msg_count    '||l_msg_count);
                dbms_output.put_line('l_msg_data     '||l_msg_data);   
    end loop;
    end loop;
    end;
    =============================================================================================

  • Unable to Create Project Contract (R12)

    Hello,
    I am trying to create project contract using following code:
    DECLARE
    lv_return_status VARCHAR2 ( 1000 );
    ln_msg_count NUMBER;
    lv_msg_data VARCHAR2 ( 1000 );
    l1 oke_import_contract_pub.chr_rec_type;
    l2 oke_import_contract_pub.chr_rec_type;
    error_message VARCHAR2 ( 3000 );
    v_msg_index_out NUMBER;
    BEGIN
    l1.project_id := 3188;
    l1.prime_k_number := 'PRJ-CNV-10016';
    l1.owning_organization_id := 365;
    l1.start_date := SYSDATE;
    l1.inv_organization_id := 364;
    l1.authoring_org_id := 82;
    l1.k_type_code := 'MIPR';
    l1.sts_code :='E';
    l1.template_yn:='N';
    l1.currency_code:='USD';
    oke_import_contract_pub.create_contract_header (
    p_api_version => '1.0'
    , p_init_msg_list => oke_api.g_false
    , p_ignore_oke_validation => 'N'
    , x_return_status => lv_return_status
    , x_msg_count => ln_msg_count
    , x_msg_data => lv_msg_data
    , p_chr_rec => l1
    , x_chr_rec => l2
    IF ln_msg_count > 0 THEN
    FOR v_index IN 1 .. ln_msg_count
    LOOP
    fnd_msg_pub.get (
    p_msg_index => v_index
    , p_encoded => 'F'
    , p_data => error_message
    , p_msg_index_out => v_msg_index_out
    DBMS_OUTPUT.put_line ('ERROR:' || error_message );
    END LOOP;
    END IF;
    END;
    The output results in following error: ERROR:You cannot save this entry before saving the header entry. (COL_NAME=sts_code) (CHILD_TABLE=OKC_K_HEADERS_V) (PARENT_TABLE=OKC_STATUSES_V)
    Anybody has used this API or knows other method of creating oracle contract please help.
    Thanks in advance.

    Hello,
    I am trying to create project contract using following code:
    DECLARE
    lv_return_status VARCHAR2 ( 1000 );
    ln_msg_count NUMBER;
    lv_msg_data VARCHAR2 ( 1000 );
    l1 oke_import_contract_pub.chr_rec_type;
    l2 oke_import_contract_pub.chr_rec_type;
    error_message VARCHAR2 ( 3000 );
    v_msg_index_out NUMBER;
    BEGIN
    l1.project_id := 3188;
    l1.prime_k_number := 'PRJ-CNV-10016';
    l1.owning_organization_id := 365;
    l1.start_date := SYSDATE;
    l1.inv_organization_id := 364;
    l1.authoring_org_id := 82;
    l1.k_type_code := 'MIPR';
    l1.sts_code :='E';
    l1.template_yn:='N';
    l1.currency_code:='USD';
    oke_import_contract_pub.create_contract_header (
    p_api_version => '1.0'
    , p_init_msg_list => oke_api.g_false
    , p_ignore_oke_validation => 'N'
    , x_return_status => lv_return_status
    , x_msg_count => ln_msg_count
    , x_msg_data => lv_msg_data
    , p_chr_rec => l1
    , x_chr_rec => l2
    IF ln_msg_count > 0 THEN
    FOR v_index IN 1 .. ln_msg_count
    LOOP
    fnd_msg_pub.get (
    p_msg_index => v_index
    , p_encoded => 'F'
    , p_data => error_message
    , p_msg_index_out => v_msg_index_out
    DBMS_OUTPUT.put_line ('ERROR:' || error_message );
    END LOOP;
    END IF;
    END;
    The output results in following error: ERROR:You cannot save this entry before saving the header entry. (COL_NAME=sts_code) (CHILD_TABLE=OKC_K_HEADERS_V) (PARENT_TABLE=OKC_STATUSES_V)
    Anybody has used this API or knows other method of creating oracle contract please help.
    Thanks in advance.

  • Revenue Recognition Process in Oracle Projects

    I am new to Oracle Projects and needs to understand the Revenue Recognition process.
    User has created one Contract under which he has Intercompany Billing, Costing and Elimination Projects. He booked the cost under the Costing project and then ran a custom elimination program to eliminate the intercompany cost. Now he is going to the billing project and running the 'Generate Draft Revenue' program however nothing is getting generated. He wants to know why revenue is not getting recoginised.
    Is it the correct way of recognizing the revenue. The Distribution rule being used is Event/Event however no event has got created in the billing project to recognize the revenue.
    Please suggest.

    Hi ,
    The subcontracting process can be exceuted in the following way..
    The modules involved will be PA, PO, AP..
    This can be handle with the P2P cycle..
    Raise a servie PO with the project information in the PO distributions for the service that needs to be subcotracted..
    specify the matchig option in the PO Shipments
    Enter a receipt (Optional)
    Enter a AP invoice and match it with PO or receipt as per the requirement and then run PRC: Interface supplier costs..
    this will post the expenditure in the Projects.
    In addition to the above i fu have complex PO (with helding some portion of the order amount as retention, advace payment to be provded)
    this can be handled through creating the PO through selfsevice PO which accomodates this functionality.l
    Thanks
    Vijay.

  • What is impact of Complex procurment with retention on Oracle Project Cost?

    Hello Experts / Dina,
    Can you please explain the flow and acrrual of cost when complex purchase order has been raised with multiple retention on Oracle Project and interface the cost to Oracle Project.
    Example - Complex purchase order of contract consulting is raised with amount of 1000 GBP with 4 Milstone of 250 GBP upon 25% completion of work.
    I wanted to know in this scenarion how the retention payment / invoice matches to purchase order impact on cost interface to project by using PRC:Interface cost to projects.
    Thanks in advance,
    Regards
    :-)

    Hello,
    As per Oracle Costing user guide on retainage.....
    "Oracle Projects does not report on or interface project-related retainage distribution
    lines as commitments or actual costs. Instead, Oracle Projects captures the full amount
    of the expense as a commitment and, when applicable, for the funds check. Later, the
    full amount of the expense is interfaced to Oracle Projects as an actual cost. Retainage is
    related to the payment of the invoice and it ultimately does not have an impact on the
    overall project cost."
    So in relation with my previous example, if period end accounting is enable on procurment side then on raising of purchase order of 1000GBP and interfacing cost to oracle project, will be treated as commitment amount(1000GBP)? and when the invoiced raised / matched and accounted for 1st milestone let say 300 GBP then complete 1000GBP will be interface as actual cost or just 300 GBP will be as actual cost?
    Really appreciate if you can me help in understand. :-)
    Thanks

  • Scheduling tasks created in Oracle Projects

    Is it possible to use Advanced Scheduler/Field Service to schedule tasks created in Oracle Projects? How can I achieve this integration?

    The only integration I know of for Projects requires Project Contracts and the use of deliverables.

Maybe you are looking for