TCA - How to define/convert Contact Person Name???

Hi Guys,
We have a requirement in our implementation where we need to define "CONTACT PERSON NAME" along with defining the contacts like Phone numbers, emails etc....
We are using API - " hz_contact_point_v2pub.create_contact_point" to create a contact but this doenst allow us to define "Contact Person Name"
Please advice....
Cheers,
KK

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

Similar Messages

  • 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

  • How to maintain the contact person in Business Partner ?

    Hi Experts,
    Could you help to resolving the below Requirement.
    __  +Requirement:+__
    How to maintain the contact person in Business Partner ?
    How to get the Contact person in Is-Media Documents?
    Thanks& Regards
    Venkat

    Dear Venkat,
    In SD Customer Master data, we can maintain Contact Person in General Data tab page.
    For my knowledge, we can not find u201CContact Personu201D field in ISM Business Partner u2013 General Data. Correct me if I am wrong.
    Mostly user enters the contact person details in u201CSearch Term 1/ 2 fieldu201D in Address tab page in ISM Business Partner u2013 General Data tab page. While creating ISM Billing Document for this Business Partner, system prints this contact person details in ISM Invoices.
    (Or)
    While creating ISM Order, user can maintain Contact Person name in Header Details(Click on u201CGo to >Header>Details>Purchase Order Data>Cont.Person)
    If you maintain Contact Person name in Header Details also, system print this contact person details in ISM Invoices.
    Check from your end.
    Best Regards,
    Chandramohan

  • Transaction IW32.How to find out the person name.(Last changed By)

    Hi all,
    When i executed the transaction IW32.Its displays changed by and created by fields. please any body can tell me how to find out the person  name who had made last change with respect to the field changed by.
    Please tell me the table and field name for the field last changed by......
    Regards,
    Munna.

    hi,
    check the table AUFK field AENAM for the order number(AUFNR) in IW32..........

  • How do I convert visa resource name into string?

    Could please anybody help? I have an ergent need. How do I convert visa resource name into string?
    Thank you in advance.

    Most times you do not need to convert it. Just wire it stright into what ever string input.
    See "Format Into Srting" or "Type Cast" functions
    Omar

  • HT201412 what do you do when your phone numbers no longer have the contact persons name just a number. Also names are missing from the address  book where contacts are.

    what do you do when your phone numbers no longer have the contact persons name just a number. Also names are missing from the address  book where contacts are.

    I, too, love everything about my phone. The other day I tried to crash my Z10 by running multiple apps and having videos running in the background. Do you think my Z10 showed any signs of slowing down? Nothing doing! It ran as smooth as silk. I'm very impressed.
    Cheers.
    - If my response has helped you, please click "Options" beside my post and mark it as solved. Clicking the "thumbs up" icon near the bottom of my response would also be appreciated.

  • Contact person name

    Hi ,
    Contact person name in the invoice print out is not comming properly, but it is comming in the acknowledgement properly, why this is happening .
    please provide the appropriate solution for the same.
    regards
    srinivas

    Hi there,
    For all print issues, we need to check the code in the form layout of the relevant print progof the output. You can find the relevant print prog in the Processing routines on the left hand side when u select a O/p type.
    If the data is not at all getting printed, we need to supply the values into the code with table-field details.
    If the field mapping is already done but the details are not getting completely printed, check on the number of characters that prog is picking.
    Regards,
    Sivanand

  • TS3672 Messages don't show the contact person name. Instead the number appears. How to get over the problem

    All of a sudden, messages that I send and recieve from contact persons show the number instead of the name/ It happens to some of the contacts and when I open the list of messages to the person, the name show correctly above the list of the messages.
    How do I overcome this?
    Dov

    Nah, it happens to all of us, at one time or another.
    Glad to help!

  • How to fetch the contact person of the Vednor in SRM

    Hi All,
       I need to display the Contact Person of the vendor which is maintained in XK03(contact person(view)).
         ->How to fetch that name in the SRM ?
        ->Is any FM exists ?
    Thanks and Regards
    Channappa

    Hello Channappa,
    Contact person is only significant for Bid Invitations.
    For Bid Invitations, you don't have a Vendor but a Bidder with one or several Contacts Persons.
    So, when you are in BBP_BID_INV transaction, when you look for bidders to link to your bid invitation, you will find their contacts: this is standard process.
    In SAP GUI transaction BP, you will see bidder contacts if customizing done to use BBP_VENDOR_SYNC report to replicate vendors is correctly maintained.
    Regards.
    Laurent.

  • How to Upload the Contact Person to Cremas05 Idoc

    Hi Guru's,
    I have one question, I am a novice in SAP.
    I want to upload the contact person to Cremas05 Idoc . This data is present on Debmas Idoc but not in Cremas.
    Do you have an idea how we can do?
    Regards,
    Moh.

    Hello Moh,
    I'm sorry for the information but there is no ALE support for the vendor contact persons.
    This feature has not been developped and there is no plan to develop it for the next releases.
    The only solution I can see is a consulting project.
    SAP can help for you this.
    If you are interested in such activity, I would encourage you to open a customer message in SAP marketplace under component LO-MD-BP-VM and ask that the message gets forwarded to development support. You may also add my name too in order to speed up processing.
    Sorry for that information
    Best regards
    Alain

  • FM to read Sales Rep and contact person name

    Is there a function module that gets the corresponding name for the following:
    1. Sales Rep, obtained from VBPA-PERNR with PARVW = 'PE'.
    2. Sales Contact person, obtained from VBPA-PARNR with PARVW = 'CP'.
    If no function module exists, at least where to get the required text?
    Thanks in advance.

    Hi
    Get the Name of the Contact person and the sales rep from the KNA1 or ADRC tables
    first get the Partner Number from the VBPA table with the respective Partner function and fetch name from KNA1
    or try/use the fun modules
    <b>EBPP_GET_PARTNER_TEXT
    ISU_GET_PARTNER_ADDRESS</b>
    Reward points for useful Answers
    Regards
    Anji
    Message was edited by:
            Anji Reddy Vangala

  • Getting all contact person names through XL Reporter

    Hi All,
    I am trying to get a list of all contact persons associated with a business partner.
    I am having difficulty to pull all contact persons associated with a business partner. I am trying to get this information through the Report composer of XL Reporter.
    When I drop the Business Partner and Contact Person dimensions from Business Partner tab into Report Composer and run the report, I only get Business Partner and just one contact person(the first contact person created for that BP).
    I am trying to get all contact persons associated with that business partner. Is there something I am missing or is this the issue with XL Reporter.
    Please let me know. Than you for your input.
    Regards,
    Payal

    Hi Gordon,
    Thank you very much. Yes, I know a query will work.
    But, the customer is more inclined to get this information via XL Reporter. I just wanted to check if it is possible to achieve via XL Reporter and that I am missing anything.
    Thank you,
    Payal

  • How to modify the contact persons company address changes

    Hi Friends,
    My requirement is i want to update the address of the contact person in relationships. Actually when we are maintaining the relationships it is automatically taking the Accounts address in company address field but i wants to maintain the different address for each contact person related to the particular account for that i used Bapi_bupa_contp_addr_change functions module as well as Bapi Transaction Commit also but it is not helpful.
           I want to change the contact persons address as per flat file, so please let me is there any fuction module for changing the address of a contactt person in relationships.
    Regards
    Kumar

    Hi Kumar,
    could you solution this issue?
    I use this FM, I cna Insert new telephones por relationship but, I can't delete and update.
    Can U help me? my code:
    data : i_bapiadtel like BAPIADTEL occurs 0 with header line,
           i_bapiadtel_x like BAPIADTELX occurs 0 with header line,
           i_return LIKE bapiret2 OCCURS 0 with header line.
    i_bapiadtel-telephone = '937102020'.
    i_bapiadtel-std_no = 'X'.
    APPEND i_bapiadtel.
    i_bapiadtel_x-telephone = 'X'.
    i_bapiadtel_x-std_no = 'X'.
    i_bapiadtel_x-updateflag = 'D'.
    APPEND i_bapiadtel_x.
    CALL FUNCTION 'BAPI_BUPR_CONTP_ADDR_CHANGE'
      EXPORTING
        businesspartner = '0020034745'
        contactperson   = '0090004124'
      TABLES
        bapiadtel       = i_bapiadtel
        bapiadtel_x     = i_bapiadtel_x
        return          = i_return.
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
      EXPORTING
        wait = 'X'.
    Thanks in advance.
    Sergio

  • How do replicate the contact person to ERP partner fuction from CRM

    All experts,
         I already replicated contact person from CRM to ERP,but the contact person just appeared in tab contact person in ERP customer general data.
         Actually,when i created contact person relationship in CRM,i could assgin contact person to a salse area,so  I want to replicate contact person to tab partner fuction in customer sales area data in ERP. pls give me a  light. thks
    Raymond J

    Hi Raymond,
    I believe the contact person in question is assigned only as a partner function in R/3. Therefore you will only see the usage of that BP as a partner function, but not the relationship specific data.
    You will need to create a contact person relationship for the BP.
    So the relationship specific data will not be visible for a contact person in R/3 which is only assigned as a Partner Function in R/3.
    Can you please check this on your system?
    I hope this helps.
    Best regards,
    Ita

  • How to find PC restarted person name.

    Hello.
    The  proces chain is got aborted, but in our project we have 3 people's  to support but in different locations.
    so how to know who has corrected the error? which person?
    for example we got time stamp error, so how to know who has corrected in three person's?

    you can check the logs in @ TCODE - SLG1
    enter particular date and time(you can date and time from the PC logview)
    enter user name one after one / check actions(ex. replication) performed by users

Maybe you are looking for