Query For BP Contact Person

Hello -
I would like to make a query that pulls a specific BP Contact Person and e-mail for that contact.  We have assigned a contact called A/P for most of the BP's in our database.  The A/P contact is the one that we use to e-mail invoices. 
Could someone help us to come up with a query that will pull the following: CardCode, CardName, Phone1, Contact A/P, Contact A/P E-mail?  If there is no contact named A/P in the BP Contact Persons tab then this could be left blank in the query. 
Anyone know how to do this?
Thanks,
Mike

Hey Guys -
Thanks for the help!  Krishnan's query is more in line with what I am looking for.  It looks like it pulls just the BP Customers that have A/P listed as a contact in the Contacts Person tab and includes the A/P contact's e-mail. 
However, I would like it to pull all the BP Customers so we have a complete list.  However, if there is no A/P listed in the Contact Person then just leave it blank.  
Also, would like to pull data from one other column of into -- UDF we use for internal order notes.  The system information shows that this UDF is labeled as OCRD, U_ORDN. 
Thanks!!
Mike

Similar Messages

  • How to change validity for relationship contact person - BUR001

    Hi group,
    I need to be able to change the from and to date from the relationship category BUR001 (Contact Person). The system automatically sets the FROM as 01.01.0001 and the TO as 31.12.9999.
    I assumed the customizing for this is done in the relationship category settings in transaction BUBA. Setting its value to 2 or 4 should do the trick and does the trick for any other relationship category, but NOT for the contact person category. Of course I need to be able to change this one and not other types
    I am sure this problem has been encountered before. Please provide me with suggestions. Again: BUBA settings do not solve my problem for specifically this relationship category.
    Thanks in advance! Useful answers will be rewarded.
    Kind regards,
    KZ

    Hi there,
    We can creat a relationship category of contact person with validity period.then use this relationship category while you assign the contact person to the main Business partner.

  • Datasource for Vendor Contact person Address

    Hi,
    I am looking out for the DS for Vendor Contact person address, which is taken from ADRC table. 0BP_DEF_ADDRESS_ATTR is having Business partner number. it gives all the required data. how to i link it with vendor LFA1 and COntact PErson in KNVK to get the required result.
    Thanks & regards
    Abi

    Hi,
    There is no standard data source available for your requirement.
    You can enhance 0Vendor_attr master data with LFA1-ADRNR, KNVK-PARNR and address fields in ADRC and populate using user exit code based on the following logic.
    Get LFA1-ADRNR where 0VENDOR_ATTR-LIFNR = LFA1-LIFNR
    Get KNVK-PARNR where LFA1 - KUNNR =  KNVK - KUNNR
    Get address fields from ADRC where
    LFA1 - ADRNR = ADRC - ADDRNUMBER
    ADRC - DATE_FROM = Hard code the values required
    ADRC - NATION = Hard code the values required eg. I for international version.
    Hope it helps
    Regards, Jeya

  • Query to get Contact person in UDF

    Dear experts,
    I am trying to create Query to get Contact person in UDF
    SELECT T0.[CntctPrsn] FROM OCRD T0 WHERE T0.[CardCode] =$[OQUT.CardCode]
    changes may be made to contact person.
    how can i link OQUT to OCRP with Contact person?
    Or any other way to get Contact person in UDF?
    Pls advise
    Thanks in advance
    jo

    HI
    Use this query:
    select t1.name from OCPR t1 on t0.CntctCode = t1.CntctCode where t1.CardCode = $[OQUT.CardCode]
    Edited by: kambadasan on Feb 20, 2012 3:22 PM

  • Changing the email Content for the Contact Person Creation

    Dear All
    We are on SRM 7.0. We need to change he mail content that goes to the Contact Persons of Vendors. These contact Persons are created in SRM for bidding.
    How to change the email content?.
    Thanks in Advance.
    velu

    Hi,
    Pl. follow the following steps :-
    1. Create smartforms containing your own content to be sent to contact persons.
    2. Implement the BADI : BBP_OUTPUT_CHANGE_SF.
    3. There is one interface(method) in the above BADI e.g. :change_forms.  You have to call smart forms in this interface.
    I hope you may achieve your task by following the above steps.
    regards
    HARSHB

  • BAPI for Vendor Contact Person.

    Hi,
       My requirement is to have a BAPI which will insert / update a Contacts Person address or other Details for Vendor(i.e XK02) and that to Contact Person.
      Other ideas are also welcome.
    Can anyone suggest? Or Guru's, u want some more clarification.

    Hi
    check for the BAPI - "BAPI_VENDOR_EDIT". I m not sure about the address details in this.
    You can also use LSMW to update the records. It would be easy.
    Thanks
    Sachin

  • FM for changing contact person attribute field PARH1 - tab knvk

    Hello,
    I'm still searching a function modul
    with which I can update my PARH1 - fields in the cp-adress.
    Table knvk, field parh1.
    Any ideas ?
    Thanks G.

    hi,
    as per my understanding you have to write own code for this specific requrement.
    but these threads might help you.
    [Fm to get the Contact person address if he doesn't ve thn his comp address   |Fm to get the Contact person address if he doesn't ve thn his comp address;
    let us know if it is giving you insight to solve this issue.
    Regards,
    Rajeev

  • How to create a LEAD using BPs for Company & Contact Person?

    Hi Group,
    I searched for a BAPI called "BAPI_LEAD_CREATEMULTI" to create Leads for the input file which is having the following format:
    Sales prospect     Lead group     status     Qualification level     Origin     Priority     contact person     Lead group     status     Qualification level     Origin     Priority
    The first and last fields being Sales Prospect & Priority fields....
    My file consists of Business Partners (in the fields "Sales Prospect" and "Contact Person" fields)......
    The thing is, I was not able to make use of the BAPI for the fields in the file.
    Please kindly let me know through some sample coding how I can make use of this particular BAPI for my requirement....... Sample code is needed......
    It is very helpful if the solution is sent soon....
    thanks in advance.
    Regards,
    Vishnu.

    Hi Vishnu,
    Just check this post also:
    Re: CREATING A LEAD
    You need to fill the "PARTNER" input field table it has "PARTNER_FCT" field for different partne function.
    e.g if you are using handle key , then
    REF_HANDLE R REF_ REF_PART REF_PARTNER_NO   RE RE PARTNER_ PARTNER_NO                       NO DI K
    0000000001 A 0000 00000000                        00000012 000000128                        BP BP C
    0000000001 A 0000 00000000                        00000021 000000128                        BP BP C
    0000000001 A 0000 00000000                        00000026 000000128                        BP BP C
    0000000001 A 0000 00000000                        00000015 000000128                        BP BP C
    Where the values of partner_fct
    15  for Contact paerson
    21  for Sales Prospect
    hope it will help
    Thanks,
    Arjun
    pl. Reward points................

  • How to update the telephone number for a contact person in VAP2.

    hi,
          I want to update the telephone number for a particular contact person in VAP2 from custom transaction. I tried for BDC,
    but it was not updating. Could you plz any one help to solve this issue.

    Try these bapis;
    BAPI_CUSTOMER_CHANGEFROMDATA
    BAPI_CUSTOMER_CHANGEFROMDATA2
    BAPI_ADDRESSORG_CHANGE
    or BAPI_ADDRESSPERS_CHANGE
    Edited by: deniz kaylan on Apr 30, 2010 8:55 AM

  • How to get adress no for the contact person address

    Hi,
    I am getting the PARNR contact person from the table KNVk , I need to get the address no for this contact no , is there any table which links pernr with ADDRNUMBER .

    >
    Vishnu Tallapragada wrote:
    > Actually address number is already there in KNVK in PRSNR field.
    PRSNR  is the person number not address number.
    its ADRNP_2 in knvk
    кu03B1ятu03B9к

  • Report for listing contact person with customer

    Hello,
    we use the tables adrc, adrp, kna1, knvv and now I want to know if somebody has a ready report, where I can put the country-id in (f.e. 'it') , so that this reports lists all contact persons with their customer and their adress.
    Does anybody such a report ?
    Thanks
    Gerd

    again

  • Querying for Opportunity Contacts

    Hello,
    Is it possible to run a query to get the list of contacts for an Opportunity?
    Thank you,
    -Kevin

    You can always get it using web services. I hear you have that ability with R17 (wait till the rubber hits the road)

  • DTW importing activity for contact persons

    Hello All
    SAP B1 V 9.0 and DTW 900.52.1
    I am trying to export data from one software and import into SAP Business one using the DTW.
    I have imported my business partners as well as the contact persons associated with the business partners successfully using DTW OCRD and OCPR.
    My next step is to export from previous software the activity associated with each contact person.  
    For example I have business partner C0001 and many contact persons under C0001. Business partner C0001- contact person Jane Doe, John Doe, John Smith etc.  What I am trying to accomplish is import activity to SAP B1 for each contact person (Jane Doe, John Doe, etc) using the DTW.  I cannot seem to figure out how to import the data so that it is associated with correct contact person for the appropriate business partner?  I can import the activity for the business partner but not for each contact person.
    Any advice greatly appreciated.
    Can I create a query to obtain the CntcCode from OCLG when no activity has been created?

    Problem solved
    I was trying to obtain the internal number associated with all OCLG Contact Person regardless if they had any activities.  I needed the information to migrate activities from and old system into SAP.  Selecting cntctcode from contact person will not generate the internal codes from OCLG and you will receive a data not found error.  Only the contact persons with activity would be produced.  I received some additional assistance and got the following query to work.
    select t1.cntctcode as CntctCodeFromOCPR,t1.name as ContactPersonFromOCPR,t0.cardcode,t0.cardname,t0.CntctPrsn from ocrd t0
    join ocpr t1 on  t0.cardcode=t1.cardcode

  • Campaign execution not send emails for contact persons

    Hi All!
    I'm facing a problem with Campaigns (communication medium - E-mail): Those are the steps i'm following:
    1.Start the campaign, and on the "campaign: Schedule job" screen, i choose  "immediately". If i look at the campaign details after scheduled the job, the status is now "job started".
    2. To check wich mails were sent, I also had a look at the business partner account that belongs to the target group used. On the "Interaction History" block, there is a line: "Outgoing Email" - on the details of this outgoing email I can see the "To" (Receivers). And here, I have emails from the business Partner contact persons and from the business partner itself (the email that is on the header level of the business partner account, on the "main address and communication data" area). So far so good. That's exactly what i need but,
    3. If i go to the tcode, i only have a send request for the business partner itself and none for his contact persons (although those emails are on the "To" line for the interaction history).
    I'm working on the Webclient UI, of the CRM 7.0
    Does someone knows why the emails are not being sent also for the contact persons?
    Thanks in advance.
    Inê

    I have achieved this by implementing the BADI : CRM_MKT_ADR_SEARCH
    In this BADI's method : CHANGE_SEARCH_RESULTS you can modify the data which is being sent back to system for campaign execution.
    NOTE: I am using Address Independent Communication Data of Business Partner
    Below is my sample code for contact person email :
      data: wa_bp_cp_channel type crmt_bp_cp_channel.
      field-symbols: <fs_bp_cp_channel> type crmt_bp_cp_channel.
      types: begin of ty_cp,
              partner type but000-partner,
              address type but000-addrcomm,
             end of ty_cp,
             begin of ty_bpcp,
               partner1 type but051-partner1,
               partner2 type but051-partner2,
             end of ty_bpcp.
      data: it_cp type table of ty_cp,
            wa_cp type ty_cp.
      data: it_bpcp type table of ty_bpcp,
            wa_bpcp type ty_bpcp.
      data: it_bp type table of ty_cp,
            wa_bp type ty_cp.
      read table ct_bp_cp_channel into wa_bp_cp_channel with key com_channel = '03'.
      if sy-subrc = 0.
        select partner addrcomm
          from but000
            into table it_cp
              for all entries in ct_bp_cp_channel
                where
                  partner = ct_bp_cp_channel-cp_number.
        select partner1 partner2
          from but051
            into table it_bpcp
              for all entries in ct_bp_cp_channel
                where
                  partner1 = ct_bp_cp_channel-bp_number.
        if it_bpcp[] is not initial.
          select partner addrcomm
            from but000
              into table it_bp
                for all entries in it_bpcp
                  where
                    partner = it_bpcp-partner2.
        endif.
        sort it_cp by partner.
        sort it_bp by partner.
        sort it_bpcp by partner1.
        loop at ct_bp_cp_channel assigning <fs_bp_cp_channel> where com_channel = '03'.
          read table it_cp into wa_cp with key partner = <fs_bp_cp_channel>-cp_number binary search.
          if sy-subrc = 0.
            <fs_bp_cp_channel>-addrnumber = wa_cp-address.
            clear <fs_bp_cp_channel>-bp_number.
            clear <fs_bp_cp_channel>-bp_guid.
          else.
            read table it_bpcp into wa_bpcp with key partner1 = <fs_bp_cp_channel>-bp_number binary search.
            if sy-subrc = 0.
              read table it_bp into wa_bp with key partner = wa_bpcp-partner2 binary search.
              if sy-subrc = 0.
                <fs_bp_cp_channel>-addrnumber = wa_bp-address.
                clear <fs_bp_cp_channel>-bp_number.
                clear <fs_bp_cp_channel>-bp_guid.
              endif.
            endif.
          endif.
        endloop.
      endif.

  • FM for Vendor vs contact person

    Please suggest FM for getting contact person numbers for vendors in SRM.

    Hello,
    have a look at this thread:
    FM ot Table for User deatols based on user id
    Regards.
    Laurent.

Maybe you are looking for

  • Help with JDPA failure on JVM Startup from C++ using JNI_CreateJavaVM

    The short version: When I try to start a jvm with the -Xrunjdwp from C++ using JNI_CreateJavaVM and the following settings, it simply crashes. I can run my program just fine when this option is not present. JavaVMOption aoOptions[5];      aoOptions[0

  • HEcess is not updating in RG23 A and RG23 C for utilization amt.

    Dear All We have done utilization for the month of FEB-08.On chicking the registers entriesf or utilized amt.In PLA Registers BED,Ecess,HEcess are showing but in RG23A and RG23c  Part II HEcess is not appearing showing.  Please guide in this matter.

  • How to configure  a test sever with the system copy with prd data

    Dear All , I need to configure  a test sever with the system copy with prd data. Please any one can suggest the step by step process to do the same configure and  system copy. Regards kumar

  • Storing DW snippets in the cloud

    Hi, was sent here by the Adobe Dreamweaver management on Facebook. I lately wrote nearly the same posting here in October 2012 regarding the DW CS6 version. I still want to change to DW (CC this time) but can't because Adobe seems not to be able to m

  • Why is my Macbook so slow to open?

    Why is my MacBook so slow to start up? I've recently cleared more space on the start-up disk (currently has 49GB of the 74GB capacity), but it still takes about 2 minutes to start up from cold. Any suggestions?