API and table of Account Site Contact

hi,
i can create the Account Site Contact from Customer > Customer Account > Account Site.
What is the API that i can call to create/update this? and what is the table that store this?

hi Hussein,
i have run the API to create a new contact, but i go to screen, i could not see the new contact that i created.
p_person_rec.person_first_name := 'Ash';
p_person_rec.person_last_name := 'Lee';
p_person_rec.created_by_module := 'TCA_V2_API';
HZ_PARTY_V2PUB.create_person (p_init_msg_list=>'T'
,p_person_rec=>p_person_rec
,x_party_id=>x_party_id
,x_party_number=>x_party_number
,x_profile_id=>x_profile_id
,x_return_status=>x_return_status
,x_msg_count=>x_msg_count
,x_msg_data=>x_msg_data);
DBMS_OUTPUT.put_line('creating PERSON with PARTY id:' || x_party_id);
if x_return_status='E' then
DBMS_OUTPUT.put_line('x_msg_count = ' || TO_CHAR(x_msg_count));
DBMS_OUTPUT.put_line(SUBSTR('x_msg_data = ' || x_msg_data, 1, 255));
IF x_msg_count > 1 then
FOR i IN 1 .. x_msg_count loop
DBMS_OUTPUT.put_line(i|| '. '|| SUBSTR(fnd_msg_pub.get(p_encoded => fnd_api.g_false),1,255));
END LOOP;
END IF;
rollback;
return;
end if;
p_org_contact_rec.created_by_module := 'TCA_V2_API';
p_org_contact_rec.party_rel_rec.subject_id:= x_party_id; -- value of party_id from CREATING PERSON
p_org_contact_rec.party_rel_rec.subject_type :='PERSON';
p_org_contact_rec.party_rel_rec.subject_table_name:='HZ_PARTIES';
p_org_contact_rec.party_rel_rec.object_id:= 10447; -- value of party_id from CREATING CUST ACC
p_org_contact_rec.party_rel_rec.object_type:='ORGANIZATION';
p_org_contact_rec.party_rel_rec.object_table_name:='HZ_PARTIES';
p_org_contact_rec.party_rel_rec.relationship_type:='CONTACT';
p_org_contact_rec.party_rel_rec.relationship_code:='CONTACT_OF';
p_org_contact_rec.party_rel_rec.status := 'A';
p_org_contact_rec.contact_number := '8888';
--For Organization Address level contact, assign following value:
p_org_contact_rec.party_site_id:=357430; value of party_site_id from step 3
HZ_PARTY_CONTACT_V2PUB.create_org_contact (p_init_msg_list=>'T'
,p_org_contact_rec=>p_org_contact_rec
,x_org_contact_id=>x_corg_contact_id
,x_party_rel_id=>x_cparty_rel_id
,x_party_id=>x_cparty_id
,x_party_number=>x_cparty_number
,x_return_status=>x_return_status
,x_msg_count=>x_msg_count
,x_msg_data=>x_msg_data);
DBMS_OUTPUT.put_line('creating ORG CONTACT ID:' || x_corg_contact_id);
output is :
creating PERSON with PARTY id:11504
creating ORG CONTACT ID:2036
SELECT org_contact_id,party_relationship_id,contact_number FROM HZ_ORG_CONTACTS where party_relationship_id in (3090,3091,3093);
     2031     3090     1041
     2033     3091     1234567
     2036     3093     8888
select relationship_id,subject_id,subject_type,subject_table_name,object_id,object_type,object_table_name,party_id,relationship_code from hz_relationships where relationship_id in (3090,3091,3093);
     3090     10447     ORGANIZATION     HZ_PARTIES     10496     PERSON     HZ_PARTIES     10497     CONTACT
     3090     10496     PERSON     HZ_PARTIES     10447     ORGANIZATION     HZ_PARTIES     10497     CONTACT_OF
     3091     10447     ORGANIZATION     HZ_PARTIES     10502     PERSON     HZ_PARTIES     10503     CONTACT
     3091     10502     PERSON     HZ_PARTIES     10447     ORGANIZATION     HZ_PARTIES     10503     CONTACT_OF
     3093     10447     ORGANIZATION     HZ_PARTIES     11504     PERSON     HZ_PARTIES     11505     CONTACT
     3093     11504     PERSON     HZ_PARTIES     10447     ORGANIZATION     HZ_PARTIES     11505     CONTACT_OF
