Unable using    hz_cust_account_site_v2pub.update_cust_site_use

Hi All,
I am facing an issue in using an API hz_cust_account_site_v2pub.update_cust_site_use. I want to update WAREHOUSE_ID from the table HZ_CUST_SITE_USES_ALL (R12), the below code is what i am using the procedure shows as completed successfully but values in the above mentioned table is not getting updatet.
DECLARE
p_cust_site_use_rec HZ_CUST_ACCOUNT_SITE_V2PUB.CUST_SITE_USE_REC_TYPE;
x_return_status VARCHAR2 (2000);
x_msg_count NUMBER;
xio_p_object_version NUMBER;
x_msg_data VARCHAR2 (2000);
v_site_use_id NUMBER;
V_OBJECT_VERSION NUMBER;
BEGIN
SELECT HCSU.SITE_USE_ID, HCSU.OBJECT_VERSION_NUMBER
INTO V_SITE_USE_ID, V_OBJECT_VERSION
FROM HZ_PARTIES HP,
HZ_PARTY_SITES HPS,
HZ_CUST_ACCT_SITES_ALL HCAS,
HZ_CUST_SITE_USES_ALL HCSU
WHERE HP.PARTY_ID = HPS.PARTY_ID
AND HPS.PARTY_SITE_ID = HCAS.PARTY_SITE_ID
AND HCAS.CUST_ACCT_SITE_ID = HCSU.CUST_ACCT_SITE_ID
AND HCSU.SITE_USE_CODE = 'BILL_TO'
AND ROWNUM = 1
AND LTRIM (RTRIM (UPPER (HP.PARTY_NAME))) =
LTRIM (RTRIM (UPPER ('Al Awail Phone (SHJ)')));
EXCEPTION
WHEN OTHERS
THEN
DBMS_OUTPUT.PUT_LINE ('ERROR IS' || SUBSTR (SQLERRM, 1, 150));
p_cust_site_use_rec.site_use_id := V_SITE_USE_ID; -- Site USe to be updated
p_cust_site_use_rec.warehouse_id := 204;
xio_p_object_version := V_OBJECT_VERSION; --xio_p_object_version := 1;
hz_cust_account_site_v2pub.update_cust_site_use ('T',
p_cust_site_use_rec,
xio_p_object_version,
x_return_status,
-- p_cust_site_use_rec.warehouse_id,
x_msg_count,
x_msg_data);
DBMS_OUTPUT.put_line ('***************************');
DBMS_OUTPUT.put_line ('Output information ....');
DBMS_OUTPUT.put_line ('x_return_status: ' || x_return_status);
DBMS_OUTPUT.put_line ('x_msg_count: ' || x_msg_count);
DBMS_OUTPUT.put_line ('xio_p_object_version: ' || xio_p_object_version);
DBMS_OUTPUT.put_line ('x_msg_data: ' || x_msg_data);
DBMS_OUTPUT.put_line ('V_SITE_USE_ID - ' || V_SITE_USE_ID);
DBMS_OUTPUT.put_line ('***************************');
COMMIT;
END;
Thanks in Advance.
Jiji Thomas

Can anybody find a solution for my question. I need to update hz_cust_site_uses_all table (Warehouse_ID) Col with new values. Anybody can suggest a solution.
Thanks
Jiji Thomas

