How to read data in CRM Activity relationship tab.

Hello friends,
I have a requirement to read data from CRM Activity relationship tab.
Mainly i have to read Transaction No/object refernced trans field of CRM Activity relationship tab.
Could anybody help me?
Thanks,
Bunny

Hi,
have you found in the meanwhile a good solution?
I have also a similar requirement.
At the moment I'm using the view CRMV_ACTFORGP to get the activities associated to a BP (by the way you have many filters that can be used) and then for each GUID (order guid - CRMD_ORDERADM_H-GUID) I call the fm BAPI_REL_GETRELATIONS to get the list of relationships.
Regards
Diego

Similar Messages

  • How to read values of CRM Activity Survey

    Hi Folks
    In our CRM 3.1 system, our customizer has customized a Survey when creating af Activity.
    And it works fine. Now She need a ABAP report, which among other values, is going to write out the values registered in the SUrvey. As far as I can see there are som tables CRMSVY and Function Modules CRMSVY But which one do I have to use.
    I have found the GUID via FM: CRM_SURVEY_GET_LINK. BUt how do I get the saved values?
    Have a mery Xmas
    Carsten

    Hi,
    this code reads a certain survey within an order, change the order guid and survey name as you like.
    REPORT  zsb_survey                              .
    DATA     ls_values_xml         TYPE xstring.
    DATA     ls_xml_string         TYPE string..
    DATA     values                TYPE REF TO cl_crm_svy_values.
    DATA     all_values    TYPE survy_t_all_values.
    DATA guid TYPE crmt_object_guid.
    guid = '27B1FA473F55E52FE1000000914E2D8C'.                  "18100
    DATA survey_ui_tab     TYPE crmt_survey_ui_tab.
    DATA survey_ui         TYPE crmt_survey_ui.
    DATA it_answers        TYPE zcrm_qa_answers_tb.
    DATA l_answer          TYPE zcrm_qa_answers.
    DATA texts             TYPE crm_svy_api_survey_text_t.
    DATA text              TYPE crm_svy_api_survey_text.
    DATA g_cust_data       TYPE crmd_customer_h.
    DATA dom_text          TYPE dd07v.
    DATA it_status         TYPE  crmt_status_wrkt.
    DATA     lv_error              TYPE bapiret1.
    DATA l_status          TYPE  crmt_status_wrk.
    DATA it_service_os     TYPE  crmt_srv_osset_wrkt.
    DATA l_service_os      TYPE  crmt_srv_osset_wrk.
    DATA lt_osset           TYPE crmt_srv_osset_wrkt1.
    DATA l_osset              TYPE crmt_srv_osset_wrk1.
    DATA lt_subject TYPE crmt_srv_subject_wrkt.
    DATA l_subject TYPE crmt_srv_subject_wrk.
    DATA ev_application TYPE  wff_application.
    DATA ev_service TYPE  wff_service.
    DATA ev_survey_version TYPE  crm_svy_db_svers.
    DATA    ls_crm_svy_db_s       TYPE crm_svy_db_s.
    DATA    lt_crm_svy_db_s       TYPE TABLE OF crm_svy_db_s.
    SELECT SINGLE * FROM crmd_customer_h INTO g_cust_data
    WHERE guid = guid.
    *get the survey data
    CALL FUNCTION 'CRM_SURVEY_DATA_GET'
      EXPORTING
        iv_object_kind = 'A'
        iv_object_guid = guid
      IMPORTING
        et_survey_ui   = survey_ui_tab
      EXCEPTIONS
        error_occurred = 1
        OTHERS         = 2.
    READ TABLE survey_ui_tab INTO survey_ui
    WITH KEY surveyid = 'Z_ZPRO_2_NOCFORMULIER NIEUW'.
    CALL FUNCTION 'CRM_SVY_GET_SURVEY_TEXTS'
      EXPORTING
      SURVEY                 =
        application_id         = survey_ui-applicationid
        survey_id              = survey_ui-surveyid
       language               = sy-langu
    IMPORTING
       survey_texts           = texts
    CHANGING
       survey_version         = survey_ui-surveyversion"
    EXCEPTIONS
       survey_not_found       = 1
       OTHERS                 = 2
    CALL FUNCTION 'CRM_SVY_DB_S_READ'
      EXPORTING
        surveyid      = survey_ui-surveyid
        surveyversion = survey_ui-surveyversion
      IMPORTING
        error         = lv_error
      TABLES
        survey        = lt_crm_svy_db_s.
    READ TABLE lt_crm_svy_db_s INTO ls_crm_svy_db_s INDEX 1.
    ev_application    = ls_crm_svy_db_s-applicationid.
    ev_service        = survey_ui-surveyid.
    ev_survey_version = survey_ui-surveyversion.
    ls_values_xml = survey_ui-valuexml.
    CALL FUNCTION 'CRM_SVY_DB_CONVERT_HEX2STRING'
      EXPORTING
        x = ls_values_xml
      IMPORTING
        s = ls_xml_string.
    CREATE OBJECT values
      EXPORTING
        i_internal_values_xml = ls_xml_string.
    CALL METHOD values->values_get_all
      IMPORTING
        et_all_values = all_values.
    BREAK-POINT.
    Cheers,
    Stefan.

  • How to read data from a CLUSTER STRUCTURE not cluster table.

    Hi,
    how to read data from a CLUSTER STRUCTURE not cluster table.
    regards,
    Usha.

    Hello,
    A structre doesnt contain data.. so u cannot read from it. U need to find out table of that structure and read data from it.
    Regards,
    Mansi.

  • How to read data from a file that was formatted by excel?

    Hi everyone, I'm familiar with java.io and the ability to read from files, can anyone tell me how to read data from a file that was formatted by excel? Or at least give me some web references so that I can learn about it?

    http://jakarta.apache.org/poi/hssf/index.html
    HSSF stands for Horrible Spreadsheet Format, but it still works!

  • How to read data from a router by using labview

    I am a  beginner labview. How to read data from a router by using labview ? 

    What kind of data are you trying to read?
    Does the router behave like a webserver that you log into?  If so, search the forums for threads discussing HTML.

  • How to read data from a connected modem

    any one can help me? how to read data from a connected modem. The modem received real-time data from other server. The data is in text format. I can see this text when I used hyperterminal for dial up and the data is accumulated such as:
    @aa1235678
    @bb2135647
    @cc5214367
    since it is real-time data, I want to read one line each time instantly when it arrives.

    You need to use the Java Communications API. (http://java.sun.com/products/javacomm/index.html)

  • How to read data from a zipped MS Access file?

    How to read data from a zipped MS Access file?

    RPJ,
    You do not need to use the Close Zip File.vi when you unzip a folder.  This VI is used when you are creating a zip folder.
    As for examples, I found a couple of ActiveX based MS Access examples.  These programs look to be pretty basic.  For more in depth example I would search Microsoft Developers Network
    http://zone.ni.com/devzone/cda/epd/p/id/2188
    http://zone.ni.com/devzone/cda/epd/p/id/1694
    Regards,
    Jon S.
    National Instruments
    LabVIEW R&D

  • How to read data from itab

    can someone help me with this....
    how to read data.....and move it to internal table....
    the requirement is as:
    <b>Get the Participant details in an internal table IT_FINAL_PAR</b>
    •     Loop through IT_PA0002 and move Personnel number (PERNR), Personnel ID Number (PERID), Last name  (NACHN), First name (VORNA), Gender Key (GESCH), Date of Birth (GBDAT) into a final internal table for Participant data IT_FINAL_PAR.
          Read the internal table IT_PA0006 to get the corresponding House Number and Street 
    (STRAS), City (ORT01), Postal code (PSTLZ), State (STATE), 2nd address line (LOCAT) by comparing Personnel Number (PERNR)and move those retrieved field values to the final internal table for Participant data IT_FINAL_PAR.

    Hi,
      you could try the following:
    * work areas
    data: W_PA0002 like line of IT_PA0002[],
          W_PA0006 like line of IT_PA0006[],
          W_FINAL_PAR like line of IT_FINAL_PAR[].
    loop at IT_PA0002 into W_PA0002.
      clear W_FINAL_PAR.
    * move values from IT_PA0002
      W_FINAL_PAR-PERNR = W_PA0002-PERNR.
      W_FINAL_PAR-PERID = W_PA0002-PERID.
    * read address values from IT_PA0006
      read table IT_PA0006 into W_PA0006 with key pernr = W_PA0002-pernr.
      if sy-subrc = 0.
    * move fields from IT_PA0006
        W_FINAL_PAR-STRAS = W_PA0006-STRAS.
      endif.
      append W_FINAL_PAR to IT_FINAL_PAR.
    endloop.

  • How to read data from an internal table into a real table?

    Hello experts,
    I'm relatively new to ABAP and I'm trying to figure out how to read data from an internal table into a table that I created.  I'm trying to use the RRW3_GET_QUERY_VIEW_DATA function module to read data from a multiprovider.  I'm trying to read data from the e_cell_data and e_axis_data tables into a table that I've already created.  Please see code below.
    TABLES MULTITAB.
    DATA:
      query_name TYPE RSZCOMPID,
      s_cubename TYPE RSINFOPROV,
      t_cell_data TYPE RRWS_T_CELL,
      t_axis_data TYPE RRWS_THX_AXIS_DATA,
      t_axis_info TYPE RRWS_THX_AXIS_INFO,
      wa_t_cell_data like line of t_cell_data,
      wa_t_axis_data like line of t_axis_data,
      w_corp_tab like line of t_cell_data.
    s_cubename = 'CORP_MPO1'.
    query_name = 'Z_corp_test'.
        CALL FUNCTION 'RRW3_GET_QUERY_VIEW_DATA'
           EXPORTING
             i_infoprovider           = s_cubename
             i_query                  = query_name
            i_t_parameter            = query_string_tab
           IMPORTING
             e_cell_data              = t_cell_data
             e_axis_data              = t_axis_data
             e_axis_info              = t_axis_info.
    If anyone has any information to help me, I would greatly appreciate it.  Thanks.

    Hi,
    <li>Once you call the function module RRW3_GET_QUERY_VIEW_DATA, lets say data is available in the corresponding tables e_cell_data e_axis_data which you have mentioned.
    <li>Modify your internal table defined for other purpose, with data from e_cell_data e_axis_data like below.
    LOOP AT t_cell_data INTO wa_t_cell_data.
      "Get the required data from t_cell_data.
      MOVE-CORRESPONDING wa_t_cell_data TO it_ur_tab.
      "Modify your internal table wih data
      MODIFY it_ur_tab TRANSPORTING <field1> <field2> <field3>.
    ENDLOOP.
    LOOP AT t_axis_data INTO wa_t_axis_data.
      "Get the required data from t_cell_data.
      MOVE-CORRESPONDING wa_t_axis_data TO it_ur_tab.
      "Modify your internal table wih data
      MODIFY it_ur_tab TRANSPORTING <field1> <field2> <field3>.
    ENDLOOP.
    Thanks
    Venkat.O

  • How to read data directly from clusters

    hi all,
    how to read data directly from clusters
    Thanx in advance,
    amruta.

    Using macro:
    RP-IMP-C2-B2.
    RP-IMP-C2-B1.
    RP-IMP-C2-ZL.
    ....etc.
    For TM cluster, U also can use BAPIs like HR_TIME_RESULTS_GET
    More details see SAP HR course 350(HR Programming)

  • Help me,  How to read data from USB ???

    Help me, How to read data from USB ???

    If its a disk on key or some portable hard drive than once its connected to the usb and recognized by the system you can access it through java like you would access your hard drive.

  • How to read data after select multiple record by checkbox,

    hi experts
    i  m using simple report with check box , and itab whcih contain records
    how to read data after select multiple record by checkbox,
    thanks

    Hi Prashant,
       Try using this logic.This Code displays the list with check boxes. When you check a checkbox and press a button say 'Select All' or 'De Select all' or 'Display'. It will read the data of those records.
    DATA :
      fs_flight TYPE type_s_flight,
      fs_flight1 TYPE type_s_flight1.
    * Internal tables to hold Flight  Details                             *
    DATA :
      t_flight LIKE
      STANDARD TABLE
            OF fs_flight,
      t_flight1 LIKE
       STANDARD TABLE
             OF fs_flight1.
    SET PF-STATUS 'SELECT' .
    PERFORM selection.
    PERFORM displaybasic .
    *                      AT USER COMMAND EVENT                          *
    AT USER-COMMAND.
      PERFORM selectall .
    *&      Form  SELECTION
    *      Select query to reteive data from SPFLI table
    *  There are no interface parameters to be passed to this subroutine.
    FORM selection .
      SELECT  carrid                       " Airline Code
              connid                       " Flight Connection Number                  
        FROM  spfli
        INTO TABLE t_flight.
      DESCRIBE TABLE t_flight LINES w_lines .
    ENDFORM.                               " SELECTION
    *&      Form  DISPLAYBASIC
    *      Display the basic list with SPFLI data
    *  There are no interface parameters to be passed to this subroutine.
    FORM displaybasic .
      LOOP AT t_flight INTO fs_flight.
        WRITE :
             w_check AS CHECKBOX,
             w_mark,
             fs_flight-carrid UNDER text-001,
             fs_flight-connid UNDER text-002.
      ENDLOOP.                             " LOOP AT T_FLIGHT..
      CLEAR fs_flight-carrid .
      CLEAR fs_flight-connid.
    ENDFORM.                               " DISPLAYBASIC
    *&      Form  SELECTALL
    *      To check all the checkboxes with a 'selectall' push button
    *  There are no interface parameters to be passed to this subroutine.
    FORM selectall .
      CASE sy-ucomm.
        WHEN 'SELECT_ALL'.
          w_check = 'X'.
          w_line = 4 .
          DO w_lines TIMES.
            READ LINE w_line .
            MODIFY LINE w_line FIELD VALUE w_check .
            ADD 1 TO w_line .
          ENDDO.                           " DO W_LINES TIMES
          CLEAR w_line.
        WHEN 'DESELECTAL'.
          w_check = space.
          w_line = 4 .
          DO w_lines TIMES.
            READ LINE w_line FIELD VALUE w_mark .
            IF w_mark = space .
              MODIFY LINE w_line FIELD VALUE w_check .
            ENDIF.                         " IF W_MARK = SPACE
            ADD 1 TO w_line .
          ENDDO.                           " DO W_LINES TIMES
        WHEN 'DISPLAY'.
    IF sy-lilli BETWEEN 4 AND w_lines .
        DO w_lines TIMES.
          READ LINE w_num FIELD VALUE w_check INTO w_check
                                     fs_flight-carrid INTO fs_flight-carrid
                                     fs_flight-connid INTO fs_flight-connid.
          IF sy-subrc = 0.
            IF w_check = 'X'
              SELECT  carrid
                      connid
                      fldate               " Flight date
                      seatsmax             " Maximum capacity in economy
                      seatsocc             " Occupied seats in economy class
                FROM  sflight
                INTO  TABLE t_flight1
               WHERE  carrid = fs_flight-carrid
                 AND  connid = fs_flight-connid.
              LOOP AT t_flight1 INTO fs_flight1.
                WRITE :
                  / fs_flight-carrid UNDER text-001,
                    fs_flight-connid UNDER text-002,
                    fs_flight1-fldate UNDER text-007,
                    fs_flight1-seatsmax UNDER text-008,
                    fs_flight1-seatsocc UNDER text-009.
              ENDLOOP.
            ENDIF.                         " IF SY-SUBRC = 0
          ENDIF.                           " IF W_CHECK = 'X'.
          ADD 1 TO w_num.
        ENDDO.                             " DO W_LINES TIMES
        CLEAR w_check.
        w_num = 0.
      ELSE .
        MESSAGE 'INVALID CURSOR POSITION ' TYPE 'E' .
      ENDIF.                               " IF SY-LILLI BETWEEN..
    ENDCASE.                             " CASE SY-UCOMM
    ENDFORM.                               " SELECTALL
    Much Regards,
    Amuktha.

  • JTable, how to read Data from it when enter is pressed

    How to read Data from JTable on Return or lost focus from cell.
    Also please tell me which listener I should should.
    thx for help

    You should read the tutorial about tables, cell editors and models.
    Also you should not [url http://forum.java.sun.com/thread.jsp?thread=472677&forum=57&message=2186815]crosspost
    Mike

  • How to Read data from excel file without converting a excel file into .csv or any other format

    Hello,
    Can somebody suggest me how to read from an excel file (consisting of 10 work sheets) to an array?
    Thanks,
    She

    You have to be careful when using the spreadsheet-files vi's.  They are located in the Functions Palette under File IO, you will find "Write To / Read From Spreadsheet File.vi"s. 
    Here is what the Context Help says about the vi function:
    "Reads a specified number of lines or rows from a numeric text file beginning at a specified character offset and converts the data to a 2D, single-precision array of numbers. You optionally can transpose the array. The VI opens the file before reading from it and closes it afterwards. You can use this VI to read a spreadsheet file saved in text format. This VI calls the Spreadsheet String to Array function to convert the data. "
    This is quick & easy when the spreadsheet is all the same format.  You can set the format to string as well.  HOWEVER...  you do have to convert the Excel spreadsheet to text before using it.
    I haven't experimented with the Active-X, but it may look as the way to go if you have combination text / numeric values in the spreadsheet.
    If you did convert it to text, then you can use array functions as well and treating the file as an array of strings (see very brief example attached).  The example is to illustrate a point only  
    JLV
    Attachments:
    starting point for spreadsheet.vi ‏28 KB

  • How to extract data from CRM with Data Service?

    Hi all,
                 I'll try to explain briefly the main issue; We need to read or extract data from SAP CRM with Data Service tool, then we'll show the data with webi, but now I would like to know if there are some standard tool as a rapid mart (i mean that it doesn't exists) but if some one knows how it works and if it's possible, it could be very helpful for us.
    BW option doesn't ok because the client needs a lot of queries for a report and the standard tool in our project is Data Service.
    Thanks in advance, and ask all u need if it can be a help for answer the question.
    Best Regards.
    Edited by: Cantabria on Jun 7, 2011 1:14 PM

    Hi,
    Your very familiar with LO data source even though your getting doubts on it.
    LBWE/SM13 belongs to only LO Data sources.
    CRM data sources also have delta settings based on data source.
    You can search on google about CRM data sources by using data source names.You may get some useful information.
    Before using CRM Data sources, CRM functional team need to set proper configurations at CRM system. those also you can easily get form google.
    use search term as " CRM - BW Adapter settings".
    Like other standard data sources for crm also,
    we need to activate from RAS5 and do the modification at RSA6.
    test at RSA3 and replicate into BW. Do the rest of the flow at bw system.
    Thanks

Maybe you are looking for