How to display Customer contact purpose details

Hi All,
I am using below query for getting customer contact details and I am getting all teh details except contact purpose( e.g. Acknowledgments,Invoices) fields anywhere. Which table I need to join for this? I havetried using Diagnostics also but nothing related to this.
in attached screen shot I have got all the information except purpose field.
Version 12.1.1
Navigation:
Open a customer-> go to site etails-> communication tab>Account site contacts-> Crate new contacts-> Add a Purpose
I want to display the purpose field in below query :
SELECT hcas.CUST_ACCT_SITE_ID,h_contact.party_id contact_id,h_contact.party_name contact_name, hcp.phone_number, hcp.EMAIL_ADDRESS ,hp.party_id,hp.party_name --, hcp.phone_number,
,cust.account_name,cust.account_number,nvl2(hcas.org_id,'SITE CONTACT','ACCOUNT CONTACT') "Contact Level",
nvl(hcas.org_id,cust.org_id) org_id
FROM
ar.hz_parties hp,
ar.hz_relationships hr,
ar.hz_parties h_contact ,
ar.hz_contact_points hcp,
ar.hz_cust_accounts cust,
ar.hz_cust_Account_roles hcar,
ar.hz_cust_Acct_sites_all hcas
where
hr.subject_id = h_contact.PARTY_ID
and hr.subject_type = 'PERSON'
and hr.object_id = hp.party_id
and hp.party_name = :p_party_name
and hcp.owner_table_id(+) = hr.party_id
and cust.party_id = hp.party_id
and hcar.cust_Account_id = cust.cust_Account_id
and hcar.party_id = hr.party_id
and hcar.cust_Acct_site_id=hcas.cust_Acct_site_id
and CURRENT_ROLE_STATE='A'
Thanks,
Joohi

You can get Contact purpose from hz_role_responsibility table.
Join with
hz_role_responsibility.cust_account_role_Id = hz_cust_account_roles.cust_account_role_id