Similar Messages

  • HZ_CUST_ACCOUNT_SITE_V2PUB.update_cust_site_use fails with no customer

    Hoping someone can help me here.
    I'm using theHZ_CUST_ACCOUNT_SITE_V2PUB.get_cust_site_use_rec to successfully retrieve a cust_site_use record from the database.
    I then update one column and use HZ_CUST_ACCOUNT_SITE_V2PUB.update_cust_site_use to try and update the record back to the database and I get
    "No Customer Site Use Was Found with ID <number>"
    This doesn't make any sense, I retrieved the record using the get api, so I know it's there ?
    From googling around someone has suggested that the retrieve API uses HZ_CUST_SITE_USES_ALL and the update API uses HZ_CUST_SITE_USES
    HZ_CUST_SITE_USES has no records in it, so if this is true, then that's why it fails.
    Can anyone shed any light on this ?
    Thanks a lot
    Scott

    Set the org context before running the TCA API:
    FND_GLOBAL.APPS_INITIALIZE(<user_id>,<resp_id>,<application_id>);
    MO_GLOBAL.INIT('AR');
    MO_GLOBAL.SET_POLICY_CONTEXT('S', <org_id>);

  • Error while running hz_cust_account_site_v2pub.update_cust_site_use

    Hi All,
    I am getting below error while trying to update the location on the customer sites.
    "This record in table hz_cust_site_uses cannot be locked as it has been updated by another user."
    i am using below script for update
    "/* Formatted on 2013/01/16 13:47 (Formatter Plus v4.8.8) */
    DECLARE
    l_init_msg_list VARCHAR2 (1000) := fnd_api.g_true;
    l_cust_site_use_rec hz_cust_account_site_v2pub.cust_site_use_rec_type;
    l_object_version_number NUMBER := 1.0;
    l_return_status VARCHAR2 (1000);
    l_msg_count NUMBER;
    l_msg_data VARCHAR2 (1000);
    CURSOR cur_data
    IS
    SELECT *
    FROM xxcb.xxcb_customer_site_info;
    BEGIN
    fnd_global.apps_initialize (436625, 52982, 660);
    FOR i IN cur_data
    LOOP
    SELECT site_use_id
    INTO l_cust_site_use_rec.site_use_id
    FROM apps.hz_cust_site_uses_all
    --SET LOCATION = 'DE97289'
    WHERE cust_acct_site_id IN (
    SELECT cust_acct_site_id
    FROM hz_cust_acct_sites_all
    WHERE party_site_id IN (
    SELECT party_site_id
    FROM apps.hz_party_sites
    WHERE party_site_number =
    TO_char (i.party_site_number)))
    AND site_use_code = 'SFDC';
    -- l_cust_site_use_rec.site_use_id := i.site_use_id; ---
    l_cust_site_use_rec.site_use_code := 'SFDC';
    l_cust_site_use_rec.LOCATION := i.new_data;
    hz_cust_account_site_v2pub.update_cust_site_use
    (l_init_msg_list,
    l_cust_site_use_rec,
    l_object_version_number ,
    l_return_status,
    l_msg_count,
    l_msg_data
    DBMS_OUTPUT.put_line ( l_msg_count
    || '-----?'
    || l_msg_data
    || '---?'
    || l_return_status
    COMMIT;
    END LOOP;
    END;
    can you please advice me on how to overcome this error?
    Regards,
    Samir Kumar Das

    Samir Das wrote:
    Hi All,
    I am getting below error while trying to update the location on the customer sites.
    "This record in table hz_cust_site_uses cannot be locked as it has been updated by another user."Please see these docs.
    Customer Form, Business Purpose Error: Adding Details for a New Business Purpose, Raises Error: APP-AR-96282: This record in HZ_site_cust_uses can't be locked as it has been updated by another user [ID 401963.1]
    APP-AR-96282 ERROR UPDATING CONTACTS [ID 1070688.1]
    Troubleshooting APP-AR-96282 Error in Customers Form [ID 1400496.1]
    Customer Workbench Error: Listing of APP-AR Errors [ID 1460226.1]
    Thanks,
    Hussein

  • I am unable use facetime video through wifi can please help me?

    i am unable use facetime through wifi but by using lte .

    Hello there, surender reddy.
    The following Knowledge Base article offers up some great steps for troubleshooting FaceTime:
    iOS: Troubleshooting FaceTime
    http://support.apple.com/kb/ts3367
    Thanks for reaching out to Apple Support Communities.
    Cheers,
    Pedro.

  • Has any one used HZ_CUST_ACCOUNT_SITE_V2PUB.update_cust_acct_site?

    I am using the following procedure to activate the account site but it doesn't work.
    Does anyone has a psuedo code?
    HZ_CUST_ACCOUNT_SITE_V2PUB.update_cust_acct_site

    l_cust_acct_site_rec.cust_acct_site_id := 1298; --l_cust_acct_site_id;
    l_cust_acct_site_rec.status := 'A';
    --and passing the right version number
    APPS.HZ_CUST_ACCOUNT_SITE_V2PUB.update_cust_acct_site
    p_init_msg_list => 'T',
    p_cust_acct_site_rec => l_cust_acct_site_rec,
    p_object_version_number => l_object_version_number,
    x_return_status => l_return_status,
    x_msg_count => l_msg_count,
    x_msg_data => l_msg_data
    );

  • HT204266 Hi pls support me how to switch my store to Saudi Arabian store? By mistake my store is switched to USA store so now I'm unable use my apple id, pls help me

    Hi pls support me how to switch one store to another store? Because my store is Saudi Arabian store but mistakenly now it is switched to USA store
    So now I'm unable to use my apple id, pls help me

    Settings / iTunes & App Stores, tap on your AppleID, then Account / Country-Region.

  • I am unable use my another subscription skype cre...

    I had bought a skype credit for 2500 minutes in india call that i had used within 21 days, now again the 21 days I bought the same skype credit for 2500 minutes in india calling, but i am unable to use my new subscriptions.
    Solved!
    Go to Solution.

    Hi,
    I have checked your account and it seems that you've purchased an identical subscriptions (same destination and number of minutes).
    You can review all your orders and their status in the My Account section of our store: https://secure.skype.com/store/myaccount/orders.ht​ml
    Please note that if you purchase an identical subscritpions, the new set of minutes will only be added after the first billing period ends.
    To know more about how having multiple subscriptions on your account work, please refer to this link: https://support.skype.com/en/faq/FA10495/
    Hope this helps.
    Julian

  • What does one do when a newly purchased iPad is set up wrong at and Apple Store in Bellvue ,Wa.I now have 3 Apple ID's and all of my Apple iphones,MacBooks ,and iPads are out of sync ,not knowing which account is which I'm unable  use any Apple products .

    All and all I've spent 10 long days contacting ,calling ,chatting,and at the Genius Desk.When all Apple has to do is correct the mistake they consolidate all these account under my original account ,the e-mail ,credit card ,user name or all the same for these accounts .Why can't the Apple people figure this ,the under trained employ who rush thru this set of my iPad ,iCloud ,and accounts made mistakes and I want them fixed.I want 1 account 1password like I had the day I walk Into the Bellvue ,Wa.    Apple Store. what's the Problem?Why do I get kicked from one department to another department,with the response that is as far as my technical skill allow me to process.The genius desk can help me , iTunes,can't help me,Apple support can't help me,the Apple Store in Bellvue ,Wa. Who created the mess can't help me,Who can help me? it simple open your computer move a few digits correct this mistake it's not rocket science,or is it? Thanks From One Unhappy Customer

    Even if you put a credit or debit card on file with iTunes it will still use your balance FIRST.
    I would suggest putting a card on file and testing to see if it will allow you to make a purchase, then removing the card from the account after successful download of an item.
    EE

  • Ipad mini  on 6.1.3 unable use autofill despite resetting etc, any ideas?

    From new I have been unable to get Autofill or password save to work on an iPad mini on 6.1.3.
    I have tried resetting, clearing all history data & generally  all the advice I can find.
    Is this a general problem under 6.1.3?

    That's what I do now. I'd rather have it hidden away but if it can't be done then I'm going to have to deal with it.

  • HT5149 I am unable use the share function to save

    I cannot save any videos I create on Final Cut Pro because the "Share > default file" function no longer works. My Mac was fine until this new Maverick OS update, now I have a new issue every single week.

    AAre you using an obsolete version that isnt supported in 10.9?

  • Unable use Mail, settings dimmed

    1)  Error Message: Cannot Get Mail, The user name or password for "----------" is incorrect.
    2)  Under Mail, Contacts, etc.,  the name of my account and "Add Account" are dimmed.  "Fetch New Data" is also dimmed.
    3)  Note that I'm also experiencing problems sending email on my iMac.
    Not sure where to begin with the iPad issue.

    Ignore the past by 'azzamm', it's posting rubbish on multiple threads on here.
    For the Settings > Mail, Contacts, Calendars settings being greyed-out, do you currently have Settings > General > Restrictions > Accounts (under the 'allow changes' heading) set to 'Don't Allow Changes' - if you do then change it to 'Allow Changes' and the settings should become enabled.
    For the retrieving of email (if the above works) you should now be able to tap on the account in Settings > Mail, Contacts, Calendars (and then tap on its id at top of the next screen) and check its settings e.g. try re-entering its password, or you could try deleting the account and re-enter it (does your provider's website have instructions for what settings to use on an iPad e.g. whether its Yahoo, Exchange, Other ?)

  • I am unable using the properties inline to bring my link list to a horizontal look?

    I cannot in dreamweaver site set up bring my link list from a vertical to a horizontal using the properties inline?

    And that is supposed to mean what? If you refer to an alignment option for CSS, then you ahve a severe misunderstanding of what "inline" means. No, it doesn't mean "in a line". Time to read up...
    Mylenium

  • Unable use fn key

    Hi,
    I wanted to reassign some functions on my Apple Keyboard which is several years old. The need to do so is obviously not urgent. There is no obvious "fn" key that I have read about on these posts. Is there an alternative, or would I have to get a newer keyboard? I have a Macally ikey, would that be an alternative? I also noted on other posts the instruction to go to preferences/keyboard tab and check the box regarding "standard keyboard functions", but I do not have that option. (is that 10.5.x) Finally, I downloaded a copy of "Double Command", however it sounds like it could create more problems for me if I use it incorrectly. So is there any way around these issues, or should I just not worry about it. Thanx.

    The "fn" you read about is for Laptop KBs, to be able to get to the Function Keys...
    http://docs.info.apple.com/article.html?artnum=25521

  • Error updating Customer Location by hz_cust_account_site_v2pub.update_cust_

    Hi All,
    we are getting below error message -
    "ORA-06550: line 9, column 20:
    PLS-00103: Encountered the symbol "IS" when expecting one of the following:
    := . ( @ % ; not null range default character
    ORA-06550: line 51, column 5:
    PLS-00103: Encountered the symbol "end-of-file" when expecting one of the following:
    end not pragma final instantiable order overriding static
    member constructor map
    Script Terminated on line 2."
    the below script we are using for the update -
    "DECLARE
    l_init_msg_list VARCHAR2 (1000) := fnd_api.g_true;
    l_cust_site_use_rec hz_cust_account_site_v2pub.cust_site_use_rec_type;
    l_object_version_number NUMBER := 1;
    l_return_status VARCHAR2 (1000);
    l_msg_count NUMBER;
    l_msg_data VARCHAR2 (1000);
    CURSON CUR_DATA IS SELECT * FROM xxcb.xxcb_customer_site_info -- custom table which contains the site_number and new_location_code to be updated
    WHERE PARTY_SITE_NUMBER = '508703';
    BEGIN
    fnd_global.apps_initialize (436625, 52982, 660);
    for i in CUR_DATA
    loop
    /* Formatted on 2013/01/14 19:57 (Formatter Plus v4.8.8) */
    /* Formatted on 2013/01/14 19:59 (Formatter Plus v4.8.8) */
    SELECT site_use_id
    INTO l_cust_site_use_rec.site_use_id
    FROM apps.hz_cust_site_uses_all
    --SET LOCATION = 'DE97289'
    WHERE cust_acct_site_id IN (
    SELECT cust_acct_site_id
    FROM hz_cust_acct_sites_all
    WHERE party_site_id IN (
    SELECT party_site_id
    FROM apps.hz_party_sites
    WHERE party_site_number =
    i.site_number))
    AND site_use_code = 'SFDC';
    -- l_cust_site_use_rec.site_use_id := i.site_use_id; ---
    l_cust_site_use_rec.site_use_code := 'SFDC';
    l_cust_site_use_rec.LOCATION := i.new_location_code ;
    hz_cust_account_site_v2pub.update_cust_site_use (l_init_msg_list,
    l_cust_site_use_rec,
    l_object_version_number,
    l_return_status,
    l_msg_count,
    l_msg_data
    DBMS_OUTPUT.put_line ( l_msg_count
    || '-----?'
    || l_msg_data
    || '---?'
    || l_return_status
    COMMIT;
    END LOOP;
    END;"

    dear all,
    can anyone suggest what i am missing in the code and why the error is coming?
    regards,
    Sam

  • I am unable to install Virtual Machines on my Mid-2013 MacBook Air

    Dear Apple Support Community,
    I have recently moved away from a Mid-2010 MacBook Pro to a new Mid-2013 MacBook Air. As much as it pains me, I have a need to install a virtual machine running Windows 7 in order to utilize an application called vSphere. The vSphere web interface is too unreliable to use via any web browser, so running a Windows VM is the only way forward.
    However, when using VMWare Fusion 5 (I know 6 is available, but I do not have a license for it) or VirtualBox (very latest version) I receive an error which states that my CPU is not 64-bit compatible. I was under the impression that since Snow Leopard (10.6) was release that Mac OS was fully 64-bit. My MacBook Air is currently running Mavericks (10.9.1). It has a 1.3GHz Intel Core i5 CPU.
    I read that Apple restricts access to the EFI firmware settings, as I originally thought it was a case of enabling Virtualization capabilities on the processor. To further add to the dilemma my Mid-2010 MacBook Pro has no issues running VMWare Fusion or VirtualBox, so I am at a loss as to why I am unable use these virtualization platforms on my new Mac.
    Any help would be greatly appreciated.

    I remember reading somewhere that the new macbook air's from 2013 have a 64 bit core i5 4250u processors.
    Also intel mentions it here:
    http://ark.intel.com/products/75028/

Maybe you are looking for

  • Flash player 10.1 still not working (more information).

    A few months back, I made a thread concerning my situation of specific flash content not being played. I have returned, with hopes that my trials and tribulations may provide more insight into my problem. Basics Windows XP 32bit (v2002) - Media Cente

  • How much do engineer call-outs cost BT?

    I'm curious as my internet is being less than useless yet again, I spend more time tethered to my mobile than using our BT internet connection. I've had engineers out 5 times since last year. I figure I am now going to let nothing slide, I'll contact

  • Search Notes in PDF

    Is there a way to identify where notes are placed in a pdf?  Using new version on iPad and I made notes on 10 pages of a 200 page doc.  I want to send to another person but I do not know if there is an easy way for them to see my notes.  is there a p

  • User creation in sap portal

    Hi All, I have a requirement where in a supplier registers online and after approval(application is developed in ABAP web dynpro) is created as supplier in SAP. At the same time the supplier should be created as a portal user with supplier email ID a

  • How to implement 'no split' at end of page in smartforms

    Hi frnz, in my smartform, there is a main window on the page. i have implemented a loop in the main window. each row in a loop displays a box in the window. the box has 7 rows. The height of the rows is not fixed & so the height of the box is not fix