Oracle API for sale rep update

Hi ,
I want to update sales rep information by using the API -HZ_CUST_ACCOUNT_SITE_V2PUb.update_cust_site_use.
I have four fields which i want to update through the form..please help me in writing the syntax to achieve this.I want to write this syntax in when -pressed-button trigger.
Thanks
.

Please check the document "Oracle CRM Application Foundation API Reference Guide" on this link
http://download.oracle.com/docs/cd/A97501_01/html/crmdoc.html
The Oracle CRM Application Foundation 'API Reference Guide' Part No. A90092-03. Page 3-24. Package JTF_RS_SALESREPS_PUB
contains the following procedures:
- Create SalesRep
- Update SalesRep
If you find my (or anyone else's ) reply helpful or correct, please mark it so.+
Thanks
Naveed

Similar Messages

  • API for Sales Orer

    Hiii
    I need API For Sales Order In Oracle apps
    Plz send me asap
    Thanks

    try Oe_Order_Pub.Process_Order

  • 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

  • Writing IIF Statements for Sales Reps Goals

    I have a query that takes all of the Sales Reps Goals and divides them into daily goals based on Potential sales days. This works perfectly when a rep starts before the beginning of the year. The issue I have is when a rep starts mid-year. If a rep starts
    in June the goal should be divided by the remaining sales days left in the year and not the full year. I want to write an IIF statement that says if the rep's hire date is greater than 1/1/2015 then calculate based on remaining sales days. The query that works
    for old reps is below:
    SELECT uSERS.lifeguard_id
    , GOALS.ProductID
    , GOALS.GoalAmount / (SELECT SUM(WC.[Total Potential Sales Days (excluding Sat)]) 
    FROM MISC.WorkingCalendar WC 
    WHERE WC.Year = YEAR(GETDATE())
    GROUP BY [YEAR]
    ) * WC.[Total Potential Sales Days (excluding Sat)] AS GOALS
    , WC.Month
    , WC.Year
    , DATEADD(DD,-1, DATEADD(MM,1,cast( (cast(WC.Month as varchar) + ' 1 , ' + cast(WC.Year as varchar)) as date))) AS GoalDatea
    ,CASE WHEN WC.Month= 'Jan' THEN '201501'
         WHEN WC.Month = 'Feb' THEN '201502'
    WHEN WC.Month = 'Mar' THEN '201503'
    WHEN WC.Month = 'Apr' THEN '201504'
    WHEN WC.Month = 'May' THEN '201505'
    WHEN WC.Month = 'Jun' THEN '201506'
    WHEN WC.Month = 'Jul' THEN '201507'
    WHEN WC.Month = 'Aug' THEN '201508'
    WHEN WC.Month = 'Sep' THEN '201509'
    WHEN WC.Month = 'Oct' THEN '201510'
    WHEN WC.Month = 'Nov' THEN '201511'
    WHEN WC.Month = 'Dec' THEN '201512'
    END AS YearMonth
    FROM (
    SELECT [CRM Rep Name] as CRMREPNAME
    , CASE GoalAmount.GoalType
    WHEN 'Yearly Life' Then 'L'
    WHEN 'Yearly DI' then 'DI'
    WHEN 'Yearly CI' then 'CI'
    WHEN 'Yearly AI' then 'AC'
    end as ProductID
    , GoalAmount.GoalAmount
    , YEAR(GETDATE()) AS GoalYear
    FROM BAMaster.SalesRep SalesRep
    unpivot (
    GoalAmount FOR GoalType in([Yearly Life],[Yearly DI], [Yearly CI], [Yearly AI])) AS GoalAmount
    ) GOALS
    JOIN VISION.Users Users
    ON GOALS.CRMREPNAME = Users.user_code
    JOIN MISC.WorkingCalendar WC
    ON WC.Year = goals.GoalYear
    where lifeguard_id is not null
    order by lifeguard_id

    Sales Days
    Year
    Month
    Weekdays
    Saturdays
    Holidays
    Total Potential Sales Days (including Sat)
    Total Potential Sales Days (excluding Sat)
    2014 Running Total
    2015
    Jan
    20
    5
    2
    25
    20
    20
    2015
    Feb
    19
    4
    1
    23
    19
    39
    2015
    Mar
    22
    4
    0
    26
    22
    61
    2015
    Apr
    22
    4
    0
    26
    22
    83
    2015
    May
    20
    5
    1
    25
    20
    103
    2015
    Jun
    22
    4
    0
    26
    22
    125
    2015
    Jul
    22
    3
    1
    25
    22
    147
    2015
    Aug
    21
    5
    0
    26
    21
    168
    2015
    Sep
    21
    4
    1
    25
    21
    189
    2015
    Oct
    21
    5
    1
    26
    21
    210
    2015
    Nov
    18
    4
    3
    22
    18
    228
    2015
    Dec
    20
    3
    3
    23
    20
    248
    Grand Total
    248
    50
    13
    298
    248
    These are the sales days. A rep's hire date could be any date in 2015.

  • Oracle APIs For Contacts and Role Responsibility

    Hello,
    Please, I need a direction on how to proceed about the use of the right API. I'm working with Oracle EBS R12. If this is not the place for this kind of doubt, please let me know the best one.
    I already have a site for a customer, which was created by the ra_customers_interface_all, after loading the data and processing the interface.
    Now I need to create (using Oracle APIs) a contact name, which will have at least a telephone number and an e-mail address.
    I know that the contact name will be in table HZ_PARTIES, but later it will be related to a site. The registry that will be used for this has the Party_Type value equals to 'PARTY_RELATIONSHIP', according to what the customers interface did after being executed.
    Then the telephone number and e-mail address will be in table HZ_CONTACT_POINTS. The Owner_Table_Name of it has to be 'HZ_PARTIES'. The Owner_Table_Id of it will have the value of Party_Id from table HZ_PARTIES, which has Party_Type value equals to 'PARTY_RELATIONSHIP'.
    After this, my main goal is to create a role responsibility to the contact name. So I know there are other two tables involved. They are HZ_CUST_ACCOUNT_ROLES and HZ_ROLE_RESPONSIBILITY.
    And I see there are two more tables involved, which are HZ_RELATIONSHIPS, which will do the PERSON x ORGANIZATION relation, and also table HZ_ORG_CONTACTS, which has the field PARTY_SITE_ID, to finally indicate that this contact is part of a site, which I already have.
    I have all these tables in mind. I just need a tip on how to proceed. I'm able to create a party as PERSON, not yet as PARTY_RELATIONSHIP. I'm able to create a contact point (telephone number). I'm lacking the idea about what to do have this:
    site -> contact name -> telephone number of this contact name inside this site
    I can do this:
    site -> telephone number of this site
    Any help would be great.

    Thanks for the reply but i stil have the problem...............
    My Current machine.config has this to say in that particular section
    <connectionStrings>
    <add name="LocalSqlServer" connectionString="data source=.\SQLEXPRESS;Integrated Security=SSPI;AttachDBFilename=|DataDirectory|aspnetdb.mdf;User Instance=true" providerName="System.Data.SqlClient"/>
    <add name="OraAspNetConString" providerName="Oracle.DataAccess.Client" connectionString=" "/>
    </connectionStrings>
    What can be done.........................in this case
    Thanks

  • API for RA_CUSTOMER_TRX_ALL to update attribute columns

    Hi,
    Not sure if this is the right place for this but does anybody know if there is an API for updating RA_CUSTOMER_TRX_ALL table
    I'm wanting to update the Attibute columns.
    Thanks
    Malcolm

    Oracle typically does not provide APIs for ATTRIBUTE columns as these need to be maintained by customers.
    HTH
    Srini

  • API for modifying rep:Policy nodes

    The JCR API does not work when we are trying to modify/create rep:policy nodes.
    I tried to have a look at the CqActionsServlet and CQActions class but could not make much progress on understanding the implementation.
    Is there any API documentation on how  to do this.
    Basically the idea is to have a package of permission nodes (rep:policy) in the svn. As part of build process, we want to read the rep_policy.xmls and configure the corresponding permissions in CQ using RMI.

    Could you explain what you mean by the JCR API? While JCR 1.0 didn't have any API for managing access control policies, JCR 2.0 does.
    I don't know think AccessControlManager works over RMI. The JIRA issue is still open: https://issues.apache.org/jira/browse/JCR-2113
    There is a Sling bundle which you can install to manage ACLs via HTTP: http://sling.apache.org/site/managing-permissions-jackrabbitaccessmanager.html. Search this forum for prior discussions.
    For the use case you describe, you should be able to do that with content packages.

  • API for loading and updating Workplans into Projects

    Hi Projects Gurus,
    Is there any API that can load workplan into Project Accounting module?
    Thanks,

    Dear,
    I Assume when you say project accounting module means oracle project management module.
    As per my understanding there is no API for the same but I guess you can use Microsoft project plan integration with oracle projects and create the workplan in oracle project management.
    Thanks
    :-)

  • BAPI / Function Module for Sale order updation

    Hi,
         I need to update sale order details(Reason for rejection)..Can you please tell me any of the existing BAPI's / Function modules to do the same.

    hi,
      try bapi_salesorder_change
        <b>allocate points if useful</b>
    regards,
    pavan

  • Oracle API for Extended Analytics Flat File extract issue

    I have modified the Extended Analytics SDK application as such:
    HFMCONSTANTSLib.EA_EXTRACT_TYPE_FLAGS.EA_EXTRACT_TYPE_FLATFILE
    instead of
    HFMCONSTANTSLib.EA_EXTRACT_TYPE_FLAGS.EA_EXTRACT_TYPE_STANDARD
    I am trying to figure out where the Flat file extract is placed once the Extract is complete. I have verified that I am connecting to HFM and the log file indicates all the steps in the application have completed successfully.
    Where does the FLATFILE get saved/output when using the API?
    Ultimate goal is to create a flat file through an automated process which can be picked up by a third party application.
    thanks for your help,
    Chris

    Never mind. I found the location on the server.

  • Re-scheduling API for sales order line

    Hi,
    I need to Reschedule the order lines which are in unscheduled status.
    I am using version (11.5.10.2).
    Can you please suggest any API to reschedule the order lines?
    Regards,

    Actually,first we are doing Unscheduling the order lines based on some conditions and the Rescheduling the order lines using the proces order API (oe_order_pub.process_order).
    But while Rescheduling the scheduling dates are not updating correctly.
    Can you please suggenst in this API or If there is any another API to reschedule the order lines,kindly let me know.
    Thanks in advance.
    Regards,
    Edited by: 825599 on May 12, 2011 1:03 AM

  • Neeed for Sales Assistance issue in oracle istore

    Hi All,
    I have an issue on Need for sales rep assistance notification mail in oracle EBS.Mail sending to the address with out any issue.But mail does not having &QUOTEDETAILWITHTAX details.Means Product , # of Units Shippable? , Net Amount are missing.I have set required Profile option also.My mail as like below.
    Quote Details:
    Product # of Units Shippable? Net Amount
    Sub Total:
    $166.01
    Shipping and Handling: $25.00
    Tax (estimated): $0.00
    Total: $191.01
    IMPORTANT: Do not reply to this email. If you need to contact us, send
    an email to [Customer Care Email Id].
    Thank you again for shopping with us.
    Edited by: 993255 on Mar 12, 2013 3:34 AM
    What i need to do for getting product,unit of shippable,net amount?
    Thanks
    Edited by: 993255 on Mar 12, 2013 3:38 AM

    Hi,
    You will have to debug into procedure ibe_workflow_pvt.Generate_Detail
    this procedure is resposible for population of &QUOTEDETAILWITHTAX .
    Try executing various queries from this procedure by replacing l_quote_id with quote_header_id.
    Thanks,
    Hrishi

  • Need the Oracle Standard APIs for iExpense

    Hi ,
    Can you please let me know the list of standard APIs that can be used for iExpese. The requirement is that we need to create new OAF pages which insert data into iExpense Tables and also we need to do validations like the standard functionality of iExpense, hence we are looking for APIs which perform the standard validations and insertion of data for the iExpense tables. Please let me know of any documentation or links which gives list of Oracle standard public API for iExpense.
    Thanks,
    Srikanth

    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]
    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

  • API for AP_BANK_ACCOUNTS

    Is there an API for Bank Accounts update? I am specifically looking for an API that allow me to update a DFF in the AP_BANK_ACCOUNTS table. The Bank Account record has already been created, and I need to update a DFF on this table using an API.
    thanks
    Jay.

    Hi Srini,
    Unfortuantely, Development has not released any API's for maintaing bank account information in the 11i version of Oracle Applications. This is only available in R12.
    Cheryl

  • Need information on BAPI for Sales Process ?

    Hello SAP folks,
    I am currently involved in Consumer Portal integration with SAP System. I need information about the right kind of BAPI that would help me to enter and retrieve data from SAP database. I have noted down following funtionality in Sales And Distribution areas where i require a BAPI :
    1. Account Management -- > There are concept of Sales rep, Dealer on the consumer Portal. My question is -- > Could anyone suggest some BAPI for creation of User ID for Sales rep and Dealer as well i need information on the BAPI which would also help me displaying the data from SAP database. As far i know, in Customer Master record, we maintain Contact person and Buiness Partners. So how to take up these development into consideration ???
    2. Mulitple Credit Card Management --> Please suggest the BAPI for meeting this functionality at Sales order level.
    3. Customer Inclusion/Exclusion --> Here the basic need is exclude certain customer from availabling some product. Please suggest the BAPI for this operation.
    Regards,
    Sarthak

    Dear Sarthak M,
               Assume you have gone through the transaction BAPI,
    where you can find all relevant BAPI's .
    select the relevant text such as "sales orders" - from the right side of the screen - check "Tools" tab,where you will find "Create BAPI list", click to search for the Function moduels.

