Material Transaction Open Interface Error

Hi,
I'm getting following Error in Cost Manager after running the Transaction Open Interface,
Interface work well to update the stocks, but it returns error Layer Cost Worker Concurrent.
Error1
Bills of Material: Version : 12.0.0
Copyright (c) 1979, 1999, Oracle Corporation. All rights reserved.
CMCLCW module: Layer Cost Worker
Current system time is 10-OCT-2012 14:16:32
debug_level = 0
CM_EXTENDED_DEBUG = 2
CSTPLCIN.COST_INV_TXN:CSTPLVCP.interorg (160): ORA-00001: unique constraint (INV.MTL_CST_TXN_COST_DETAILS_U1) violated
Failing Transaction ID is 28227
Start of log messages from FND_FILE
Standard costing org : -1
Interorg transfer send org: (consume layers) ...
84:5
28227:1
Entering get_layers_consumed for transaction 28227 and a required quantity of 2 with a consumption mode of NORMAL
Trying custom layers
There are 0 custom layers
General consumption
Using SQL SELECT inv_layer_id,layer_quantity FROM cst_inv_layers WHERE layer_id = :i AND inv_layer_id <> :j AND NVL(transaction_source_id,-2) <> :k AND layer_quantity > 0 ORDER BY creation_date, inv_layer_id with 1,-1,-1
End of log messages from FND_FILE
No completion options were requested.
Output is not being printed because:
The print option has been disabled for this report.
Deleting output file.
Concurrent request completed
Current system time is 10-OCT-2012 14:16:32
Error2
Bills of Material: Version : 12.0.0
Copyright (c) 1979, 1999, Oracle Corporation. All rights reserved.
CMCLCW module: Layer Cost Worker
Current system time is 10-OCT-2012 14:16:32
debug_level = 0
CM_EXTENDED_DEBUG = 2
CSTPLCIN.COST_INV_TXN:CSTPACDP.insert_account (10) ORA-01400: cannot insert NULL into ("INV"."MTL_TRANSACTION_ACCOUNTS"."BASE_TRANSACTION_VALUE")
Failing Transaction ID is 28228
Start of log messages from FND_FILE
Standard costing org : -1
----------l_to_method---------
=5
Interorg transfer receiving org: (create layers) ...
90:5
28228:2
i_txn_id 28228
1 records updated in mclacd for 15005
1 records copied from mclacd for 15005
interorg_cost_txn(..)
transaction_id:28228
org_id:90
i_txn_org_id:90
i_txf_org_id:84
i_txf_txn_id:28227
i_exp_item:0
i_fob_point:0
l_snd_rcv:2
l_from_org:84
l_to_org:90
Sending org distributions
Receiving org distributions
l_intransit:0
Calling Inventory acct
In Inventory_accounts
In insert accounts
l_ussgl_tc :
Payable amount(l_value): acct: 414240
In insert accounts
l_ussgl_tc :
DS - others Exception, sqlcode = -1400
End of log messages from FND_FILE
No completion options were requested.
Output is not being printed because:
The print option has been disabled for this report.
Deleting output file.
Concurrent request completed
Current system time is 10-OCT-2012 14:16:32
My Coding
insert into mtl_transactions_interface
(transaction_type_id, --------------1
transaction_uom, --------------2
transaction_date, --------------3
organization_id, --------------4
transaction_quantity, --------------5
last_update_date, --------------6
last_updated_by, --------------7
creation_date, --------------8
created_by, --------------9
transaction_mode, --------------10
process_flag, --------------11
source_header_id, --------------12
source_line_id, --------------13
source_code, --------------14
transaction_header_id, --------------15
inventory_item_id, --------------16
transaction_interface_id, --------------17
subinventory_code, --------------18
distribution_account_id, --------------19
transaction_cost, --------------20
transaction_reference, --------------21
transfer_organization, --------------22
transfer_subinventory, --------------23
-- transfer_cost, --------------24
primary_quantity, --------------25
lock_flag,
transaction_action_id,
transaction_source_type_id,
dst_segment1,
dst_segment2,
dst_segment3,
dst_segment4,
dst_segment5,
dst_segment6)
values
(v_trx_type_id, --------------1 ------transaction type id
i.uom_code, --------------2 ------transaction_UoM
sysdate, i.creation_date, ------------3 ------trasnsaction date
i.from_organization_id, --------------4 ------org id
nvl(i.quantity_delivered, i.quantity), --------------5 ------quantity
sysdate, --------------6 ------Last update date
-1, --------------7 ------last updated by
sysdate, --------------8 ------creation date
-1, --------------9 ------creation by
3, --------------10 ------transactio mode
1, --------------11 ------process flag
1, --------------12 ------source_header_id
1, --------------13 ------source_line_id
i.mrn_trx_number, --'MRN Interface', --------------14 ------source code
'999999', --------------15 ------transaction header id
v_item_id, --------------16 ------inventory item id
xx_mrn_mtl_trx_int_seq.nextval, --------------17 ------transaction_interface_id
i.from_subinventory_code, --------------18 ------sub inventory
v_code_id, --------------19 ------code compbination
v_item_cost, --------------20 ------cost
'MRN Interface', --------------21 ------reference
i.organization_id, --------------22
i.to_subinventory_code, --------------23
-- (nvl(i.quantity_delivered, i.quantity) * v_item_cost) --------------24
nvl(i.quantity_delivered, i.quantity),
2,
v_trx_action_id,
v_trx_source_type_id,
               '01',
               '00',
               '000',
               '141013',
               '000000',
               '00000');
