Trigger on AP SUPPLIER SITES ALL

Hi All,
I have created a trigger on po_vendor_sites_all table In R11, When a new supplier site is created, the trigger fired only once and 1 record is inserted in the custom table and when updated, one record updated in the custom table.
In R12 same trigger is created on AP_SUPPLIER_SITES_ALL, but it is behaving like when creating a supplier site, this trigger fires 3 times and we got 3 records (1 insert, 2 /3/4 update records) in the custom table. When update, depending on the fields, 2/3/4 records update in the custom table at the same time. I found that in R12, hz_locations and hz_party_sites are other tables involved in storing supplier site data. So, please, let me know how to handle this situation. I need one record to be inserted into custom table for each update or insert on supplier_sites
Thanks in Advance!!!
Thanks
Venkat Reddy
[email protected]

Duplicate post -- Trigger on AP SUPPLIER SITES ALL

Similar Messages

  • Supplier sites open interface question

    Hi all,
    Here is what we have done:
    We have a data migration program that looks at a csv file and then brings the data into staging table.
    Then, it inserts the above data into 3 open interface tables (AP_SUPPLIERS_INT, AP_SUPPLIER_SITES_INT, AP_SUP_SITE_CONTACT_INT)
    We are using the vendor_interface_id to link the data.
    For ex.
    Supplier 'ABC' in AP_SUPPLIERS_INT would have vendor_interface_id => 2345
    Supplier Sites that belong to above supplier will have:
    vendor_interface_id => 2345 vendor_site_code => 'ABC-SITE-1'
    vendor_interface_id => 2345 vendor_site_code => 'ABC-SITE-2'
    When we ran the Request Set  [Supplier Open Interface Request Set(1)] , the program considered all the records and imported Supplier record and 'ABC-SITE-1'.
    It rejected 'ABC-SITE-2' because of a setup issue.
    Now, after we fixed the setup issue, we ran the request set again, it rejected the Supplier record saying "Vendor already exists " => No problems with this.
    But, it doesn't attempt to pick the second site 'ABC-SITE-2' which is now good to be picked, because it doesn't update the vendor_id, it stays as an orphan record.
    Is there any way to work this around (preferably from the application)?
    Thanks
    Vinod

    Hi user567944 ,
    While submitting to the Open interface. the import options parameter should be All or Rejected. Please check this.
    Regards/Prasanth

  • ISSUE WITH SUPPLIER SITE OPEN INTERFACE IMPORT PROGRAM in R12

    I am facing issue while submitting supplier site open interface import program programmatically using fnd_request.
    I am uploading the interface tables with the mandatory data and running the standard Request Set for Suppliers.The program is creating the Suppliers but is unable to create the Supplier Sites.It is getting completed with no rejections as well as imported records.
    It is updating the Supplier Sites Interface table (ap_supplier_sites_int ) with status as rejected with no rejected records in ap_supplier_int_rejections table.
    I am using the following code.
    Step 1 - call set_request_set
    apps.fnd_file.put_line (apps.fnd_file.LOG, 'Calling set_request_set...');
    success := fnd_submit.set_request_set ('SQLAP', 'FNDRSSUB852');--'FNDRSSUB1703');
    IF (NOT success)
    THEN
    RAISE srs_failed;
    ELSE
    apps.fnd_file.put_line (apps.fnd_file.LOG,
    'Calling submit program first time...'
    END IF;
    -- Step 2 - call submit program for each program in the set
    success :=
    fnd_submit.submit_program ('SQLAP',
    'APXSUIMP',
    'STAGE10',
    'ALL',
    1000,
    'N',
    'N',
    'N',
    CHR (0)
    IF (NOT success)
    THEN
    RAISE submitprog_failed;
    END IF;
    apps.fnd_file.put_line (apps.fnd_file.LOG,
    'Calling submit program second time...'
    success :=
    fnd_submit.submit_program ('SQLAP',
    'APXSSIMP',
    'STAGE20',
    'ALL',
    1000,
    'N',
    'N',
    'N',
    CHR (0)
    IF (NOT success)
    THEN
    RAISE submitprog_failed;
    END IF;
    -- Step 3 - call submit_set
    apps.fnd_file.put_line (apps.fnd_file.LOG, 'Calling submit_set...');
    req_id := fnd_submit.submit_set (NULL, TRUE);
    IF (req_id = 0)
    THEN
    RAISE submitset_failed;
    END IF;
    apps.fnd_file.put_line (apps.fnd_file.LOG, 'Finished.');
    And in the interface table the record status is rejected and ther is no corresponding record in ap_supplier_int_rejections.
    but the supplier is getting created succesfully.
    ### Steps to Reproduce ###
    INSERT INTO ap_suppliers_int
    (exclusive_payment_flag,
    vendor_interface_id,
    vendor_name,
    segment1,
    vendor_type_lookup_code,-- set_of_books_id,
    status
    VALUES ('N', --'N',
    ap_suppliers_int_s.NEXTVAL,
    'TEST_REC4',
    4428813,
    'VENDOR', --2041,
    --rec_spl_site_bank_hdr.set_of_books_id,
    'NEW'
    INSERT INTO ap_supplier_sites_int
    (vendor_site_interface_id,
    vendor_interface_id,
    vendor_site_code,
    address_line1,
    city,
    state,
    zip,
    country,
    operating_unit_name,
    status --exclusive_payment_flag
    VALUES (ap_supplier_sites_int_s.NEXTVAL,
    -- VENDOR_SITES_INTERFACE_ID
    ap_suppliers_int_s.CURRVAL,
    -- VENDOR_INTERFACE_ID
    'REC_VDR_SITE4',
    -- VENDOR_SITE_CODE
    'REC_ADDR4',
    -- ADDRESS_LINE1,
    'REC_CITY4', --CITY
    'REC_STATE4', --STATE
    3442121,
    'US', -- COUNTRY,
    ' Test US Operating Unit',
    'NEW'
    );

    Hi
    I have the same issue with ap supplier sites interface program .. Did your problem got solved..I will be thankfull for any help
    Thanks

  • Supplier Sites open interface

    Hi,
    I got a problem in Supplier Sites open interface in 12,After importing it to Interface we are running concurrent program Supplier Sites open interface in this it was not picking the records, in the output file it was showing , Zero records imported and zero records rejected. But in the interface table the status is 'REJECTED' and the Reject_code is null.
    Can any one help me why this records are not picking into base.

    Hi user567944 ,
    While submitting to the Open interface. the import options parameter should be All or Rejected. Please check this.
    Regards/Prasanth

  • Supplier Sites Interface errors out -- URGENT!! please help.

    Hi All,
    The log file has the following message when executing the supplier sites interface import program that errored out:
    REP-1419: 'beforereport': PL/SQL program aborted.
    I have searched Metalink where they said the Batch Size should be 1000 by default. I did the same but still did not work.
    I have made sure that teh vendor_id, vendor_site_code, org_id combination is unique.
    I am not sure why I am getting this record. I have to process around 300000 records. When I ran the import progam the first time, it errored out after processing 171000 records. Then when I ran the program again for new records(that were not imported) it errored out after processing 42000 records. I dod not know how to resolve this issue.
    Please help!!
    Swati

    Please check if the following notes are applicable to the issue:
    Note: 369443.1 - Supplier Sites Open Interface Import Errs With Rep-1419 Rep-1419
    https://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=369443.1
    Note: 369913.1 - Supplier Open Interface Import (APXSUIMP) Errors: Rep-1419
    https://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=369913.1

  • How to update Supplier and Supplier Sites through interface tables

    Hi All,
    Working on EBS Version 11.5.10.2
    I have a requirement to update flags in Supplier and Supplier Sites.
    Interface Tables : ap_suppliers_int
    ap_supplier_sites_in
    1. ap_suppliers_int :
    Field name : hold_unmatched_invoices_flag
    2. ap_supplier_sites_in :
    Field name : hold_unmatched_invoices_flag
    The Flags to update in base tables
    1.base table name : po_vendors
    Field to Update : hold_unmatched_invoices_flag
    2. base table name : po_vendor_sites_all
    Field to Update : hold_unmatched_invoices_flag
    Please let me know is there any API for updates.
    Thanks and Regards

    Please see these links.
    https://forums.oracle.com/forums/search.jspa?threadID=&q=ap_supplier_sites_in+AND+API&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
    https://forums.oracle.com/forums/search.jspa?threadID=&q=po_vendors+AND+API&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
    https://forums.oracle.com/forums/search.jspa?threadID=&q=po_vendor_sites_all+AND+API&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
    https://forums.oracle.com/forums/search.jspa?threadID=&q=hold_unmatched_invoices_flag+AND+API&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
    Thanks,
    Hussein

  • Issue with Supplier site descriptive flex field upgrade from 11i to R12

    We ran into some issue when upgrade Supplier site descriptive flex field from 11i to R12.
    In 11i. we defined descriptive field on JG_PO_VENDOR_SITES. in the segment definition, we defined one of the attributes default value based on Form Field Value, and the statement is like this:
    SELECT decode(:SITE.COUNTRY,'IT','AP ITALIAN TRANSACTIONS','AP AUTOFATTURA') FROM dual
    All above worked fine in 11i, whenever the flexfield field is open in forms, the default valuse shows based on the real-time value in :SITE.COUNTRY.
    In R12, Supplier site management is in HTML format. There is no forms, which means no form value. Do you have an alternative soluction for implement the same logic in R12?
    Thank you and regards,
    Kate
    Edited by: user12100435 on Feb 12, 2013 9:06 AM

    Kate,
    Have you logged a SR and see if Oracle support can help?
    Thanks,
    Hussein

  • Report to find the retainage amount per each supplier site

    Hi All
    Is there a report to find the retainage amount per each supplier site ?
    Regards;

    Hi.
    The Withholding Tax by Supplier Report shows both supplier and site.
    Octavio

  • Need help finding the default payment method for supplier site in R12

    I am using the following query to find out what the default payment method is for a supplier site.
    select pv.vendor_id ,
    pvs.vendor_site_id,
    iepa.ext_payee_id,
    ieppm.payment_method_code
    from ap_supplier_sites_all pvs
    ,ap_suppliers pv
    ,iby_external_payees_all iepa
    ,iby_ext_party_pmt_mthds ieppm
    where pv.pay_group_lookup_code = 'EMPLOYEE'
    and pv.vendor_type_lookup_code = 'EMPLOYEE'
    and pv.employee_id is not null
    and pv.employee_id =92584--p_person_id
    and pv.vendor_id= pvs.vendor_id
    and pvs.vendor_site_code = 'HOME'
    and pvs.pay_group_lookup_code <> 'ATTACHMENT'
    and ((pv.end_date_active is null) or (pv.end_date_active >= sysdate))
    and ((pvs.inactive_date is null) or (pvs.inactive_date>= sysdate))
    and pvs.pay_site_flag = 'Y'
    and pvs.vendor_site_id = iepa.supplier_site_id
    and iepa.ext_payee_id = ieppm.ext_pmt_party_id
    and ieppm.primary_flag = 'Y'
    and pv.segment1 = '131678'
    The problem is that I am returning two rows.
    I have gone in to the application and changed the default payment method from 'Check' to 'Electronic' and I am able to see the change on one of the records, however I am unable to determine how I'm supposed to narrow it down to just this record. I am pulling what hair I have left out!
    Please help.
    Chris

    Here is the generic query for some one who is faing problem like us.This query will return all the payment methods for all sites of a supplier
    SELECT ieppm.payment_method_code,ieppm.inactive_date
    FROM ap_supplier_sites_all assa,
    ap_suppliers ass,
    iby_external_payees_all iepa,
    iby_ext_party_pmt_mthds ieppm
    WHERE ass.vendor_id = assa.vendor_id
    AND assa.pay_site_flag = 'Y'
    AND assa.vendor_site_id = iepa.supplier_site_id
    AND iepa.ext_payee_id = ieppm.ext_pmt_party_id
    AND ass.segment1 = '10033' -- Supplier Number
    AND( (ieppm.inactive_date IS NULL)or (ieppm.inactive_date > sysdate)) ;

  • How to track the history of supplier sites used for tax reporting (1099)

    Hi,
    Oracle financials doesn't allow two supplier sites setup as tax reportable sites (Unless one is inactive). Suppose if the supplier uses site1 for the year 2009 and site 2 for 2010 and now there is site3 setup as tax reportable. All three sites were setup in 2009 and all three sites are active. Supplier chosen different sites for each year as their tax reportable site.
    How do we know which site oracle used to send 1099 for 2009 & 2010? How to track the history of supplier sites used for tax reporting (1099) in previous years?
    Thanks in advance.
    Regards,
    Ram

    Would the begin_date, end_date and status columns on HZ_PARTY_SITES_USES be any good? Our R12 installations is too new to have accumulated much data yet, but I would look in those columns first.

  • Supplier site table issue

    We imported our supplier sites. It all went well. Then we had a problem and had to change the ORG_ID in SUPPLIER_SITES_ALL. After we did that we could no longer use those sites. My question is, is there another field/table that we need to update to make this change? We have moved forward to far to re-load these.
    We are on 12.0.6

    Welcome to the forums !
    >
    had to change the ORG_ID in SUPPLIER_SITES_ALL
    >
    Pl explain how you made this change. Using custom sql scripts that update base tables directly is not supported and will cause data corruption.
    HTH
    Srini

  • Supplier Site Update API Issue

    Hi all,
    i am currently using AP_VENDOR_SITES_PKG.Update_Row API to update supplier site information.API is able to update few vendor sites but not able to update few vendor sites.
    Please advise if any other API can be used or if some changes need to be done with AP_VENDOR_SITES_PKG.Update_Row API.
    Thanks.

    Please refer this Metalink hit :
    https://metalink2.oracle.com/metalink/plsql/f?p=200:27:8536114700335358888::::p27_id,p27_show_header,p27_show_help:730817.992,1,1
    As per the above link, the packages: AP_VENDORS_PKG and AP_VENDOR_SITES_PKG are NOT API's - They are for the forms applications.
    Regards,
    S.P DASH

  • Batch Payment for Cross supplier sites

    Hi All,
    I need to make a payment for a different supplier site than the invoice site.(Same supplier but different sites)
    e.g- Invoice was enterd to the site X and payment is going to be made for the site Y.
    Is this possible in Batch payments in 11.5.10.2
    Regards,
    MPH
    Edited by: user11337190 on Jul 15, 2010 2:59 AM

    The above functionality is not possible.
    A payment can only be made for the supplier, supplier site as available in the invoice.
    Hope this helps.
    Thanks
    Manish Jain.

  • Receivables question: AR invoices/credit memos between Supplier Sites

    I'm trying to solution a client requirement of having the ability to transfer AR invoices/credit memos between supplier sites of the same supplier. Is this possible or is there a comparable workaround available in Receivables R12?
    Thanks,
    Chris

    Chris,
    are you sure ... AR Invoices/Credit Memos to Suppliers ???  Looks like a typo error some where ... However, we might not be able to transfer transactions from one site to another (be it supplier or customer), what we can do is merge ....in which case all transactions that are appearing against a particular site would be pushed to the new site ......this could be taken as a workaround ...
    Merge functionality comes with very less flexbility, you cannot choose the transactions that you wanted to merge ....
    Regards,
    Ivruksha

  • R12 Updating Supplier Site Payment Detail Email

    Hi All,
    When I update supplier site email adrress from Payment Details > Separate Remittance Advce Deliver tab, I can't see that it is getting updated in WF_LOCAL_ROLES table. ( after synchronization ). This causes remittance advice sent to wrong email address when the work flow is running.
    Can some one please check and let me know how should we enable it? Or Is it working in R12 as I have explained above. (modifying payment details email address and seeing it in wf_local_roles table ) ?
    Thank You,
    sandaruwan.

    Pl see if MOS Doc 458418.1 (Where Is The Supplier Notification Method In Release 12.0?) can help
    HTH
    Srini

Maybe you are looking for

  • CD burn "not authorized"

    Today I purchased a new album from iTunes, but when I tried to burn it onto a CD I got the message "(song title).M4P was not authorized for digital export. I have had no problems burning in the past. I am using Version 7.7.1. Any solutions out there?

  • UPDATE and BACK GROUND TASK

    What is the diffarence between call function in back ground task and call function in update task?  Can we do the same functionality by using any one of the above function?

  • Classpath problem with 1.3.1_05

    We are using a CM tool that uses a link based work area. When the links contain the pound sign, the JVM suddenly fails to find classes. myjar.jar -> /usr/local/ccmdb/Prod/st_root/cache/source/#07/13407 CLASSPATH=myjar.jar java aclass -> this will res

  • Releasing problem in workflow

    Hi All, I am facing the problem in the releasing of the document in the workflow.. First step i am using the parked document and save as complete, which is working fine. But problem is next step i am using the RELEASE method of the FIPP BO.. but i am

  • Non-controllable Capture Problem

    Yesterday I captured via a Sony media converter, on the non-controllable device mode and didn't have any problems. In fact I've been doing that for years. I captured via firewire last night, when I opened up FCP to capture from a non-controllable dev