Payable open interface-Multiple distribution lines

Hi,
As i know there is no distribution interface table in R12,there are only AP_INVOICES_INTERFACE and AP_INVOICE_LINES_INTERFACE.When i insert one line for one invoice header,it is creating one distribution line.
Now my requirment is i want insert multiple distribution lines for invoice line.
Is it possible?If yes,tell me the way...
Is there any alternative ways?
Thanks
Praveen

Hi Praveen
How are you inserting the records into Interface Table ?
Is it through SQL LOADER or a simple Insert Command from a PL/SQL Block ?
While loading Multiple Distribution Lines for a Invoice Header in AP_INVOICES_LINES_INTERFACE Table we can pass the same HEADER_ID for Multiple Invoice Lines.
Ex
BEGIN
INSERT INTO AP_INVOICES_INTERFACE(INVOICE_ID,INVOICE_NUM)VALUES(100,100);
INSERT INTO AP_INVOICE_LINES_INTERFACE(INVOICE_ID,INVOICE_LINE_ID,LINE_NUMBER)VALUES(100,100,1);
INSERT INTO AP_INVOICE_LINES_INTERFACE(INVOICE_ID,INVOICE_LINE_ID,LINE_NUMBER)VALUES(100,101,2);
COMMIT;
END;
Please do let me know if you face any problems.
Regards
Nakul.V