Thanks

Can you get the following for the errored transaction?
SELECT   transaction_id txnid, transfer_transaction_id txfrtxnid
       , organization_id orgid, transfer_organization_id txfrorgid, subinventory_code subinv
       , transfer_subinventory txfrsubinv, cost_group_id cgid
       , transfer_cost_group_id txfrcgid       , prior_costed_quantity
       , transfer_prior_costed_quantity       , rcv_transaction_id rcvtxnid
       , transaction_action_id txnactid       , transaction_source_type_id txnsrctypid
       , transaction_type_id txntypid       , costed_flag cstdflg
       , transaction_group_id       , inventory_item_id invitmid
       , transaction_source_id wip_entity_id       , transaction_cost txncst
       , shipment_number shipnum       , new_cost       , prior_cost
       , actual_cost       , project_id       , transaction_uom txnuom
       , transaction_quantity txnqty       , primary_quantity priqty       , prior_costed_quantity priorqty
       , currency_code altcurr       , currency_conversion_rate currconvrt       , currency_conversion_date currconvdt
       , TO_CHAR (mmt.creation_date, 'dd-mm-yyyy hh24:mi:ss') creation_date
       , TO_CHAR (mmt.last_update_date, 'dd-mm-yyyy hh24:mi:ss')last_upd_date
       , ERROR_CODE errcode
       , error_explanation errexpl
    FROM mtl_material_transactions mmt
   WHERE transaction_id IN (&Trx_Id)   -- Error transaction_id
ORDER BY transaction_id DESC

