Import attachment thru Order Import Process

Hi all,
we are importing sales order thru concurrent process : ORDER IMPORT successfully.
Now I want to import attachment attached along with order header & line level.
How it possibe thru ORDER IMPORT process ?
regards
sanjay

Insert records into following tables you should be able to import attahments
p_status := 'S';
p_message := 'Attachment created successfully';
IF p_operation_code = 'INSERT' THEN
BEGIN
     SELECT fnd_documents_short_text_s.NEXTVAL
     INTO v_media_id
     FROM dual;
EXCEPTION
WHEN OTHERS THEN
     p_message := 'Unable to get short text next value';
     RAISE e_stop_process;
END;
BEGIN
     SELECT fnd_documents_s.NEXTVAL
     INTO v_doc_id
     FROM dual;
EXCEPTION
WHEN OTHERS THEN
     p_message := 'Unable to get fnd documents next value';
     RAISE e_stop_process;
END;
BEGIN
     SELECT datatype_id
     INTO v_data_type_id
     FROM fnd_document_datatypes
     WHERE name = 'SHORT_TEXT';
EXCEPTION
WHEN OTHERS THEN
     p_message := 'While finding datatype id '||SQLERRM;
     RAISE e_stop_process;
END;
BEGIN
     SELECT category_id
     INTO v_cat_id
     FROM fnd_document_categories_tl
     WHERE user_name = p_cat_name;
EXCEPTION
WHEN OTHERS THEN
     p_message := 'While finding category id '||SQLERRM;
     RAISE e_stop_process;
END;
BEGIN
     INSERT INTO fnd_documents
     (document_id,
     creation_date,
     created_by,
     last_update_date,
     last_updated_by,
     datatype_id,
     category_id,
     security_type,
     publish_flag ,
     usage_type,
     start_date_active)
     VALUES
     (v_doc_id,
     p_creation_date,
     v_user_id,
     p_last_update_date,
     v_user_id,
     v_data_type_id,
     v_cat_id,
     4,
     'Y',
     'O',
     SYSDATE);
EXCEPTION
WHEN OTHERS THEN
     p_message := 'While inserting data into fnd documents '||SQLERRM;
     RAISE e_stop_process;
END;
BEGIN
     INSERT INTO fnd_documents_tl
     (document_id,
     creation_date,
     created_by,
     last_update_date,
     last_updated_by,
     LANGUAGE,
     description,
     media_id,
     source_lang)
     VALUES
     (v_doc_id,
     p_creation_date,
     v_user_id,
     p_last_update_date,
     v_user_id,
     'US',
     p_description,
     v_media_id,
     'US');
EXCEPTION
WHEN OTHERS THEN
     p_message := 'While inserting data into fnd documents_tl '||SQLERRM;
     RAISE e_stop_process;
END;
BEGIN
     SELECT fnd_attached_documents_s.NEXTVAL
     INTO v_att_doc_id
     FROM dual;
EXCEPTION
WHEN OTHERS THEN
     p_message := 'Unable to get fnd attached documents next value';
     RAISE e_stop_process;
END;
BEGIN
     INSERT INTO fnd_attached_documents
     (attached_document_id,
     document_id,
          creation_date,
          created_by,
          last_update_date,
          last_updated_by,
          seq_num,
          entity_name,
          pk1_value,
          automatically_added_flag)
     VALUES
     (v_att_doc_id,
     v_doc_id,
     p_creation_date,
     v_user_id,
     p_last_update_date,
     v_user_id,
     p_seq_num,
     p_entity_name,
     p_pk_value,
     'N');
EXCEPTION
WHEN OTHERS THEN
     p_message := 'While inserting data into fnd attached documents '||SQLERRM;
     RAISE e_stop_process;
END;
-- Fnd_File.put_line(Fnd_File.LOG,'The Values '||v_media_id||','||p_note);
BEGIN
     INSERT INTO fnd_documents_short_text
          VALUES (v_media_id,
               p_note,
               NULL);
EXCEPTION
WHEN OTHERS THEN
     p_message := 'While inserting data into fnd_documents_short_text '||SQLERRM;
     RAISE e_stop_process;
END;
ELSIF p_operation_code = 'UPDATE' THEN
BEGIN
UPDATE fnd_documents_short_text
SET short_text = p_note
WHERE media_id IN (SELECT media_id
               FROM fnd_attached_documents fad,
                    fnd_documents fd,
                    fnd_documents_tl fdt,
                    fnd_document_categories_tl fdct
               WHERE fad.document_id = fd.document_id
          AND fd.document_id = fdt.document_id
          AND fd.category_id = fdct.category_id
               AND fad.entity_name = p_entity_name
               AND fad.pk1_value = p_pk_value
               AND fdct.user_name = p_cat_name);