Similar Messages

  • R12 Payables Open Interface - Invalid Distribution Account

    Hello All,
    I am trying to run the payables open interface request in our R12.1.3 (test) instance. This is for a speicific expense batch. What is happening is in the same batch, some invoices got pulled in. However, a large portion of them got rejected due to 'Invalid distribution account'.
    As such for the rejected invoice, the AP_INVOICE_LINES_INTERFACE has valid ids for DIST_CODE_COMBINATION_ID. However, the DISTRIBUTION_SET_NAME and the DISTRIBUTION_SET_ID are null. But they are null for an invoice that was successfully pulled in the same batch. Don't understand why!!??
    I tried to run it in debug mode for a specific rejectd invoice in the interface/lines. That did not throw much light on what it could be.
    I found a metalink note R12: APXIIMPT: Payables Import Rejecting All PO Invoices With Invalid Distribution Account Rejection Code [ID 1313553.1]...but this cannot be because, first of all some of the invoices made it through in the same batch. Also, other expense batches went through ok. So, I don't think it is a patch issue as outlined in that note.
    Any suggestions as to what it could be?
    Oracle Apps 12.1.3
    DB 11.2.0.0
    Unix IBM AIX (64 bit)
    Thanks,
    Monkey
    Edited by: OAF_Monkey on May 10, 2012 1:16 PM

    For whatever it is worth....
    This is resolved by ledger set up--> Accounting Setups and adding the balancing segments for which the accounts relate to.

  • SRKIM: Payables Open Interface를 통해 distribution의 tax code 를 활성화

    PURPOSE
    Payables Open interface 를 통해 invoice 생성 시 distribution level 의 tax code 활성화 방법에 대해 알아 보도록 한다.
    Explanation
    1. Profile Option 에서 "Tax:Allow Override of Tax Code" 를 Yes 로 지정한다.
    2.     AP_Invoice_Lines_Interface table에 tax_code 를 update 한다.
    3.     AP_Invoice_Lines_Interface table 의 Tax_Code_Override_Flag 를 'Y' 로 update 한다.
    4.     Payables Open interface program 을 수행 한다.
    Example
    N/A
    Reference Documents
    Note. 232955.1 How to Import Tax_Code from AP_INVOICE_LINES_INTERFACE ?

  • Payables Open Interface Import pass distribution set for header?

    Hi all,
    i'm using OEBS 12.1.3. I want to insert data into payables interface tables to create invoice via back-end. Is it possible to pass data for the DISTRIBUTION SET on header level? I searched in the table AP_INVOICES_INTERFACE but no such column founded. I'm able to pass info for the distribution on the line level...
    Any ideas?
    Thanks in advance,
    Bahchevanov.

    The before report trigger error does occur for n number of reasons...some of the solutions could be
    1. Setting up the debug/summarized params to Y or
    2. Two payables open interface import programs running at the same time and due to non-incompatibility setups, one of them is getting errored out. Try setting up incompatibility and this error will go away - the only problem with this approach is that if this program needs to run on frequent basis, then one will wait on other to complete and consume lot of time.
    3. Try to increase threads of concurrent manager under which this program runs for better resouce management.
    4. Check the normal AP side setups such as tax code definition, supplier site 'pay site flag' etc --Although before report error occurs at the place in rdf where these checks are yet not done but thought to share with you if it helps
    Thanks
    Girish

  • R12 Invoice Distributions not in table after Payable Open Interface Program

    Hello,
    I have inserted data in AP_INVOICES_INTERFACE and AP_INVOICE_LINES_INTERFACE and launched Payable Open Interface Program.
    All my invoices has been successfully processed.
    Just after completion of import program, i query an invoice on apps and all the Distribution lines are displayed when i click on "All Distribution" button BUT when i query the table AP_INVOICE_DISTRIBUTIONS_ALL by the invoice_id, no records are displayed.
    Its only when i press the button save on Apps or when i validate the invoice that i can see records in the table AP_INVOICE_DISTRIBUTIONS.
    Please help.. need to know where these lines are stored initially because i need to perform a post-import update on the attributes at INVOICE_DISTRIBUTION level.
    thanks

    I believe that is standard functionality. You can create a request set to run the Invoice Validation Program after your import is successfully done.
    Carl Hammond had posted a similar one before. You can search the forum for that message, otherwise, he probably has the right answer.
    Thanks
    Nagamohan

  • Error in Payables Open Interface Import

    Hi Experts,
    I am loading some Invoices through Payable Interface.
    I have populated data in both the interface table i.e. ap_invoices_interface and ap_invoice_lines_interface.
    when i run Payables Open Interface Import its giving me the below message and the status column in ap_invoice_interface showing 'REJECTED'
    Enter Password:
    REP-0004: Warning: Unable to open user preference file.
    MSG-00000: 0 invoice(s) were created during the process run
    MSG-00000: 6 invoice(s) were fetched during the process run
    MSG-00000: summarize flagN
    MSG-00883: After Repport Trigger: Setting the Org Context to Multiple
    The org_id in both the table are same.
    I dont understand what could be the error. Please help me in find out the solutions.
    Thanks,
    Atul

    What is your application release?
    I am loading some Invoices through Payable Interface.
    I have populated data in both the interface table i.e. ap_invoices_interface and ap_invoice_lines_interface.
    when i run Payables Open Interface Import its giving me the below message and the status column in ap_invoice_interface showing 'REJECTED'
    Enter Password:
    REP-0004: Warning: Unable to open user preference file.
    MSG-00000: 0 invoice(s) were created during the process run
    MSG-00000: 6 invoice(s) were fetched during the process run
    MSG-00000: summarize flagN
    MSG-00883: After Repport Trigger: Setting the Org Context to MultiplePlease see if (R12AP: Interface Does Not Copy The DFF Values From Lines To Distribution. [ID 1457398.1]) helps.
    Thanks,
    Hussein

  • PAYABLE OPEN INTERFACE IN R12 NOT PICKING INTERFACE TABLE DATA ...

    The data is getting loaded into interface tables. But while importing from interface tables to base tables using "Payables Open Interface Import " receiving the log message
    Enter Password:
    MSG-00000: 0 invoice(s) were created during the process run
    MSG-00000: 0 invoice(s) were fetched during the process run
    MSG-00000: summarize flagN
    MSG-00883: After Repport Trigger: Setting the Org Context to Multiple
    The invoices are not getting loaded into base table. Checked table ap_interface_rejections. There is no data present in this table.
    Can some body on this forum help.
    Thank you in advance.
    Thanks and Regards,
    Sreenivas Muppasani
    91-9731068499

    Hi Sreenivas and Raju,
    there are two related documentations available in oracle, first states it could be a Report Cache issue which needs to be cleared, another one was a bug where patch application was suggested .....
    Can you check the references link and confirm that is not the cause ... if not try entering minimal (mandatory) information alone on the interface table and attempt importing ....?
    References:
    APXIIMPT - Payables Open Interface Import In Error [ID 1307261.1]     
    R12AP: Interface Does Not Copy The DFF Values From Lines To Distribution. [ID 1457398.1]     
    Regards,
    Ivruksha

  • 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

  • Payables Open Interface failed-help plz.

    All,
    Version: 11.5.10.2
    The project is about integrating the legacy system with Oracle 11i. i.e we are importing invoices created in 3rd party appln and importing it to Oracle thru Payables Open interface. I'm stuck with 1 use case. i.e invoice against a PO having split accounting.
    scenario 1:
    1. created a PO in Oracle with 1 line having 2 distributions
    2. Against the same PO, invoice is created with for the same line item and imported to Oracle. I populated PO related info in PONumber,POLineNumber and POShipmentNum in the ap_invoice_lines_interface table.
    3. Payables OPen interface worked fine
    scenario 2:
    1. Against the same PO having split, created an invoice for the line item, this time I added a freight on to it.
    2. Concurrent failed(i.e it didnt throw any error to the ap rejections table),
    3. so i populated po_distribution_num to the ITEM line, and ran the concurrent again. It processed the invoice successfully.
    I've following queries:
    1. In the 1st scenario, without populating po_dist_num to the lines table, conc. processed the invoice successfully
    2. In the 2nd, only after populating the po_dist_num, the conc. processed it successfully
    3. In what scenario/test case, does the payables open interface expects po_dist_num?
    Please advise.
    Rgds,
    Sen

    All,
    Version: 11.5.10.2
    The project is about integrating the legacy system with Oracle 11i. i.e we are importing invoices created in 3rd party appln and importing it to Oracle thru Payables Open interface. I'm stuck with 1 use case. i.e invoice against a PO having split accounting.
    scenario 1:
    1. created a PO in Oracle with 1 line having 2 distributions
    2. Against the same PO, invoice is created with for the same line item and imported to Oracle. I populated PO related info in PONumber,POLineNumber and POShipmentNum in the ap_invoice_lines_interface table.
    3. Payables OPen interface worked fine
    scenario 2:
    1. Against the same PO having split, created an invoice for the line item, this time I added a freight on to it.
    2. Concurrent failed(i.e it didnt throw any error to the ap rejections table),
    3. so i populated po_distribution_num to the ITEM line, and ran the concurrent again. It processed the invoice successfully.
    I've following queries:
    1. In the 1st scenario, without populating po_dist_num to the lines table, conc. processed the invoice successfully
    2. In the 2nd, only after populating the po_dist_num, the conc. processed it successfully
    3. In what scenario/test case, does the payables open interface expects po_dist_num?
    Please advise.
    Rgds,
    Sen

  • Payable Open Interface Import---Asset Book name is being generated

    Hi,
    I am working on Payables Open Interface Import in R12.
    I am not generating the 'Track as Asset Flag' and 'Asset Book Type Code' fields in Ap_invoice_lines_nterface table.
    And the distribution account is also an Expense account.
    But after the payables open interface import is completed, the asset book name is being populated in ap_invoice_lines_all table.
    and as a result, recoverable and non recoverable tax lines are being created in the ap_invoice_distributions_all table making the invoice total and line total unequal.
    Did any body faced a similar issue?
    Please help....
    this is really very urgent.
    Any queries, please ask me [email protected]
    Thanks in advance,
    Sharmila

    Hi,
    I have raised a SR with Oracle and got following suggestion:
    === ODM Solution /Action Plan ===
    To implement the solution, please execute the following steps:
    1. Download and review the readme and pre-requisites for Patch.9577089:R12.AP.B.
    2. Ensure that you have taken a backup of your system before applying
    the recommended patch.
    3. Apply the patch in a test environment.
    4. Confirm the following file versions:
    120.67.12010000.27 of apiimutb.pls
    You can use the commands like the following:
    strings -a $XX_TOP/filename |grep '$Header'
    5. Retest the issue.
    6. Migrate the solution as appropriate to other environments.
    Will keep you all posted.
    Regards,
    Sharmila

  • Loading bank accounts with invoices using Payables Open Interface Import

    Dear Gurus,
    We are on 11.5.10.2.
    We create invoices in the 3rd party system, then load them into oracle using payables open interface import process.
    When users create invoices, they choose Vendor and Site first. If the Vendor Site has multiple bank accounts assigned, users may select the one that is non-primary.
    When we load the invoices into Oracle, it finds the PRIMARY account for the particular vendor site, and assigns it to the invoice.
    Is it possible to load bank accounts assigned to invoices into Oracle AP?
    Many Thanks,
    Iana

    Hi,
    No issues for me on Payables Open Invoice Interface with 12.0.6 - and yes make sure you match up the invoice_id on invoice, lines interface tables.
    Regards,
    Gareth

  • PAYABLES OPEN INTERFACE INVOICE IMPORT 시 REQUIRED FIELD 정보

    제품 : FIN_AP
    작성날짜 : 2005-05-10
    PAYABLES OPEN INTERFACE INVOICE IMPORT 시 REQUIRED FIELD 정보
    ==========================================================
    PURPOSE
    AP Open Interface Invoice Import 를 통해 Invoice 를 생성 코자 할 경우 반드시 필요한 Field 에 대한 정보이다.
    Explanation
    1. PO 나 Project 과 Match 하지 않는 Invoice Case
    Table : AP_INVOICE_INTERFACE
    ==============================
    Required Columns
    ================
    -INVOICE_ID : AP_INVOICES_INTERFACE_S.NEXTVAL를 이용하여 생성됨
    -INVOICE_NUM : 특정 Supplier 내에서는 unique 해야함
    -VENDOR_ID/VENDOR_NUM/VENDOR_NAME : Active 하여야 하며 PO_VENDORS과 Mapping
    -VENDOR_SITE_ID/VENDOR_SITE_CODE : Active 한 Site 여야 하며 PO_VENDOR_SITES table과 mapping
    -INVOICE_AMOUNT : 'STANDARD' type인 경우에는 양수, 'CREDIT' type인 경우는 음수를 입력
    -ORG_ID : AP_SYSTEM_PARAMETERS.ORG_ID
    -SOURCE : select lookup_code from ap_lookup_codes where lookup_type='SOURCE' 중 하나
    Table : AP_INVOICE_LINES_INTERFACE
    ==================================
    Required Columns for LINE_TYPE_LOOKUP_CODE = 'ITEM'
    ===================================================
    -INVOICE_ID : AP_INVOICES_INTERFACE.INVOICE_ID
    -INVOICE_LINE_ID : AP_INVOICE_LINES_INTERFACE_S.NEXTVAL
    -LINE_NUMBER : 해당 invoice 내에서 unique 해야함.
    -LINE_TYPE_LOOKUP_CODE :'ITEM'
    -AMOUNT
    -ACCOUNTING_DATE: Optional. Defaulted from INVOICE_DATE or SYSDATE
    - DIST_CODE_CONCATENATED / DIST_CODE_COMBINATION_ID
    : select code_combination_id from gl_code_combinations
    where account_type = 'E' and enabled_flag = 'Y'
    and summary_flag = 'N'
    and sysdate between nvl(start_date_active, sysdate-1)
    and nvl(end_date_active, sysdate+1))
    Required Columns for LINE_TYPE_LOOKUP_CODE = 'TAX'
    ===================================================
    -INVOICE_ID : AP_INVOICES_INTERFACE.INVOICE_ID
    -INVOICE_LINE_ID : AP_INVOICE_LINES_INTERFACE_S.NEXTVAL
    -LINE_NUMBER : 해당 invoice 내에서 unique 해야함.
    -LINE_TYPE_LOOKUP_CODE : 'TAX'
    -TAX_CODE / TAX_CODE_ID : AP_TAX_CODES_ALL table에서 mapping
    -AMOUNT
    -ACCOUNTING_DATE : Optional. Defaulted from INVOICE_DATE or SYSDATE
    -DIST_CODE_CONCATENATED or DIST_CODE_COMBINATION_ID
    : select code_combination_id from gl_code_combinations
    where account_type = 'E' and enabled_flag = 'Y'
    and summary_flag = 'N'
    and sysdate between nvl(start_date_active, sysdate-1)
    and nvl(end_date_active, sysdate+1))
    2. PO Matched Invoice 의 경우                    Table: AP_INVOICE_INTERFACE
    ============================
    Required Columns
    ================
    -INVOICE_ID : AP_INVOICES_INTERFACE_S.NEXTVAL를 이용하여 생성됨
    -INVOICE_NUM : 특정 Supplier 내에서는 unique 해야함
    -PO_NUMBER : approved 된 PO 여야 하며 cancelled, closed 혹은 final closed 된 PO NUMBER 는 안됨. PO_HEADERS Table 과 mapping
    -INVOICE_AMOUNT : 'STANDARD' type인 경우에는 양수, 'CREDIT' type인 경우는 음수를 입력
    -SOURCE : select lookup_code from ap_lookup_codes where lookup_type='SOURCE'
    -ORG_ID : AP_SYSTEM_PARAMETERS_ALL.ORG_ID
    Table: AP_INVOICE_LINES_INTERFACE
    =================================
    Required Columns for PO Matched Lines
    =====================================
    -INVOICE_ID : AP_INVOICES_INTERFACE.INVOICE_ID
    -INVOICE_LINE_ID : AP_INVOICE_LINES_INTERFACE_S.NEXTVAL
    -LINE_NUMBER : 해당 invoice 내에서 unique 해야함.
    -LINE_TYPE_LOOKUP_CODE : 'ITEM'
    -AMOUNT : QUANTITY_INVOICED * UNIT_PRICE
    If MATCH_OPTION is 'P', then populate:
    -RELEASE_NUM or PO_RELEASE_ID : Blanket Release only, validated against PO_RELEASES_ALL
    -PO_NUMBER or PO_HEADER_ID : Validated against PO_HEADER_ALL
    -PO_LINE_NUMBER or PO_LINE_ID : Validated against PO_LINES_ALL
    -PO_SHIPMENT_NUM or PO_LINE_LOCATION_ID : Validated against PO_LINE_LOCATIONS_ALL
    If MATCH_OPTION is 'R', then populate:
    -RECEIPT_NUMBER : RCV_SHIPMENT_HEADERS.RECEIPT_NUM
    -RCV_TRANSACTION_ID or PO_LINE_LOCATION_ID : RCV_TRANSACTIONS과 Mapping
    Example
    Reference Documents
    Note 205331.1

    Chandrasekar,
    as i know, the main thing you should consider is, that starting from R12 you will
    be able to import invoices only through the Payables Open Interface.
    basically, Invoice Import is used by OA to create invoice (from expense reports or from Oracle Projects). for standard invoice import, i've ever used Payables Open Interface.
    Milan
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Chandrasekara Kayamboo ([email protected]):
    I would like to know which is the best way to import invoice and what are the advantages and disadvange in each.
    Regards
    Chandrasekar<HR></BLOCKQUOTE>
    null

  • Facing an Issue with Payables Open Interface Import

    Hi
    I am facing an issue with the Payables Open Interface Import...
    My Requirement is:
    1. Need to upload the PO, Supplier, Invoice #, Invoice Date details to custom table (through web ADi)
    2. From custom table storing in the AP invoice interface tables.
    3. From Interface table, calling API (Payables Open Interface Import) which wil create the invoive (PO matched)
    Now, If user has given wrong data some reasons....Payables Open Interface Import has rejected that entry....user has checked this and corrected later and trying to create the same invoice with the correcte data....As there is a rejected a line exists on the Header interface, line interface...even though if he pass the correct data in the second time it is cosidering that rejected row and not processing the correct row...
    Can any one suggest on this...
    Regards,
    Bala

    When processing a record, you can check if another ap_invoice_interface record exists for the same invoice number and
    1) Delete the old record and then insert a new one
    OR
    2) Update the old record instead of creating a new one
    Hope this helps,
    Sandeep Gandhi

  • Payables Open Interface Import - Tax

    Hi all,
    I'm just trying to understand Payables Open Interface Import. One thing I need to ask is: When we import lines, how actually tax entries can be associated with the line entries ?
    Lets suppose we have following entries:
    Line transaction Amount 1: $ 5,000
    ................ Tax Amount 1: $ 1,000
    Line transaction Amount 2: $ 4,000
    ................. Tax Amount 2: $ 400
    Line transaction Amount 3: $ 6,000
    ................. Tax Amount 3: $ 1,500
    When we will import these entries through open interface, how actually these tax amounts and tax codes will be associated with the relevant line amounts ?
    I shall be ever thankful.
    Thanks in advance,

    Please reply ...

  • Payables Open Interface Import program is not Importing the Invoices

    Hi All,
    We are trying to create new invoices (SUM_DIF) based on the Foreign currency gain/Loss amounts. But payables open interface import program is rejecting all invoices with the rejectionr code as "No Invoice Lines, Atleast one invoice line is required".
    But when we check in the interface tables we have invoices as well as the corresponding lines for those invoices. This issue is happening in 12.0.6
    Any one faced this similar issue earlier? Any help is highly appreciated.
    Thanks,
    Rama Krishna.

    Hi,
    No issues for me on Payables Open Invoice Interface with 12.0.6 - and yes make sure you match up the invoice_id on invoice, lines interface tables.
    Regards,
    Gareth

