Alternate supplier site

what is the advantage of using alternate supplier site name in a business prospective?
1. When i create a supplier in release 12 the address site become the "site" and in manage site i give the alternate supplier site.
2. When i create the PO for this supplier the site is automatically populated and the alternate supplier site is not coming?
3.when i create the invoice i dont see the supplier alternate site?
4. when i even make payments i dont see the supplier alternate site?

Hi
When you say alternate site, do you mean that you have created a second site for the supplier.
If this is correct, have you enabled the the following settings at the second site so that it becomes available at the PO, Invoice and Payments level.
For the second site enabled as the following checkboxes:
a) Pay
b) Purchasing
This checkboxes ensures that for the second site you are allowed to create a PO, Create an invoice and also at the same make a payment.
Hope this helps.
Thanks
Manish Jain.

Similar Messages

  • SUPPLIER SITES OPEN INTERFACE rejected

    hi,
    i'm working on importing supplier sites on Oracle EBS R12. i have inserted a supplier 'ap_suppliers_int' and was successfully imported after i run "supplier open interface import". However, now when i'm trying to import a site for the same supplier 'ap_supplier_sites_int', the status within the ap_supplier_sites_int is show Rejected after i run the supplier sites open interface import, also the output of that request shows Zero imported and Rejected data. below is the insert sql i used for Supplier Sites:
    INSERT into ap_supplier_sites_int
    (status,
    vendor_site_interface_id,
    vendor_interface_id,
    vendor_site_code,
    state,
    shipping_control,
    vendor_id,
    address_line1,
    org_id,
    creation_date)
    values
    ('NEW',
    102,
    101,
    'doan',
    'Hadramout',
    'Supplier',
    111,
    'bewaish int',
    204,
    sysdate)
    when i select * from ap_supplier_int_rejections , the Reject_lookup_code = AP_ORG_INFO_NULL
    i have no clue why its rejected? please help me solve this issue.
    Thanks
    Yaser

    Yaser,
    Plz see *R12: Overview: AP_SUPPLIER_SITES_INT Interface Table: Description Of The Required Columns [ID 1381427.1]* , can helps
    Regards
    Muhammad Ayaz

  • 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

  • Supplier site open interface

    Hi,
    I am working on supplier site open interface. I succesfully loaded data into 'ap_supplier_sites_int' interface table. After submitting supplier site open interface program, it's giving '*Operating Unit Info is null*' error. But, i have operating unit for corresponding supplier site.
    Data in 'ap_supplier_sites_int' : (Just providing important columns)
    vendor_name operating_unit country address1 address2 city state org_id
    INTELLI Vision Operatins America 5 INDEPENDENCE WAY Suite 200 Princeton NJ 204
    Verizon Vision Operatins America PO BOX 1100 null null NY 204
    Verizon Vision Operatins America PO BOX 15124 null null NY 204
    Verizon Vision Operatins America PO BOX 4648 null null NJ 204
    Is there any link between operating unit, city and country.
    Kindly help me. Thanks in advance.

    I don't see anything in your question specific to BI Publisher.
    Is this better targeted for the E-Business Suite forum?

  • 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 Site Contacts Open Interface Import Program is erroring out.

    Hi,
    We are on 12.0.4 on solaris 10.
    Tomorrow is go-live in one of our client, When we doing data migration. Uploaded the data into Interface table. From there we are running this standard program to push th edata into standard table.
    Its erroring out saying:
    ================
    Enter Password:
    REP-0069: Internal error
    REP-57054: In-process job terminated:Terminated with error:
    REP-300: unable to extend temp segment by 128 in tablespace TEMP2
    ==> SELECT INT.org_id C_Rejected_Org_Id,
    ===============
    I have added 2 GB of Tempfile to the tablespace even though it is erroring in the same. And it is taking too much time to give error.
    We are tried with only one record also it is taking 1 hr to give the error.
    Please help me out in resolving the same.
    Many thanks in Advance..
    Supplier Site Contacts Open Interface Import

    I believe you hit Bug# 6624764, so you may need to apply (Patch 6624764 - SUPPLIER REPORT ERROS WITH ENTER PASSWORD: REP-0069: INTERNAL ERROR REP-57054).
    Please log a SR to confirm this with Oracle Support.
    Note: 565898.1 - Oracle Financials Software Updates, Release Update Pack 5
    https://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=565898.1

  • 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

  • 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

  • Unable to get the row count of supplier site for each supplier

    Hi,
    In the sourcing module, suppliers page is having an advanced table in which there is a field 'supplier' and another filed 'supplier sites' (supplier field is of type picklist).Now, how can i get the count of 'supplier sites' for each supplier???

    Hi sumit,
    Thanks for the reply, can u please help in writing the code to loop through the VO...
    I was trying to get the first row and then finding the count of supplier sites, but in each iteration of for loop(for each row) i am getting the same count value for each and every row...
    Code :
    int j=vo.getrowcount();//count of no. of rows
    for (int i=0;i<j;i++)
    row=(xxVORowImpl)rowsetiterator.getRowAtRangeIndex(1);
    int a=am.getSupplierSitesVO.getRowCount();//this is the view object in the pick list
    oapagecontext.writeDiagnostics(this,"value of   a is :"+a,1);
    this code is giving row count of last row of supplier.
    How to get the count for each and every row of supplier sites ?
    Thanks.

  • R12 API for Payment Method Update at supplier site

    Hi
    I am using api AP_VENDOR_PUB_PKG.Update_Vendor_Site to update the Payment Method at Supplier Site level. The below code executes with no error but dont update the payment method. The requirement is to update the payment method to SEPA
    Code :
    DECLARE
    v_error_reason VARCHAR2 (2000) := NULL;
    v_msg_data VARCHAR2 (1000) := NULL;
    v_msg_count NUMBER := NULL;
    v_return_status VARCHAR2 (100) := NULL;
    v_vensite_rec_type      AP_VENDOR_PUB_PKG.r_vendor_site_rec_type;
    ext_payee_rec           IBY_DISBURSEMENT_SETUP_PUB.EXTERNAL_PAYEE_REC_TYPE;
    BEGIN
    DBMS_OUTPUT.put_line ('BEFORE apps initialization');
    --Fnd_Global.apps_initialize(-1,20639,200);
    fnd_global.apps_initialize(730908,141200,401);
    --DBMS_OUTPUT.put_line ('AFTER apps initialization');
    v_error_reason := NULL;
    v_return_status := NULL;
    v_msg_count := NULL;
    v_msg_data := NULL;
    --ext_payee_rec.default_pmt_method := 'SEPA';
    v_vensite_rec_type.org_id := 2796;
    v_vensite_rec_type.vendor_site_code := '0653-01NEUSS';
    v_vensite_rec_type.ext_payee_rec.default_pmt_method := 'SEPA';
    --v_vensite_rec_type.ext_payee_rec.default_pmt_method:= 'CHECK';
    DBMS_OUTPUT.put_line ('BEFORE remittance API');
    AP_VENDOR_PUB_PKG.Update_Vendor_Site
    ( p_api_version => 1.0,
    p_init_msg_list => FND_API.G_FALSE,
    p_commit => FND_API.G_FALSE,
    p_validation_level => FND_API.G_VALID_LEVEL_FULL,
    x_return_status =>v_return_status ,
    x_msg_count => v_msg_count,
    x_msg_data => v_msg_data,
    p_vendor_site_rec =>v_vensite_rec_type,
    p_vendor_site_id => '393130'
    commit;
    DBMS_OUTPUT.put_line ('AFTER pymt mtd API');
    DBMS_OUTPUT.put_line (v_return_status);
    DBMS_OUTPUT.put_line (v_msg_count);
    DBMS_OUTPUT.put_line (v_msg_data);
    IF v_return_status = fnd_api.g_ret_sts_success THEN
         IF v_msg_count >= 1 THEN
    FOR i IN 1 .. v_msg_count
    LOOP
    IF v_error_reason IS NULL THEN
    v_error_reason := SUBSTR (fnd_msg_pub.get (p_encoded => fnd_api.g_false), 1, 255);
    ELSE
    v_error_reason := v_error_reason|| ' ,'|| SUBSTR (fnd_msg_pub.get (p_encoded => fnd_api.g_false), 1, 255);
    END IF;
    DBMS_OUTPUT.put_line ('VENDOR_remittance email UPDATE API ERROR-' || v_error_reason);
    END LOOP;
    END IF;
    ROLLBACK;
    ELSE
    DBMS_OUTPUT.put_line ('The updateion is sucessful');
    COMMIT;
    END IF;
    EXCEPTION
    WHEN OTHERS THEN
    DBMS_OUTPUT.put_line (SQLERRM || '-' || SQLCODE);
    END;
    the fnd_api.g_ret_sts_success returns value as 'U' . Means it did not completed successfully
    Do I need to user following API ?
    IBY_DISBURSEMENT_SETUP_PUB.Update_External_Payee instead of above API?
    Thanks for help
    Best Regards
    Nikhilesh
    Edited by: user10238025 on Apr 26, 2013 5:38 AM

    Hi Irfan,
    thanks for reply.
    we are on application version 12.1.1 .
    But i have one doubt here, if we update directly ap_supplier_sites_all table, it won't impact on TCA tables know?
    Thanks.
    Edited by: user627525 on Jul 27, 2010 12:16 AM

  • Bank Account at Supplier Site Level in R12

    Hi,
    I have a requirement to create bank account at supplier site level. This is part of the conversion.
    I have been testing with the below code
    DECLARE
    l_extbank_rec iby_ext_bankacct_pub.extbankacct_rec_type;
    l_vendor_site_id NUMBER (10) := 704;
    l_party_site_id NUMBER (10) := 42458;
    p_org_id NUMBER (10) := 11665;
    l_account_id NUMBER (10);
    l_return_status VARCHAR2 (2000);
    l_msg_count NUMBER (5);
    l_msg_data VARCHAR2 (2000);
    l_response iby_fndcpt_common_pub.result_rec_type;
    BEGIN
    --l_extbank_rec.  bank_account_id   :=    ;
    l_extbank_rec.country_code := 'US';
    l_extbank_rec.branch_id := 284238;
    l_extbank_rec.bank_id := 284236;
    --l_extbank_rec.  acct_owner_party_id           :=    ;
    l_extbank_rec.bank_account_name := 'TEST_ACCT';
    l_extbank_rec.bank_account_num := 976431;
    l_extbank_rec.currency := 'USD';
    --l_extbank_rec.  iban                          :=    ;
    --l_extbank_rec.  check_digits                  :=    ;
    --l_extbank_rec.  multi_currency_allowed_flag   :=    ;
    --l_extbank_rec.  alternate_acct_name              :=    ;
    --l_extbank_rec.  short_acct_name               :=    ;
    l_extbank_rec.acct_type := 'Current';
    --l_extbank_rec.  acct_suffix                      :=    ;
    --l_extbank_rec.  description                      :=    ;
    --l_extbank_rec.  agency_location_code          :=    ;
    ----l_extbank_rec. foreign_payment_use_flag := ;
    --l_extbank_rec.  exchange_rate_agreement_num   :=    ;
    --l_extbank_rec.  exchange_rate_agreement_type  :=    ;
    --l_extbank_rec.  exchange_rate                    :=    ;
    --l_extbank_rec.  payment_factor_flag              :=    ;
    --l_extbank_rec.  status                        :=    ;
    -- l_extbank_rec.end_date := '27-AUG-2011';
    l_extbank_rec.start_date := SYSDATE;
    iby_ext_bankacct_pub.create_ext_bank_acct
    (p_api_version => 1.0,
    p_init_msg_list => fnd_api.g_true,
    p_ext_bank_acct_rec => l_extbank_rec,
    p_association_level => 'SS',
    p_supplier_site_id => l_vendor_site_id,
    p_party_site_id => l_party_site_id,
    p_org_id => p_org_id,
    p_org_type => 'OPERATING_UNIT',
    x_acct_id => l_account_id,
    x_return_status => l_return_status,
    x_msg_count => l_msg_count,
    x_msg_data => l_msg_data,
    x_response => l_response
    COMMIT;
    DBMS_OUTPUT.put_line ('x_return_status = ' || l_return_status);
    DBMS_OUTPUT.put_line ('x_msg_count = ' || l_msg_count);
    DBMS_OUTPUT.put_line ('x_msg_data = ' || l_msg_data);
    DBMS_OUTPUT.put_line ('x_acct_id = ' || l_account_id);
    DBMS_OUTPUT.put_line ('Error = ' || SQLERRM);
    END;
    ===========================
    Result:
    x_return_status =
    x_msg_count =
    x_msg_data =
    x_acct_id =741
    Error = ORA-0000: normal, successful completion
    ===========================
    Your response is much appreciated.
    Thanks,
    Srini

    Have you initialized the environment before calling the API?
    You can do this by
    fnd_global.apps_initialize(&user_id,&responsibility_id,&application_id>);
    mo_global.init('SQLAP'); -- Required for R12

  • Unable to update the VAT_CODE column through supplier sites API

    Hi,
    I'm unable to update the vat code column of the ap_supplier_sites_all table using the ap_vendor_pub_pkg.update_vendor_site API.Oracle application instance 12.1.3 and OS linux.Please find the code below.I'm able to update other feilds,but not the vat_code.Please help on this.
    Thanks,
    Abhilash
    CREATE OR REPLACE PACKAGE BODY APPS.xx_wo172304_test
    AS
    PROCEDURE xx_vat_wo172304 (
    errbuf OUT VARCHAR2
    , retcode OUT VARCHAR2
    IS
    CURSOR cur_vat
    IS
    SELECT site.*
    FROM apps.ap_suppliers supp, apps.ap_supplier_sites_all site
    WHERE site.vat_code IN
    ('CZ OEUS 20', 'CZ OEUZ 20', 'CZ OJCD 20', 'CZ OT20', 'CZ-20-EDC', 'OEUS20', 'OEUZ20', 'OPP20E'
    , 'OS20', 'OT20')
    AND supp.vendor_id = site.vendor_id
    AND site.org_id IN (608, 1508, 2396, 2397)
    AND site.vendor_site_id =68154;
    l_vendor_site_rec ap_vendor_pub_pkg.r_vendor_site_rec_type;
    l_vat_code ap_supplier_sites_all.VAT_CODE%TYPE;
    l_vendor_site_id ap_supplier_sites_all.vendor_site_id%TYPE;
    x_return_status VARCHAR2 (100) := NULL;
    x_msg_data VARCHAR2 (1000) := NULL;
    x_msg_count NUMBER := NULL;
    l_error_reason VARCHAR2 (2000) := NULL;
    l_user_id           number := FND_GLOBAL.USER_ID;
    l_last_update_login           number := FND_GLOBAL.LOGIN_ID;
    l_program_application_id           number := FND_GLOBAL.prog_appl_id;
    l_program_id           number := FND_GLOBAL.conc_program_id;
    l_request_id           number := FND_GLOBAL.conc_request_id;
    BEGIN
    -- mo_global.init ('SQLAP');
    FOR rec_vat IN cur_vat LOOP
    IF rec_vat.org_id = 608 THEN
    IF rec_vat.vat_code = 'OEUS20' THEN
    l_vendor_site_rec.vat_code := 'CZ OEUS21';
    ELSIF rec_vat.vat_code = 'OEUZ20' THEN
    l_vendor_site_rec.vat_code := 'CZ OEUZ21';
    ELSIF rec_vat.vat_code = 'OPP20E' THEN
    l_vendor_site_rec.vat_code := 'CZ OPP21E';
    ELSIF rec_vat.vat_code = 'OS20' THEN
    l_vendor_site_rec.vat_code := 'CZ OS21';
    ELSIF rec_vat.vat_code = 'OT20' THEN
    l_vendor_site_rec.vat_code := 'CZ OS21';
    END IF;
    ELSIF rec_vat.org_id = 1508 THEN
    IF rec_vat.vat_code = 'CZ OJCD 20' THEN
    l_vendor_site_rec.vat_code := 'CZ OJCD21';
    ELSIF rec_vat.vat_code = 'CZ OEUS 20' THEN
    l_vendor_site_rec.vat_code := 'CZ OEUS21';
    ELSIF rec_vat.vat_code = 'CZ OEUZ 20' THEN
    l_vendor_site_rec.vat_code := 'CZ OEUZ21';
    ELSIF rec_vat.vat_code = 'CZ OT20' THEN
    l_vendor_site_rec.vat_code := 'CZ OT21';
    END IF;
    ELSIF rec_vat.org_id = 2396 THEN
    IF rec_vat.vat_code = 'CZ OEUZ 20' THEN
    l_vendor_site_rec.vat_code := 'CZ OEUZ 21';
    ELSIF rec_vat.vat_code = 'CZ OJCD 20' THEN
    l_vendor_site_rec.vat_code := 'CZ OJCD 21';
    ELSIF rec_vat.vat_code = 'CZ OT20' THEN
    l_vendor_site_rec.vat_code := 'CZ OT21';
    ELSIF rec_vat.vat_code = 'CZ-20-EDC' THEN
    l_vendor_site_rec.vat_code := 'CZ-21-EDC';
    END IF;
    ELSIF rec_vat.org_id = 2397 THEN
    IF rec_vat.vat_code = 'CZ OEUS 20' THEN
    l_vendor_site_rec.vat_code := 'CZ OEUS 21';
    ELSIF rec_vat.vat_code = 'CZ OEUZ 20' THEN
    l_vendor_site_rec.vat_code := 'CZ OEUZ 21';
    ELSIF rec_vat.vat_code = 'CZ OJCD 20' THEN
    l_vendor_site_rec.vat_code := 'CZ OJCD 21';
    ELSIF rec_vat.vat_code = 'CZ OT20' THEN
    l_vendor_site_rec.vat_code := 'CZ OT21';
    ELSIF rec_vat.vat_code = 'CZ-20-EDC' THEN
    l_vendor_site_rec.vat_code := 'CZ-21-EDC';
    END IF;
    END IF;
    l_vendor_site_id := rec_vat.vendor_site_id;
    l_vendor_site_rec.org_id := rec_vat.org_id;
    l_vendor_site_rec.vendor_id := rec_vat.vendor_id;
    --l_vendor_site_rec.vendor_site_code:='318581-MOR. KRU';
    l_vendor_site_rec.rfq_only_site_flag := 'Y';
    -- l_vendor_site_rec.last_update_date := SYSDATE;
    l_vendor_site_rec.last_updated_by := 1134;   MARTIN.ROUNDS
    -- DBMS_OUTPUT.put_line ('VAT CODE:' || l_vendor_site_rec.vat_code);
    --DBMS_OUTPUT.put_line ('Vendor Site Id:' || l_vendor_site_id);
    fnd_file.put_line (fnd_file.LOG
    , 'VAT CODE:' || l_vendor_site_rec.vat_code
    fnd_file.put_line (fnd_file.LOG
    , 'Vendor ID:' || rec_vat.vendor_id
    fnd_file.put_line (fnd_file.LOG
    , 'Vendor Site Id:' || l_vendor_site_id
    fnd_file.put_line (fnd_file.LOG
    , 'RFQ ONLY SITE FLAG:' || l_vendor_site_rec.rfq_only_site_flag
    ap_vendor_pub_pkg.update_vendor_site (p_api_version => 1
    , x_return_status => x_return_status
    , x_msg_count => x_msg_count
    , x_msg_data => x_msg_data
    , p_vendor_site_rec => l_vendor_site_rec
    , p_vendor_site_id => l_vendor_site_id
    ); --p_calling_prog     IN  VARCHAR2 DEFAULT 'NOT ISETUP'
    -- pos_vendor_pub_pkg.update_vendor_site (p_vendor_site_rec => l_vendor_site_rec
    -- , x_return_status => x_return_status
    -- , x_msg_count => x_msg_count
    -- , x_msg_data => x_msg_data
    --     ap_vendor_sites_pkg.update_row(
    --          p_vendor_site_rec => l_vendor_site_rec,
    --          p_last_update_date => sysdate,
    --          p_last_updated_by => l_user_id,
    --          p_last_update_login => l_last_update_login,
    --          p_request_id => l_request_id ,
    --          p_program_application_id => l_program_application_id,
    --          p_program_id => l_program_id,
    --          p_program_update_date => sysdate,
    --          p_vendor_site_id => l_vendor_site_id);
    fnd_file.put_line (fnd_file.LOG
    , 'Return Status:' || x_return_status
    IF x_return_status <> fnd_api.g_ret_sts_success THEN
    IF x_msg_count >= 1 THEN
    FOR i IN 1 .. x_msg_count LOOP
    IF l_error_reason IS NULL THEN
    l_error_reason :=
    l_error_reason
    || ','
    || SUBSTR (fnd_msg_pub.get (p_encoded => fnd_api.g_false)
    , 1
    , 255
    || SQLERRM;
    ELSE
    l_error_reason :=
    l_error_reason
    || ','
    || SUBSTR (fnd_msg_pub.get (p_encoded => fnd_api.g_false)
    , 1
    , 255
    || SQLERRM;
    END IF;
    --DBMS_OUTPUT.put_line ('Supplier Site API Error-' || l_error_reason);
    fnd_file.put_line (fnd_file.LOG
    , 'Supplier Site API Error-' || l_error_reason
    END LOOP;
    END IF;
    ELSIF x_return_status='S' THEN
    --DBMS_OUTPUT.put_line ('Supplier Site API Success-' || l_error_reason);
    fnd_file.put_line (fnd_file.LOG
    , 'Supplier Site API Success-' || l_error_reason
    END IF;
    END LOOP;
    COMMIT;
    EXCEPTION
    WHEN OTHERS THEN
    --DBMS_OUTPUT.put_line ('Error-' || SQLERRM);
    fnd_file.put_line (fnd_file.LOG
    , 'Error-' || SQLERRM
    END xx_vat_wo172304;
    END xx_wo172304_test;

    Hi,
    I'm unable to update the vat code column of the ap_supplier_sites_all table using the ap_vendor_pub_pkg.update_vendor_site API.Oracle application instance 12.1.3 and OS linux.Please find the code below.I'm able to update other feilds,but not the vat_code.Please help on this.
    Thanks,
    Abhilash
    CREATE OR REPLACE PACKAGE BODY APPS.xx_wo172304_test
    AS
    PROCEDURE xx_vat_wo172304 (
    errbuf OUT VARCHAR2
    , retcode OUT VARCHAR2
    IS
    CURSOR cur_vat
    IS
    SELECT site.*
    FROM apps.ap_suppliers supp, apps.ap_supplier_sites_all site
    WHERE site.vat_code IN
    ('CZ OEUS 20', 'CZ OEUZ 20', 'CZ OJCD 20', 'CZ OT20', 'CZ-20-EDC', 'OEUS20', 'OEUZ20', 'OPP20E'
    , 'OS20', 'OT20')
    AND supp.vendor_id = site.vendor_id
    AND site.org_id IN (608, 1508, 2396, 2397)
    AND site.vendor_site_id =68154;
    l_vendor_site_rec ap_vendor_pub_pkg.r_vendor_site_rec_type;
    l_vat_code ap_supplier_sites_all.VAT_CODE%TYPE;
    l_vendor_site_id ap_supplier_sites_all.vendor_site_id%TYPE;
    x_return_status VARCHAR2 (100) := NULL;
    x_msg_data VARCHAR2 (1000) := NULL;
    x_msg_count NUMBER := NULL;
    l_error_reason VARCHAR2 (2000) := NULL;
    l_user_id           number := FND_GLOBAL.USER_ID;
    l_last_update_login           number := FND_GLOBAL.LOGIN_ID;
    l_program_application_id           number := FND_GLOBAL.prog_appl_id;
    l_program_id           number := FND_GLOBAL.conc_program_id;
    l_request_id           number := FND_GLOBAL.conc_request_id;
    BEGIN
    -- mo_global.init ('SQLAP');
    FOR rec_vat IN cur_vat LOOP
    IF rec_vat.org_id = 608 THEN
    IF rec_vat.vat_code = 'OEUS20' THEN
    l_vendor_site_rec.vat_code := 'CZ OEUS21';
    ELSIF rec_vat.vat_code = 'OEUZ20' THEN
    l_vendor_site_rec.vat_code := 'CZ OEUZ21';
    ELSIF rec_vat.vat_code = 'OPP20E' THEN
    l_vendor_site_rec.vat_code := 'CZ OPP21E';
    ELSIF rec_vat.vat_code = 'OS20' THEN
    l_vendor_site_rec.vat_code := 'CZ OS21';
    ELSIF rec_vat.vat_code = 'OT20' THEN
    l_vendor_site_rec.vat_code := 'CZ OS21';
    END IF;
    ELSIF rec_vat.org_id = 1508 THEN
    IF rec_vat.vat_code = 'CZ OJCD 20' THEN
    l_vendor_site_rec.vat_code := 'CZ OJCD21';
    ELSIF rec_vat.vat_code = 'CZ OEUS 20' THEN
    l_vendor_site_rec.vat_code := 'CZ OEUS21';
    ELSIF rec_vat.vat_code = 'CZ OEUZ 20' THEN
    l_vendor_site_rec.vat_code := 'CZ OEUZ21';
    ELSIF rec_vat.vat_code = 'CZ OT20' THEN
    l_vendor_site_rec.vat_code := 'CZ OT21';
    END IF;
    ELSIF rec_vat.org_id = 2396 THEN
    IF rec_vat.vat_code = 'CZ OEUZ 20' THEN
    l_vendor_site_rec.vat_code := 'CZ OEUZ 21';
    ELSIF rec_vat.vat_code = 'CZ OJCD 20' THEN
    l_vendor_site_rec.vat_code := 'CZ OJCD 21';
    ELSIF rec_vat.vat_code = 'CZ OT20' THEN
    l_vendor_site_rec.vat_code := 'CZ OT21';
    ELSIF rec_vat.vat_code = 'CZ-20-EDC' THEN
    l_vendor_site_rec.vat_code := 'CZ-21-EDC';
    END IF;
    ELSIF rec_vat.org_id = 2397 THEN
    IF rec_vat.vat_code = 'CZ OEUS 20' THEN
    l_vendor_site_rec.vat_code := 'CZ OEUS 21';
    ELSIF rec_vat.vat_code = 'CZ OEUZ 20' THEN
    l_vendor_site_rec.vat_code := 'CZ OEUZ 21';
    ELSIF rec_vat.vat_code = 'CZ OJCD 20' THEN
    l_vendor_site_rec.vat_code := 'CZ OJCD 21';
    ELSIF rec_vat.vat_code = 'CZ OT20' THEN
    l_vendor_site_rec.vat_code := 'CZ OT21';
    ELSIF rec_vat.vat_code = 'CZ-20-EDC' THEN
    l_vendor_site_rec.vat_code := 'CZ-21-EDC';
    END IF;
    END IF;
    l_vendor_site_id := rec_vat.vendor_site_id;
    l_vendor_site_rec.org_id := rec_vat.org_id;
    l_vendor_site_rec.vendor_id := rec_vat.vendor_id;
    --l_vendor_site_rec.vendor_site_code:='318581-MOR. KRU';
    l_vendor_site_rec.rfq_only_site_flag := 'Y';
    -- l_vendor_site_rec.last_update_date := SYSDATE;
    l_vendor_site_rec.last_updated_by := 1134;   MARTIN.ROUNDS
    -- DBMS_OUTPUT.put_line ('VAT CODE:' || l_vendor_site_rec.vat_code);
    --DBMS_OUTPUT.put_line ('Vendor Site Id:' || l_vendor_site_id);
    fnd_file.put_line (fnd_file.LOG
    , 'VAT CODE:' || l_vendor_site_rec.vat_code
    fnd_file.put_line (fnd_file.LOG
    , 'Vendor ID:' || rec_vat.vendor_id
    fnd_file.put_line (fnd_file.LOG
    , 'Vendor Site Id:' || l_vendor_site_id
    fnd_file.put_line (fnd_file.LOG
    , 'RFQ ONLY SITE FLAG:' || l_vendor_site_rec.rfq_only_site_flag
    ap_vendor_pub_pkg.update_vendor_site (p_api_version => 1
    , x_return_status => x_return_status
    , x_msg_count => x_msg_count
    , x_msg_data => x_msg_data
    , p_vendor_site_rec => l_vendor_site_rec
    , p_vendor_site_id => l_vendor_site_id
    ); --p_calling_prog     IN  VARCHAR2 DEFAULT 'NOT ISETUP'
    -- pos_vendor_pub_pkg.update_vendor_site (p_vendor_site_rec => l_vendor_site_rec
    -- , x_return_status => x_return_status
    -- , x_msg_count => x_msg_count
    -- , x_msg_data => x_msg_data
    --     ap_vendor_sites_pkg.update_row(
    --          p_vendor_site_rec => l_vendor_site_rec,
    --          p_last_update_date => sysdate,
    --          p_last_updated_by => l_user_id,
    --          p_last_update_login => l_last_update_login,
    --          p_request_id => l_request_id ,
    --          p_program_application_id => l_program_application_id,
    --          p_program_id => l_program_id,
    --          p_program_update_date => sysdate,
    --          p_vendor_site_id => l_vendor_site_id);
    fnd_file.put_line (fnd_file.LOG
    , 'Return Status:' || x_return_status
    IF x_return_status <> fnd_api.g_ret_sts_success THEN
    IF x_msg_count >= 1 THEN
    FOR i IN 1 .. x_msg_count LOOP
    IF l_error_reason IS NULL THEN
    l_error_reason :=
    l_error_reason
    || ','
    || SUBSTR (fnd_msg_pub.get (p_encoded => fnd_api.g_false)
    , 1
    , 255
    || SQLERRM;
    ELSE
    l_error_reason :=
    l_error_reason
    || ','
    || SUBSTR (fnd_msg_pub.get (p_encoded => fnd_api.g_false)
    , 1
    , 255
    || SQLERRM;
    END IF;
    --DBMS_OUTPUT.put_line ('Supplier Site API Error-' || l_error_reason);
    fnd_file.put_line (fnd_file.LOG
    , 'Supplier Site API Error-' || l_error_reason
    END LOOP;
    END IF;
    ELSIF x_return_status='S' THEN
    --DBMS_OUTPUT.put_line ('Supplier Site API Success-' || l_error_reason);
    fnd_file.put_line (fnd_file.LOG
    , 'Supplier Site API Success-' || l_error_reason
    END IF;
    END LOOP;
    COMMIT;
    EXCEPTION
    WHEN OTHERS THEN
    --DBMS_OUTPUT.put_line ('Error-' || SQLERRM);
    fnd_file.put_line (fnd_file.LOG
    , 'Error-' || SQLERRM
    END xx_vat_wo172304;
    END xx_wo172304_test;

Maybe you are looking for

  • Snow Leopard and SDM express card eSata

    SDM express card eSata don´t work after Snow Leopard install. Does any know how to solve this, driver update anywhere?

  • Acrobat error 130:11

    What is the Acrobat error 130:11? it says there is a problem with my creative cloud license. I just started and paid for my subscription and it has been working fine since I installed it one week ago.

  • Alerts Missing Remarks/Text

    Hello Experts here is the scenario USER A USER B User A goes into SAP creates a sales order adds the order alert pops up. User A writes in the Remarks and sends saves. User B gets the email and decides to authorize it. User B is able to see the USER

  • I have a hp notebook

    My hdd has crashed and was reading web error and I was told that it was toast so I bought a new hdd what do I have to buy to format my hp notebook is it just the 3 recovery discs

  • Saving iPhone 3g contacts to transfer over to iPhone 3g s

    Anyone know what the best way is to transfer over their contacts from the iPhone 3g to the 3g s? I just sold my iPhone 3g on ebay and want to make sure I save the contacts for transfer to the 3g s.