select party_id,party_name,party_type,created_by_module from hz_parties where party_id in (10496,10502,11504);
     10496     George ACCOUNTS DEPARTMENT     PERSON     HZ_CPUI
     10502     Pak Budi     PERSON     HZ_CPUI
     11504     Ash Lee     PERSON     TCA_V2_API
George ACCOUNTS DEPARTMENT with contact_number 1041 can be seen on screen
Pak Budi with contact_number 1234567 can be seen on screen
Ash Lee with contact_number 8888 CANNOT be seen on screen.

Similar Messages

  • API and table for AR CUSTOMER SITE payment details

    hi,
    what is the API to create the RECEIPT METHOD of a CUSTOMER ACCOUNT SITE? and what is the table to be used?

    hi,
    but Oracle Note 273476.1 says that i can use ra_cust_pay_method_interface to update the my existing CUSTOMER. i just posted the problem regarding this in another thread
    how to populate ra_cust_pay_method_interface ?

  • I have my @gmail account for iTunes purchases, and my @me account for contacts/calendar, how do I approach iCloud and how will this affect me?

    I know accounts cannot be merged. The @gmail account has existed for years before the @me account.
    I haven't been able to set up my phone yet because I have absolutely no idea how this will affect me, when it was quite clear before.
    How will this affect me in the future? What about when my @me service expires (I had just under a free year left)? What email should I link? What should I be worried about if kept separate or the same as they are now?
    I still don't even understand what exactly iCloud does yet. If I set up my phone with whatever my iCloud account is, is it locked in? Since no credit card info or applications or purchases are associated with it, it will be of no use in that area.
    I am absolutely confused on what I should do, and after spending 4 hours attempting to update my phone, am still stuck on having a useable device.

    This point I don't quite understand. It is clear that:
       1) your additional 20gb are available only up to next summer
        2) the migrated account will be downgraded to a free account then.
        3) the purchased music and apps do NOT count in the 5 gb.
    So, I don't know what you need the 20 gb in the "unused AppStore account" for. Your documents and emails are all on the 25 gb account.
    I think, you can log into your non-me.com AppleID and change your e-mail address there without loosing what you purchased. So, I wonder what would happen if I put the me.com address there...
    Not sure, I would try...
    Regarding the me.com AppleID, you should make sure you have a secondary email account added there, otherwise it might be difficult to recover that account in case you cannot read the me.com email anymore. Interestingly, when I tried to put my non-me.com address there, it complained about that email already used by a different account. So, I guess if you try to put your gmail account there it will complain. So, you probably need a third independant email account....

  • Contact for accounts and account Sites-Diffrence

    HI,
    I want your help in understanding the difference between
    a. when a contact is associated at the account level to
    b. when a contact is associated at an account site level in TCA.
    What is the difference between the two? Will the site level contact have only site specific access. If so what what are the restrictions? I am just basically trying to understand the implication of the two cases. Any help would be really appreciated.
    Also can we have a contact associated at a Party site level(or is it always account site)?
    Thanks
    AM

    Hi,
    An Account Site Contact is a contact for an Account doing operations only at a particular site.
    and can do transactions using that site only (not always). I think even the Sales Order Form, Defaults the Site when you select a Account Site Contact.
    Whereas Account Contact can do operations for the Account at various account sites.
    Technically hz_cust_account_roles stores the Account Contact details , and if cust_acct_site_id is populated it signifies its a account site contact.
    An Org Contact (Party layer) can also be created at a Party Site level.
    -Idris

  • How to get the Contact person name of Account site level contact person

    Hi All,
    I have contact person defined at account level and other at account site level.
    I am trying to print the site leve contact name in my AR Invoice report.
    What i used is bill_to_site_use_id a input in the below query
    select hp2.party_name
    from
    HZ_CUST_SITE_USES_ALL hcs,
    HZ_CUST_ACCT_SITES_ALL has,
    hz_party_sites hps,
    hz_parties hp,hz_parties hp2,
    hz_relationships hr
    --HZ_ORG_CONTACTS HO
    where hcs.CUST_ACCT_SITE_ID=has.CUST_ACCT_SITE_ID
    and hps.PARTY_SITE_ID=has.PARTY_SITE_ID
    and hp.party_id=hps.PARTY_ID
    and hr.subject_id=hp.party_id
    and hr.RELATIONSHIP_TYPE = 'CONTACT'
    and hp2.party_id=hr.OBJECT_ID
    and hr.OBJECT_TYPE ='PERSON'
    --and ho.PARTY_RELATIONSHIP_ID=hr.relationship_id
    and hcs.SITE_use_ID=3398 -- from (ra_customer_trx_all)
    But I get two records. So how can I differentitate the account contact and site contact.
    Am I missing any table or join. Or is the input provieded is not fine.
    Please help
    Thanks

    Hi -
    Please use the below code to get the Contacts at the Account level.
    where Sold to Org id is the Customer Account Id.
    SELECT hp2.person_last_name||', '||hp2.person_first_name
    FROM apps.hz_parties hp,
    apps.hz_parties hp2,
    apps.hz_relationships hr,
    apps.hz_cust_accounts hca
    WHERE 1 = 1
    AND hca.party_id = hp.party_id
    AND hca.cust_account_id = :sold_to_org_id
    AND hr.subject_id = hp.party_id
    AND hr.relationship_type = 'CONTACT'
    AND hp2.party_id = hr.object_id
    AND hr.object_type = 'PERSON'
    AND hp.party_id = hr.subject_id
    Thanks
    Vyaghresh
    Edited by: user11990386 on Jun 20, 2011 2:33 PM

  • Address Book, how do I see what account the contact is from?

    In OS X Lion, Address Book, I have many names listed 2,3,4 times. Would like to know what account they belong to (Exchange, On my Mac, Mobile Me etc.) so that I can delete the extra ones.
    In address book, can I select the contact and see what account the contact belongs to?
    Hope so.
    Thx Much

    Thx Matt,
    Not sure you know what I want to do. I have numerous contacts in my address book, some are from my exchange account, some stored on my Mac and some from Mobile Me.
    If I see the same name three times is there a way I kno what account each of the duplicate name belongs to.
    Hope I said this right.
    Thx Much
    ..holding down the "option" key when I click on to a contact does not seem to do anything.

  • I want to change my  account country and rest my account balanc

    i want to change my  account country and rest my account balanc

    Try contacting iTunes Support as ask them to remove the balance from your account so that you can change countries : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page

  • Create Contact details @ Customer Account Site

    Hi guys
    After loads of efforts I managed to create a contact @ Customer Account Site level using below API Call
    DECLARE
    p_cr_cust_acc_role_rec HZ_CUST_ACCOUNT_ROLE_V2PUB.cust_account_role_rec_type;
    x_cust_account_role_id NUMBER;
    x_return_status VARCHAR2(2000);
    x_msg_count NUMBER;
    x_msg_data VARCHAR2(2000);
    BEGIN
    -- NOTE:
    -- must be unique CUST_ACCOUNT_ID, PARTY_ID,ROLE_TYPE
    -- must be unique CUST_ACCT_SITE_ID, PARTY_ID,ROLE_TYPE
    p_cr_cust_acc_role_rec.party_id := 2126134; --value for party_id from step 8>
    p_cr_cust_acc_role_rec.cust_account_id := 999059; --value for cust_account_id from step 2>
    p_cr_cust_acc_role_rec.primary_flag := 'Y';
    p_cr_cust_acc_role_rec.role_type := 'CONTACT';
    p_cr_cust_acc_role_rec.created_by_module := 'TCA_V2_API';
    ---For attaching the contact to a particular site
    p_cr_cust_acc_role_rec.cust_acct_site_id := 29422; --Value for x_cust_acct_site_id from step >5
    HZ_CUST_ACCOUNT_ROLE_V2PUB.create_cust_account_role(
    'T',
    p_cr_cust_acc_role_rec,
    x_cust_account_role_id,
    x_return_status,
    x_msg_count,
    x_msg_data);
    dbms_output.put_line('***************************');
    dbms_output.put_line('Output information ....');
    dbms_output.put_line('***************************');
    dbms_output.put_line('x_cust_account_role_id: '||x_cust_account_role_id);
    dbms_output.put_line('x_return_status: '||x_return_status);
    dbms_output.put_line('x_msg_count: '||x_msg_count);
    dbms_output.put_line('x_msg_data: '||x_msg_data);
    dbms_output.put_line('***************************');
    IF x_msg_count >1 THEN
      FOR I IN 1..x_msg_count
       LOOP
        dbms_output.put_line(I||'. '||SubStr(FND_MSG_PUB.Get(p_encoded => FND_API.G_FALSE ), 1, 255));
      END LOOP;
    END IF;
        IF x_return_status = FND_API.G_RET_STS_SUCCESS THEN
    COMMIT;
    ELSE
    ROLLBACK;
    END IF;
    END;
    Now I want to attach "Address/Email/Phone number" to this contact @ the Account site level. Please let me know how and which APIs I need to call
    Regards,
    Raj

    Okay I found the solution.
    Reference material : How to Create Contact,Phone, Email under Communication tab for Customer Account Site using API [ID 985500.1]
    docs.oracle.com/cd/B34956_01/current/acrobat/120hztig.pdf
    Repeat Run --3. Create a physical location with customer account site level Address (ie, Specific contact address details). Note down x_location_id value
    GET "x_party_id: " from "--8. Create a relation cont-org using party_id from step 7 and party_id from step 2"
    Now Run "--4. Create a party site using party_id from step 2 and location_id from step 3" passing "x_party_id" from Step 8 & x_location_id from Step 3
    Commit the changes and you will able to populate the account site specific contact person details
    Regards,
    rajesh

  • R12: How to create Customer contact at party/account-site level

    Hello,
    I am working on a customer conversion where the legacy system stores customer contact at the address id (i.e. party site) level.
    Using various HZ APIs I have been able to create a party, customer account, location, party site, account site and account site use.
    Now, I want to create contacts at the party site or account site level. Which API is used to create a contact? (I found a note 985500.1 but it shows creation of contact point such as a phone number or email but not the contact itself).
    Any pointers appreciated.
    Manish

    HZ_PARTY_CONTACT_V2PUB

  • Table or report for customer, g/l account and chart of account together

    Hi All.
    I am looking for any table or report where one can see the followings;
    Chart of account and customer together
    or
    chart of account, g/l account and customer together
    or
    cutomer and g/l account
    I am aware of the all the FI table like KNB1, SKA1, SKAT ..and many others. But I failed to get if any of those tables helps to give all above informations together.
    Unless I am missing something.
    Thanks in advance.

    Hi,
    There many FI Reports available to check Customer & G/L Account combination
    1. FBL3N - G/L ACCOUNT LINE ITEM
    2. FBL5N - CUSTOMER LINE ITEM
    3. FBL1N - VENDOR LINE ITEM
    For Chart of Account / Customer and Chart of account /GL account combination you have to develop the Z Report
    For this you can pre pare by using logic of Revenue Account determination
    The table Name Revenue Account determination: C001
    Techincal information: C001-SAKN1
    Sit with your ABAP Programmer and explain your exact requirement he will prepare the table for you as for your requirement
    Best Regards,
    MH

  • Can anyone help me with Magicjack? after I purchased US number I am unable to log in on my Iphone, I keep getting an error "YOUR DEVICE IS NOT ON THIS ACCOUNT" I contacted MJ support but they are very much useless and dont know how to fix it!

    can anyone help me with Magicjack? after I purchased US number I am unable to log in on my Iphone, I keep getting an error "YOUR DEVICE IS NOT ON THIS ACCOUNT" I contacted MJ support but they are very much useless and dont know how to fix it!

    There's a whole lot to read in your post, and frankly I have not read it all.
    Having said that, this troubleshooting guide should help:
    http://support.apple.com/kb/TS1538
    In particular, pay attention to the mobile device support sections near the bottom, assuming you have already done the items above it.

  • We have two iPhones, one iMac, and one iTunes account. Can someone tell me an yeast way to manage each iPhone separately- that is -- when we connect each iPhone how do we keep our contacts separated? this is a real problem. Thanks

    We have two iphones , one imac , and one itunes account. Hope someone can tell me an easy way to synch each iphone so that our contacts stay separate. I would like to share itunes music etc but not synch the same contacts to each phone...major problem... Thanks!

    You have a few options which are detailed here:
    http://support.apple.com/kb/ht1495

  • HT5624 My husband and I share an Itunes account so use the same email address and password.  Our iphones are now connected and we get each other's messages and share each other's contacts.  How can we stop this happening?

    My husband and I share an Itunes account so use the same email address and password.  Our iphones are now connected and we get each other's messages and share each other's contacts.  How can we stop this happening?

    A couple of different approached:
    Create a second AppleID for one of you that includes the email address and phone number you wish to use for messaging, but do not apply it to the iTunes and app store (just keep the current one). My wife and I do this and it works quite well. Also allows for easier syncing of Contacts , notes etc. using icloud if you wish to do that.
    Add additional emails/phone numbers to the existing account and change the Send/Receive settings for Messages. this will not fix the Contcts isues for you however.

  • I've an apple ID used to buy off iTunes and a mobileme account for the calendars and contacts. How can I move the calendars and contacts to the older apple ID and use it for iCloud?

    I've an apple ID used to buy off iTunes and a mobileme account for the calendars and contacts. How can I move the calendars and contacts to the older apple ID and use it for iCloud?

    If you remeber the password to that Apple ID then follow these steps
    1 - Make sure you have an email address that is NOT an Apple ID
    2 - Go to AppleID.Apple.com
    3 - Where it reads Manage Apple ID - Sign in
    Once you are signed in want to make sure the email address you are wanting to use is NOT set up as a "Recovery/Rescue" email for this account.
    [To check this - Main page where you see Primary ID - below do you see the email address you want to use listed towards the bottom? Yes - Delete / No - Good ./. If made any adjustments "Save" Next on the left select "Password & Security" - Answer your security questions you set up "if you have any" then scroll towards the bottom and check to see if you see the email address you want to use. Yes - Delete / No - Good] <-> Also you can change your password on this page as well. Any adjustments made "Save"
    Once this is done go back to the main page where you should read "Primary ID" and change the email address that is showing to the new email address youo want. "Save" Done
    I learned this not to long ago and worked for me. Hope this helps you!

  • I used my apple Id and my iCloud account on my mom's iPhone and all my contacts and stuff went to her phone and hers on mine. I tried to delete my apple id off of her phone now how do I delete the iCloud?

    I used my apple Id and my iCloud account on my mom's iPhone and all my contacts and stuff went to her phone and hers on mine. I tried to delete my apple id off of her phone now how do I delete the iCloud? And will the data from my phone be deleted too if I delete my iCloud off of her phone?

    sophieguichard wrote:
    oh ok    and then i need to create another id for her? would we lose all our stuff?
    thank you so much!!!!
    Well, yeah.  You want to create separate accounts for each of you, using individual Apple IDs.  I know mothers and daughters like to share clothes, shoes, handbags, etc. but don't share Apple IDs. 

Maybe you are looking for

  • ITunes doesn't want to eject a CD...for a while, anyway.

    I burn two music CDs each week (church service CD for shut-ins). A few months ago, I noticed that iTunes (currently v10.5.2) would not eject the CD by using the eject icon beside the title in the side-bar. Nor would the eject key on the keyboard. Sam

  • Help for a former BlackBerry User

    I had a BlackBerry until a couple months ago. The button in the upper right hand corner of a BlackBerry is a sleep button but on a call it is a mute button. The button in the upper right hand of a iPhone is the sleep button...except when you're on a

  • Acknowledgement

    Hi, I am trying to post PO Acknowledgement using ORDERSOR IDOC type and Message type ORDRSP. When I try to post with different quantity than in Purchase order, its getting error with message ' acknowledgement contains quantity variance, can anybody p

  • Ignore fields in File Content Conversion

    Hi all, I need to read first 9 fields in Content conversion from text file and ignore all the others.The problem is I don't know exactly the number of fields(it varies from file to file). I try to use the following in my content conversion: item.fiel

  • Nokia Lumia 2520 serial number?

    I am trying to find the serial number for this device so I can get some technical support.  Can anyone tell me how to find it?