EXCEPTION
WHEN OTHERS THEN
     p_status := 'E';
     p_message := 'SQL Error while updating note :'||SQLERRM;
END;
END IF;

Similar Messages

  • Amended sales order thru order import process

    Hi All,
    Is it possible to add a new sales order line in existing sales order using ORDER IMPORT process ?
    means I want to amend the existing sales order as well as to new the sales order line also.
    This task I want to accomplish using ORDER IMPORT process.
    Please help me if anyone has any idea about the same . This is little bit urgent.
    regards
    sanjay

    Hi Sandeep,
    Thanks for your reply.
    I have successfully imported the sales order and can amended the existing sales order/line using ORDER IMPORT process.
    This task I have accomplished thru Open Interface tables : OE_HEADERS_IFACE_ALL & OE_LINES_IFACE_ALL .
    Now, I want to add new sales order line in existing sales order using these open Interface tables rather than API.
    Do you have any idea about the same ?
    regards
    sanjay

  • Importing configurations via Order Import in R12

    Hi All,
    We need some help with this issue we are facing while importing configurations ( PTO ) via order import process.
    The scenario is like this : we have parent PTO Model Item : A and under this we have 2 Option Classes within the BOM: OC1 & OC2
    Each of these option classes have 2 items each : option class - OC1 has ( Item B & Item C) while option class - OC2 has ( Item D & Item E)
    Now in the OM interface tables we want to interface : PTO Model Item A and along with it the Item B and Item E ( one item from each of the option classes). Hence we populate the oe_lines_iface_all table the below mentioned fields
    inventory_item,  item_type_code , orig_sys_line_ref  , top_model_line_ref,  ship_from_org
    A                     MODEL               1.0                        NULL                      S1
    B                                                                            1.0                         S1
    E                                                                            1.0                         S1
    --Now when we run the Order Import we are getting errors :  "org_sys_line_ref cannot be NULL" and errors - "item B and E are not found in the BOM of the model A"
    --when we try to populate the orig_sys_line_ref columns values for Item B and E as let's say 2.0 and 3.0 , still we get the "items not found in the BOM of the model A error  message". But when we check the BOM these component items are present there.
    With the same Model Item A and Option class component items B and E we are able to create an order successfully within OM frontend screen and the BOM structure for the PTO Model A is also active and enabled.. This is a Published BOM for the PTO Model Item A
    Could someone please help as to what additional columns need to be populated or what needs to be done in order to get this resolved.
    Thanks

    We referred the Oracle OM related white paper from metalink :
    Oracle Order Management Suite White Papers (Doc ID 113492.1) - Importing Configurations

  • How to import order from Interface table using Api Order Import

    Hi All
    I am using oracle EBus R12.
    I was working in Data migration in Order management.
    I have manually entered data in Interface table ie (oe_header_iface_all) and (oe_lines_iface_all)
    And i have given the order_source_id as 2 and order_source as COPY.
    And after that i ran the concurrent program with parameter as COPY but the concurrent program does'nt picks the order in the interface.
    Can any one please tell the steps in OM.
    Thanks & Regards
    Srikkanth.M

    Hi;
    please check:
    http://sureshvaishya.blogspot.com/2009/04/order-import-using-api.html
    Also i suggest see:
    http://irep.oracle.com/index.html
    API User Notes - HTML Format [ID 236937.1]
    R12.0.[3-4] : Oracle Install Base Api / Open Interface Setup Test [ID 427566.1]
    Oracle Trading Community Architecture API User Notes, June 2003 [ID 241320.1]
    Technical Uses of Customer Interface and TCA-API [ID 269121.1]
    http://www.google.com.tr/#hl=tr&source=hp&q=Api+Order+Import+&oq=Api+Order+Import+&aq=f&aqi=&aql=&gs_sm=e&gs_upl=469l469l0l1l1l0l0l0l0l0l0ll0&fp=87c57485fd170fd2&biw=1259&bih=793
    Regard
    Helios

  • Import standard Purchase Order process and interface tables

    Hi all,
    We are populating three PO interface tables from our custom developed application. PO_HEADERS_INTERFACE, PO_LINES_INTERFACE and PO_DISTRIBUTIONS_INTERFACE. We are using 11.5.10.2 version of Oracle Apps.
    Initially we did not manage to populate the distributions interface table, but, now we are populating it. And after doing so, when we run the Import standard Purchase Order process for 'Approved' POs, the process_id for even the record which has correct distributions info also gets 'Rejected' as a value. The process is considering a mix of records : the approved POs that DO NOT HAVE distribution info in PO_DISTRIBUTIONS_INTERFACE (which we had not managed to populate) and the approved POs that HAVE distribution info in PO_DISTRIBUTIONS_INTERFACE.
    does the Import standard Purchase Order process populate partial data that could be good or it rejects the whole lot of records?
    Can anyone guide on this issue?
    Thanks and kind regards,
    Aparna
    Edited by: Aparna on Jul 24, 2009 3:45 AM
    Another piece of info I would like to share is
    I have run the process for an approved PO with distributions info in PO_DISTRIBUTIONS_INTERFACE. This time no mixed data. In PO_INTERFACE_ERRORS table, an entry was found: for column name : PO_DISTRIBUTION_ID in ERROR_MESSAGE column 'Error: Has no distributions'.
    Edited by: Aparna on Jul 24, 2009 8:03 AM
    After carrying out number of tests, I have found out that
    1) if the approval_status for the po is 'Approved' in the po_headers_interface table, it gives the above mentioned error and the process_id is 'rejected'.
    2) if the approval_status for the po is 'Incomplete' in the po_headers_interface table, the process add the 'accepted' value for the process_id. But, the charge account number is not populated in shipments.
    Edited by: Aparna on Jul 31, 2009 1:07 AM
    There has been some progress on this issue. The process sees distributions data into the PO_DISTRIBUTIONS_INTERFACE table. Yet the following errors are found in the process log file:
    Start dist default process
    before getting period name
    after getting period name
    -->Intfc error occurred ...PO_PDOI_INVALID_GL_ENC_PER
    before workflow
    unit price = 18.5, rate = , unit price in functional currency = 18.5
    after workflow
    Start dist creation process
    Start dist validation process
    -->Intfc error occurred ...PO_PDOI_INVALID_BUDGET_ACCT
    Start insert new record into po_distributions
    Distribution ID: 252
    dist num: 1
    last updated by: 1189
    po header id: 5283
    po line id: 5878
    line loc id: 5924
    sob id: 21
    cc id: 1560
    qty ordered: 10
    Req Header Ref num :
    Req line Ref num :
    Req dist id :
    ROW ID: AAHUc1AFPAAAQ04AAC
    call tax
    Rollback for the Last Errored Line: 10
    All Lines in error - Rolling back the header
    We opened new GL periods for the calendar and yet same errrors are seen. Can anyone suggest any solution?
    Kind regards,
    Aparna

    Hi
    Do you have a copy of your insert statement?
    regards

  • Unable to run order import from BPEL process.

    I am trying to submit order import concurrent program, but it is unable to find application and program name combination.
    I tried to give short name for application and program name , but no success . Please help.
    I pasted audit log for quick reference.
    <messages>
    <Invoke_1_CallCPService_InputVariable>
    <part name="InputParameters">
    <InputParameters>
    <complexType>
    <sequence>
    <APPLICATION>Order Management</APPLICATION>
    <PROGRAM>Order Import</PROGRAM>
    <DESCRIPTION>'Test Desc' </DESCRIPTION>
    <START_TIME/>
    <SUB_REQUEST/>
    <P_Operating_Unit/>
    <P_Order_Source/>
    <P_Orig_Sys_Document_Ref/>
    <P_Operation_Code/>
    <P_Validate_Only/>
    <P_Debug_Level/>
    <P_Num_Instances/>
    <P_Sold_To_Org_Id/>
    <P_Sold_To_Org/>
    <P_Change_Sequence/>
    <P_Perf_Param/>
    <P_Rtrim_Data/>
    <p_process_orders_with_null_org/>
    <P_Default_Org_Id/>
    <P_Validate_Desc_Flex/>
    </sequence>
    </complexType>
    </InputParameters>
    </part>
    </Invoke_1_CallCPService_InputVariable>
    <Invoke_1_CallCPService_OutputVariable>
    <part name="OutputParameters">
    <OutputParameters>
    <REQUEST_ID>0</REQUEST_ID>
    <RETURN_CODE>2</RETURN_CODE>
    <RETURN_MESSAGE>Cannot find application information for short name Cannot find rows while selecting for application short name . Check if the application short name is valid. Contact your System Administrator.</RETURN_MESSAGE>
    </OutputParameters>
    </part>
    </Invoke_1_CallCPService_OutputVariable>
    </messages>

    I think task payload does not display task contents in a variable. you can use workflow service function hwf:getTaskAttachmentContents() and assign the retrieved value to a variable of type "base64Binary".
    Hope this will help.
    Nirav

  • Order Import Erroring while importing closed Order

    Hello,
    I am working on importing closed order for historical purpose and order import is erroring without giving much details. I set the debug level to 5 and log file contains only one error' ORDER IMPORT FAIL DUE TO UNEXPECTED ERROR.
    I am attaching the insert statements for headers and lines. Please review and hope to get a solution from one of the OM gurus here.
    Thanks a bunch in advance.
    Anant
    INSERT INTO OE_HEADERS_IFACE_ALL
    (ORIG_SYS_DOCUMENT_REF
    ,ORDER_SOURCE_ID
    ,ORG_ID
    ,ORDER_NUMBER
    ,ORDERED_DATE
    ,ORDER_TYPE_ID
    ,PRICE_LIST_ID
    ,SOLD_FROM_ORG_ID
    ,SOLD_TO_ORG_ID
    ,CUSTOMER_NUMBER
    ,TAX_EXEMPT_FLAG
    ,TRANSACTIONAL_CURR_CODE
    ,INVOICING_RULE_ID
    ,ACCOUNTING_RULE_ID
    ,PAYMENT_TERM_ID
    ,CREATION_DATE
    ,CREATED_BY
    ,LAST_UPDATED_BY
    ,LAST_UPDATE_DATE
    ,SALESREP_ID
    ,OPERATION_CODE
    ,CLOSED_FLAG --BOOKED_FLAG
    ,DROP_SHIP_FLAG
    ,SHIP_TO_ORG_ID
    ,INVOICE_TO_ORG_ID
    ,SHIP_FROM_ORG_ID
    ,ORIG_SYS_CUSTOMER_REF
    ,ORIG_SHIP_ADDRESS_REF
    ,ORDER_CATEGORY
    ,BOOKED_FLAG)
    VALUES
    ('514'     -- ORIG_SYS_DOCUMENT_REF
    ,1001                    -- ORDER SOURCE ID
    ,'102'                    -- ORG ID          
    ,10001006               -- ORDER NUMBER
    ,SYSDATE               -- ORDERED_DATE               
    ,1021                    -- ORDER TYPE ID
    ,6024                    -- PRICE LIST ID
    ,102                    -- SOLD FROM ORG ID
    ,2632                    -- SOLD TO ORG ID      
    ,'UN1666'               -- CUSTOMER NUMBER
    ,'S'                    -- TAX_EXEMPT_FLAG
    ,'USD'                    -- TRANS CURRENCY_CODE
    ,-2                         -- INVOICING_RULE_ID
    ,1                         -- ACCOUNTING_RULE_ID
    ,5                         -- TERMS_ID
    ,SYSDATE               -- CREATION_DATE
    ,1150                    -- CREATED_BY
    ,1150                    -- LAST_UPDATED_BY
    ,SYSDATE               -- LAST_UPDATE_DATE
    ,-3                         -- SALESREP_ID
    ,'INSERT'               -- OPERATION CODE
    ,'Y'                    -- CLOSED FLAG
    ,'N'                    -- DROP SHIP FLAG
    ,NULL                     -- SHIP_TO_ORG_ID (SITE USE ID FROM RA_SITE_USES_ALL, SITE_USE_CODE = SHIP_TO)
    ,1712                     -- INVOICE_TO_ORG_ID (SITE USE ID FROM RA_SITE_USES_ALL, SITE_USE_CODE = BILL_TO)
    ,103                    -- SHIP FROM ORG ID
    ,NULL                    -- ORIG_SYS_CUSTOMER_REF
    ,NULL                    -- ORIG_SHIP_ADDRESS_REF
    ,'Order'               -- ORDER CATEGORY
    ,'N')                    -- BOOKED_FLAG
    COMMIT
    INSERT INTO OE_LINES_IFACE_ALL
    (ORDER_SOURCE_ID
    ,ORIG_SYS_DOCUMENT_REF
    ,ORIG_SYS_LINE_REF
    ,ORIG_SYS_SHIPMENT_REF
    ,INVENTORY_ITEM
    ,REQUEST_DATE
    ,ORDERED_QUANTITY
    ,ORDER_QUANTITY_UOM
    ,PRICE_LIST_ID
    ,UNIT_SELLING_PRICE --UNIT_LIST_PRICE
    ,ACCOUNTING_RULE_ID
    ,PAYMENT_TERM_ID
    ,SALESREP_ID
    ,CREATION_DATE
    ,CREATED_BY
    ,LAST_UPDATE_DATE
    ,LAST_UPDATED_BY
    ,OPERATION_CODE
    ,DROP_SHIP_FLAG
    ,SHIP_TO_ADDRESS1
    ,SHIP_TO_ADDRESS2
    ,SHIP_TO_CITY
    ,SHIP_TO_POSTAL_CODE
    ,SHIP_TO_sTATE
    ,SHIP_TO_COUNTRY
    ,CLOSED_FLAG
    ,ITEM_TYPE_CODE
    ,INVENTORY_ITEM_ID
    ,DELIVERY_LEAD_TIME
    ,DELIVERY_ID
    ,TAX_EXEMPT_FLAG)
    VALUES
    (1001                    -- ORDER SOURCE ID
    ,'514'          -- ORIG SYS DOC REF
    ,'L4'               -- ORIG SYS LINE REF
    ,NULL               -- ORIG SYS SHIP REF
    ,'KR4R362478-07'     -- ITEM NUMBER
    ,SYSDATE               -- REQUEST DATE
    ,40                    -- ORDER QTY
    ,'EA'                    -- ORDER QTY UOM
    ,6024                    -- PRICE LIST ID
    ,95                -- UNIT LIST PRICE
    ,1                    -- ACCOUNTING RULE ID
    ,5                    -- PAY TERM ID
    ,-3                    -- SALESREP ID
    ,SYSDATE               -- CREATION DATE
    ,1150                    -- CREATED BY
    ,SYSDATE               -- LAST UPDATE DATE
    ,1150                    -- LAST UPDATED BY
    ,'INSERT'               -- OPERATION_CODE
    ,'N'                    -- DROP SHIP FLAG
    ,NULL --'1003 WASHINGTON AVE'     -- SHIP ADD1
    ,NULL --'SUITE 340'          -- SHIP ADD2
    ,NULL -- 'CHICAGO'          -- CITY
    ,NULL -- 60610               -- POSTAL
    ,NULL -- 'IL'               -- STATE
    ,NULL -- 'US')               -- COUNTRY
    ,'Y'
    ,'FG'
    ,7488
    ,1
    ,1
    ,'Y')
    commit
    ---------------------------------------

    Ganapati,
    Did you try passing the customer_number like -1 or some random high number that does not exist in hz_cust_accounts table in the account_number for party_type='PERSON' in the table oe_customer_info_iface_all?
    As I see this check for the first_name||last_name is done only of the customer number is not passed and customer_number is not used any where in the customer creation (if you are using automatic numbering for the customer accounts then you will obviously not passing any value to new_account_number which is used to created).
    Give it a try while I keep myself busy with my airport woes here.
    Thanks
    Nagamohan

  • Hi All, We are in to Release 11.5.10.2.There is a specific requirement to Prevent users from creating Manual Sales Orders in oracle and yet users should be able to book the Sales Orders Imported from CRM system into Orcale.Please advise.

    Hi All, We are in to Release 11.5.10.2.There is a specific requirement to Prevent users from creating Manual Sales Orders in Oracle and  yet users should be able to book the Sales Orders Imported from CRM system into Orcale.Please advise.

    Thanks for your advise.
    However, I missed to mention that we have two set of users  One is for Finished Goods and another for Spares.
    Only Spares users need to be prevented from creating Direct/Manual Sales Orders in Oracle.
    As you suggested, if this will be done at Form level, that may Disallow FG users also to create Manula Sales Orders which should not be the case.
    Further, I tried to test one scenario through Processing Constraints but it did not work.
    Application
    OM
    Validation Type
    Entity
    Temp
    Short Name
    TBL
    Validation Semantics
    Created By
    Equal To
    User(Myself)
    Processing Cosntraint
    Application
    OM
    Entity
    Order Header
    Constraint
    Operation
    User Action
    Create
    Not Allowed
    Conditions
    Group
    Scope
    Validation Entity
    Record Set
    Validation Template
    101
    Any
    Order Header
    Order
    Above Created
    Please advise.

  • Order import open interface program

    hi
    i m working on changes to item quantity through order import open interface program
    the orders are already imported through order import
    i have to make changes to the item quantity
    i m passing the details like orig_sys_document_ref,orig_sys_line, orig_sys_shipment_ref
    order_source_id, change_reason. operation_code as update, changed order quantity like previously it was 5,now i m sending as 8
    but still the program is failing
    the error is
    0/70000// You are entering a duplicate orig_sys_line_ref and orig_sys_shipment_ref for the same order.
    0/70000//1 You are trying to insert an existing order or update an order that does not exist. Please enter a correct operation code.
    tell me how to identify the order in apps
    thru orig_sys_document_ref or anything else
    i m passing the same orig_sys_document_ref which is in headers table
    can anyone help on what are the necessary details to pass to order import interface tables
    thanks

    Not sure why you posted this in the OCI forum - an EBS forum (http://forums.oracle.com/forums/category.jspa?categoryID=3) is more appropriate.
    HTH
    Srini

  • Issue in sales order order import program

    Hi all,
    I need to create a Sales Order using interface tables.First I inserted the record into the interface table OE_HEADERS_IFACE_ALL.I populated necessary columns in it.
    Then I executed Order Import Concurrent program giving value of order source(which I created using order import source setup),order reference(which is origSysDocumentRef column value in the above said interface table).
    But the concurrent program is not picking up the records in the interface table and its output shows no order to process.As a result no record is inserted in the OE_ORDER_HEADERS_ALL table.
    I dont understand where the problem lies.Please help me out to solve the issue.
    Thanks,
    goutam

    Hi Sandeep Gandhi,
    Thanks for your reply.
    Now Order Import Concurrent program picks up the header records from the OE_HEADERS_IFACE_ALL interface table successfully for processing.
    But during the process some errors are raised, and the error_flag in the header interface table is set to 'Y'.
    I want to know where can i find those errors,so that I can correct them.
    Is there any error log tables that contains these errors occured during import?
    Or we have any other way to identify it?
    Please help me..
    Thanks,
    goutam

  • ESYU: Importing Standard Purchase Orders에서 문제 발생시 진단 방법

    Purpose
    Oracle Purchasing - Version: 11.5.10.2 to 12.0.6
    Information in this document applies to any platform.
    ConcurrentProgram:POXPOPDOI - Import Standard Purchase Orders
    이 문서는 reader게 Importing Standard Purchase Orders 실행 중 갑자기 발생하는 issue에 대해 어떻게
    대응하는지에 대한 자세한 정보를 제공한다.
    Instroduction
    Purchase Document Open Interface는 다량의 Standard Purchase Order는 Oracle Purchasing으로 빨리
    import 할 수 있게 한다. Import process는 import 되어야 하는 document information을 PO interface tables에
    넣어주는 작업을 필요로하며, data를 validate 하고 application에 PO를 생성하거나 error message를 return 하는
    Import Standard Purchase Orders concurrent program을 실행한다.
    이 문서의 목적은 Importing Standard Purchase Orders에 관련된 process를 이해하거나 갑자기 발생한 문제의
    원인을 찾는데 도움을 주기 위함이다. PO import 문제는 일반적으로 interface tables에 입력된 불일치하는 data가
    원인이며, 일단 문제가 확인되면 Metalink는 비슷한 문제를 찾아주거나 Oracle Support에 Service Request를 log
    할 수 있다.
    Test case Information
    1. 아래 insert 문장을 이용하여 PO interface tables에 data를 입력:
    INSERT INTO po.po_headers_interface
    (interface_header_id,
    action,
    org_id,
    document_type_code,
    currency_code,
    agent_id,
    vendor_name,
    vendor_site_code,
    ship_to_location,
    bill_to_location,
    reference_num)
    VALUES
    (apps.po_headers_interface_s.NEXTVAL,
    'ORIGINAL',
    207, -- Seattle
    'STANDARD',
    'USD', -- Your currency code
    24, -- Your buyer id stock
    'Advanced Network Devices',
    'FRESNO',
    'V1- New York City', -- Your ship to
    'V1- New York City', -- Your bill to
    'Currency test') -- Any reference num
    INSERT INTO po.po_lines_interface
    (interface_line_id,
    interface_header_id,
    line_num,
    shipment_num,
    line_type,
    item,
    uom_code,
    quantity,
    --unit_price,
    promised_date,
    ship_to_organization_code,
    ship_to_location)
    VALUES
    (po_lines_interface_s.nextval,
    po_headers_interface_s.currval,
    1,
    1,
    'Outside processing',
    'Flooring OSP',
    'Ea',
    1,
    --17.50,
    '10-APR-2009',
    'V1',
    'V1- New York City' )
    INSERT INTO po.po_distributions_interface
    (interface_header_id,
    interface_line_id,
    interface_distribution_id,
    distribution_num,
    quantity_ordered,
    charge_account_id)
    VALUES
    (po_headers_interface_s.currval,
    po.po_lines_interface_s.CURRVAL,
    po.po_distributions_interface_s.NEXTVAL,
    1,
    1,
    12975) -- Your Charge Account Id
    2. Interface tables에 data가 insert 되었다면 import progra을 실행전 정보를 확인하기 위해 아래 query 문을 이용한다.
    a - Select * from PO_HEADERS_INTERFACE where INTERFACE_HEADER_ID=&headerid
    b - Select * from PO_LINES_INTERFACE where INTERFACE_HEADER_ID=&headerid
    c - Select * from PO_DISTRIBUTIONS_INTERFACE where INTERFACE_HEADER_ID=&headerid
    3. Data를 review 했으면 Import Standard Purchase Orders program을 실행한다.
    Parameter >>
    Default Buyer: Null
    Create or Update Items: No
    Approval Status: INCOMPLETE
    Batch Id: Null
    4. 만일 program에 문제가 있어 error가 발생한다면 error의 원인을 제공하기 위해 Purchasing Interface Error Report를
    실행할 수 있다.
    Parameter >>
    Source Program: PO_DOCS_OPEN_INTERFACE
    Purge Data: No
    만일 PO가 import 되지 않았다면 Puchasing Interface Errors Report와 동일한 정보를 보기 위해 Interface Errors table을
    아래 SQL을 이용하여 조회할 수 있다.
    SELECT * FROM PO_INTERFACE_ERRORS WHERE INTERFACE_TRANSACTION_ID ='&recordsinterfacetransid';
    Diagnostics
    Import Standard Purchase ORder process의 troubleshoot 도움을 위해 아래 Diagnostics과 Reports를 이용한다.
    1. Diagnostics Tool : Oracle Purchasing Purchasing Documents Open Interface Data Collection Test
    (please refer to Note 224887.1 for assistance)
    이 Diagnostics는 import program에 의해 import 되는 data를 validate 할 것이며 missing 되거나 맞지않는 정보를 highlight 한다.
    이 Tool은 interface tables에 있는 맞지 않거나 불완전한 data의 자세한 정보를 제공할 수 있다.
    Error는 PO를 import 할 때 발생한 문제 분석을 시도하는데 매우 유익하므로 SR을 log시 이 Diagnostic output을 upload 하는
    것을 권장한다.
    2. Purchasing Interface Errors Report
    이 report는 Oracle Purchasing에서 사용가능하며 Import Standard Purchase Orders program을 실행시 발생하는
    error를 강조한다.
    Tracing
    11.5.10 이상의 version에서 Import Standard Purchase Orders program의 trace를 생성:
    1. Navigate to System Administrator responsibility
    2. Navigate to Profiles->System
    3. Query the Profile Option Concurrent: Allow Debugging and set it to Yes at User level
    4. Navigate to Purchasing responsibility
    5. From the Requests form, choose the Import Standard Purchase Orders program and set the required Parameters
    6. Click the Debug button
    7. Check the SQL Trace checkbox and specify Trace with Binds and Waits
    8. Submit the Concurrent program
    9. Retrieve the trace file created.
    Logging
    Import Standard Purchase Orders program의 FND Deug Log 생성:
    1. Log_seq를 아래 SQL을 이용하여 확인.
    select max(log_sequence) from fnd_log_messages;
    2. Set the following profiles at the user level:
    FND: Debug Log Enabled = YES
    FND: Debug Log Filename = NULL
    FND: Debug Log Level = STATEMENT
    FND: Debug Log Module = %
    3. Run Import Standard Purchase Orders program
    4. Using a SQL client run the following query :
    Select * from fnd_log_messages
    where log_sequence > &log_seq_noted_above
    order by log_sequence;
    이 query의 output은 Import Standard Purchase Orders program이 실행 중 발생한 error를 표시한다.
    Reference
    Note 781351.1

  • How do I fully import my itunes music from my external hard drive to my new HP computer so that I don't need the external HD attached to listen to my music? It won't promt me to fully import songs when I import the folder from the EHD.

    When I select File> Add folder to library and then press "select folder" after finding the iTunes music folder I wish to import from my external hard drive, it does not promt me whether to fully import it or not. After the importing is complete, the external hard drive must be attached in order for me to listen to my music. I do not wnat this; I wnat my music fully imported so that I don't need my EHD. What can I do? Thanks!

    To import music into your iTunes library on the computer go to iTunes>Help>iTunes Help>Add items to iTunes and follow the instructions

  • Import service Purchase order

    Hi Experts,
    I am facing  this problem when i am creating import service Purchase order with Purchase requisition. my import pricing procedure have Assessible value percentage condition type,which is coming in import service PO with certain percentage and condition type is coming  in display  mode. i am unable to change this condition type value in PO.
              Access sequence not maintained for this condition type although it is picking some percentage.How can i find where it is picking and i want to make as editable this condition type in PO.
             If i create import PO with material code, the condition type not picking any percentage and it is coming as editable mode.
                if i create import service po without purchase requisition, this condition type not picking any percentage.
              the problem is create import po with Purchase requisition only.
      Control data of condition type is:  Cond. class     A       Discount or surcharge
                                                           Calculat.type    A        Percentage                                                                               
    Cond.category  H       Basic price  
    Condition type is item condition.
    Kindly help me,
    Regards,
    Makarand.

    by going thru your problem, we understand that there are 2 different pricing procedures maintained.
    Pls check in transaction MEK3 give your assess value condition type and you will know where from the record is being read.
    To make condition editable and not editable. go to t.code M/06 and chnage "Manual entries" to "C Manual entry has priority:.
    Thanks & regards
    Hameed Pavez

  • How to use XML Gateway for Order Import and Item Import?

    Hello XML gurus,
    I'm working in Oracle Apps area and do not have much knowledge on XML or web programming. Currently in my project there is a need to use Order Import and Item Import using interface tables and XML Gateway. The items/orders information will be in the XML format from Siebel system, there will be no custom processing...just process the data as-is.
    I've read the XML Gateway user guide but did not understand much.
    Anyone with similar implementation experience?
    I'm looking for a step-by-step guide on what needs to be done in Oracle Apps side to populate the interface tables from XML file and call the import APIs?
    Your inputs, suggestions, tips are highly appreciated. :)
    Thx,
    Jags

    I have a similar requirement to automate the order import and was looking at XML Gateway. Please update if you were able to find more information.
    - Ayyappa

  • Import attributes thru import manager

    Hi,
        What are are steps to import the attributes and LINK them to records through import manager. Is there some blog or articles refer please. Excel file with supporting different attribute types (numeric,coupled and text) will help along with steps to import the attributes import manager.
      Is linking of attributes to records is possible through import manager?
    Thanks
    Edited by: SDN POWERED on May 21, 2009 9:59 AM

    Hi,
    In order to work with the Taxonomies, you need to perform the following steps:
    1. Import Categories
    2. Import Attributes
    3. Attributes values.
    4. Attribute links
    Please refer to the links below to understand the Taxonomy import process step by step:
    Master Data Management Import Manager - Taxonomy Data (Splitting Into Hierarchy) u2013 Part 1:
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/30aa1447-80a1-2a10-e483-a76087bcb12f
    Master Data Management Import Manager - Taxonomy Data (Attributes) u2013 Part 2:
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/6090d0bd-1da7-2a10-468f-bdd17badb396
    Master Data Management Import Manager - Taxonomy Data (Attribute Text Values) u2013 Part 3:
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/8090941f-a5a7-2a10-3ba6-b4af5ec6d97b
    Master Data Management Import Manager: Taxonomy Data (Attribute Links), Part 4:
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/308c62a2-5faa-2a10-fda6-fa4aa7169734
    Hope this helps.
    Thanks and Regards
    Nitin Jain

Maybe you are looking for

  • Problem about replicate the vendor master from R/3 to SRM5.0

    Hi guys, I have vendor in R/3 backend system.And the vendor data has been customized.We have added some customize fields to the table LFA1 which is not exist in the standard R3 system. Now, I want to replicate all vendor information to SRM5.0 include

  • GetURL not working when swf is loaded into another swf

    Ok, I need some help for something relatively simple which for some reason I've not been able to find any information on at all? Hopefully it will be something easy to fix. Essentially I have the following: my main movie "Home.swf" another movie "Sub

  • Creating an unattended install of 10.6?

    Hello all! I'd like to create a DVD or USB stick with a version of the Mac OS 10.6 installer that will perform the installation of the os and, possibly, go through the setup steps in the setup assistant using pre-defined data for the various options.

  • RMAN and cold backup

    I am taking cold backup manually through copy command on every sunday of database every week and archive log backup through RMAN suppose i want to restore backup on wednesday how to retreive and apply archive logs as archive logs are after taking bac

  • Battery from Recall program

    Hi there, I just receive my new battery from the recall program. My preliminary usage for the battery, from charged to discharged, is around 3 hours, medium lightning, no CDs, regular usage. I thought the new batteries are suppose to last around 5 ho