Fm to get the Contact person address if he doesn't ve thn his comp address

Hi Gurus,
This is seema,,am new to CRM .... got a doubt ... thought of posting it here...
My req is i need to find out a contact person full address , incase if he does not have the address then i should refer to his company(has contact peron for) address and get it...
am searching for FM where i cld achieve the above requirement..
I had given a search for this before giving for a post...but i could not get it ...
In the same requiremetn, i need to find out the person (employee) who is responsible for creating and his job title.. any FM to get employee details with his job title?
Thanks for all your time.
Seema
Edited by: seema rajjot on Apr 6, 2010 3:00 PM

Hi Seema,
You can get the address of CP from tables BUT020, BUT021_FS, ADRC and ADR2 etc., In case if the CP address is empty, go table BUT051 and get the Company affiliated to it using the Relationship type BUR001. Then get the address of Company using the same tables again. Refer to the below link, it has details about how to read the BP address by Address type. If you want to read the default address use address type XXDEFAULT.
[Read BP Address based on Address type and Update Address|http://www.divulgesap.com/blog.php?p=MTA5]
Hope it helps.
Regards,
Ravikiran

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

  • BP_CONT: not getting the contact person email value from custom controller

    Hi Experts
    not able to find the email address in any of the context node, actually my requirement is while creating the BP contact , get the email address  BP_ADDR/StandardAddress STRUCT.E_MAILSMT . take this email id and check whether this email id exists in system if exists throw the error while saving . for this I did the codin in BP_CONT component on save method but while saving some times my custom controller is getting initiated some times it was not containing any value , kindly let me know how can I get the email value of contact person in BP_CONT  component in view BPCONTOverview .
    here is my code on method eh_onsave
    lr_curo_bpcont_custcntrlr ?= me->get_custom_controller( controller_id = 'BP_CONT/BPCont' ).
      IF  lr_curo_bpcont_custcntrlr IS BOUND.
        TRY.
            lr_entity_privstdaddr ?= lr_curo_bpcont_custcntrlr->typed_context->privstdaddr->collection_wrapper->get_current( ).
            lv_privstdaddr_e_mailsmt = lr_entity_privstdaddr->get_property_as_string('E_MAILSMT'). " Get runtime email value of contact person
            lr_entity_bpcategory ?= lr_curo_bpcont_custcntrlr->typed_context->builheader->collection_wrapper->get_current( ).
            lv_partner_category = lr_entity_bpcategory->get_property_as_string('BP_CATEGORY'). " Get Partner Category value
          CATCH cx_sy_ref_is_initial cx_sy_move_cast_error cx_crm_genil_model_error.
        ENDTRY.
      ENDIF.
    here the problem is some times I'm getting the value and some times I'm not getting value the related objects also through get related entities contact person emial is not getting populated any where
    kindly help what is going wrong
    Thanks & Regards
    Rajasekhar

    Hello Rajasekhar,
    Could you please share how you resolved this issue? I have the exact same requirement (duplicate check based on email).
    Kind regards

  • Regd the contact person fax and email address

    Hi,
    I am trying to get the contact persons fax and email address.The telephone # is available in KNVK table.but I don't see fax and email.Let me know how to get the details.
    also I see PRSNR in KNVK..What  is the purpose of peson number?
    thanks
    Suganya

    Take a look at the code below, Extract from KNVK and use the prsnr number to extract tel number and email address.
    * Use function & dept to extract KNVK data and person number
    SELECT parnr kunnr namev name1 abtnr anred pafkt parh1 parh2 parh3 parh4 parh5 pakn2 pakn3 pakn4 pakn5 prsnr
    FROM knvk
    INTO TABLE i_knvk
    WHERE kunnr = wa_vbak-kunnr.
    * Use person number to extract the fax no.
    IF i_knvk[] IS NOT INITIAL.
    SELECT persnumber fax_number
    FROM adcp
    INTO TABLE i_adcp
    FOR ALL ENTRIES IN i_knvk
    WHERE persnumber = i_knvk-prsnr.
    ENDIF.
    IF i_knvk[] IS NOT INITIAL.
    SELECT persnumber smtp_addr
    FROM adr6
    INTO TABLE i_adr6
    FOR ALL ENTRIES IN i_knvk
    WHERE persnumber = i_knvk-prsnr.
    ENDIF.

  • 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

  • How can I delete the home address of the contact person

    Hi Experts,
    I want delete the home address of the contact persons in the ERP.
    Which data and where can you found it:
    In Tx xd02 in the general data of customer - register "contact person" and then button "home address".
    There I want delete all fields. When I looked in F1 - technical information I don't get the information in which table the data are included. I know only the structure.
    I think the general data of the contact person I have to look in the table knvk.
    The private and the business email address I can find in the table ADR6.
    In the table knvk there is a field "address number". I  know when there is a number then the contact person has a home address and when this field is empty then for this contact person isn't maintain a home address.
    Could I delete this field "address number" in the table knvk? Is then the home address automatically deleted?
    I don't know how can I delete this field. Can anybody tell me how can I do this? I looked in the Tx xd99 this field isn't available there.
    Or does anybody know how can I delete the home address of the contact persons on another way?
    Thank you in advance.
    Best regards, Jasmin

    Hi,
    I am sorry, I forgot to say I don't want delete only one home address. Yes, you are right, then I could delete it manually.
    But I want to delete all private addresses, so I should have a tool for mass deletion.
    Does anybody know how can I do this?
    Best regards, Jasmin

  • How to get the contact photos from the address book on the ipod ??

    Hello !
    I figured out that it was available to sync the address book (on Mac OS)with the contact photos and find them on your ipod nano chromatic... But I have Windows and I can't make it work with Outlook. I can sync it with itunes and have the contact names and few infos but not the pictures, there is just a grey silhouette instead of the contact photo. Is there anybody that know how to get the contact picture on the ipod (with Windows OS) ?
    Thanks a lot in advance !
    Hyrekia

    Hooray !! I have found how to do it !! There is a new option now on itunes when you sync your ipod with outlook. You just have to check the box entitled "add the contact pictures". I'm not sure it was there before, but I did an update today !!
    I'm really glad !!
    Hyrekia

  • 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

  • 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.

  • Notifications not going to the contact person

    Hello Friends,
    Scenario - When i create an RFI Customer activity in a CSR and set its status to 'Requested Customer'', a notification (more information is required) goes to the contact person and the team lead of CRO (Customer Responsible Organization). If the customer does not reply for 3 days (in case of a High Severity CSR) or 7 days (in case of severities other than High), then reminder notifications (more information required - reminder) get triggered which go to the contact person and the team leads of CRO.
    Problem - In the first case,the notification (more information is required) goes to the contact person and the team lead of CRO (Customer Responsible Organization) where as in the second  case, the reminder notifications do not go to the contact person, but they go to the team leads of CRO.
    Analysis - There are 2 workflows that get triggered when the  RFI Customer activity in a CSR and set its status to 'Requested Customer''. The first one sends the notification  (more information is required) to the contact person and team leads of CRO immediately. The other workflow checks whether the customer has replied for 3 days (in case of a High Severity CSR) or 7 days (in case of severities other than High), and then sends the notification to the contact person and team leads of the CRO. I have checked the bindings, tasks, receiver rules and the methods in both these workflows. They are exactly similar. The only difference in these workflows is the wait step added in the second workflow.
    Do you have any clue as to what is the reason behind the second workflow not sending the notifications to the contact person ?
    Appreciate your help and timely response.
    Thanks
    Prashant

    Hello Rick,
    Thank you for your response. Here are the answers to your queries -
    Question -->Is a mail being sent to the same email address in both workflows with SendMail, and only working in one of them?
    Answer --> Yes
    Question -->There must be some other difference other than the wait step.
    Answer --> The difference between the 2 workflows is mentioned step by step as below -
    Workflow for which the notifications are sent to the contact person and team lead of CRO
    Step 1 --> Condition step whether the email address exists or not.
    If No --> Sends a mail to the LDA (Local Database Administrator) to maintain the email address of the contact person
    If Yes --> Goto Step 2
    Step 2 --> Condition step whether the Severity of the CSR is High or not
    If Yes --> Send step (to send the email notifications to the contact person and team lead of CRO)
    If No --> Send step (to send the email notifications to the contact person and team lead of CRO)
    Workflow for which the notifications are not sent to the contact person and team lead of CRO
    Step 1 --> Condition step whether the email address exists or not.
    If No --> Sends a mail to the LDA (Local Database Administrator) to maintain the email address of the contact person
    If Yes --> Goto Step 2
    Step 2 --> Condition step whether the Severity of the CSR is High or not
    If High - Wait Step (waits for 3 days before sending the notifications to the contact person and team lead of CRO)
    If Other - Wait Step (waits for 7 days before sending the notifications to the contact person and team lead of CRO)
    Step 3 --> Condition step to check the CSR Status (to check whether the customer has replied or not)
    If Yes(customer replied) --> End workflow
    If No (customer has not replied)--> Send step (to send the email notifications to the contact person and team lead of CRO)
    Question -->How have you implemented the wait step? Does it fetch the address before or after the wait?
    Answer --> The email address is fetched at the very first step.
    Question -->What happens if you make a test workflow with just the Sendmail step and send to the same address?
    Answer --> The notification goes to the same email address.
    Kindly let me know if the information that i have provided is comprehensive enough. Your help will be deeply appreciated.
    Thanks
    Prashant

  • How can I get the contact book to work?

    I cannot get the contact book to save any contacts.  I have to enter each one each time.
      Which given that I have to enter it in the contact book and cannot enter just the e-mail address, is really really irritating.  The next time I open the contact book after sending the e-mail, there are no contacts.

    Hi there.
    By chance, I too have the readability bookmarklet installed (but I don't use it that much, to be honest), and it works ok for me. It's possible that you are having a problem with some Firefox add-on that is hindering your Firefox's normal behavior. Have you tried disabling all add-ons (just to check), to see if Firefox goes back to normal?
    Whenever you have a problem with Firefox, whatever it is, you should make sure it's not caused by one (or more than one) of your installed add-ons, be it an extension, a theme or a plugin. To do that easily and cleanly, run Firefox in [http://support.mozilla.com/en-US/kb/Safe+Mode safe mode] (don't forget to select ''Disable all add-ons'' when you start safe mode). If the problem disappears, you know it's from an add-on. Disable them all in normal mode, and enable them one at a time until you find the source of the problem. See [http://support.mozilla.com/en-US/kb/Troubleshooting+extensions+and+themes this article] for information about troubleshooting extensions and themes and [https://support.mozilla.com/en-US/kb/Troubleshooting+plugins this one] for plugins.
    If you need support for one of your add-ons, you'll have to contact its author.
    If the problem does not disappear when all add-ons are disabled, please tell me, so we can work from there. Please have no fear of following my instructions to the line, as all can be easily undone.

  • Which table does the Contact person info (given in cu. master) is stored?

    H,
    I would like to know in which table the contact person details are stored, which in maintained in customer master general data under the contact person tab. I need to get the information of contact person i.e. telephone numbers, mobile, email, etc...
    Can any one help me..
    Thanks
    Ghanesh

    Hi,
    in KNVK Table or see structure RF02D
    Kapil

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

  • Deleting the Contact Person Relationship

    I am trying to delete the Contact Person relationship with a Business Partner.
    When I am trying to delete the realtionship it is giving out error saying Address is till being used and cannot be deleted.
    Any one has any suggestions for me

    We are facing the similar problem. Any luck in solving this issue of deleting the Contact Person Relationship.

Maybe you are looking for

  • Error when function defined as property of TestCase

    I'm finding that defining a test case property as a function data type causes some problems. Here the test case. package tests     import flexunit.framework.Assert;     public class TestExample         public var exampleFn:Function;         [Test]   

  • Infoset Query- How do I clear the in-built selection screen in LDB

    Dear Experts, When LDB is used in queries unwanted selection screen blocks appear. Please help in getting rid of the same. Kind Regards Jogeswara Rao

  • How to view my final ebill after porting numbers?

    Does anyone know how to view my final bill?  When I ported my five telephone numbers two weeks ago to AT&T and Verizon deactivated my online account.  I still receive emails telling me my bill is ready to view online but I cannot log in, it tells me

  • Indesign CSS crashes when placing a Word document

    I can place images and other file types fine. but have been unable to place word documents, I save, save as, save as an older version of word. It is just appears to be loading, but becomes 'not responding' and I have to shut it down through task mana

  • Itunes not opening after Windows Update

    I am aware that a post was made recently that was very similar to this one, but my problem is different enough that i deemed it necessary to make my own topic) Ever since I downloaded the new Itunes 10, everytime I have had a Windows update (I am usi