Is there an API to updated DFFs on Supplier Sites?

I am looking for a Public API to update a DFF on various supplier sites. Any help is appreciated. Thanks!

DECLARE
lv_return_status varchar2(1);
lv_msg_count number;
lv_msg_data varchar2(2000);
lv_vendor_id ap_suppliers.vendor_id%type;
lv_vendor_site_id ap_supplier_sites_all.vendor_site_id%type;
lv_vendor_rec AP_VENDOR_PUB_PKG.r_vendor_rec_type;
lv_vendor_site AP_VENDOR_PUB_PKG.r_vendor_site_rec_type;
l_user_id number;
l_resp_id number;
l_respid_id number;
Cursor cur_vendor is
select sup.vendor_id,
sit.vendor_site_id,
sit.vendor_site_code
from ap.ap_suppliers sup,
ap.ap_supplier_sites_all sit
where sup.vendor_id = sit.vendor_id
and sup.vendor_id = 15;
BEGIN
SELECT fnd_profile.value ('USER_ID') INTO l_user_id FROM dual;
SELECT fnd_profile.value ('RESP_ID') INTO l_resp_id FROM dual;
SELECT fnd_profile.value ('RESP_APPL_ID') INTO l_respid_id FROM dual;
fnd_global.apps_initialize(l_user_id,l_resp_id, l_respid_id );
For c_vendor in cur_vendor Loop
lv_vendor_id:= c_vendor.vendor_id;--156001;--&VENDOR_ID;
lv_vendor_rec.MATCH_OPTION:= 'P'; --FND_API.G_MISS_DATE; 
lv_vendor_site.vendor_id := c_vendor.vendor_id;--156001;
lv_vendor_site.MATCH_OPTION := 'P';
lv_vendor_site.VENDOR_SITE_CODE := c_vendor.vendor_site_code;--'ABU DHABI';
lv_vendor_site_id :=c_vendor.vendor_site_id;-- 3341;
AP_VENDOR_PUB_PKG.Update_Vendor
( p_api_version => 1.0
, p_init_msg_list => fnd_api.g_true
, p_commit => fnd_api.g_false
, p_validation_level => fnd_api.g_valid_level_full
, x_return_status => lv_return_status
, x_msg_count => lv_msg_count
, x_msg_data => lv_msg_data
, p_vendor_rec => lv_vendor_rec
, p_vendor_id => lv_vendor_id
--update vendor site
ap_vendor_sites_pkg.update_row(p_vendor_site_rec => lv_vendor_site,
p_last_update_date => sysdate,
p_last_updated_by => -1,
p_last_update_login => -1,
p_request_id =>null,
p_program_application_id =>200,
p_program_id =>null,
p_program_update_date =>null,
p_vendor_site_id =>lv_vendor_site_id);
End Loop;
commit;
dbms_output.put_line(lv_return_status||'-'||lv_msg_count||'-'||lv_msg_data);
Exception when others then
dbms_output.put_line('Error:'||sqlerrm);
END;

Similar Messages

  • Is there any API to update cost cutoff date?

    Hi All,
    Is there any API to update cost cutoff date?

    Hi,
    As per Oracle we have below APIS for locator in WMS,
    - Create Locator API to create a new locator (CREATE_LOCATOR)
    - Update Locator API to update an existing locator (UPDATE_LOCATOR)
    - Locator Item Tie API to assign an item to a locator (CREATE_LOC_ITEM_TIE)
    - Delete Locator API to delete an existing locator (DELETE_LOCATOR)
    The APIs are part of PL/SQL package INV_LOC_WMS_PUB. This is defined in
    $INV_TOP/patch/115/sql/INVLOCPS.pls.
    You can search *"Locator Maintenance Application Program Interface"* in Metalink or MFGAPI for details.
    Hope it helps
    Kind Regards,
    S.P DASH

  • Is there any API to update locator flex field details?

    Hi All,
    Is there any API to update wms locator flex field details?

    Hi,
    As per Oracle we have below APIS for locator in WMS,
    - Create Locator API to create a new locator (CREATE_LOCATOR)
    - Update Locator API to update an existing locator (UPDATE_LOCATOR)
    - Locator Item Tie API to assign an item to a locator (CREATE_LOC_ITEM_TIE)
    - Delete Locator API to delete an existing locator (DELETE_LOCATOR)
    The APIs are part of PL/SQL package INV_LOC_WMS_PUB. This is defined in
    $INV_TOP/patch/115/sql/INVLOCPS.pls.
    You can search *"Locator Maintenance Application Program Interface"* in Metalink or MFGAPI for details.
    Hope it helps
    Kind Regards,
    S.P DASH

  • Is there any API to update Fixed Asset minor category ?

    Hi,
    My client need to update the minor category of 3000 Assets.
    Is there any API to mass update Fixed Asset minor category ?
    Thanks,
    Joe

    Hi Joe,
    You could use the reclass API : FA_RECLASS_PUB.DO_RECLASS
    Based on the new minor category, derive the correct asset category and pass it to this API along with other required parameters.
    Regards,
    Mukul

  • Is there any API to update table IC_WHSE_INV

    Thank You in Advance

    Hi All,
    Is there any API available in Oracle to update the table IC_WHSE_INV

  • Is there any APIs to update and remove Apex group?

    There's Apex.Util.create_group. But I could not find any APIs to update and remove Apex group.

    There's Apex.Util.create_group.It's apex_util.create_user_group.
    There are no APIs to delete or update a group.
    Scott

  • API for updating Tolerance per Supplier

    I just created a tolerance. For this to work , I need to update the Supplier's Invoice Management Tab and attach the tolerance I created for each supplier. Since we have hundreds of suppliers, we want to update this automatically , is there any API we can use to update it?.
    Thanks

    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

  • Why is there no API to update the configuration file?

    It would be nice to be able to programmatically add/remove a JRE configuration in the deployment.properties, and be able to reorder the positions of the JREs in the list.
    We run JWS to start our WebSphere custom thin client, running on the same IBM SDK that powers our WebSphere MT. I've conquered all those issues.
    Because it is not a SUN JRE, it cannot be registered or auto-downloaded. As a result, we have to write some gnarly code to do the update and reorder.

    Andy - All of us in this software industry know that
    lots of things 'shouldn't matter', however I've
    painfully learned that there IS a difference between
    theory and practice.
    In my case, being tied to IBM SDK 1.3.1 because of
    the WebSphere appserver is like an anchor. First, I
    can' run our client on a SUN JRE because IBM carries
    a lot of proprietary baggage (CORBA, native
    libraries, etc). Second, the SUN autodownload cannot
    recognize our JRE by the 'j2se version' 1.3.1. Third,
    Java Web Start won't automatically recognize the our
    foreign JRE. first, specifying version="1.3.1" without an auto download address (href) is completely invalid, because in that case you are asking for any jre that implements the 1.3.1 java specification, and there is none.
    >
    Through testing and experimentation, I found that if
    our installer manually configures the javaws.cfg, to
    locate the JRE first, and we don't provide an
    autodownload URL (since its invalid anyway for our
    JRE), then the JNLP & JWS will fall to the default
    JRE at position 0 in the javaws.cfg.
    the autodownload href would not be invalid if you actually post the autodownload bundles at that address, planty of people have done this.
    This is why I made the request for positioning of the
    JRE. positioning does not mater, unless as in your case, you provide inaccurate entries in the config file such that two different items claim to be the same thing.
    >
    But the real solution is to open up the strings on
    the packaging for autodownloading of the JRE so that
    ANY vendors java runtime could be recognized. Any vendors package can be regognised, and the entire source of the download servlet and installer is included in the samples directory of the jre.
    a lot of traffic on this topic in Lopica, with many
    open source solutions, but with each of these there
    are problems.
    With that much interest, can't this useful feature be
    integrated with the SUN release?/Andy

  • Is there any api to update quantity in sub inventory

    Hi All,
    I want to transfer quantity from one sub inv to another sub inv and also i need to update the sub inv quantity.Please help me.
    Regards
    Kumar.

    Hi;
    All APIs are listed in Oracle Integration Repository
    http://irep.oracle.com/index.html
    API User Notes - HTML Format [ID 236937.1]
    R12.0.[3-4] : Oracle Install Base Api / Open Interface Setup Test [ID 427566.1]
    Oracle Trading Community Architecture API User Notes, June 2003 [ID 241320.1]
    Technical Uses of Customer Interface and TCA-API [ID 269121.1]
    "12: How To Access API References via the Oracle Integration Repository" [ ID 462586.1]
    "Oracle Integration Repository Documentation Resources Release 12" [ ID 396116.1]
    Pelase also check below:
    Api's in EBS
    Re: Api's in EBS
    http://sairamgoudmalla.blogspot.com/2009/05/script-to-find-oracle-apis-for-any.html
    API
    Fixed Asset API
    List of API
    Re: List of APIs
    Oracle Common Application Components API Reference Guide
    download.oracle.com/docs/cd/B25284_01/current/acrobat/jta115api.pdf
    List of APIs and open interface R12
    Re: List of APIs and open interface R12
    Regard
    Helios

  • Is there any Api to create employee as supplier in R12

    hi , In manual process we do by selecting Supplier type as "Supplier to used to process expense payments to internal employee" to create employee as supplier. Is there any standard api which does this in R12
    Can some one please send sample script if any.
    Appreciate your help..
    Edited by: 885022 on Oct 24, 2011 5:11 AM

    Hi all,
    We had a similar problem.
    As the solutions were used AR functions:
    arp_process_header_updte_cover.update_header_cover (p_form_name       => 'ARXTWMAI',
                                                        p_form_version    => 1,
                                                        p_customer_trx_id => l_trx.customer_trx_id,
                                                        p_complete_flag   => 'N',
    arp_process_header.post_commit ('ARXTWMAI',
                                    70.1,
                                    l_trx.customer_trx_id,
                                    'N',
    The data was taken from RA_CUSTOMER_TRX_PARTIAL_V.

  • API for updating pay_people_groups table..

    Hi,
    Is there any API for updating pay_people_groups table. I know we can do it using hr_assignment_api.update_emp_asg_criteria but this API updates the assignement with the new pay_group_id. I want to know is there is any API which can only update the pay_people_groups and not the assignment.
    Regards,
    Shabana.

    Hi,
    Technically you want update values for people group. If you remember At the time of definition of people group you created value set and attached people group flex field.
    People group are created on the basis of combination of segments. So you have to update only values not people group.
    I doubt oracle provides API to update key flex field.
    You may get API to update values try out that option.
    Hope this helps.
    Sathish

  • API to update ap_invoices_all table

    Hello all,
    is there any API to update ap_invoices_all table? Please let me know.
    thanks,

    Oracle uses AP_INVOICES_PKG API (Update_Row procedure) internally, but I believe you cannot use this API directly -- http://etrm.oracle.com/pls/et1211d9/etrm_pnav.show_object?c_name=AP_INVOICES_PKG&c_owner=APPS&c_type=PACKAGE
    Please log a SR to confirm this with Oracle Support.
    Thanks,
    Hussein

  • Is there any API

    Hi,
    Is there any API to update schedule_start_date and schedule_finish_date for workplan in Projects
    Please let me know even is there any sample code also?

    Pl see if MOS Doc 1056582.1 (Is There An API To Automatically Update Workplan Versioning?) is relevant
    HTH
    Srini

  • Any API to Update assignment_category of Per_all_assignments_f

    Hi All,
    Is there any API to update assignment_category of table per_all_assignment_f.
    I didnt find any API that updates assignment_category except for contingent worker. I need to update the assignment_category for normal, active employee.
    Thanks
    Sumit B

    Does hr_assignment_api.update_emp_asg not cover it?
    or, for GB legislation, hr_assignment_api.update_gb_emp_asg ?
    Clive

  • 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

Maybe you are looking for

  • Object Invalid error in PL/SQL

    Hi, This is Pat. I am writing simple queries on my oracle 8i and they are executing correctly. But when i include them in a procedure the procedure gets created with compilation errors. also when i execute the procedure it gives me an error saying :

  • Requirements are not fulfilled for condition PI01

    Dear SD guru,         When i create sales order,it prompt that 'Requirements are not fulfilled for condition PI01'.           For the specifical requirement,i use the intercompany processing.I want two invoices in this sale document,onr for customer,

  • File Maker

    Hi all, I have a problem with this script bellow. The error was with the first cell "Nome" but, I can't solve Thanks tell application "FileMaker Pro"     set nomeNovo to cell "Nome" of current record of layout "Catalogo" of database "Catalogo" end te

  • Spreadsheet Add-in(11.1.2.2) is not working

    Hi All,     I have essbase server (11.1.2.2) and have a cube.  I was successfully query the cube using the smart view.  But when I am trying access the same cube through the spreadsheet add-in , it is not working. Any reasons why ? Thanks Venkat

  • About 'nested for' issue

    Hi all, we have defined the below xquery function where we build an xml that will contain some participants and each partecipant has some custom-field nodes. We have a first 'for loop' for creating the participants nodes and within another 'for loop'