RCV_HEADERS_INTERFACE

Hi
After populating the records in RCV_HEADERS_INTERFACE and
RCV_TRANSACTIONS_INTERFACE, run the Receiving Transactions Processor for ASN, but the data is not displaying in the header details of the form in front end. How can i check the data is porting to header tables or not and hw can i display the data in the front end (at form level.)
Pls reply to [email protected]
Pradeep

Like Warren was saying, check if the record errored out in the RCV_HEADERS_INTERFACE and RCV_TRANSACTIONS_INTERFACE. If the record has errored out, go to PO_INTERFACE_ERRORS and query the errored record based on the header_interface_id, you will get a description as to why the record errored out.

Similar Messages

  • Validation_flag in RCV_HEADERS_INTERFACE

    Hi All,
    We have validation_flag in RCV_HEADERS_INTERFACE and RCV_TRANSACTIONS_INTERFACE table. What is the purpose of this. By using validation_flag = N , is there any possibility to upload receipts in inventory without having PO information.( I am using Legacy PO Application and Oracle Inventory ).
    Regards,
    Sreehari.

    not quite..
    validation_flag just distinguishes Receiving Open Interface (ROI) (flag = No) from records inserted from Frontend (flag = No).
    Hrishikeshj

  • Is it possible to purge rcv_headers_interface?

    Dear all,
    I need to do purging on our tables due to sizing issue. I just wondering is it possible to purge rcv_headers_interface? I try to related documents in metalink and not mention about the rcv_headers_interface table.
    Thanks.

    Pl post details of OS, database and EBS versions.
    Pl see if MOS Doc 214144.1 (Excessive Table Space Needed for RVC_HEADERS_INTERFACE and RCV_TRANSACTIONS_INTERFACE) can help.
    HTH
    Srini

  • SAMPLE RECEIVING OPEN INTERFACE SCRIPT(ROI 이용자를 위한 SCRIPT)

    제품: MFG_PO
    작성날짜 : 2006-05-11
    SAMPLE RECEIVING OPEN INTERFACE SCRIPT(ROI 이용자를 위한 SCRIPT)
    ================================================================
    PURPOSE
    Receiving Open Interface(ROI)를 좀더 쉽게 사용할 수 있도록 만들어진
    tool이라고 할 수 있다. 이 script를 이용을 통해 user는 PO no, user id,
    Org id를 입력하면 script는 PO에서 최소한의 data를 가져와 receiving
    transaction을 생성하기 위해 ROI에 data를 입력한다.
    Receiving Transaction Processor는 insert 된 data를 실행한다.
    Explanation
    Instructions:
    1.Script exroi.sql을 local computer에 copy 하거나 sqlplus 환경의 text
    edior에 script 내용을 cut&paste 한다.
    2.사용가능한 PO no, User id, Org id를 결정한다.
    3.sqlplus prompt에서 아래와 같이 입력한다.
    SQL> @ezroi.sql
    4.PO no, User id, Org id를 입력하라는 prompt를 볼 수 있을 것이다.
    5.exroi.sql script를 관련된 PO data를 가져와 rcv_headers_interface 및
    rcv_transactions_interface tables에 insert 한다.
    만일 PO shipment lind이 closed, cancelled, fully received 되었다면
    ROI table에 data를 insert 하지 않는다.
    Note: 이 script가 data를 validate 하진 않으며,ROI API 자체 validation
    이 실행될 뿐이다.
    6.Script가 끝나면 Receiving Transaction Processor를 실행하여 insert 된
    lines을 처리할 수 있다. Transaction Status Summary 화면을 통해 실행된
    line이 pending 인지 error 상태인지 확인할 수 있다.
    Notes:
    1.Org_id parameter 값을 찾는법:
    a) Application에 접속, Help> Diagnostics> Examine으로 이동.
    Block:$Profile$, Field: ORG_ID 를 선택한다.
    b) ORG_ID 값을 note 해 놓고 ORG_ID prompt시 이 값을 입력한다.
    2.User_Name parameter 값을 찾는법:
    a) Application에 접속, Help> Diagnostics> Examine으로 이동.
    Block:$Profile$, Field: USER_NAME 를 선택한다.
    b) USER_NAME 값을 note 해 놓고 USER_NAME prompt시 이 값을 입력한다.
    Example
    "eZROI.sql' script...
    --*** eZROI ***
    --*** by ***
    --*** Preston D. Davenport ***
    --*** Oracle Premium Applications Support ***
    --*** Oracle Worldwide Global Support Services ***
    --*** Date: 23-JUL-2003 - Beta release ***
    --*** Date: 09-SEP-2003 - Rev A Added multi- ***
    --*** shipment line capability ***
    --*** Parameters: ***
    --*** ORG_ID Organization ID ***
    --*** USER_NAME FND User Name ***
    --*** PO_NUMBER Purchase Order Number ***
    --*** This script intended for a standard Purchase ***
    --*** Order document to be inserted into the Oracle ***
    --*** Receiving Open Interface (ROI) via the standard ***
    --*** Oracle open interface api for a simple Receive ***
    --*** transaction. ***
    --*** Note: This script only considers open Purchase ***
    --*** Orders. This script will not allow over- ***
    --*** receipt, cancelled or closed PO's to be ***
    --*** inserted into the ROI and received ***
    CLEAR BUFFER
    SET VERIFY OFF
    SET LINESIZE 140
    SET PAGESIZE 60
    SET ARRAYSIZE 1
    SET SERVEROUTPUT ON SIZE 100000
    SET FEEDBACK OFF
    SET ECHO OFF
    DECLARE
    X_USER_ID NUMBER;
    X_PO_HEADER_ID NUMBER;
    X_VENDOR_ID NUMBER;
    X_SEGMENT1 NUMBER;
    X_ORG_ID NUMBER;
    X_LINE_NUM NUMBER;
    BEGIN
    DBMS_OUTPUT.PUT_LINE('***ezROI RCV API Insert Script***');
    SELECT PO_HEADER_ID , VENDOR_ID , SEGMENT1 , ORG_ID
    INTO X_PO_HEADER_ID , X_VENDOR_ID , X_SEGMENT1 , X_ORG_ID
    FROM PO_HEADERS_ALL
    WHERE SEGMENT1 = '&PO_NUMBER'
    AND ORG_ID = &ORG_ID;
    SELECT USER_ID INTO X_USER_ID
    FROM FND_USER
    WHERE USER_NAME = UPPER('&USER_NAME');
    INSERT INTO RCV_HEADERS_INTERFACE
    HEADER_INTERFACE_ID ,
    GROUP_ID ,
    PROCESSING_STATUS_CODE ,
    RECEIPT_SOURCE_CODE ,
    TRANSACTION_TYPE ,
    LAST_UPDATE_DATE ,
    LAST_UPDATED_BY ,
    LAST_UPDATE_LOGIN ,
    VENDOR_ID ,
    EXPECTED_RECEIPT_DATE ,
    VALIDATION_FLAG
    SELECT
    RCV_HEADERS_INTERFACE_S.NEXTVAL ,
    RCV_INTERFACE_GROUPS_S.NEXTVAL ,
    'PENDING' ,
    'VENDOR' ,
    'NEW' ,
    SYSDATE ,
    X_USER_ID ,
    0 ,
    X_VENDOR_ID ,
    SYSDATE ,
    'Y'
    FROM DUAL;
    DECLARE
    CURSOR PO_LINE IS
    SELECT PL.ITEM_ID , PL.PO_LINE_ID , PL.LINE_NUM ,
    PLL.QUANTITY , PL.UNIT_MEAS_LOOKUP_CODE ,
    MP.ORGANIZATION_CODE , PLL.LINE_LOCATION_ID ,
    PLL.CLOSED_CODE , PLL.QUANTITY_RECEIVED ,
    PLL.CANCEL_FLAG, PLL.SHIPMENT_NUM
    FROM PO_LINES_ALL PL ,
    PO_LINE_LOCATIONS_ALL PLL ,
    MTL_PARAMETERS MP
    WHERE PL.PO_HEADER_ID = X_PO_HEADER_ID
    AND PL.PO_LINE_ID = PLL.PO_LINE_ID
    AND PLL.SHIP_TO_ORGANIZATION_ID = MP.ORGANIZATION_ID;
    BEGIN
    FOR CURSOR1 IN PO_LINE LOOP
    IF CURSOR1.CLOSED_CODE IN ('APPROVED','OPEN')
    AND CURSOR1.QUANTITY_RECEIVED < CURSOR1.QUANTITY
    AND NVL(CURSOR1.CANCEL_FLAG,'N') = 'N'
    THEN
    INSERT INTO RCV_TRANSACTIONS_INTERFACE
    INTERFACE_TRANSACTION_ID ,
    GROUP_ID ,
    LAST_UPDATE_DATE ,
    LAST_UPDATED_BY ,
    CREATION_DATE ,
    CREATED_BY ,
    LAST_UPDATE_LOGIN ,
    TRANSACTION_TYPE ,
    TRANSACTION_DATE ,
    PROCESSING_STATUS_CODE ,
    PROCESSING_MODE_CODE ,
    TRANSACTION_STATUS_CODE ,
    PO_LINE_ID ,
    ITEM_ID ,
    QUANTITY ,
    UNIT_OF_MEASURE ,
    PO_LINE_LOCATION_ID ,
    AUTO_TRANSACT_CODE ,
    RECEIPT_SOURCE_CODE ,
    TO_ORGANIZATION_CODE ,
    SOURCE_DOCUMENT_CODE ,
    DOCUMENT_NUM ,
    HEADER_INTERFACE_ID ,
    VALIDATION_FLAG
    SELECT
    RCV_TRANSACTIONS_INTERFACE_S.NEXTVAL ,
    RCV_INTERFACE_GROUPS_S.CURRVAL ,
    SYSDATE ,
    X_USER_ID ,
    SYSDATE ,
    X_USER_ID ,
    0 ,
    'RECEIVE' ,
    SYSDATE ,
    'PENDING' ,
    'BATCH' ,
    'PENDING' ,
    CURSOR1.PO_LINE_ID ,
    CURSOR1.ITEM_ID ,
    CURSOR1.QUANTITY ,
    CURSOR1.UNIT_MEAS_LOOKUP_CODE ,
    CURSOR1.LINE_LOCATION_ID ,
    'RECEIVE' ,
    'VENDOR' ,
    CURSOR1.ORGANIZATION_CODE ,
    'PO' ,
    X_SEGMENT1 ,
    RCV_HEADERS_INTERFACE_S.CURRVAL ,
    'Y'
    FROM DUAL;
    DBMS_OUTPUT.PUT_LINE('PO line: '||CURSOR1.LINE_NUM||' Shipment: '||CURSOR1.SHIPMENT_NUM||' has been inserted into ROI.');
    ELSE
    DBMS_OUTPUT.PUT_LINE('PO line '||CURSOR1.LINE_NUM||' is either closed, cancelled, received.');
    END IF;
    END LOOP;
    DBMS_OUTPUT.PUT_LINE('*** ezROI COMPLETE - End ***');
    END;
    COMMIT;
    END;
    SET VERIFY ON
    Reference Documents
    Note 245334.1

    I have the same problem on ESXI 5.5 for over a month now, tried the patches, tried the LTS kernel which others say results in an immediate result without patches, nothing seems to work and nobody seems to be able to offer a solution.
    Did you make any progress ??
    Error! Build of vmblock.ko failed for: 3.10.25-1-lts (x86_64)
    Consult the make.log in the build directory
    /var/lib/dkms/open-vm-tools/2013.09.16/build/ for more information.
    make[2]: *** No rule to make target '/var/lib/dkms/open-vm-tools/2013.09.16/build/vmblock/linux/inode', needed by '/var/lib/dkms/open-vm-tools/2013.09.16/build/vmblock/vmblock.o'. Stop.
    Makefile:1224: recipe for target '_module_/var/lib/dkms/open-vm-tools/2013.09.16/build/vmblock' failed
    make[1]: *** [_module_/var/lib/dkms/open-vm-tools/2013.09.16/build/vmblock] Error 2
    make[1]: Leaving directory '/usr/src/linux-3.10.25-1-lts'
    Makefile:120: recipe for target 'vmblock.ko' failed
    Last edited by crankshaft (2014-01-10 11:32:32)

  • Receiving Open Interface related doubt

    Hi All,
    We are currently on Oracle Release 12.0.4 and need some help/information regards Receiving Open Interface tables : rcv_headers_interface & rcv_transactions_interface tables.
    We import the ASN which is being sent across from the Supplier via EDI directly into the Receiving Open Interface tables and then RTP program ( Receiving Transaction Processor ) program processes these into the base tables
    to complete the receipt process..
    Now for some reason or the other lets say because of EDI data issues or some other system issue with the RTP program , the Interface records end up in error status & the users have to manually complete the Receipt in Oracle Forms directly..
    Now this Interface data over a period in time keeps accumulating while the corresponding PO Document would already have been Received manually in Oracle.
    Because of this errored interface records the Interface tables keep growing in size in terms of data volume..
    Now is there a way script or a program which validates these interface records and purges these automatically based on some validations on its own..
    For Example : for a po if the records are stuck in the interface table but the po shipment has already been received in manually and in Closed Status, then it would automatically purge these records from interface tables.
    Could someone please help us with this as soon as possible with any suggestions or workarounds..
    Thanks

    Currently there is no purge program available to purge the records in RTI. Further the oracle support wont be able to provide a delete script to delete the records in RTI (The reason being, the records are populated by the customer and customers are the best persons to validate the records and delete them on their own).
    However, for ASN's
    You may write a query based on the RTI.po_distribution_id and then check, whether the corresponding po shipment\distribution is already received \ closed for receiving and then you may delete.

  • Receiving Open Interface not picking Inter-Org records from Interface

    Hi,
    I am trying to receive the inter org transfer through the Receiving Open interface, but the interface not picking the data from the interface tables (RCV_HEADERS_INTERFACE, RCV_TRANSACTION_INTERFACE).
    I am in 11.5.10.2, all the sources worked fine like Vendor, Internal Order, Customer but the issue is with the Inventory source (inter orgs)
    Please could you advise what could be the reason for the interface for not picking the Inventory source data from the interface table.
    Below are the interface insert script that am using..
    INSERT INTO RCV_HEADERS_INTERFACE
    (HEADER_INTERFACE_ID,
    GROUP_ID,
    PROCESSING_STATUS_CODE,
    RECEIPT_SOURCE_CODE,
    TRANSACTION_TYPE,
    AUTO_TRANSACT_CODE,
    LAST_UPDATE_DATE,
    LAST_UPDATED_BY,
    LAST_UPDATE_LOGIN,
    CREATION_DATE,
    CREATED_BY,
    SHIPMENT_NUM,
    RECEIPT_HEADER_ID,
    SHIP_TO_ORGANIZATION_ID,
    EXPECTED_RECEIPT_DATE,
    EMPLOYEE_ID,
    VALIDATION_FLAG
    VALUES
    (rcv_headers_interface_s.nextval , --Header_Interface_Id
    rcv_interface_groups_s.nextval, --Group_Id
    'PENDING', --Processing_Status_Code
    'INVENTORY', --Receipt_Source_Code
    'RECEIVE', --Transaction_Type
    'DELIVER', --Auto_Transact_Code
    SYSDATE, --Last_Update_Date
    -1, --Last_Updated_By
    -1, --Last_Update_Login
    SYSDATE, --Creation_Date
    -1, --Created_By
    'ICR-001', --SHIPMENT_NUM
    21073573, --RECEIPT_HEADER_ID
    2266, -- SHIP_TO_ORGANIZATION_ID
    SYSDATE+1, --Expected_Receipt_Date
    5543, --Employee_Id,
    'Y' --Validation_Flag
    INSERT INTO RCV_TRANSACTIONS_INTERFACE
    (INTERFACE_TRANSACTION_ID,
    GROUP_ID,
    LAST_UPDATE_DATE,
    LAST_UPDATED_BY,
    CREATION_DATE,
    CREATED_BY,
    LAST_UPDATE_LOGIN,
    TRANSACTION_TYPE,
    TRANSACTION_DATE,
    PROCESSING_STATUS_CODE,
    PROCESSING_MODE_CODE,
    TRANSACTION_STATUS_CODE,
    CATEGORY_ID,
    QUANTITY,
    UNIT_OF_MEASURE,
    ITEM_ID,
    AUTO_TRANSACT_CODE,
    SHIPMENT_HEADER_ID,
    SHIPMENT_LINE_ID,
    SHIP_TO_LOCATION_ID,
    RECEIPT_SOURCE_CODE,
    TO_ORGANIZATION_ID,
    DESTINATION_TYPE_CODE,
    DELIVER_TO_PERSON_ID,
    LOCATION_ID,
    DELIVER_TO_LOCATION_ID,
    SUBINVENTORY,
    LOCATOR_ID,
    HEADER_INTERFACE_ID,
    VALIDATION_FLAG,
    SHIPPED_DATE
    --SELECT
    VALUES
    rcv_transactions_interface_s.nextval, --Interface_Transaction_id
    rcv_interface_groups_s.currval, --Group_id
    SYSDATE, --Last_update_date
    -1, --Last_updated_by
    SYSDATE, --Creation_date
    -1, --Created_by
    -1, --Last_update_login
    'RECEIVE', --TRANSACTION_TYPE_RECEIVE
    SYSDATE, --TRANSACTION_DATE
    'PENDING', --PROCESSING_STATUS_CODE
    'BATCH', --PROCESSING_MODE_CODE
    'PENDING', --TRANSACTION_STATUS_CODE
    203, -- CATEGORY_ID
    20, --QUANTITY
    'EACH', --UNIT_OF_MEASURE
    4379131, --ITEM_ID
    'DELIVER', --AUTO_TRANSACT_CODE
    21073573, --SHIPMENT_HEADER_ID
    16566939, --SHIPMENT_LINE_ID
    101629781, --SHIP_TO_LOCATION_ID
    'INVENTORY', --RECEIPT_SOURCE_CODE
    2266, --TO_ORGANIZATION_ID
    'INVENTORY', --DESTINATION_TYPE_CODE
    13706, --DELIVER_TO_PERSON_ID
    101629781, --LOCATION_ID
    101629781, --DELIVER_TO_LOCATION_ID
    'FG', --SUBINVENTORY 
    46259, --LOCATOR_ID  
    rcv_headers_interface_s.currval, --Header_interface_id
    'Y', --VALIDATION_FLAG 
    SYSDATE
    Thank you,
    Genoo
    Edited by: Geno on May 25, 2013 4:54 AM

    Any suggestion/advise please!
    Thanks,
    Genoo

  • Call to concurrent program in a pl/sql block does not COMMIT data to table

    I have the following PL/SQL block.
                             apps.create_po(x_org_id,x_document_num,x_agent_name,x_vendor_id,x_vendor_site_id,x_ship_to_location,x_bill_to_location,x_creation_date,new_isbn,new_print_key,new_unit_setup_cost,new_unit_run_cost,x_item,x_category_id,x_item_description,x_unit_of_measure,x_quantity,x_unit_price,x_ship_to_org_id,x_promise_date,x_qty_rcv_tolerance, x_deliver_to_location,x_destination_org_id, x_destination_subinventory,x_segment2,x_segment4);
                                  COMMIT;
    FND_GLOBAL.APPS_INITIALIZE(v_user_id,v_resp_id,201);
    v_po_req_id := apps.fnd_request.submit_request('PO','POXPOPDOI',NULL,NULL,NULL,
                                  NULL,'STANDARD',NULL,'Y',NULL,'APPROVED',NULL,NULL,NULL,NULL,NULL,NULL,
                                  NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,
                                  NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,
                                  NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,
                                  NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,
                                  NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,
                                  NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,
                                  NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,
                                  NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,
                                  NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL
                                  DBMS_OUTPUT.PUT_LINE('Request ID is:' || v_po_req_id);
                                  IF v_po_req_id <> 0 THEN
                                       dbms_lock.sleep(60);
                                       dbms_output.Put_line('Sleep executed');
                                       COMMIT;
                                       select PHASE_CODE,STATUS_CODE INTO v_phase_code,v_status_code
                                       FROM FND_CONCURRENT_REQUESTS
                                       WHERE REQUEST_ID = v_po_req_id;
                                       dbms_output.put_line('After commit Phase and status codes are = '||v_phase_code || v_status_code);
                                  ELSE
                                       ROLLBACK;
                                  END IF;
                                  dbms_output.put_line('New Po is' || x_document_num);
                                  dbms_output.put_line('Quantity Is'|| x_quantity);
                                  apps.receive_po(x_document_num,x_quantity);
                                  v_rcv_req_id := apps.fnd_request.submit_request('PO','RVCTP',NULL,NULL,NULL,
                                  'BATCH',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,
                                  NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,
                                  NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,
                                  NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,
                                  NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,
                                  NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,
                                  NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,
                                  NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,
                                  NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,
                                  NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL
                                  DBMS_OUTPUT.PUT_LINE('Request ID is:' || v_rcv_req_id);
                                  IF v_rcv_req_id <> 0 THEN
                                       COMMIT;
                                       DBMS_OUTPUT.PUT_LINE('COMMITED RECEIVING');
                                  ELSE
                                       ROLLBACK;
                                  END IF;
    Presently when this block runs, i can see the new PO number created. Commit is also successfully executed. The last output for the program is
    New Po is 20651
    Quantity Is 450
    But due to some reason, the receiving program(receive_po) cannot retrieve the same PO from the base table.
    But once this pl/sql block is complete, and i call the receving procedure from a different session, the Po is retrieved and receiving against the PO is executed successfully.
    Can someone please suggest a work around ? Is the code missing something ? Since POXPOPDOI is a concurrent program which is executed as an asyncronous process, the commit statement after the call to concurent program does not work but the commit is executed only after it exits the pl/sql block.

    Thanks for responding.
    receive_po() program just inserts the data into RCV_HEADERS_INTERFACE and RCV_TRANSACTIONS_INTERFACE tables based on the PO that is created in the previous step. So basically the new PO created has to be received and the receive_po() just inserts data into the interface tables so that RVCTP can be called after that for receiving.
    Here is the code for the procedure.
    SET SERVEROUTPUT ON;
    --FND_GLOBAL.APPS_INITIALIZE(3,20707,201);
    --Procedure for receiving interface to load data to RCV_HEADERS_INTERFACE and RCV_TRANSACTIONS_INTERFACE
    CREATE OR REPLACE PROCEDURE receive_po (x_ponum IN VARCHAR2,x_quantity IN NUMBER) AS
    v_vendor_site_id NUMBER;
    v_vendor_id NUMBER;
    v_agent_id NUMBER;
    v_ship_to_organization_id NUMBER;
    v_item_id NUMBER;
    v_uom_code varchar2(25);
    v_subinventory varchar2(25);
    v_ship_to_location_id NUMBER;
    BEGIN
    --header information in variables
    dbms_output.put_line('Entering Receiving Insert Procedure');
    dbms_output.put_line('Po number ='||x_ponum||'$');
    dbms_output.put_line('Quantity is ='||x_quantity||'$');
    select pvsa.vendor_site_id into v_vendor_site_id
    FROM po_headers_all pha,po_vendors pv, po_vendor_sites_all pvsa
    where pha.vendor_id = pv.vendor_id
    and pv.vendor_id = pvsa.vendor_id
    and pha.segment1 = x_ponum;
    dbms_output.put_line('Vendor Site ID is' ||v_vendor_site_id);
    select pv.vendor_id into v_vendor_id
    FROM po_headers_all pha,po_vendors pv, po_vendor_sites_all pvsa
    where pha.vendor_id = pv.vendor_id
    and pv.vendor_id = pvsa.vendor_id
    and pha.segment1 = x_ponum;
    dbms_output.put_line('Vendor ID is' ||v_vendor_id);
    select plla.SHIP_TO_ORGANIZATION_ID into v_ship_to_organization_id
    from PO_HEADERS_ALL pha, PO_LINE_LOCATIONS_ALL plla
    where pha.PO_HEADER_ID = plla.PO_HEADER_ID
    and pha.segment1 = x_ponum;
    dbms_output.put_line('Ship to org is' ||v_ship_to_organization_id);
    select agent_id into v_agent_id
    FROM po_headers_all
    WHERE segment1 = x_ponum;
    dbms_output.put_line('Agent ID is' ||v_agent_id);
    --printing header table information
    dbms_output.put_line('vendor id is:'||v_vendor_id);
    dbms_output.put_line('vendor site id is:'||v_vendor_site_id);
    dbms_output.put_line('agent id is:'||v_agent_id);
    dbms_output.put_line('ship to organization id is:'||v_ship_to_organization_id);
    --line information in variables
    --derive item id
    select pla.item_id into v_item_id
    from po_headers_all pha, po_lines_all pla
    where pha.po_header_id = pla.po_header_id
    and pha.org_id = pla.org_id
    and pha.segment1 = x_ponum;
    --derive uom
    select pla.unit_meas_lookup_code into v_uom_code
    from po_headers_all pha, po_lines_all pla
    where pla.po_header_id = pha.po_header_id
    and pla.org_id = pha.org_id
    and pha.segment1 = x_ponum;
    --derive subinventory
    select pda.destination_subinventory into v_subinventory
    from po_headers_all pha, po_lines_all pla,po_distributions_all pda
    where pha.po_header_id = pla.po_header_id
    and pla.po_header_id = pda.po_header_id
    and pla.po_line_id = pda.po_line_id
    and pha.org_id = pla.org_id
    and pla.org_id = pda.org_id
    and pha.segment1 = x_ponum;
    --derive ship to location id
    select ship_to_location_id into v_ship_to_location_id
    from po_headers_all
    where segment1 = x_ponum;
    --printing transaction table details
    dbms_output.put_line('item id is:'||v_item_id);
    dbms_output.put_line('UOM is:'||v_uom_code);
    dbms_output.put_line('subinventory is:'||v_subinventory);
    dbms_output.put_line('ship to location id is:'||v_ship_to_location_id);
    --insert data into the receiving interface header table
    INSERT INTO RCV_HEADERS_INTERFACE
    HEADER_INTERFACE_ID          ,
    GROUP_ID               ,
    PROCESSING_STATUS_CODE      ,
    RECEIPT_SOURCE_CODE          ,
    TRANSACTION_TYPE          ,
    LAST_UPDATE_DATE          ,
    LAST_UPDATED_BY          ,
    LAST_UPDATE_LOGIN,
    CREATION_DATE               ,
    CREATED_BY               ,
    VENDOR_ID               ,
    VENDOR_SITE_ID               ,
    SHIP_TO_ORGANIZATION_ID ,
    EXPECTED_RECEIPT_DATE          ,
    EMPLOYEE_ID               ,
    VALIDATION_FLAG          
    SELECT
    RCV_HEADERS_INTERFACE_S.NEXTVAL,
    RCV_INTERFACE_GROUPS_S.NEXTVAL,
    'PENDING',
    'VENDOR',
    'NEW', -- 'CANCEL',
    sysdate,
    3,
    3,
    sysdate,
    3,
    v_vendor_id,
    v_vendor_site_id,
    v_ship_to_organization_id,
    sysdate+5,
    v_agent_id,
    'Y'
    FROM DUAL;
    commit;
    --insert data into the interface transaction table
    for i in 1..1 loop
    INSERT INTO RCV_TRANSACTIONS_INTERFACE
    (INTERFACE_TRANSACTION_ID     ,
    HEADER_INTERFACE_ID     ,
    GROUP_ID               ,
    LAST_UPDATE_DATE          ,
    LAST_UPDATED_BY          ,
    CREATION_DATE               ,
    CREATED_BY               ,
    LAST_UPDATE_LOGIN,
    TRANSACTION_TYPE          ,
    TRANSACTION_DATE          ,
    PROCESSING_STATUS_CODE      ,
    PROCESSING_MODE_CODE          ,
    TRANSACTION_STATUS_CODE     ,
    QUANTITY               ,
    UNIT_OF_MEASURE          ,
    ITEM_ID ,
    AUTO_TRANSACT_CODE          ,
    RECEIPT_SOURCE_CODE          ,
    SOURCE_DOCUMENT_CODE          ,
    SUBINVENTORY               ,
    DOCUMENT_NUM               ,
    SHIP_TO_LOCATION_ID           ,
    VALIDATION_FLAG
    SELECT
    RCV_TRANSACTIONS_INTERFACE_S.NEXTVAL,
    RCV_HEADERS_INTERFACE_S.CURRVAL,
    RCV_INTERFACE_GROUPS_S.CURRVAL,
    SYSDATE,
    3,
    SYSDATE,
    3,
    3,
    'RECEIVE', --'RECEIVE', -- 'SHIP', --'06-JAN-1998',--question here
    sysdate,
    'PENDING',
    'BATCH',
    'PENDING',
    x_quantity,
    v_uom_code,
    v_item_id,
    'DELIVER', -- 'RECEIVE', --'DELIVER',
    'VENDOR',
    'PO',
    v_subinventory,
    x_ponum,
    v_ship_to_location_id,
    'Y'
    FROM DUAL;
    end loop;
    commit;
    END receive_po;
    I am really stuck and looking out for work arond. Please help.
    Thanks,
    Natasha

  • Error while declaring cursor

    Hi all,when i am trying to declare a cursor in a procedure i am getting errors.Kindly correct me where i am going wrong
      1  CREATE OR REPLACE PROCEDURE xxc_lc_rcv_interface_prc IS
      2      v_a    NUMBER;
      3      v_b    NUMBER;
      4      v_c    NUMBER;
      5      v_d    NUMBER;
      6      v_e    NUMBER;
      7      v_f    NUMBER;
      8      v_g    NUMBER;
      9   CURSOR rcv_interface_cur
    10   IS
    11   SELECT shipment_header_id INTO v_c
    12   FROM RCV_SHIPMENT_HEADERS
    13   WHERE SHIPMENT_NUM = 'NOV1124';
    14   SELECT shipment_line_id INTO v_d
    15   FROM RCV_SHIPMENT_LINES
    16   WHERE SHIPMENT_HEADER_ID = v_c;
    17   BEGIN
    18     SELECT rcv_headers_interface_s.nextval INTO v_a FROM dual ;
    19     SELECT rcv_interface_group_s.nextval INTO v_b FROM dual;
    20     SELECT rcv_headers_interface_s.currval INTO v_e FROM dual ;
    21     SELECT rcv_interface_groups_s.currval  INTO v_f FROM dual;
    22     SELECT rcv_transactions_interface_s.nextval INTO v_g FROM dual;
    23  BEGIN
    24  INSERT INTO rcv_headers_interface
    25  (
    26  HEADER_INTERFACE_ID,
    27  GROUP_ID,
    28  PROCESSING_STATUS_CODE,
    29  RECEIPT_SOURCE_CODE,
    30  TRANSACTION_TYPE,
    31  AUTO_TRANSACT_CODE,
    32  LAST_UPDATE_DATE,
    33  LAST_UPDATE_LOGIN,
    34  LAST_UPDATED_BY,
    35  CREATION_DATE,
    36  CREATED_BY,
    37  VALIDATION_FLAG,
    38  COMMENTS,
    39  SHIPMENT_NUM,
    40  FROM_ORGANIZATION_ID,
    41  SHIP_TO_ORGANIZATION_ID,
    42  EXPECTED_RECEIPT_DATE
    43  --RECEIPT_HEADER_ID
    44  )
    45  VALUES
    46   (v_a,                                         --Header Interface ID
    47   v_b,                                          --Group ID
    48   'PENDING',                                    --Processing Status Code
    49   'INVENTORY',                                  --Receipt source Code
    50   'RECEIVE',                                    --Transaction Type
    51   'DELIVER'  ,                                   --AUT Transact Code
    52   sysdate,                                       --last update date
    53   1053,                                         --last updated by
    54   1053,                                        --Last Update Login
    55   sysdate,                                      --creation date
    56   1053,                                         --created by
    57   'Y',                                          --Validation Flag
    58   'Receiving Through Interface',                --Comments
    59   'NOV1124' ,                                --Shipment Number
    60   81,                                           --From Org
    61   82,                                           --To org
    62   sysdate                                     --Expected Receipt Date
    63  );
    64  END;
    65   BEGIN
    66  FOR crec IN rcv_interface_cur loop
    67  INSERT INTO rcv_transactions_interface
    68  (
    69               HEADER_INTERFACE_ID,
    70               GROUP_ID,
    71               INTERFACE_TRANSACTION_ID,
    72               TRANSACTION_TYPE,
    73               TRANSACTION_DATE,
    74               PROCESSING_STATUS_CODE,
    75               PROCESSING_MODE_CODE,
    76               TRANSACTION_STATUS_CODE,
    77               CATEGORY_ID,
    78               QUANTITY,
    79               LAST_UPDATE_DATE,
    80               LAST_UPDATED_BY,
    81               CREATION_DATE,
    82               CREATED_BY,
    83               RECEIPT_SOURCE_CODE,
    84               DESTINATION_TYPE_CODE,
    85               AUTO_TRANSACT_CODE,
    86               SOURCE_DOCUMENT_CODE,
    87               UNIT_OF_MEASURE,
    88               INTERFACE_SOURCE_CODE,
    89               ITEM_ID,
    90               --ITEM_DESCRIPTION,
    91               UOM_CODE,
    92               EMPLOYEE_ID,
    93               SHIPMENT_HEADER_ID,
    94               TO_ORGANIZATION_ID,
    95               SUBINVENTORY,
    96               FROM_ORGANIZATION_ID,
    97               FROM_SUBINVENTORY,
    98               EXPECTED_RECEIPT_DATE,
    99               SHIPPED_DATE,
    100               VALIDATION_FLAG
    101  )
    102  VALUES
    103       (v_e,                                          --Header Interface ID
    104       v_f,                                          --Group ID
    105       v_g,                                           --Interface_transaction_id
    106       'RECEIVE',                                       --Transaction Type
    107       sysdate,                                      --Transaction Date
    108       'PENDING',                                    --Processing Status Code
    109       'BATCH',                                      --Processing Mode Code
    110       'PENDING',                                    --Transaction Status Code
    111       120,                                          --Category ID
    112       2,                                           --Quantity
    113       sysdate,                                     --last update date
    114       1053,                                        --last updated by
    115       sysdate,                                      --creation date
    116       1053,                                           --created by
    117       'INVENTORY',                                  --Receipt source Code
    118       'INVENTORY',                                  --Destination Type Code
    119       'DELIVER' ,                                    --AUTO Transact Code
    120       'INVENTORY',                                  --Source Document Code
    121        'Each',                                     --Unit Of Measure
    122        'RCV',                                       --Interface Source Code
    123        2492,                                        --Item ID
    124        --'ABBY KITCHEN CURTAIN SET BEIGE/BURGUNDY',   --Item Description
    125        'EA',                                       --UOM COde
    126        1053,                                       --User
    127       v_c,                                         --Shipment Header ID
    128        v_d,                                        --SHipment Line ID
    129        82,                                           --To Organization ID
    130        'Brooklyn',                                     --Sub Inventory ID
    131        81,                                            --From Organization
    132        'Vessel',                                      --From Subinventory
    133        sysdate,                                       --Expected Receipt Date
    134        sysdate,                                      --Shipped Date
    135        'Y'                                           --Validation Flag
    136      );
    137  --END IF;
    138  END LOOP;
    139  END;
    140*     END xxc_lc_rcv_interface_prc;
    SQL> /
    Warning: Procedure created with compilation errors.
    SQL> sho err
    Errors for PROCEDURE XXC_LC_RCV_INTERFACE_PRC:
    LINE/COL ERROR
    14/2     PLS-00103: Encountered the symbol "SELECT" when expecting one of
             the following:
             begin function pragma procedure subtype type <an identifier>
             <a double-quoted delimited-identifier> current cursor delete
             exists prior
             The symbol "begin" was substituted for "SELECT" to continue.
    141/0    PLS-00103: Encountered the symbol "end-of-file" when expecting
             one of the following:
             ( begin case declare end exception exit for goto if loop mod
             null pragma raise return select update while with
             <an identifier> <a double-quoted delimited-identifier>
             <a bind variable> << continue close current delete fetch lock
             insert open rollback savepoint set sql execute commit forall
             merge pipe purge

    hi,
    I have corrected your code
    CREATE OR REPLACE PROCEDURE xxc_lc_rcv_interface_prc
    IS
       v_a   NUMBER;
       v_b   NUMBER;
       v_c   NUMBER;
       v_d   NUMBER;
       v_e   NUMBER;
       v_f   NUMBER;
       v_g   NUMBER;
       CURSOR rcv_interface_cur
       IS
          SELECT shipment_header_id
            INTO v_c
            FROM rcv_shipment_headers
           WHERE shipment_num = 'NOV';
    BEGIN
       SELECT shipment_line_id
         INTO v_d
         FROM rcv_shipment_lines
        WHERE shipment_header_id = v_c;
       SELECT rcv_headers_interface_s.NEXTVAL
         INTO v_a
         FROM DUAL;
       SELECT rcv_interface_group_s.NEXTVAL
         INTO v_b
         FROM DUAL;
       SELECT rcv_headers_interface_s.CURRVAL
         INTO v_e
         FROM DUAL;
       SELECT rcv_interface_groups_s.CURRVAL
         INTO v_f
         FROM DUAL;
       SELECT rcv_transactions_interface_s.NEXTVAL
         INTO v_g
         FROM DUAL;
       BEGIN
          INSERT INTO rcv_headers_interface
                      (header_interface_id, GROUP_ID, processing_status_code,
                       receipt_source_code, transaction_type,
                       auto_transact_code, last_update_date, last_update_login,
                       last_updated_by, creation_date, created_by,
                       validation_flag, comments, shipment_num, from_organization_id, ship_to_organization_id, expected_receipt_date
                      --RECEIPT_HEADER_ID
               VALUES (v_a,                                  --Header Interface ID
                           v_b,                                         --Group ID
                               'PENDING',                 --Processing Status Code
                       'INVENTORY',                          --Receipt source Code
                                   'RECEIVE',                   --Transaction Type
                       'DELIVER',                              --AUT Transact Code
                                 SYSDATE,                       --last update date
                                         --,                                         --last updated by
                                         --,                                        --Last Update Login
                                         SYSDATE,                  --creation date
    --    ,                                         --created by
                       'Y',                                      --Validation Flag
                           'Receiving Through Interface',               --Comments
                                                         'NOV',  --Shipment Number
    --    ,                                           --From Org
    --    ,                                           --To org
                       SYSDATE                             --Expected Receipt Date
       END;
       BEGIN
          FOR crec IN rcv_interface_cur
          LOOP
             INSERT INTO rcv_transactions_interface
                         (header_interface_id, GROUP_ID,
                          interface_transaction_id, transaction_type,
                          transaction_date, processing_status_code,
                          processing_mode_code, transaction_status_code,
                          category_id, quantity, last_update_date,
                          last_updated_by, creation_date, created_by,
                          receipt_source_code, destination_type_code,
                          auto_transact_code, source_document_code,
                          unit_of_measure, interface_source_code, item_id,
                          --ITEM_DESCRIPTION,
                          uom_code, employee_id, shipment_header_id, to_organization_id, subinventory, from_organization_id, from_subinventory, expected_receipt_date, shipped_date, validation_flag
                  VALUES (v_e,                               --Header Interface ID
                              v_f,                                      --Group ID
                          v_g,                          --Interface_transaction_id
                              'RECEIVE',                        --Transaction Type
                          SYSDATE,                              --Transaction Date
                                  'PENDING',              --Processing Status Code
                          'BATCH',                          --Processing Mode Code
                                  'PENDING',             --Transaction Status Code
    --       ,                                          --Category ID
    --       ,                                           --Quantity
                          SYSDATE,                              --last update date
    --       ,                                        --last updated by
                                  SYSDATE,                         --creation date
    --       ,                                           --created by
                          'INVENTORY',                       --Receipt source Code
                          'INVENTORY',                     --Destination Type Code
                                      'DELIVER',              --AUTO Transact Code
                                                'INVENTORY',
                                                            --Source Document Code
                          'Each',                                --Unit Of Measure
                                 'RCV',                    --Interface Source Code
    --        ,                                        --Item ID
            --'ABBY KITCHEN CURTAIN SET BEIGE/BURGUNDY',   --Item Description
                          'EA',                                         --UOM COde
    --        ,                                       --User
                               v_c,                           --Shipment Header ID
                          v_d,                                  --SHipment Line ID
    --        ,                                           --To Organization ID
                          'Brooklyn',                           --Sub Inventory ID
    --        ,                                            --From Organization
                          'Vessel',                            --From Subinventory
                          SYSDATE,                         --Expected Receipt Date
                                  SYSDATE,                          --Shipped Date
                                          'Y'                    --Validation Flag
          --END IF;
          END LOOP;
       END;
    END xxc_lc_rcv_interface_prc;
    there are many syntax errors i have corrected .
    Note : code is not compiled or tested .Thanks,
    P Prakash
    Edited by: prakash on Nov 21, 2011 4:00 AM

  • Stuck po receipts in interface tables in R12

    Hi,
    I have to prepare a query, this query will used for an Oracle Alert. requirement is as below.
    when ever stuck po receipts in interface table, we need to send an alert tp Buyers. please let me know how to achieve this.
    what are all the join conditions between RCV_TRANSACTIONS_INTERFACE,RCV_HEADERS_INTERFACE, PO_Headers_all andPO_Lines_all tables.
    Thought of using above tables to build the query. if i am missing any other tables please provide those to complete this task.
    Many Thanks.

    I think you have covered it all.
    Just add PO_VENDORS and PO_VENDOR_SITES views to get the supplier and site name/codes.
    Thanks,
    PS.

  • 11.5.10 ROI를 통해 INTRANSIT SHIPMENT(INTER-ORG TRANSFER)를 처리하는 방법

    제품: Applications
    작성날짜 : 2006-05-30
    11.5.10 ROI를 통해 INTRANSIT SHIPMENT(INTER-ORG TRANSFER)를 처리하는 방법
    ===============================================================
    PURPOSE
    11.5.10 Receiving Open Interface를 통해 Lot / Serial Controlled Items을 Intransit Shipment (Inter-org transfer) 처리하는 방법을 기술함.
    Explanation
    11.5.10에서는 ROI를 통해 Inter-Org Transfers를 지원합니다.
    . RECEIVE transaction
    . DELIVER to Inventory Transaction
    Solution
    ========
    - Receiving Open Interface (ROI)를 통해서 2 inventory organizations
    사이의 Inter-Organization Transfer를 수행한다.
    - Direct Receipt Routing으로 RECEIVE 와 DELIVER transaction을 동시에
    수행한다.
    <1> the sample script has been tested for a Lot and Serial
    Controlled Item.
    The script will load records into the tables
    RCV_HEADERS_INTERFACE,
    RCV_TRANSACTIONS_INTERFACE,
    MTL_TRANSACTIONS_LOTS_INTERFACE
    MTL_SERIAL_NUMBERS_INTERFACE
    * If the item is only a standard item, only the records into
    RCV_HEADERS_INTERFACE and RCV_TRANSACTIONS_INTERFACE tables
    have to be created.
    <2> Setup
    1) Inventory Setup/Organizations/Shipping Networks
    - From Sending Organization M1 to Destination Organization D2
    - Transfer Type=Intransit
    - Receipt Routing=Direct
    2) Item 'Lot-Serial-Controlled-1' is a lot and serial controlled
    Item in sending and Destination Organization
    <3> Create manual "Intransit Shipment"
    Inventory / Transactions/ Inter Organization transfer
    - From Org= M1, To Org= D2
    - Shipment: 'ROI-Lot-Serial-1'
    - Item= Lot-Serial-Controlled-1
    - Lot=S00226
    - From Subinventory=Stores
    - To Subinventory=Staging1
    - Quantity=10
    - Start Serial Number=SM1_00001
    - End Serial Number=SM1_00010
    <4> data collection for RCV_TRANSACTIONS_INTERFACE table
    - Select * from RCV_SHIPMENT_HEADERS
    where SHIPMENT_NUM like '&Shipment_Num';
    - Select * from RCV_SHIPMENT_LINES
    where SHIPMENT_HEADER_ID=&Shipment_Header_id;
    - Select * from RCV_LOTS_SUPPLY
    where SHIPMENT_LINE_ID=&Shipment_Line_id;
    - Select * from RCV_SERIAL_SUPPLY
    where SHIPMENT_LINE_ID=&Shipment_Line_id;
    <5> RECEIVE/ DELIVER to INVENTORY Transaction for INTER-ORG
    TRANSFER SHIPMENT
    - Direct DELIVER Receipt
    - LOT_NUM=S00226 and serial numbers SM1_00001 to SM1_00002
    Insert
    - RCV_HEADERS_INTERFACE with SHIPMENT_NUM='ROI-Lot-Serial-1',
    VALIDATION_FLAG='Y'
    - RCV_TRANSACTIONS_INTERFACE with TRANSACTION_TYPE='RECEIVE',
    AUTO_TRANSACT_CODE='DELIVER' , DESTINATION_TYPE_CODE='INVENTORY'
    RECEIPT_SOURCE_CODE='INVENTORY', SOURCE_DOCUMENT_CODE='INVENTORY'
    VALIDATION_FLAG='Y'
    - MTL_TRANSACTIONS_LOTS_INTERFACE with quantity=2, lot number S00226
    - MTL_TRANSACTIONS_SERIAL_INTERFACE with FM_SERIAL_NUMBER='SM1_00001'
    and TO_SERIAL_NUMBER='SM1_00002'
    INSERT INTO RCV_HEADERS_INTERFACE
    (HEADER_INTERFACE_ID,
    GROUP_ID,
    PROCESSING_STATUS_CODE,
    RECEIPT_SOURCE_CODE,
    TRANSACTION_TYPE,
    AUTO_TRANSACT_CODE,
    LAST_UPDATE_DATE,
    LAST_UPDATED_BY,
    LAST_UPDATE_LOGIN,
    CREATION_DATE,
    CREATED_BY,
    SHIPMENT_NUM,
    SHIP_TO_ORGANIZATION_ID,
    EXPECTED_RECEIPT_DATE,
    VALIDATION_FLAG
    VALUES
    (rcv_headers_interface_s.nextval , --Header_Interface_Id
    rcv_interface_groups_s.nextval, --Group_Id
    'PENDING', --Processing_Status_Code
    'INVENTORY', --Receipt_Source_Code
    'NEW', --Transaction_Type
    'DELIVER', --Auto_Transact_Code
    SYSDATE, --Last_Update_Date
    0, --Last_Updated_By
    0, --Last_Update_Login
    SYSDATE, --Creation_Date
    0, --Created_By
    'ROI-Lot-Serial-1', --Shipment_Num
    210, --Ship_To_Organization_Id,
    SYSDATE, --Expected_Receipt_Date
    'Y' --Validation_Flag
    INSERT INTO RCV_TRANSACTIONS_INTERFACE
    (INTERFACE_TRANSACTION_ID,
    GROUP_ID,
    LAST_UPDATE_DATE,
    LAST_UPDATED_BY,
    CREATION_DATE,
    CREATED_BY,
    LAST_UPDATE_LOGIN,
    TRANSACTION_TYPE,
    TRANSACTION_DATE,
    PROCESSING_STATUS_CODE,
    PROCESSING_MODE_CODE,
    TRANSACTION_STATUS_CODE,
    QUANTITY,
    UNIT_OF_MEASURE,
    INTERFACE_SOURCE_CODE,
    ITEM_ID,
    EMPLOYEE_ID,
    AUTO_TRANSACT_CODE,
    SHIPMENT_HEADER_ID,
    SHIPMENT_LINE_ID,
    RECEIPT_SOURCE_CODE,
    TO_ORGANIZATION_ID,
    SOURCE_DOCUMENT_CODE,
    DESTINATION_TYPE_CODE,
    SUBINVENTORY,
    SHIPMENT_NUM,
    EXPECTED_RECEIPT_DATE,
    HEADER_INTERFACE_ID,
    VALIDATION_FLAG
    VALUES
    ( rcv_transactions_interface_s.nextval, --
    INTERFACE_TRANSACTION_ID
    rcv_interface_groups_s.currval, --GROUP_ID
    SYSDATE, --LAST_UPDATE_DATE
    0, --LAST_UPDATED_BY
    SYSDATE, --CREATION_DATE
    0, --CREATED_BY
    0, --LAST_UPDATE_LOGIN
    'RECEIVE', --TRANSACTION_TYPE
    SYSDATE, --TRANSACTION_DATE
    'PENDING', --PROCESSING_STATUS_CODE
    'BATCH', --PROCESSING_MODE_CODE
    'PENDING', --TRANSACTION_STATUS_CODE
    2, --QUANTITY
    'Each', --UNIT_OF_MEASURE
    'RCV', --INTERFACE_SOURCE_CODE
    169845, --ITEM_ID
    13706, --EMPLOYEE_ID
    'DELIVER', --AUTO_TRANSACT_CODE
    233534, --SHIPMENT_HEADER_ID
    246486, --SHIPMENT_LINE_ID
    'INVENTORY', --RECEIPT_SOURCE_CODE
    210, --TO_ORGANIZATION_ID
    'INVENTORY', --SOURCE_DOCUMENT_CODE
    'INVENTORY', --DESTINATION_TYPE_CODE
    'Staging1', --SUBINVENTORY
    'ROI-Lot-Serial-1', --SHIPMENT_NUM
    SYSDATE, --EXPECTED_RECEIPT_DATE,
    rcv_headers_interface_s.currval, --HEADER_INTERFACE_ID
    'Y' --VALIDATION_FLAG
    INSERT INTO MTL_TRANSACTION_LOTS_INTERFACE
    ( TRANSACTION_INTERFACE_ID,
    LAST_UPDATE_DATE,
    LAST_UPDATED_BY,
    CREATION_DATE,
    CREATED_BY,
    LAST_UPDATE_LOGIN,
    LOT_NUMBER,
    TRANSACTION_QUANTITY,
    PRIMARY_QUANTITY,
    SERIAL_TRANSACTION_TEMP_ID,
    PRODUCT_CODE,
    PRODUCT_TRANSACTION_ID
    VALUES
    ( MTL_MATERIAL_TRANSACTIONS_S.NEXTVAL,--
    TRANSACTION_INTERFACE_ID
    SYSDATE, --LAST_UPDATE_DATE
    0, --LAST_UPDATED_BY
    SYSDATE, --CREATION_DATE
    0, --CREATED_BY
    0, --LAST_UPDATE_LOGIN
    'S00226', --LOT_NUMBER
    2, --TRANSACTION_QUANTITY
    2, --PRIMARY_QUANTITY
    MTL_MATERIAL_TRANSACTIONS_S.NEXTVAL, --
    SERIAL_TRANSACTION_TEMP_ID
    'RCV', --PRODUCT_CODE
    RCV_TRANSACTIONS_INTERFACE_S.CURRVAL --
    PRODUCT_TRANSACTION_ID
    INSERT INTO MTL_SERIAL_NUMBERS_INTERFACE
    ( TRANSACTION_INTERFACE_ID,
    LAST_UPDATE_DATE,
    LAST_UPDATED_BY,
    CREATION_DATE,
    CREATED_BY,
    LAST_UPDATE_LOGIN,
    FM_SERIAL_NUMBER,
    TO_SERIAL_NUMBER,
    PRODUCT_CODE,
    PRODUCT_TRANSACTION_ID)
    VALUES
    (MTL_MATERIAL_TRANSACTIONS_S.CURRVAL,--
    TRANSACTION_INTERFACE_ID
    SYSDATE, --LAST_UPDATE_DATE
    0, --LAST_UPDATED_BY
    SYSDATE, --CREATION_DATE
    0, --CREATED_BY
    0, --LAST_UPDATE_LOGIN
    'SM1_00001', --FM_SERIAL_NUMBER
    'SM1_00002', --TO_SERIAL_NUMBER
    'RCV', --PRODUCT_CODE
    RCV_TRANSACTIONS_INTERFACE_S.CURRVAL --
    PRODUCT_TRANSACTION_ID
    Commit;
    <6> In Purchasing Responsibility, Change to receiving organization
    - run the Receiving Transaction Processor for the given group_id
    used in RHI and RTI (GROUP_ID=25168)
    <7> check a data
    Navigate to Receiving / Receiving Transactions Summary form
    - For Shipment Number ROI-Lot-Serial-1, Receipt Number 5012
    has Receive and Deliver transactions.
    Reference Documents
    Note#336924.1
    글 수정:
    heeyeol2

    I Think Rajesh is Good inspite of Merlin.
    Can u send me your mail i'd.
    Actually I'm Facing Some Proble In Receipt Header.
    As the period in GL and Inventory is open till march-07 and i'm doing transaction today.
    After this also application is throughing a error.
    APP-PO-14230
    I Can't Send u the Screen Short hear.
    Please Help Me.
    Bachan

  • 11.5.10 : LOT나 SERIAL CONTROL ITEM을 ROI 통해 RECEIPT 하는 방법은?

    제품 : MFG_INV
    작성날짜 : 2006-05-18
    11.5.10: LOT나 SERIAL CONTROL ITEM을 ROI 통해 RECEIPT 하는 방법은?
    ==============================================================
    PURPOSE
    Receiving Open Interface(ROI)에서 Lot나 Serial 정보를 위해 사용하는
    interface tables은 무엇인지 알아본다.
    Explanation
    Serial 및 Lot을 control 하는 item을 Receiving Open Interface(ROI)를 통
    해 Delivery, Correction, Return 작업을 하기 위해서는 기존에 사용하던
    rcv_headers_interface,rcv_transactions_interface table 외에 아래 두
    tables에도 data가 입력되어져야 합니다.
    mtl_transaction_lots_interface,
    mtl_transaction_serial_numbers_interface
    이 주목할 만한 변경은 새로운 ROI functionality를 충족하기 위해 11.5.10,
    SCM_PF.J/11i.PRC_PF.J 에서 만들어졌다.
    많은 dependencies 때문에 이 새로운 ROI functionality는 이전 version을
    위한 backport는 불가능하다.
    Example
    1.Serial Controlled item인 경우 :
    INSERT INTO MTL_SERIAL_NUMBERS_INTERFACE (
    TRANSACTION_INTERFACE_ID,
    LAST_UPDATE_DATE,
    LAST_UPDATED_BY,
    CREATION_DATE,
    CREATED_BY,
    LAST_UPDATE_LOGIN,
    FM_SERIAL_NUMBER,
    TO_SERIAL_NUMBER,
    PRODUCT_CODE,
    PRODUCT_TRANSACTION_ID) --link to rcv_transactions_interface
    VALUES
    (MTL_MATERIAL_TRANSACTIONS_S.NEXTVAL,
    sysdate,
    1,
    sysdate,
    1,
    1,
    'sr000016',
    'sr000016',
    'RCV',
    RCV_TRANSACTIONS_INTERFACE_S.CURRVAL); --same as
    rcv_transactions_interface.interface_transaction_id
    2. Lot Controlled item 인 경우 :
    INSERT INTO MTL_TRANSACTION_LOTS_INTERFACE (
    TRANSACTION_INTERFACE_ID,
    LAST_UPDATE_DATE,
    LAST_UPDATED_BY,
    CREATION_DATE,
    CREATED_BY,
    LAST_UPDATE_LOGIN,
    LOT_NUMBER,
    TRANSACTION_QUANTITY,
    PRIMARY_QUANTITY,
    PRODUCT_CODE,
    PRODUCT_TRANSACTION_ID) --link to rcv_transactions_interface
    VALUES
    (MTL_MATERIAL_TRANSACTIONS_S.NEXTVAL,
    sysdate,
    1,
    sysdate,
    1,
    1,
    'lt2002',
    1,
    1,
    'RCV',
    RCV_TRANSACTIONS_INTERFACE_S.CURRVAL); --same as
    rcv_transactions_interface.interface_transaction_id
    3. Serial과 Lot Controlled item인 경우:
    INSERT INTO MTL_SERIAL_NUMBERS_INTERFACE (
    TRANSACTION_INTERFACE_ID,
    LAST_UPDATE_DATE,
    LAST_UPDATED_BY,
    CREATION_DATE,
    CREATED_BY,
    LAST_UPDATE_LOGIN,
    FM_SERIAL_NUMBER,
    TO_SERIAL_NUMBER,
    PRODUCT_CODE,
    PRODUCT_TRANSACTION_ID) --link to rcv_transactions_interface
    VALUES
    (MTL_MATERIAL_TRANSACTIONS_S.NEXTVAL,
    sysdate,
    1,
    sysdate,
    1,
    1,
    'sr000016',
    'sr000016',
    'RCV',
    RCV_TRANSACTIONS_INTERFACE_S.CURRVAL); --same as
    rcv_transactions_interface.interface_transaction_id
    INSERT INTO MTL_TRANSACTION_LOTS_INTERFACE (
    TRANSACTION_INTERFACE_ID,
    LAST_UPDATE_DATE,
    LAST_UPDATED_BY,
    CREATION_DATE,
    CREATED_BY,
    LAST_UPDATE_LOGIN,
    LOT_NUMBER,
    TRANSACTION_QUANTITY,
    PRIMARY_QUANTITY,
    SERIAL_TRANSACTION_TEMP_ID, --link to mtl_serial_numbers_interface
    PRODUCT_CODE,
    PRODUCT_TRANSACTION_ID) --link to rcv_transactions_interface
    VALUES
    (MTL_MATERIAL_TRANSACTIONS_S.NEXTVAL,
    sysdate,
    1,
    sysdate,
    1,
    1,
    'lt2002',
    1,
    1,
    MTL_MATERIAL_TRANSACTIONS_S.CURRVAL, --link to mtl_serial_numbers_interface
    'RCV',
    RCV_TRANSACTIONS_INTERFACE_S.CURRVAL); --same as
    rcv_transactions_interface.interface_transaction_id
    Reference Documents
    Note 301281.1

  • ERROR WHILE IMPORTING AP RECEIPTS

    Hi ,
    We are doing AP Receipts Conversion .
    So for some records in the Interface it is showing error as following.
    Kindly help.
    Below is the PO_INTERFACE_ERRORS table data for the record rejected.
    COLUMN_NAME : LINE_NUM
    error_message : Error: The value specified 2 is invalid. (COLUMN=LINE_NUM)
    Error_message_name : RCV_INVALID_ROI_VALUE_NE
    Table_name : RCV_HEADERS_INTERFACE
    Plz help me out to sort out this issue.
    Thanks,
    Vidhu Sharma

    Please post the details of the application release, database version and OS.
    Please also post the contents of the concurrent request log file here.
    Please see these docs.
    RCV_INVALID_ROI_VALUE_NE Error When attempting to Receive ASN Using EDI for ASN Imports [ID 1272062.1]
    Receiving Open Interface (ROI) Fails Transactions: RCV_INVALID_ROI_VALUE_NE [ID 1313329.1]
    Receiving Transaction Processor Selects Record For Different Operating Unit Then Fails Those Transactions With "RCV_INVALID_ROI_VALUE_NE" [ID 1482873.1]
    ROI: RCV_INVALID_ROI_VALUE_NE Error Against Planned PO Releases [ID 1446364.1]
    Error: The Value Specified 2.2. is invalid. (COLUMN=LOCATOR) RCV_INVALID_ROI_VALUE_NE [ID 1085323.1]
    ASN's Go In Error When There Exists A Shipment With The Same Shipment Number For Other Document Type [ID 1143620.1]
    ASNs are failing with Ship from location id cannot be null if shipping_control is BUYER [ID 1362252.1]
    Thanks,
    Hussein

  • When I run the Receiving interface i get an error that the period is not open.  But all periods are open from Jun 14 through April 15.

    I am running the following inserts and all periods are open but I still get this error in the po_interface_errors table.
    "Error: Please enter a GL Date within an open inventory accounting period.
    Cause:        You provided a GL date that is not within an open inventory accounting period. 
    Action:        Enter a date that is within an open period."
    Here are the inserts.
    INSERT INTO rcv_headers_interface
    (header_interface_id, GROUP_ID, processing_status_code,
    receipt_source_code, transaction_type, last_update_date,
    last_updated_by, last_update_login, creation_date, created_by,
    vendor_id,expected_receipt_date, validation_flag)
    SELECT rcv_headers_interface_s.NEXTVAL, rcv_interface_groups_s.NEXTVAL,
    'PENDING', 'VENDOR', v_transaction_type , SYSDATE, v_user_id, 0,SYSDATE, v_user_id,
    v_vendor_id, SYSDATE, 'Y'
    FROM DUAL;
    INSERT INTO rcv_transactions_interface
    (interface_transaction_id, GROUP_ID,
    last_update_date, last_updated_by, creation_date,
    created_by, last_update_login, transaction_type,
    transaction_date, processing_status_code,
    processing_mode_code, transaction_status_code,
    po_header_id, po_line_id, item_id, quantity, unit_of_measure,
    po_line_location_id, auto_transact_code,
    receipt_source_code, to_organization_code,
    source_document_code, document_num,
    destination_type_code,
    deliver_to_location_id,subinventory,
    header_interface_id, validation_flag)
    SELECT rcv_transactions_interface_s.NEXTVAL,
    rcv_interface_groups_s.CURRVAL, SYSDATE, v_user_id,
    SYSDATE, v_user_id, 0, 'RECEIVE', SYSDATE, 'PENDING',
    'BATCH', 'PENDING', v_po_header_id,v_po_line_id,
    v_item_id, v_quantity,
    v_unit_meas_lookup_code,
    v_line_location_id, 'DELIVER', 'VENDOR',
    v_organization_code, 'PO', v_po_number,
    v_destination_type_code,
    v_deliver_to_location_id, v_destination_subinventory,
    rcv_headers_interface_s.CURRVAL, 'Y'
    FROM DUAL;

    I went to Inventory > Setup > Organizations  
    but I do not see a place to open a period under an organization. If there is another place to go let me know.
    I looked under calendars but that does not have anything to do with periods as far as I can tell.

  • Processing status code error

    Hi all,
    What does processing status code "Error" indicate in rcv_headers_interface.There is no error message in po_interface_errors.There is nothing available in the log of Receiving Transaction Processor.Can someone guide me what exactly this means?
    Thanks in advance!!

    Hi Sandy;
    Please see below notes which could be helpful
    Resolving records stuck in the Receiving Transactions Interface [ID 50903.1]
    http://docs.oracle.com/cd/E19509-01/820-4390/ggtrm/index.html
    Regard
    Helios

  • PO Receipts Interface Error!!

    Hi,
    We are on 11.5.10. I am trying to create PO receipts using the interface program "Receiving Transaction Processor". I inserted data into the rcv_headers_interface and rcv_transactions_interface tables. As this dta is for contract labor, i am assuming that there is no need to insert data into shipment_related interface table. Following shows the insert statement I made sure that I am running the process from the correct org (the org that i used in the filed destination_oprganization field). But still the process completes normally but po_interface_errors has a record with error message as :
    "RVTSH-189: Subroutine rvtshiline() returned error
    Cause: Subroutine rvtshiline() returned an internal error.
    Action: Note this error number and the actions you are trying to perform.
    Contact your system administrator for"
    The receipt gets created succesfully from the form. Anyone knows the issue? Please help me...thanks
    Here are the insert statements...
    --Insert data into Interface tables
    INSERT INTO rcv_headers_interface
    (header_interface_id,
    GROUP_ID,
    processing_status_code,
    receipt_source_code,
    transaction_type,
    auto_transact_code,
    last_update_date,
    last_updated_by,
    creation_date,
    created_by,
    expected_receipt_date,
    comments,
    validation_flag,
    packing_slip,
    vendor_id,
    vendor_site_id,
    ship_to_organization_id
    VALUES (rcv_headers_interface_s.NEXTVAL,
    rcv_interface_groups_s.NEXTVAL,
    'PENDING',
    'VENDOR',
    'NEW',
    'RECEIVE',
    SYSDATE,
    fnd_global.user_id,
    SYSDATE,
    fnd_global.user_id,
    SYSDATE,
    'test',
    'Y',
    'ABC',
    po_headers.vendor_id,
    po_headers.vendor_site_id
    po_distributions.destination_organization_id
    --Insert record in transactions_interface
    INSERT INTO rcv_transactions_interface
    (interface_transaction_id,
    header_interface_id,
    processing_status_code,
    receipt_source_code,
    transaction_date,
    GROUP_ID,
    last_update_date,
    last_updated_by,
    creation_date,
    created_by,
    transaction_type,
    processing_mode_code,
    transaction_status_code,
    quantity,
    unit_of_measure,
    source_document_code,
    po_header_id,
    po_line_id,
    po_line_location_id,
    po_distribution_id,
    to_organization_id,
    comments,
    interface_source_code,
    employee_id,
    auto_transact_code,
    destination_type_code,
    attribute_category,
    category_id,
    item_description
    VALUES (rcv_transactions_interface_s.NEXTVAL,
    rcv_headers_interface_s.CURRVAL,
    'PENDING',
    'VENDOR',
    SYSDATE,
    rcv_interface_groups_s.CURRVAL,
    SYSDATE,
    fnd_global.user_id,
    SYSDATE,
    fnd_global.user_id,
    'RECEIVE', --'NEW',
    'BATCH',
    'PENDING',
    2,
    po_lines.unit_meas_lookup_code,
    'PO',
    po_headers..po_header_id,
    po_lines.po_line_id,
    po_line_locations.po_line_location_id,
    po_distributions.po_distribution_id,
    po_distributions.destination_organization_id,
    'TEST',
    'RCV',
    1234, --employee_id
    'RECEIVE',
    'RECEIVING',
    po_distributions.destination_organization_id,
    45074,
    'Standard'
    );

    There are several hits on MOS for this error. Pl see if any are applicable in your case -
    121907.1 - RVCTP: RVTSH-140 RVTSH-189 SUBROUTINE RVTSHILINE RETURNED ERROR
    286966.1 - RVTSH-140 RVTSH-189 Subroutine rvtshiline() errors returned by ROI
    1080050.6 - GET ERRORS RVTSH-140 RVTSH-189 when run Receiving Transaction Processor
    371314.1 - Receiving:Data Discrepancies, Errors and Validation Issues after upgrade to or install of 11.5.10 (or 11i.SCM_PF.J)
    230259.1 - Receiving Open Interface - Unable to complete Receiving Transactions
    303246.1 - 11.5.10: Inbound Receiving Transaction errors with RVTBM-008, RVTBM-120 and RVTSH-189
    369258.1 - Receipts Failing with RVTS-189 for Receiving Open Interface Transaction
    HTH
    Srini

Maybe you are looking for