Similar Messages

  • Displaying Customer Contacts in TCODE FBL5N

    Hi ,
    I need to display Customer Contacts in tcode: FBL5N
    this is same as i am getting the Customer Contacts in tcode:FD03
    So i need to display data in pop box with ALV with other push buttons on it
    so can any one will sujest how to go about it.
    Or i need to use any Enhancements for it
    if please give me a advice
    thank you
    Regards
    Raghavendra Prasad

    Hi,
    <b>Implement BTE 1650</b> (LINE ITEM DISPLAY: Add to data per line ).
    Goto transaction FIBF to impplement BTE. You will find this BTE under "Environment - > Info system(p/s).
    Refer to this link for more information related to BTEs
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/207835fb-0a01-0010-34b4-fef1240ba9b7
    This is how you implement BTE.
    In FI you can use BTEs (Business transaction evernts). You can use transaction FIBF to implement BTEs. Following are the steps on how you can implement BTE once you are in transaction FIBF.
    <b>[1].</b> first of all you need to find out the suitable BTE for your requirement. There are two kind of interfaces available in SAP for BTEs a). Publish & Subscribe interfaces and b). Process interfaces .
    To do this, choose Environment -> Info system (P/S) or Environment -> Info system (Processes). Execute the program. You should enter "A" as the attribute type. You see the respective interfaces with which the R/3 System provides you. Note the key of the interface which you require. ( key is nothing but the '8' digit / character number ). All the iterface comes with sample function module. Once you identify the interface which meet your requirement, double-click it and it will show you the sameple function module.
    In your case you will find your BTE under Environment -> Info system (p/s). The BTEs ise,
    Key Description
    <b>00001650: LINE ITEM DISPLAY: Add to data per line</b>
    If you double click any of this, it will show you the sample function moule name. In this case the sample FM is <b>SAMPLE_INTERFACE_00001650.</b>
    Note down the key and sample FM name.
    <b>[2].</b> Enter a product using "Settings -> products -> of a Customer. Here you enter the product name in customer name space and give meaningful description. ( do not check "active" check box this time - see step-5 for this ).
    <b>[3].</b> Go to Settings -> P/S function modules or Process function modules -> of a customer. Here you go to either P/S function module or process function module depending of what BTE you are implementing from step-1.
    In your case the BTE is from P/S info system you go to "Settings -> P/S function module -> of a customer".
    Here you make following entries.
    > a) Process ( this key for the interface you selected in step-1 )
    > b) Function module ( Enter a custom function module name, here you just give the meaningful name. The function module can be designed once you finish the required settings in transaction FIBF )
    > c) The product that you want to use ( this is the product you entered in step-2)
    <b>[4].</b> Now you go to transaction SE37 to design your custom FM. For this you Copy the sample module you note down in step-1 and call it the same as the function module entered in step 3. Fill the source text of the empty function module. Activate the function module.
    <b>[5].</b> Now go to transaction FIBF again and go to the menu path as described in Step-2. Now you active the product you entered earlier by checking "active" checkbox.
    <b>[6].</b> Run the R/3 transaction / program affected and test whether calling your function module works.
    Let me know if you have any question.
    Regards,
    RS

  • How to export customer/vendor aging detailed transactions to excel ?

    hi all,
    How to export customer/vendor aging detailed transactions
    to MS-Excel ?
    After entering all selection creterias,report
    opens up with consolidated aging details
    for each customer,we need to double click a
    customer to get detailed break up of all transactions,
    Is it possible to export to ms excel for detailed transations break up of all customers/vendors ?
    In standard it is only possible to export detailed
    transactions break up for a customer/vendor ?
    Jeyakanthan

    Thanks,
    Eventhogh we don't need detailed aging report in print,
    we converted print preview into text file
    and then converted to excel format.
    Jeyakanthan

  • ICI - How to display custom error messages in SAP CRM

    Hello,
    we are working on a custom Contact Center which interfaces with SAP CRM Version 7 with Enhancement Package over ICI.
    The basic call functions like accepting, hanging up, holding and retrieving are fully implemented and are working already.
    Our goal is to display error messages in the CRM so that clients know there is something wrong, for example why he can't be log in successfully (e.g. the telephony server isn't reachable).
    We already found the ICI Documentation file which provides us the CRM SOAP error codes and tried to send SOAP Fault messages, but never got
    them to screen.
    Please find an attached example screenshot what we mean exactly, reproduced by trying to make a call with CRM user while BCM CDT isn't
    running in the background.
    Regarding to this topic we've the following questions:
    - Is it possible to display custom error messages on the CRM or is this functionality limited to SAP?
    - Could you provide us some further information on how to use this feature exactly (implementation details?) and how the SOAP XML should look like to get it work?
    Thank you in advance!
    Best regards
    René Holy

    NewUser7 wrote:
    Please correct me if I am wrong
    I need to create an entity adapter and attach an error handler with the adapter? or can i handle that in the event handler itself. I coulnt find any api for handling errorsYou can do it both ways but since we are talking about event handler now, then in 9.x you need to extend com.thortech.xl.client.events.tcBaseEvent class for creating a event handler. In tcBaseEvent class there are various flavors of handleError method. So use that as per my note earlier and you should be good.
    HTH

  • How to Create Customer Contact data in SAP CRM

    Hi All,
    Would want to create Customer Contact data in SAP CRM, could please guide me step by step that how can i create the customer contact data in SAP CRM?
    Regards
    Avinav

    Hello Avinav,
    In CRM 6.0 and 7.0 GUI is no more used, you can use WEB UI and login using SALESPRO role to create a contact.
    1. Logon to CRM web UI
    2. Choose Create Contact from the Navigation bar
    3. Enter all the data - Title, first name, last name, account id,
    street, stree2, street3, street4, street5, city, postal code, email,
    mobile no and website.
    4. Press the Save key.
    Hope it will help! Please award points in case this helps!
    Best Regards
    Lata

  • How to Display All Contacts From Gmail ..?

    I hate Blur.  There's something there that only shows a subset of my Gmail Contacts.  I know on my wife's Ally and my OLD Nexus One I just went in and added the extra "groups" but I don't see that on the X. 
    How do I get to see all my Gmail contacts?
    Update: looks like it's only displaying My Contacts from Gmail, not the groups I have.

    So is the only way to get all contacts to sync across (or at least, to appear; they are on the phone, just not displaying - search and you can find them) is to make them all in the My Contacts group in Gmail?  That is pretty silly.  Isn't there another way?

  • 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

  • ADF Faces Query Panel: How to display master data in detail table?

    Before stating the question, here is the background:
    I've a Fusion ADF (model/viewController) app that includes 2 tables with a master-detail relationship. The master table stores error numbers and associated levels of logging severity; the detail table stores the actual message text. These need to be separate, related tables because the requirement is that message text for a given error number can vary by product release.
    Messages are added in a bounded task flow; data for the master table entered in 1 fragment, data for the detail table in a 2nd page fragment. In the app, the Entity Objects for these tables are related with a foreign key association and have a composition association. This was done because the error numbers are generated in an Oracle DB sequence, and from what i have read that is a way in a task flow to have ADF put the number generated for the master table into the related key of the child table.
    The question is this:
    I need to create an ADF query panel with a table that searches on the detail DB table. However, i also need to use a couple of fields from the master DB table in both the query and in the ADF table. In addition, I need to add the ability for the user to edit either the master or detail record for the row he/she selects in the ADF table. I know how to create a view that would display the info i need; however, i have not been able to figure out how to obtain the keys for the selected ADF table row and pass them to the task flows that would edit.
    The master table has a numeric primary key. The detail table primary key consists of a foreign key to the master key and also a release number.
    I'm new to ADF and have been struggling with how to do this: i've a workaround that is functional but too klunky to be a permanent solution. So, could someone point me to some information on how to accomplish this?
    Versions: JDeveloper 11.1.1.4, ADF Business Components 11.1.1.59.23
    Thanks for your help!

    Thanks. I tried this out, but ran into an issue in that the detail table has 2 keys - a foreign key to the master primary key, and a 2nd key that uniquely distinguishes the detail. So i tried various things centered around using the SetCurrentRowWithKey operation and trying to obtain the selected ADF table row using an EL OF #{data.<pageDef>.<Iterator>.currentRowKeyString}; however i could not get the detail record for the selected row to display.
    I did find another approach that worked - I am wondering, is there anything problematic with this approach?:
    1. Create a VO joining the Master and Detail tables, with the Detail table being updatable.
    2. Made sure the applicable attributes were defined as keys.
    3. Add a query panel w/table using this VO.
    4. Create an ADF form based on the VO, showing the updatable fields.
    5. Create a bounded task flow with the following set on the Behavior tab:
    a. Share data controls with calling task flow
    b. Always Begin Transaction
    I specifically am wondering whether "Share data controls with calling task flow" has any negative implications or gotchas to handle. The doc at http://download.oracle.com/docs/cd/E21764_01/web.1111/b31974/taskflows_parameters.htm#ADFFD1693 doesn't suggest so, but just wanted to double-check before I go down this path.

  • How to display custom error message in custom page

    Hi,
    I would like to show the exception details of custom component in my custom idoc page. Please let me know how to get the exception which is cached in Custom component in page.
    Thanks

    Hi,
    Do they get a 404 error? If it is the case, you can customize error pages : [Custom Error Pages|http://help.sap.com/saphelp_nw70/helpdata/en/ec/1273b2c413b2449e554eb7b910bce7/frameset.htm].
    Regards,
    Pierre

  • How to display custom error message in Job log for batch processing

    Hi All,
    I am rexecuting one R/3 report in batch mode and i want to display all the custom error i have handled in job log when its executed from SM36,SM37. The custom error are like 'Delovery/Shipmet doe not exits' or others which we can display in online mode like message e100(ZFI) or any other way and accordingly we can handle the program control like come out of the program ro leave to transaction'Zxxx' or anything. But i want my program to be executed completely and accumulate all the error in job log of batch processing.
    Can anyone tell me how can i do so...
    Thanks,
    Amrita

    Hi,
    Thats what i have done from the begining. I have written message like this:
    Message i100(ZFI).
    I was hoping to see this message in the log. But i cant see. Can you help me pleae...

  • How to get customer / sales order details for VBBS table?

    Hi Friends,
    I have a requirement to create a report that will give the details of sales order ( VBELN ) and customer ( KUNNR) details from the sales requirement totals record table ( VBBS )
    Currently we have a report that just gives out the VBBS table entries for plant and material combination. As you are aware, the VBBS table contains the sales / deliveries requirements as displayed in MD04 transaction.
    Now there is a requirement to have the customer ( KUNNR ) and sales order (VBELN )  detail for each individual requirement totals.
    I checked the VBBE table ( sales requrirement : individual records ) but I cannot find any relationship between VBBS and VBBE. If there is a material / plant in VBBS , the same entry does not exist in VBBE.
    Please suggest if there is any other table to get this detail.
    Thanks
    Satya

    Tables are related.
    MATNR
    WERKS
    MBDAT
    LGORT
    CHARG
    etc fields are common in both VBBS and VBBE.
    May be you can generate a condition a fetch data using this.
    I hope it helps.
    thanks

  • How to display custom names for attributes in JSP pages

    I would like to use custom names for my attributes in Struts JSP table headers.
    For example, if the database table named "Country" has a column CNT_ID and BC4J wizard mapped it into an Entity Object's attribute "CntId" I would like to display it as "Country ID" in my JSP table header.
    Now, I suppose the place to try this is probably in DataEditComponent.jsp, DataQueryComponent.jsp etc., and probably has smthg to do with jbo:AttributeIterate, but I still can't figure how to achieve this...
    I use JDev 9.0.3

    Kresimir,
    It's not clear from your posting whether you've worked out how to do what you want with control hints, so just in case, here's how:
    - In the navigator, select your entity object or your view object
    - In the structure pane, double-click the attribute you want to edit (CntId)
    - In the attribute editor, select the control hints page
    - In the Label Text field, type the text you want to use for your label (Country). Click OK.
    Hope this helps
    Blaise

  • How to display custom forms or reports on portal pages?

    Hi friends
    I am new to Portal. I knew that we can create forms and reports in portal.
    But how can i display a custom form ( ex: employee.fmb) on a portal page?
    Thanks
    Ravi

    Are you meaning Oracle Forms Module and Oracle Reports?
    If so
    please check the following
    Reports
    http://download-uk.oracle.com/docs/cd/B14099_15/bi.1012/b14048/pbr_conf.htm#sthref494
    Forms (you can only invoke forms using the SSO)
    http://download-uk.oracle.com/docs/cd/B25016_02/doc/dl/web/B14032_02/security.htm#sthref42
    Otherwise you can create your custom HTML form and report using the following technologies:
    http://download-uk.oracle.com/docs/cd/B14099_15/portal.1014/b14135/pdg_matrix.htm#CHDJIEIH
    Please refer also to:
    http://download-uk.oracle.com/docs/cd/B14099_15/portal.1014/b14135/pdg_understand.htm#sthref35
    Hope this helps
    Cheers
    Diego

  • How to display custom error message if the Required field is not entered?

    Hi,
    I have made one input field as required field in a view.
    I want to display one custom error message ,if the required input field is not entered.
    Please help me regarding this.
    Thanks,
    Deepika

    hi deepika....
    First go to message pool under webdynpro components.
    Create a new message there..of type error.
    Enter your text.
    Now to avoid null pointer exception , in wdDoInit(), initialise the value
    wdContext.currentDateTimeElement().setDate("");
    now create an action for submission of data. If field is empty, then within the button write:
      msg = wdComponentAPI.getComponent().getMessageManager();
        if(wdContext.currentDateTimeElement().getDate().equals(""))
        msg.raiseMessage(IMessageCompTodatDateTime.ERROR,new Object[]{""},true)     ;
    between begin others put:
    regards,
    pinki
      IWDMessageManager msg = null;

  • F-47( down payment request) : how to display custom fields ?

    Hello every body,
    Can you help with this problem?
    Actually, in my project we created custom fields that appear in the PO (ME21N), the MIGO and the MIR7 and MIRO transaction.
    Those fields are in the BSEG table but my problem is that I can't display them on the F-47 transaction.
    So can you help me make those custom fields appear in F-47 ? Please help me I am so desperate now...
    Thanks in advance.
    Regards,
    Aminata
    PS : We are using ECC 6.0

    Dear Srilatha,
    Actually all the solutions are welcomed :-).
    Can you be more specific about the BAdi/Screen Exit ? Because I have tried to seek into the system if there were some exit but I found nothing...
    Thanks in advance for your help.
    Aminata

Maybe you are looking for