Maybe you are looking for

  • Plant as a Vendor in Partner Determination

    Hi In the Partner tabs, I need to determine the Plant as a vendor. Do I need to create a relationship of the Plant with BP. If yes, what should be the relationship category? I am using "has undefined relationship". To determine the Plant in Partners

  • [SOLVED] steam: missing libc.so.6

    I'm getting the following error when trying to run steam: lllars ~ $ steam Running Steam on arch rolling 64-bit STEAM_RUNTIME is enabled automatically Error: You are missing the following 32-bit libraries, and Steam may not run: libc.so.6 /home/lllar

  • Need help in restoring WHOLE AddressBook

    When I bought my iPad 2, iTune asked if I wanted to restore from my iPad 1 archive. (iPad 1 was deactivated and not connected to my account anymore.) I said yes.  AddressBook went crazy and started creating duplicate records for each entry. when I as

  • How to increase size of thumbnail in open dialog?

    I saw this screenshot on a forum http://img2.freeimagehosting.net/uploads/aafe217759.jpg the thumbnail is HUGE! but on my computer, when i go into open, the thumbnail size is much smaller. http://img132.imageshack.us/img132/4644/picture2rt1.png can s

  • Automatic Payment Programm -Edit postal error

    When i am running T.Code F110. After entering Select Edit posal then its getting following errror. Company codes 1000/1000 do not appear in proposal 14.09.2008  RRR; correct Message no. FZ003 Diagnosis No data exists for the specified paying company