Similar Messages

  • Open interface error ...Preventing us from closing May-11

    Hi All
    we are running ERP 12.0.6 on solaris machines. IT was not allowing us to close MAY-11. Reason was there were some 22 error records in TRANSACTION OPEN INTERFACE.
    I cloned the PRODUCTION INSTANCE to TES to reproduce the problem and deleted all records from backend table (mtl_transactions_interface ) in test. Now its all fine in TEST and we can successfully close the month.
    1) Is it the right way of doing it.
    2) If not please suggest how wud i do the same in proper way.
    Regards
    Musaddaq

    Can you get the following for the errored transaction?
    SELECT   transaction_id txnid, transfer_transaction_id txfrtxnid
           , organization_id orgid, transfer_organization_id txfrorgid, subinventory_code subinv
           , transfer_subinventory txfrsubinv, cost_group_id cgid
           , transfer_cost_group_id txfrcgid       , prior_costed_quantity
           , transfer_prior_costed_quantity       , rcv_transaction_id rcvtxnid
           , transaction_action_id txnactid       , transaction_source_type_id txnsrctypid
           , transaction_type_id txntypid       , costed_flag cstdflg
           , transaction_group_id       , inventory_item_id invitmid
           , transaction_source_id wip_entity_id       , transaction_cost txncst
           , shipment_number shipnum       , new_cost       , prior_cost
           , actual_cost       , project_id       , transaction_uom txnuom
           , transaction_quantity txnqty       , primary_quantity priqty       , prior_costed_quantity priorqty
           , currency_code altcurr       , currency_conversion_rate currconvrt       , currency_conversion_date currconvdt
           , TO_CHAR (mmt.creation_date, 'dd-mm-yyyy hh24:mi:ss') creation_date
           , TO_CHAR (mmt.last_update_date, 'dd-mm-yyyy hh24:mi:ss')last_upd_date
           , ERROR_CODE errcode
           , error_explanation errexpl
        FROM mtl_material_transactions mmt
       WHERE transaction_id IN (&Trx_Id)   -- Error transaction_id
    ORDER BY transaction_id DESC

  • Move transaction open interface

    I import move transaction through Move transaction open interface.
    The 11i open interface user guide tells that for WIP transaction completion, I need to insert a row into WIP_MOVE_TXN_INTERFACE, and also a line into CST_COMP_SNAP_INTERFACE.
    What is the purpose of the table CST_COMP_SNAP_INTERFACE ?
    I have tried a scrap transaction through Oracle Applications screen. I have compared the result when I insert the same transaction in WIP_MOVE_TXN_INTERFACE (no line is inserted into CST_COMP_SNAP_INTERFACE table).
    And the result seem to be the same (data in table CST_COMP_SNAPSHOT are the same with the 2 method). So , why should I also insert a line into the CST_COMP_SNAP_INTERFACE table ?
    Thank in advance.

    Hi,
    What is the application release?
    Was this working before? If yes, any changes have been done since then?
    Please see if these documents help.
    Note: 141685.1 - Unable to Close WIP Discrete Jobs
    Note: 460061.1 - How To Check the Inventory Interface Manager's Status Programmatically
    Note: 735186.1 - Outside Processing Transactions Occasionally Get Stuck In Pending Status.
    Thanks,
    Hussein

  • Supplier Open Interface Errors

    I created an supplier interface in plsql. Want I want to do is kick off the following concurrent programs from pl/sql using fnd_request.submit_request
    Supplier Open Interface Import
    Supplier Sites Open Interface Import
    Now when I run the pl/sql without the call to the fnd_submit, then run the concurrent programs through the app in Payables Manager, it works fine. BUT when I add the fnd_submit call, it executes fine but there is a weird error dealing with reports. Now this seems like some kind of privilege thing maybe?
    Below is my call to FND_SUBMIT and also my initialize. Also is the error. Ideas on what is up?
    Maybe it is because the code is in a custom schema and not under apps??
    APPS.fnd_global.apps_initialize(user_id =>'0'
    ,resp_id =>'50517'
    ,resp_appl_id =>'200');
    v_header_req := APPS.FND_REQUEST.submit_request( application => 'SQLAP',
    program => 'APXSUIMP');
    v_site_req := APPS.FND_REQUEST.submit_request( application => 'SQLAP',
    program => 'APXSSIMP');
    Payables: Version : 12.0.0
    Copyright (c) 1979, 1999, Oracle Corporation. All rights reserved.
    APXSSIMP module: Supplier Sites Open Interface Import
    Current system time is 24-MAR-2009 16:52:02
    +-----------------------------
    | Starting concurrent program execution...
    +-----------------------------
    APPLLCSP Environment Variable set to :
    Current NLS_LANG and NLS_NUMERIC_CHARACTERS Environment Variables are :
    American_America.UTF8
    Enter Password:
    MSG-00001: After SRWINIT
    MSG-00002: After Get_Company_Name
    MSG-00003: After Get_NLS_Strings
    MSG-00004: After Importing Suppliers
    REP-1419: 'beforereport': PL/SQL program aborted.
    REP-0069: Internal error
    REP-57054: In-process job terminated:Terminated with error:
    REP-1419: MSG-00001: After SRWINIT
    MSG-00002: After Get_Company_Name
    MSG-00003: After Get_NLS_Strings
    MSG-00004: After Importing Suppliers
    REP-1419: 'beforereport': PL/SQL program aborted.
    Report Builder: Release 10.1.2.2.0 - Production on Tue Mar 24 16:52:06 2009
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    Start of log messages from FND_FILE
    End of log messages from FND_FILE
    Program exited with status 1
    Concurrent Manager encountered an error while running Oracle*Report for your concurrent request 370808.
    Review your concurrent request log and/or report output file for more detailed information.
    Executing request completion options...
    Finished executing request completion options.
    Concurrent request completed
    Current system time is 24-MAR-2009 16:52:07

    Hello Jason,
    We have done somewhat the same, I see you dont add any arguments in the submit request call.
    Maybe all below is already known, maybe it helps you to find just what is wrong in your case.
    We did it this way:
    l_id := fnd_request.submit_request( application => 'SQLAP'
    +, program => p_name+
    +, description => null+
    +, start_time => null+
    +, sub_request => null--fnd_global.conc_request_id+
    +, argument1 => 'APXSUIMP'+
    +, argument2 => 'ALL'+
    +, argument3 => 1000+
    +, argument4 => 'N'+
    +, argument5 => 'N'+
    +);+
    After this we immediately execute a commit (as this will trigger the request start).
    After that we also wait for the request to finish by doing the following:
    if fnd_concurrent.wait_for_request
    +( l_request_id+
    +, 2 --interval+
    +, 0 --max_wait+
    +, l_phase --phase+
    +, l_status --status+
    +, l_dev_phase --dev_phase+
    +, l_dev_status --dev_status+
    +, l_message )+
    then ...
    Hope this helps,
    Mark

  • Oracle Open interface- Error in Item Import (INCOIN)

    Hi,
    I am migrating items to oracle using oracle open interface.
    I am getting the follwing errors.
    1. The TEMPLATE_ID or TEMPLATE_NAME specified is not valid for this Organization
    2. The revision entered is for an item that does not exist in MTL_SYSTEM_ITEMS nor MTL_SYSTEM_ITEMS_INTERFACE (No Revision Is Used)
    3. Expense Account is required when Inventory Asset Value is "No" and Inventory Item is "Yes"
    4. Item number is invalid.
    EBS: 11.5.10
    The Migratin was working fine in the previous instance. Pls let me know if you have any information on this.
    Thanks
    AM

    Hi,
    Please see these docs.
    INCOIN: Error Message Template_ID or Template Name Specified is not a Valid Template When Item Catalog ID is NULL during Item Import in UPDATE Mode [ID 1076193.1]
    Item Import: What Does "Sync" Items Do? [ID 417887.1]
    INCOIN Gets INV_TEMPLATE_ERROR After Patch Applied [ID 141579.1]
    Item Open Interface (INCOIN/IOI) Setup and How-To [ID 115557.1]
    Understanding Item Import and Debugging Problems with Item Import [ID 268968.1]
    Thanks,
    Hussein

  • RCV-856 , Receivables Open Interface Error

    I am trying to import some receipts into
    Oracle using the Oracle Open interfaces.
    I get an error RCV-856 Receivables Open Interface. SHipment lines in errors. Can you help me with that

    First of all you should check whether shipmet information matches with your PO or not.If not then correct and then run the import.
    <BLOCKQUOTE><font size="1" face="Verdana, Arial, Helvetica">quote:</font><HR>Originally posted by Venkatesh Potdar ([email protected]):
    I am trying to import some receipts into
    Oracle using the Oracle Open interfaces.
    I get an error RCV-856 Receivables Open Interface. SHipment lines in errors. Can you help me with that<HR></BLOCKQUOTE>
    null

  • Payable Open Interface error ZX_TAX_RATE_NOT_EXIST

    hi,
    i'm using 12.1.3. I got an error on the above. How to fix that?

    R12 version 12.1.3
    Oracle Database 11g Enterprise Edition Release 11.1.0.7.0
    Loading header:
    82,STANDARD,1,08810,15-Dec-10,31-Jan-00,A0003,SGD, 578.86 ,1, User ,Conversion,CONVERSION
    LOAD DATA
    INFILE "header.csv"
    INTO TABLE AP_INVOICES_INTERFACE
    FIELDS TERMINATED BY ","
    OPTIONALLY ENCLOSED BY '"'
    ORG_ID     
    ,INVOICE_TYPE_LOOKUP_CODE     
    ,INVOICE_ID                                             "to_number(:INVOICE_ID)"
    ,INVOICE_NUM     
    ,GL_DATE "to_date(:GL_DATE,'DD-Mon-YY')"
    ,INVOICE_DATE                                        "to_date(:INVOICE_DATE,'DD-Mon-YY')"
    ,VENDOR_NUM     
    ,INVOICE_CURRENCY_CODE     
    ,INVOICE_AMOUNT     
    ,EXCHANGE_RATE     
    ,EXCHANGE_RATE_TYPE     
    ,DESCRIPTION     
    ,SOURCE     
    LOADING LINE :
    82,1,1,ITEM,578.86,Conversion,1,6167,EXEMPTED
    LOAD DATA
    INFILE "detail.csv"
    INTO TABLE AP_INVOICE_LINES_INTERFACE
    FIELDS TERMINATED BY ","
    OPTIONALLY ENCLOSED BY '"'
    ORG_ID     
    ,INVOICE_ID
    ,INVOICE_LINE_ID
    ,LINE_TYPE_LOOKUP_CODE     
    ,AMOUNT     
    ,DESCRIPTION     
    ,QUANTITY_INVOICED     
    ,account_segment     
    ,tax_classification_code
    then run the PAYABLE OPEN INTERFACE.
    the error is :
    Payables Open Interface Rejections Report
    OU UBTS Pte SGD
    Supplier Supplier Invoice Invoice Invoice Invoice Line
    Number Name Number Date Currency Amount Number Reason Description
    A0003 ASIA 08810 31-JAN-00 SGD 578.86 Line ZX_TAX_RATE_NOT_E This Tax Rate does not exist.
    CRANE XIST
    (S.E.A.)
    PTE LTD
    Total Invoices Rejected: 1

  • MDX open interface error?

    has anyone come across this error in Excel client? i get it when trying to remove 0's from the summarized values.
    [MDX error|http://misiorek.com/mdx/MDX06.jpg]
    apologies for small screenshot but this is a resolution for full screen and screen scraper requires it to be minimized.

    Hi,
    Please see these docs.
    INCOIN: Error Message Template_ID or Template Name Specified is not a Valid Template When Item Catalog ID is NULL during Item Import in UPDATE Mode [ID 1076193.1]
    Item Import: What Does "Sync" Items Do? [ID 417887.1]
    INCOIN Gets INV_TEMPLATE_ERROR After Patch Applied [ID 141579.1]
    Item Open Interface (INCOIN/IOI) Setup and How-To [ID 115557.1]
    Understanding Item Import and Debugging Problems with Item Import [ID 268968.1]
    Thanks,
    Hussein

  • Credit Card Transaction Loader Interface Errors Out

    Hi to All,
    Ran into a problem when trying to load credit card transactions from a file on file server.
    Rand the following request: Credit Card Transaction Loader Interface
    Received the following error message:
    This request finished with an error and produced the following completion message: ORACLE error 6502 in FDPSTP
    Cause: FDPSTP failed due to ORA-06502: PL/SQL: numeric or value error: character string buffer too small
    ORA-06512: at "APPS.XXXX_TRX_LOAD", line 79
    ORA-06512: at line 1
    And help would be greatly appreciated.

    Hi Hussein,
    Thanks for reaching out. Issue got resolved. We have customized our CC import interface. And as such, code got changed.
    Fix was placed and CC file is able to be loaded.
    Thanks again.

  • ITEM IMPORT OPEN INTERFACE ERROR

    Hi friends,
    while 'm running import program for product family items 'm facing the following error.. please help me in solving this issue....
    TRANSACTION ID : 757
    ORGANIZATION ID : 121
    TABLE NAME : MTL_ITEM_REVISIONS_INTERFACE
    COLUMN NAME : ITEM_ID
    MESSAGE NAME : INV_IOI_REV_NO_ITEM
    ERROR MESSAGE : The revision entered is for an item that does not exist in MTL_SYSTEM_ITEMS nor MTL_SYSTEM_ITEMS_INTERFACE.
    TRANSACTION ID : 724
    ORGANIZATION ID : 88
    TABLE NAME : MTL_SYSTEM_ITEMS_INTERFACE
    COLUMN NAME : ORGANIZATION_ID
    MESSAGE NAME : INV_IOI_ORPHAN_CHILD
    ERROR MESSAGE : This Child Item has no Master Item record in MTL_SYSTEM_ITEMS.
    thanks and regards
    renji

    hi
    did you find any solution for your first error ?
    i'm also facing same error, could you let me know the solution
    while 'm running import program for product family items 'm facing the following error.. please help me in solving this issue....
    TRANSACTION ID : 757
    ORGANIZATION ID : 121
    TABLE NAME : MTL_ITEM_REVISIONS_INTERFACE
    COLUMN NAME : ITEM_ID
    MESSAGE NAME : INV_IOI_REV_NO_ITEM
    ERROR MESSAGE : The revision entered is for an item that does not exist in MTL_SYSTEM_ITEMS nor MTL_SYSTEM_ITEMS_INTERFACE.

  • How To Perform Lot Split Transactions Using Transaction Open Interface (MTI)

    Can anyone give me some guidance on how to perform lot split transaction using MTI?
    I am using the following code:
    DECLARE
    l_transaction_type_id NUMBER := 83;
    l_transaction_action_id NUMBER := 41;
    l_transaction_source_type_id NUMBER := 13;
    l_org_id NUMBER := 1884;
    l_txn_header_id NUMBER;
    l_txn_if_id1 NUMBER;
    l_txn_if_id2 NUMBER;
    l_txn_if_id3 NUMBER;
    l_parent_id NUMBER;
    l_sysdate DATE;
    l_item_id NUMBER :=287996;
    l_user_id NUMBER;
    l_distribution_account_id NUMBER;
    l_exp_date DATE;
    BEGIN
    --For Lot Merge, there should be only one resultant lot.
    --The transaction_quantity populated in MTI/MTLI should be the entire
    --quantity that is available to transact for the org/sub/item/locator/LPN in
    --that particular lot number.
    --Get transaction_header_id for all the MTIs
    SELECT APPS.mtl_material_transactions_s.NEXTVAL
    INTO l_txn_header_id
    FROM sys.dual;
    --Get transaction_interface_id of resultant record
    SELECT APPS.mtl_material_transactions_s.NEXTVAL
    INTO l_txn_if_id1
    FROM sys.dual;
    l_parent_id := l_txn_if_id1;
    l_sysdate := SYSDATE;
    l_user_id := -1; --substitute with a valid user_id
    l_distribution_account_id := NULL; --needed for lot translate
    l_exp_date := NULL; --set if required
    --Populate the MTI record for resultant record
    INSERT INTO MTL_TRANSACTIONS_INTERFACE
    transaction_interface_id,
    transaction_header_id,
    Source_Code,
    Source_Line_Id,
    Source_Header_Id,
    Process_flag,
    Transaction_Mode,
    Lock_Flag,
    Inventory_Item_Id,
    revision,
    Organization_id,
    Subinventory_Code,
    Locator_Id,
    Transaction_Type_Id,
    Transaction_Source_Type_Id,
    Transaction_Action_Id,
    Transaction_Quantity,
    Transaction_UOM,
    Primary_Quantity,
    Transaction_Date,
    Last_Update_Date,
    Last_Updated_By,
    Creation_Date,
    Created_By,
    distribution_account_id,
    parent_id,
    transaction_batch_id,
    transaction_batch_seq,
    lpn_id,
    transfer_lpn_id
    VALUES
    l_txn_if_id1, --transaction_header_id
    l_txn_header_id, --transaction_interface_id
    'INV', --source_code
    -1, --source_header_id
    -1, --source_line_id
    1, --process_flag
    3, --transaction_mode
    2, --lock_flag
    l_item_id, --inventory_item_id
    null, --revision
    l_org_id, --organization_id
    'EACH', --subinventory_code
    1198, --locator_id
    l_transaction_type_id, --transaction_type_id
    l_transaction_source_type_id, --transaction_source_type_id
    l_transaction_action_Id, --l_transaction_action_id
    100000, --transaction_quantity
    'EA', --transaction_uom
    100000, --primary_quantity
    l_sysdate, --Transaction_Date
    l_sysdate, --Last_Update_Date
    l_user_id, --Last_Updated_by
    l_sysdate, --Creation_Date
    l_user_id, --Created_by
    l_distribution_account_id, --distribution_account_id
    l_parent_id, --parent_id
    l_txn_header_id, --transaction_batch_id
    2, --transaction_batch_seq
    NULL, --lpn_id (for source MTI)
    NULL --transfer_lpn_id (for resultant MTIs)
    --Insert MTLI corresponding to the resultant MTI record
    INSERT INTO MTL_TRANSACTION_LOTS_INTERFACE(
    transaction_interface_id
    , Source_Code
    , Source_Line_Id
    , Process_Flag
    , Last_Update_Date
    , Last_Updated_By
    , Creation_Date
    , Created_By
    , Lot_Number
    , lot_expiration_date
    , Transaction_Quantity
    , Primary_Quantity
    VALUES (
    l_txn_if_id1 --transaction_interface_id
    , 'INV' --Source_Code
    , -1 --Source_Line_Id
    , 'Y' --Process_Flag
    , l_sysdate --Last_Update_Date
    , l_user_id --Last_Updated_by
    , l_sysdate --Creation_date
    , l_user_id --Created_By
    , 'Q0000.1' --Lot_Number
    , l_exp_date --Lot_Expiration_Date
    , 100000 --transaction_quantity
    , 100000 --primary_quantity
    INSERT INTO MTL_TRANSACTIONS_INTERFACE
    transaction_interface_id,
    transaction_header_id,
    Source_Code,
    Source_Line_Id,
    Source_Header_Id,
    Process_flag,
    Transaction_Mode,
    Lock_Flag,
    Inventory_Item_Id,
    revision,
    Organization_id,
    Subinventory_Code,
    Locator_Id,
    Transaction_Type_Id,
    Transaction_Source_Type_Id,
    Transaction_Action_Id,
    Transaction_Quantity,
    Transaction_UOM,
    Primary_Quantity,
    Transaction_Date,
    Last_Update_Date,
    Last_Updated_By,
    Creation_Date,
    Created_By,
    distribution_account_id,
    parent_id,
    transaction_batch_id,
    transaction_batch_seq,
    lpn_id,
    transfer_lpn_id
    VALUES
    l_txn_if_id1, --transaction_header_id
    l_txn_header_id, --transaction_interface_id
    'INV', --source_code
    -1, --source_header_id
    -1, --source_line_id
    1, --process_flag
    3, --transaction_mode
    2, --lock_flag
    l_item_id, --inventory_item_id
    null, --revision
    l_org_id, --organization_id
    'EACH', --subinventory_code
    1198, --locator_id
    l_transaction_type_id, --transaction_type_id
    l_transaction_source_type_id, --transaction_source_type_id
    l_transaction_action_Id, --l_transaction_action_id
    100000, --transaction_quantity
    'EA', --transaction_uom
    100000, --primary_quantity
    l_sysdate, --Transaction_Date
    l_sysdate, --Last_Update_Date
    l_user_id, --Last_Updated_by
    l_sysdate, --Creation_Date
    l_user_id, --Created_by
    l_distribution_account_id, --distribution_account_id
    l_parent_id, --parent_id
    l_txn_header_id, --transaction_batch_id
    3, --transaction_batch_seq
    NULL, --lpn_id (for source MTI)
    NULL --transfer_lpn_id (for resultant MTIs)
    --Insert MTLI corresponding to the resultant MTI record
    INSERT INTO MTL_TRANSACTION_LOTS_INTERFACE(
    transaction_interface_id
    , Source_Code
    , Source_Line_Id
    , Process_Flag
    , Last_Update_Date
    , Last_Updated_By
    , Creation_Date
    , Created_By
    , Lot_Number
    , lot_expiration_date
    , Transaction_Quantity
    , Primary_Quantity
    VALUES (
    l_txn_if_id1 --transaction_interface_id
    , 'INV' --Source_Code
    , -1 --Source_Line_Id
    , 'Y' --Process_Flag
    , l_sysdate --Last_Update_Date
    , l_user_id --Last_Updated_by
    , l_sysdate --Creation_date
    , l_user_id --Created_By
    , 'Q0000.1' --Lot_Number
    , l_exp_date --Lot_Expiration_Date
    , 100000 --transaction_quantity
    , 100000 --primary_quantity
    --Get transaction_interface_id of Source record-1
    SELECT APPS.mtl_material_transactions_s.NEXTVAL
    INTO l_txn_if_id2
    FROM sys.dual;
    --Populate the MTI record for Source record-1
    INSERT INTO MTL_TRANSACTIONS_INTERFACE
    transaction_interface_id,
    transaction_header_id,
    Source_Code,
    Source_Line_Id,
    Source_Header_Id,
    Process_flag,
    Transaction_Mode,
    Lock_Flag,
    Inventory_Item_Id,
    revision,
    Organization_id,
    Subinventory_Code,
    Locator_Id,
    Transaction_Type_Id,
    Transaction_Source_Type_Id,
    Transaction_Action_Id,
    Transaction_Quantity,
    Transaction_UOM,
    Primary_Quantity,
    Transaction_Date,
    Last_Update_Date,
    Last_Updated_By,
    Creation_Date,
    Created_By,
    distribution_account_id,
    parent_id,
    transaction_batch_id,
    transaction_batch_seq,
    lpn_id,
    transfer_lpn_id
    VALUES
    l_txn_if_id2, --transaction_header_id
    l_txn_header_id, --transaction_interface_id
    'INV', --source_code
    -1, --source_header_id
    -1, --source_line_id
    1, --process_flag
    3, --transaction_mode
    2, --lock_flag
    l_item_id, --inventory_item_id
    null, --revision
    l_org_id, --organization_id
    'EACH', --subinventory_code
    1198, --locator_id
    l_transaction_type_id, --transaction_type_id
    l_transaction_source_type_id, --transaction_source_type_id
    l_transaction_action_Id, --transaction_action_id
    -200000, --transaction_quantity
    'EA', --transaction_uom
    -200000, --primary_quantity
    l_sysdate, --Transaction_Date
    l_sysdate, --Last_Update_Date
    l_user_id, --Last_Updated_by
    l_sysdate, --Creation_Date
    l_user_id, --Created_by
    l_distribution_account_id, --distribution_account_id
    l_parent_id, --parent_id
    l_txn_header_id, --transaction_batch_id
    1, --transaction_batch_seq
    NULL, --lpn_id (for source MTI)
    NULL --transfer_lpn_id (for resultant MTIs)
    --Insert MTLI corresponding to the Source record-1
    INSERT INTO MTL_TRANSACTION_LOTS_INTERFACE(
    transaction_interface_id
    , Source_Code
    , Source_Line_Id
    , Process_Flag
    , Last_Update_Date
    , Last_Updated_By
    , Creation_Date
    , Created_By
    , Lot_Number
    , lot_expiration_date
    , Transaction_Quantity
    , Primary_Quantity
    VALUES (
    l_txn_if_id2 --transaction_interface_id
    , 'INV' --Source_Code
    , -1 --Source_Line_Id
    , 'Y' --Process_Flag
    , l_sysdate --Last_Update_Date
    , l_user_id --Last_Updated_by
    , l_sysdate --Creation_date
    , l_user_id --Created_By
    , 'Q0000' --Lot_Number
    , l_exp_date --Lot_Expiration_Date
    , -200000 --transaction_quantity
    , -200000 --primary_quantity
    END;

    the first MTI record should be the source record ...ie. it should have transaction quantity as negative.
    new set of MTI records should have positive transaction quantities.
    Also ensure that sum of transaction quantities for the set should be 0...
    What is the error that you are getting?
    Thanks,
    Hrishi.

  • Purchasing Document Open Interface Error - Blanket Purchase Agreement

    Hi all.
    I have a problem creating a blanket purchase agreement through the interface. What i did was this:
    INSERT INTO po_headers_interface (interface_transaction_id,
    batch_id,
    interface_source_code,
    process_code,
    action,
    group_code,
    org_id,
    document_type_code,
    document_num,
    currency_code,
    agent_id,
    vendor_id,
    vendor_site_id,
    ship_to_location_id,
    bill_to_location_id,
    approval_status,
    amount_agreed,
    effective_date,
    expiration_date)
    VALUES
    INSERT INTO po_lines_interface (interface_line_id,
    interface_header_id,
    action,
    line_num,
    line_type,
    line_type_id,
    item_id,
    category_id,
    quantity,
    unit_price,
    taxable_flag,
    tax_code)
    VALUES
    Then i run from the application "Import Price Catalogs" to import the BPA.
    I get this error in po_interface_errors: "No corresponding Blanket Agreement line available for this Price Break record. (COLUMN_NAME=SHIPMENT_NUM)"
    I mention I don't want to create a price break for the BPA i just want to create the line for the BPA. Anyone knows what I am doing wrong????
    I also got other errors b4 but I could resolve them.
    Thanks for any help on this.
    Edited by: user9525262 on Feb 14, 2012 12:08 AM

    Guys I found It out!!!!!! YEEEEEEEEE!
    It was because the quantity values. The lines on BPA doesn't accept any quantity on it.
    I write this because I searched the internet alot and the forums about this problem who also others had and now they can see where in fact the problem lies.
    Have all a nice day.
    Edited by: user9525262 on Feb 14, 2012 12:35 AM

  • Payables Open Interface Import getting errors out

    Hello All,
    I am trying to run "Payables Open Interface Import" program to upload the invoice but the program is getting error out, in the log file at the end i am getting the below error:
    (Insert ap inv dists 1a) Inside the insert function
    (Insert ap inv dists 1) Insert into ap_invoice_distributions
    (Insert ap inv dists 1) Insert into ap_invoice_distributions
    ORA-00001: unique constraint (AP.AP_INVOICE_DISTRIBUTIONS_U1) violated
    Insert_ap_inv_dists<-Create_lines<-Import_invoices<- Before report trigger
    (Create Lines 22) Insert into ap_invoice_distributions
    create_non_item_lines<-Import_invoices<- Before report trigger
    Any one faced this kind of issue?
    any suggestions to resolve this.
    Thanks & Regards
    Aboothahir

    Pl post details of OS, database and EBS versions.
    Pl see these MOS Docs
    Payables Open Interface Error ORA-00001: unique constraint (AP.AP_INVOICE_DISTRIBUTIONS_U1) violated          (Doc ID 357784.1)
    APXIIMPT Payables Open Interface Import Fails ORA-00001          (Doc ID 353052.1)
    Unique Constraint Violated Importing Invoices With Multi Line Distribution Set          (Doc ID 386323.1)
    HTH
    Srini

  • Cash Management - Open interface - raise error

    in Cash Management - Bank Reconciliation, Open interface,
    APPS.CE_999_PKG.clear
    and
    APPS.CE_999_PKG.unclear
    i would like to check and if meet certain condition, i would like to raise error/exception, so that the Reconcile or UnReconcile can not proceed, how can I do that?
    i try to do a plsql 'raise exception', in ebs screen, show
    'FRM-40734: Internal Error: PL/SQl error occurred.'
    anyway to show the error msg in a popup msg box and/or display with more meaningful error message?

    Hi Brian,
    This is because, one payment/receipt cannot be shared by more than one bank statement line. This is why once payment/receipt is reconciled against a bank statement line, you can view this transaction only from reconciled screen.
    Regards,
    Kiran

  • MTL MATERIAL TRANSACTION error 'CALL_TO_CONTRACTS'. Please help.

    I am getting the following error from the MTL_TRANSACTIONS_INTERFACE table while running a material transaction.
    You have encountered an unexpected error in 'CALL_TO_CONTRACTS': (No Data Found).
    I know that there is an query not being properly fulfilled and it's giving me back this error.
    Does anybody know the specific reason that this error happens?
    I don't know how to track down where this query is. I'm trying to find the package that it is in.
    Any help would be meet with much thanks.

    I get this error too when trying to display a content area with a single URL element (displaying the CA as a portlet).
    When the URL is set to open in a NEW window no error.
    But if I select the URL item to open inside the folder (CA) I get the error.
    Pls let me know if you find a solution since I would like to have my CA shown ONLY as a portlet and not as a new window....

Maybe you are looking for