Maybe you are looking for

  • I could not connect my canon MG5220 to my macbook pro  version Mac OS X Lion 10.7.5.

    i could not connect my canon MG5220 to my macbook pro  version Mac OS X Lion 10.7.5. how could i connect wireless?

  • Scroller with rollovers

    Hi all... Hope you're all ok. Right i have a scroller that i have made with people on it, and when i hover the mouse over the right hand side the scroller moves to the right, and to the left when the mouse rolls over the left hand side. This is cool.

  • Duplicate messages in mulitcast test

    We are doing a multicast test on the multicast IP=224.0.0.115 port=61101. But we are getting some duplicate messages as given in the test output. This is done from host sjh75a01,sjh75a02,sjh75a03,sjh75a04,sjh75a05 sjh75a01 neop04 $ java utils.Multica

  • How do I get rid of "Mail"?  Every time it appears I have to switch to my usual mail server.

    This crops up as the default application whenever I attempt to send Email via a website I'm looking at, and I have to copy the address and paste it into my regular Email server (Charter.net).  Can I just delete the application from my hard drive?

  • Can't change alert time for all day event

    I have an ipad 4, iOS 6.1.3.  When. I set up an all day event and I want to be alerted the day before, the time for the alert is 9am and I can't change it.  I went into the settings to make sure there wasn't a default set, and there wasn't.  Is this