CRM activities creation

Im creating activity by using BAPI_ACTIVITYCRM_CREATEMULTI, but its creating a TEMPLATE. when i tried not passing value for TEMPLATE TYPE field im finding error as incomplete data even though passing complete data.

Hi Nisha,
         im trying to create sales meeting. im passing header, partner, organisation, date, status data. its creating successfully with GUID and object ID but as a TEMPLATE. im sending my code for ur reference.
*& Report  /IGTE0/DM_CRM_ACTIVITIES
Report  .....Creating CRM Activities
Author: .....MARUTHI PRASAD J (714997)
REPORT  /IGTE0/DM_CRM_ACTIVITIES.
******************source structure declaration
types: begin of ty_source_data,
        ref_id(5) type N,
        DESCRIPTION(40),
        STATUS(5),
        DATE_FROM(8),
        DATE_TO(8),
        TIME_FROM(6),
        TIME_TO(6),
        PRIVATE_FLAG(1),
        PROCESS_TYPE(4),
        PRIORITY(1) type N,
        TIMEZONE_FROM(6),
        ACT_LOCATION(100),
        PARTNER_FCT(8),
        RELATION_PARTNER(32),
        CREATED_AT(15), "type DEC,
        CREATED_BY(12),
        CHANGED_AT(15), "type DEC,
        CHANGED_BY(12),
        SALES_OFFICE(14),
        SALES_GROUP(14),
        SALES_ORG(14),
        DIS_CHANNEL(2),
        DIVISION(2),
        EXTERN_ACT_ID(20),
        CATEGORY(3),
      end of ty_source_data.
types: begin of ty_source_data_updt,
       rel_typ(8),
       ref_id1(5) type N,
       BUS_PRTNR(32),
       VALID_TO(8),
       end of ty_source_data_updt.
*****Declaration of BAPI : bapi_activitycrm_createmulti
data: lt_source_data type table of ty_source_data,
      ls_source_data type ty_source_data.
data: lt_source_data_updt type table of ty_source_data_updt,
      ls_source_data_updt type ty_source_data_updt.
data: lt_header type table of BAPIBUS2000110_HEADER_INS,
      ls_header type BAPIBUS2000110_HEADER_INS,
      lt_headerx type table of BAPIBUS2000110_HEADER_INSX,
      ls_headerx type BAPIBUS2000110_HEADER_INSX,
      lt_created_process type TABLE OF BAPIBUS20001_HEADER_INS,
      ls_created_process type BAPIBUS20001_HEADER_INS,
      lt_PARTNER type table of BAPIBUS20001_PARTNER_INS,
      ls_PARTNER type BAPIBUS20001_PARTNER_INS,
      lt_PARTNERX type table of BAPIBUS20001_PARTNER_INSX,
      ls_PARTNERX type BAPIBUS20001_PARTNER_INSX,
      lt_ORGANISATION type table of BAPIBUS20001_ORGMAN_INS,
      ls_ORGANISATION type BAPIBUS20001_ORGMAN_INS,
      lt_ORGANISATIONX type table of BAPIBUS20001_ORGMAN_INSX,
      ls_ORGANISATIONX type BAPIBUS20001_ORGMAN_INSX,
      lt_DATE TYPE TABLE OF BAPIBUS20001_APPOINTMENT_INS,
      ls_DATE TYPE BAPIBUS20001_APPOINTMENT_INS,
      lt_DATEX TYPE TABLE OF BAPIBUS20001_APPOINTMENT_INSX,
      ls_DATEX TYPE BAPIBUS20001_APPOINTMENT_INSX,
      lt_STATUS TYPE TABLE OF BAPIBUS20001_STATUS_INS,
      ls_STATUS TYPE BAPIBUS20001_STATUS_INS,
      lt_STATUSX TYPE TABLE OF BAPIBUS20001_STATUS_INSX,
      ls_STATUSX TYPE BAPIBUS20001_STATUS_INSX,
      lt_return1 type table of bapiret2 with header line
*****Declaration of BAPI : bapi_activitycrm_save
data: lt_OBJECTS_TO_SAVE TYPE TABLE OF BAPIBUS20001_GUID_DIS,
      ls_OBJECTS_TO_SAVE TYPE BAPIBUS20001_GUID_DIS,
      lt_SAVED_OBJECTS type table of BAPIBUS20001_OBJECT_ID,
      ls_SAVED_OBJECTS type BAPIBUS20001_OBJECT_ID,
      lt_return2 type table of bapiret2 with header line,
      lt_return3 type table of bapiret2 with header line,
      lt_return4 type table of bapiret2 with header line
*****Declaration for return logs
********************Uploading text file
parameters: lv_file type localfile.
data: lv_file1 type string.
parameters: lv_updt type localfile.
data: lv_updt1 type string.
start-of-selection.
  lv_file = 'C:\Documents and Settings\714997\Desktop\Book1_he.txt'.
  lv_file1 = lv_file.
  CALL FUNCTION 'GUI_UPLOAD'
    EXPORTING
      FILENAME            = lv_file1
      FILETYPE            = 'DAT'
      HAS_FIELD_SEPARATOR = '#'
    TABLES
      DATA_TAB            = lt_source_data.
  IF SY-SUBRC <> 0.
  ENDIF.
  lv_updt = 'C:\Documents and Settings\714997\Desktop\crm_task_Partner_10Dec2010sort.txt'.
  lv_updt1 = lv_updt.
  CALL FUNCTION 'GUI_UPLOAD'
    EXPORTING
      FILENAME            = lv_updt1
      FILETYPE            = 'DAT'
      HAS_FIELD_SEPARATOR = '#'
    TABLES
      DATA_TAB            = lt_source_data_updt.
  IF SY-SUBRC <> 0.
  ENDIF.
  loop at lt_source_data into ls_source_data.
*************header data
    refresh: lt_header,lt_partner,lt_organisation,lt_date,lt_status.
    clear: ls_partner,ls_header,ls_organisation,ls_status,ls_date.
    ls_header-PROCESS_TYPE     = ls_source_data-PROCESS_TYPE.
    ls_header-HANDLE           = '0000000001'.
    ls_header-DESCR_LANGUAGE   = 'EN'.
    ls_header-LANGU_ISO        = 'EN'.
    ls_header-DESCRIPTION      = ls_source_data-DESCRIPTION.
    ls_header-CATEGORY         = ls_source_data-CATEGORY.
    ls_header-PRIORITY         = ls_source_data-PRIORITY.
   ls_header-OBJECTIVE        = '003'.
    ls_header-EXTERN_ACT_ID    = ls_source_data-EXTERN_ACT_ID.
    ls_header-PRIVATE_FLAG     = ls_source_data-PRIVATE_FLAG.
    ls_header-POSTING_DATE     = ls_source_data-DATE_FROM .
    ls_header-MODE             = 'A'.
    ls_header-CREATED_AT       = ls_source_data-CREATED_AT .
    ls_header-CREATED_BY       = ls_source_data-CREATED_BY .
    ls_header-CHANGED_AT       = ls_source_data-CHANGED_AT .
    ls_header-CHANGED_BY       = ls_source_data-CHANGED_BY .
    ls_header-ACT_LOCATION     = ls_source_data-ACT_LOCATION .
    ls_header-TEMPLATE_TYPE    = 'C'.
    ls_headerx-PROCESS_TYPE     = 'X'.
    ls_headerx-HANDLE           = 'X'.
    ls_headerx-DESCR_LANGUAGE   = 'X'.
    ls_headerx-LANGU_ISO        = 'X'.
    ls_headerx-DESCRIPTION      = 'X'.
    ls_headerx-CATEGORY         = 'X'.
    ls_headerx-PRIORITY         = 'X'.
   ls_headerx-OBJECTIVE        = 'X'.
    ls_headerx-EXTERN_ACT_ID    = 'X'.
    ls_headerx-PRIVATE_FLAG     = 'X'.
    ls_headerx-POSTING_DATE     = 'X'.
    ls_headerx-MODE             = 'X'.
    ls_headerx-CREATED_AT       = 'X'.
    ls_headerx-CREATED_BY       = 'X'.
    ls_headerx-CHANGED_AT       = 'X'.
    ls_headerx-CHANGED_BY       = 'X'.
    ls_headerx-ACT_LOCATION     = 'X'.
    ls_headerx-TEMPLATE_TYPE    = 'X'.
    IF ls_source_data-PRIVATE_FLAG = 'N'.
      ls_header-PRIVATE_FLAG = ' '.
    else.
      ls_header-PRIVATE_FLAG = 'X'.
    ENDIF.
    append ls_header to lt_header.
    append ls_headerx to lt_headerx.
*******************partner data
    refresh lt_partner.
    refresh lt_partnerx.
ls_PARTNER-REF_GUID             = .
    ls_PARTNER-REF_HANDLE           = '0000000001'.
    ls_PARTNER-REF_KIND            = 'A'.
    ls_PARTNER-PARTNER_FCT          = ls_source_data-PARTNER_FCT.
    ls_PARTNER-PARTNER_NO           = ls_source_data-RELATION_PARTNER.
    ls_PARTNER-NO_TYPE              = 'BP'.
    ls_PARTNER-DISPLAY_TYPE         = 'BP'.
    ls_PARTNER-KIND_OF_ENTRY        = 'A'.
    ls_PARTNER-MAINPARTNER          = 'X'.
    ls_PARTNER-RELATION_PARTNER     = ls_source_data-RELATION_PARTNER.
    ls_PARTNERX-REF_HANDLE          = 'X'.
    ls_PARTNERX-REF_KIND            = 'X'.
    ls_PARTNERX-PARTNER_FCT         = 'X'.
    ls_PARTNERX-PARTNER_NO          = 'X'.
    ls_PARTNERX-NO_TYPE             = 'X'.
    ls_PARTNERX-DISPLAY_TYPE        = 'X'.
    ls_PARTNERX-KIND_OF_ENTRY       = 'X'.
    ls_PARTNERX-MAINPARTNER         = 'X'.
    ls_PARTNERX-RELATION_PARTNER    = 'X'.
    append ls_partner to lt_partner.
    append ls_partnerx to lt_partnerx.
*******************organisation data
    refresh lt_organisation.
    refresh lt_organisationx.
    ls_organisation-REF_HANDLE        =  '0000000001'.
    ls_organisation-REF_KIND          =  'A'.
    ls_organisation-DIS_CHANNEL       =  ls_source_data-DIS_CHANNEL.
    ls_organisation-DIVISION          =  ls_source_data-DIVISION.
    ls_organisation-SALES_ORG         =  ls_source_data-SALES_ORG.
    ls_organisation-SALES_OFFICE      =  ls_source_data-SALES_OFFICE.
    ls_organisation-SALES_GROUP       =  ls_source_data-SALES_GROUP.
    ls_organisation-SALES_ORG_RESP    =  'O 03000015'.
    ls_organisation-MODE              =  'A'.
    ls_ORGANISATIONX-REF_HANDLE       = 'X'.
    ls_ORGANISATIONX-REF_KIND         = 'X'.
    ls_ORGANISATIONX-DIS_CHANNEL      = 'X'.
    ls_ORGANISATIONX-DIVISION         = 'X'.
    ls_ORGANISATIONX-SALES_ORG        = 'X'.
    ls_ORGANISATIONX-SALES_OFFICE     = 'X'.
    ls_ORGANISATIONX-SALES_GROUP      = 'X'.
    ls_ORGANISATIONX-MODE             = 'X'.
    append ls_organisation to lt_organisation.
    append ls_organisationx to lt_organisationx.
********************date
    refresh lt_date.
    refresh lt_datex.
    ls_DATE-REF_HANDLE              = '0000000001'.
    ls_DATE-REF_KIND                = 'A'.
    ls_DATE-APPT_TYPE               = 'ORDERPLANNED'.
    ls_DATE-TIMEZONE_FROM           = ls_source_data-TIMEZONE_FROM.
    ls_DATE-TIMEZONE_TO             = ls_source_data-TIMEZONE_FROM.
    ls_DATE-DATE_FROM               = ls_source_data-DATE_FROM.
    ls_DATE-DATE_TO                 = ls_source_data-DATE_TO.
    ls_DATE-TIME_FROM               = ls_source_data-TIME_FROM.
    ls_DATE-TIME_TO                 = ls_source_data-TIME_TO.
    ls_DATE-MODE                    = 'A'.
    ls_DATEX-REF_HANDLE             = 'X'.
    ls_DATEX-REF_KIND               = 'X'.
    ls_DATEX-APPT_TYPE              = 'X'.
    ls_DATEX-TIMEZONE_FROM          = 'X'.
    ls_DATEX-TIMEZONE_TO            = 'X'.
    ls_DATEX-DATE_FROM              = 'X'.
    ls_DATEX-DATE_TO                = 'X'.
    ls_DATEX-TIME_FROM              = 'X'.
    ls_DATEX-TIME_TO                = 'X'.
    ls_DATEX-MODE                   = 'X'.
    IF ls_source_data-DATE_TO = 'NULL'.
      ls_date-DATE_TO  = ls_source_data-DATE_FROM.
    ENDIF.
    IF ls_source_data-TIME_FROM = 'NULL'.
      ls_DATE-TIME_FROM = '000000'.
    ENDIF.
    IF ls_source_data-TIME_TO = 'NULL'.
      ls_DATE-TIME_TO = '000000'.
    ENDIF.
    append ls_date to lt_date.
    append ls_datex to lt_datex.
********************status
    refresh lt_STATUS.
    refresh lt_STATUSX.
    ls_STATUS-REF_HANDLE            = '0000000001'.
    ls_STATUS-REF_KIND              = 'A'.
    ls_STATUS-STATUS                = ls_source_data-STATUS.
    ls_STATUS-ACTIVATE              = 'X'.
    ls_STATUSX-REF_HANDLE           = 'X'.
    ls_STATUSX-REF_KIND             = 'X'.
    ls_STATUSX-STATUS               = 'X'.
    ls_STATUSX-ACTIVATE             = 'X'.
    append ls_status to lt_status.
    append ls_statusx to lt_statusx.
*******************Creating the activity
    CALL FUNCTION 'BAPI_ACTIVITYCRM_CREATEMULTI'
      TABLES
        HEADER                = lt_header
        HEADERX               = lt_headerX
        PARTNER               = lt_partner
        PARTNERX              = lt_partnerx
        ORGANISATION          = lt_organisation
        ORGANISATIONX         = lt_organisationx
        DATE                  = lt_date
        DATEX                 = lt_datex
  TEXT                  =
  TEXTX                 =
  REASON                =
  REASONX               =
  OUTCOME               =
  OUTCOMEX              =
        STATUS                = lt_status
        STATUSX               = lt_statusx
  LOCATION              =
  LOCATIONX             =
  INPUT_FIELDS          =
       CREATED_PROCESS       = lt_created_process
       RETURN                = lt_return1
  DOCUMENT_FLOW         =
  JOURNAL               =
  JOURNALX              =
  MATERIAL              =
  MATERIALX             =
  EXTENSIONIN           =
    LOOP AT lt_created_process into ls_created_process.
      ls_OBJECTS_TO_SAVE-GUID = ls_created_process-GUID.
    ENDLOOP.
   refresh lt_created_process.
      ls_OBJECTS_TO_SAVE-OBJECT_TYPE = 'BUS2000126'.
    append ls_OBJECTS_TO_SAVE to lt_OBJECTS_TO_SAVE.
*****************Saving the activity
   CALL FUNCTION 'BAPI_ACTIVITYCRM_SAVE'
    EXPORTING
      UPDATE_TASK_LOCAL       = 'X'
  SAVE_FRAME_LOG          = FALSE
IMPORTING
  LOG_HANDLE              =
    TABLES
      OBJECTS_TO_SAVE         = lt_OBJECTS_TO_SAVE
      SAVED_OBJECTS           = lt_SAVED_OBJECTS
      RETURN                  = lt_return2
   CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
    EXPORTING
      WAIT          = '1'
IMPORTING
  RETURN        =
   LOOP AT lt_SAVED_OBJECTS into ls_SAVED_OBJECTS.
     write: / ls_SAVED_OBJECTS-GUID, / ls_SAVED_OBJECTS-OBJECT_ID.
   ENDLOOP.
   refresh lt_SAVED_OBJECTS.
   clear ls_SAVED_OBJECTS.
endloop.

Similar Messages

  • Appointments in Outlook not showing up in CRM activities?

    The appointments I make in Outlook aren´t showing up in my CRM activities (the appointments I make in CRM do show up in Outlook calendar - so it´s only syncing one way)?

    Assuming that you are connected to CRM using outlook client:
    Open the appointment from calender in your outlook. click on Track/Track in CRM depending on the CRM version you are using. This will create an Appointment activity in CRM. but will not link the appointment to a particular CRM record.
    To link this appointment to a particular CRM record (e.g. contact, account, case..etc..) click on Set Regarding and select more. Search for the record in look up dialog box, select and add.
    refer to link:
    http://www.microsoft.com/en-US/dynamics/crm-customer-center/track-outlook-appointments-in-crm-for-outlook.aspx

  • Uploading old CRM activities into the system

    Good afternoon
    In our company we want to upload old CRM activities into the system (CRM 4.0)
    By doing so we also want to change the "created by" field with the initials of the user that used to make the activity.
    This is a problem since some of the users are no longer with us in the company. Therefore they do not have a working SAP account, but we still want to add their name in the field.
    Is this possible and what do we have to do?
    Thank you for your help,
    Filip

    Filip
    If you do not want to program, you can also upload the activities with the external list management (ELM) or the LSMW workbench. However, in your case I would create the old employees still as BP's in the system and assign them to the activities in the partner function 'Employee Responsible'.
    The 'Created By' field is filled automatically and will be filled with the user loading the activities. Of course you can later overwrite them directly with ABAP in the DB, but this is not such a good idea as this data would e.g. not be replicated to mobile sales (if you use it).
    So better do the following:
    1. make sure all employees are as standard business partners and employees in the system (they might have a deletion flag, if they no longer exist in the company)
    2. upload the activities with a partner function pointing to the former employees
    3. If you want, you can then still update the created by field on the DB directly by getting the employee out of the partner function.
    Regards, Kai

  • Replicate ISU Customer contacts to CRM Activities

    Hi All,
    Requirement: Need to replicate ISU Customer contacts (Txn BCT0) to CRM Activities (Txn CRMD_ORDER).
    Ideally, we want to map ISU <class> and <action> into CRM <category> and <sub-category> custom fields on the activity.
    Please share any reference documents if any project has done a similar thing.
    Thanks.
    Alka

    Hi Ritesh,
    If you connect an ISU system that is not Unicode-enabled with a CRM system that is Unicode-enabled, data is not converted correctly when replicated into the CRM system.
    Contracts are not replicated in the ISU system if the CRM or ISU system is a UNICODE system.
    kindly check the following Note:969177
    Hope it solve your problem
    Thanks & Regards,
    srikanth.naga

  • Replicate ISU Customer Contacts to CRM Activites

    Hi All,
    Requirement: Need to replicate ISU Customer contacts (Txn BCT0) to CRM Activities (Txn CRMD_ORDER).
    Ideally, we want to map ISU <class> and <action> into CRM <category> and <sub-category> custom fields on the activity.
    Please share any reference documents if any project has done a similar thing.
    Thanks.
    Alka

    Hi Ritesh,
    If you connect an ISU system that is not Unicode-enabled with a CRM system that is Unicode-enabled, data is not converted correctly when replicated into the CRM system.
    Contracts are not replicated in the ISU system if the CRM or ISU system is a UNICODE system.
    kindly check the following Note:969177
    Hope it solve your problem
    Thanks & Regards,
    srikanth.naga

  • CRM Activities

    Hi experts,
    Is there any program(such as CRM_ORDER_READ) to read data releated to CRM Activities?Thank you.
    Best regards,Gavin

    Hi,
    CRM_ORDER_GETSTATUS
    Determine All Addresses Read Address Read Address Numbers Determine All Bank Details Read Bank Details Read Bank Details Numbers Read Central Data Check Existence of Business Partner Read Business Partner Numbers Determine All BP Relationships Determine All Roles Check Existence of Role Search Business Partner for Telephone, E-Mail, Address Business Partner: Read Status Check Existence of Contact Partner Relationship Read Contact Person Relationship Addresses Read Contact Person Relationship Addresses Read Contact Person Relationship Read Contact Person Relationship Addresses Read Employee Relationship Address Read Employee Relationship Read General Relationship Check Existence of General Relationship Read General Relationship Read Relationship of Employee Responsible Searches business partners for telephone, E-Mail, address Check for Existence of Ibase Get Header GUID for Item GUID pass ref_kind as b Read the Header Details for a Business Transaction. Pass the Header guid. Read the Line Item Details for a line item. Pass the line item guid. Get all the Service Contract details. Note: Pass the requested objects to fetch only the required details. This can also be used to get the details of activities/leads/opportunities etc. Get status of the Service Contract
    Note: CRM_ORDER_READ Function Module 1. 2. 3.
    CRM_ORDER_READ is a function module which can be used to get the details of any business transaction based on the Header GUID, Item GUID or both. Always pass the IT_REQUESTED_OBJECTS structure to this function module to fetch the required details only. This function module can not be executed directly instead SAP has provided a report CRM_ORDER_READ for the same for testing purpose. We can pass Business Transaction Number (Object ID), Header GUID or Item GUID to this report to get the required details.
    Some Exporting Parameters in CRM_ORDER_READ Function Module Return Structure Name
    ET_ORDERADM_H
    Also
    You might find some of these notes helpful:
    Note 1010258 - Pricing analysis after CRM replication (VE 108)
    Note 428762 - Pricing conditions during download from R/3 to CRM
    Note 702735 - Switching off IPC in CRM
    CRM_ORDER_READ
    Assign points if it helps,
    Thanks,
    Jack

  • Query - CRM Activities

    Hi Experts,
    We're trying to create a query, but we cannot bring the field Reason about CRM Activities (Contact - BUS2000126) - we want that to come besides other Contact fields and informations as 'direction'; 'partner'; transaction number, description,. but the problem is that it does not make part of table 'CRMD_ORDERADM_H' and 'CRMD_ACTIVITY_H'.
    We have still found table 'QPCD' (Reason) that have this information but we were not able to bring information related to fields 'CODE'; 'CODEGRUPPE' and 'KATALOGART'.
    We already tried with CRMD_SRV_SUBJECT alongwith tables QPCT, CRMC_CODEMAPMSA and also CRMD_ACTIVITY_H, but the with no query results about Join.
    Would that be a problem that we don't have the right table or it's realted to the join type that must exist between these tables? Hope anyone can give us a direction on this...
    Best Regards,
    Fábio

    Query - CRM Activities

  • Popup message while creating new CRM activities in the Portal

    Hello All,
        We are implementing EP 7.0 SPS 12 and have integrated CRM 5.0 with it. We have installed CRM BP 5.0 SPS 01.
    When we are creating activities through the Portal using the "Business Activity" iview and then save the creation, we get a popup with the message - <b>"The web page you are viewing is trying to close the window. Do you want to close this window?"</b>..
    What could be wrong and how should we solve this?
    Thanks.

    Hi Sunitha,
            I think that this kind of message will come because of the timeout property in the backend system(CRM).Try to figure out the timeout property in backend and increase the same.
    Regards,
    Vinoth.M

  • Report to measure CRM Activities performance

    Hi experts,
    I'm on SAP CRM 6.0 and currently doing some research about available reports on Web UI. I'm particularly interested in reports that will allow to measure activity performance like: how long has an activity been opened? how long since the last status change for an activity?
    Is there any standard report in Web UI that will display such information?
    Thanks.

    Hi there,
    The activity monitor doesnt exist on WEBUI but it can be used in SAPGUI. It has limited features but is quite useful. Also you could link it to the webclient using the transaction launcher. Help documentation on Activity monitor can be found http://help.sap.com/saphelp_crm60/helpdata/en/5c/e90d3888a11c10e10000009b38f8cf/frameset.htm
    Other options:
    Use the Webclient Activities search function, you can add most of the search parameters and save them to variant.
    Or
    Go to CRMC_UI_NBLINK (definition of all tx on webclient ui)Select Define logical linksMenu->Selection->By Content, narrow it down by desciption ActitYou'll get a few links which refer to different functions available in the webclient for activities and BI reports too.
    There is no standard report that contains all the functionality you require unfortunately but I hope the above can help in some way.
    Kind regards,
    Vanessa.

  • CRM Activities & Case link

    Hi,
    I want to generate a report/query to get Activities & connected Cases using CRM 5.0. Can anyone please let me know the tables involved or query to be used?
    thanks in advance,
    LSP

    Solved it : See my code sample
    * Get casenr where this activity belongs to                            *
    * >>> Start from activity nr                                           *
    * .......... convert activitynr > activity guid
    CLEAR x_actguid.
    SELECT single GUID FROM CRMD_ORDERADM_H
                        INTO X_ACTGUID
                        WHERE object_id = p_activ.
    IF sy-subrc = 0.
    * .......... convert activity guid > document ID
       CLEAR X_LOIO_ID.
       SELECT single LOIO_ID FROM SCMGRECP01
                             INTO X_LOIO_ID
                             WHERE PHIO_ID = X_ACTGUID.
       IF sy-subrc = 0.
    * .......... convert document ID > Dossiers POID-ID
          CLEAR X_PDIR.
          SELECT single PROP08 FROM SCMGRECL01
                               INTO X_PDIR
                               WHERE LOIO_ID = X_LOIO_ID.
          IF sy-subrc = 0.
    * .......... convert Dossiers POID-ID > Case nr
             CLEAR x_case_guid.
             SELECT single CASE_GUID FROM SCMG_T_CASE
                                     INTO x_case_guid
                                     WHERE RECORD_PDIR = X_PDIR.
             IF sy-subrc = 0.
                CLEAR x_case.
                SELECT single EXT_KEY FROM SCMG_T_CASE_ATTR
                                      INTO x_case
                                      WHERE case_guid = x_case_guid.
                IF sy-subrc <> 0. ENDIF.
             ENDIF.
          ENDIF.
       ENDIF.
    ENDIF.

  • Web Client - recurring activities creation

    Hi,
        I'm enquiring is it possible to create recurring activities in the CRM 2007 Web Client  i.e the setting up of a recurring customer visit that is on a repeat schedule.
    If this possible, how can this be done.
    Thanks in advance,
    Dan

    This is taken from SAP knowleagebase...
    Configure Repetitive Tasks
    In CRM Activity Management, you can create repetitive tasks, which are actions that a user executes in a defined period of time on a regular basis. This could be used for example, if a user needs to make a weekly report for an activity that is meant to run over a long period of time.
    Note: The default repetitive task RECU is part of the standard delivery. However, you can configure your own repetitive task if you do not want to use the default task provided. Also part of the standard delivery are the action profile CREATE_RECURRENCE, the action definition DO_RECURRENCE, and the date profile RECU_DTPROFL.
    Requirements
    A repetitive task must have the following date fields:
    Start Task Date
    Recurrence, determining the frequency at which a task is to be created
    Recurrence Rule, calculating when the next task is to be created
    Next Recurrence
    Recurrence End
    Completion Date
    Activities
    1. Create a date profile. Choose Customer Relationship Management -> Basic Functions -> Date Management -> Define Date Profiles.
    a) Create valid reference objects for the date profile, as well as date rules, date types and durations.
    2. Create an action profile to determine the action the system will perform when the task is executed. Choose Customer Relationship Management -> Basic Functions -> Actions -> Actions in Transactions -> Change Actions and Conditions -> Define Action Profiles and Actions.
    a) Create and define an action for repetitive tasks. Use the date profile that you just created and set the context class.
    b) Maintain the action definition and processing type of the action definition.
    3. Define the conditions under which the action will be executed. Choose Customer Relationship Management -> Basic Functions -> Actions -> Actions in Transactions -> Change Actions and Conditions -> Define Conditions.
    a) Display the actions for the repetitive task and set the Start Conditions. Make sure the business object is referred to. The action should be scheduled if the task status is set to Completed and if the next recurrence is before the Recurrence End Date.
    4. Set a call back using the function module CRM_CMG_SET_COMPLETION_DATE for the event AFTER_CHANGE and the object STATUS = Completed. (This function module relies on date type COMPLETION. The call back assigns the current date to the completion date field when the task is completed. It is required to make the completion date independent from the task action.)
    5. Define a transaction type. Choose Customer Relationship Management -> Transactions -> Basic Settings -> Define Transaction Types.
    a) You can copy the one in the standard delivery (RECU), and then in the Date Profile field assign the date profile created in step 1 and in the Action Profile field assign the profile created in step 2.

  • How to close CRM-Activities via Mass Maint,

    Hi,
    I want to 'close' about 1000 activities in our development environment. Is there a Mass Maint. (like in R/3 tcode MASS) exists in CRM.  What is the best way to close (set status to close) these activities?
    Thanks
    Naved

    Hi and Welcome to the Community!
    Unless I'm missing it in your post, I do not see that you have also installed, to the PC, the required software?
    http://us.blackberry.com/software/desktop.html?LID=us:bb:software:desktopsoftware&LPOS=us:bb:softwar...
    You must do so in order for the necessary drivers to be installed to the PC, so that it can communicate with the BB via USB. This also should enable USB charging from the PC.
    Also, this KB has more complete instructions (which vary by BB OS) as to enabling/disabling Mass Storage Mode on the BB:
    KB13564 How to enable or disable mass storage mode on the BlackBerry smartphone.
    Good luck and let us know!
    Occam's Razor nearly always applies when troubleshooting technology issues!
    If anyone has been helpful to you, please show your appreciation by clicking the button inside of their post. Please click here and read, along with the threads to which it links, for helpful information to guide you as you proceed. I always recommend that you treat your BlackBerry like any other computing device, including using a regular backup schedule...click here for an article with instructions.
    Join our BBM Channels
    BSCF General Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • UWL - CRM - Activities

    Hello,
    in UWL I want to manage in CRM stored activities.
    We use Portal on netweaver2004s, sp11 on instance 03 and CRM on notweaver2004s only abap, sp09.
    How can I do that?
    Best Regards
    Oliver Prodinger

    Hi,
    I'm facing similar probelm, I made the UWL registration to CRM backend system using the webflowConnector but I still can not see in UWL any task/activity created in CRM.
    I can it however in SAP work place (Tcod: SBWP)
    Any solution or idea for this problem?
    Thanks for assitance
    Ami

  • Notification in CRM on creation of a sales order in ECC

    Hi
    We have a requirement in which whenever a sales order of a particular product is
    created in the ECC system, a notification should be sent to an Interaction centre agent in CRM.
    So that, after getting the notification, the agent can create a corresponding service order.
    Please suggest any pointers as to how this situation can be addressed.
    Regards
    Ankit

    Hi Adithya,
    I too facing the same kind of requirement, can u please let me know how you achieved sending multiple idocs.
    Thanks,
    Kashif

  • Function module for CRM Activities retrieve

    Hello All ,
    I am looking for FM that return all activities by Activity type.
    I tryied to use :"CRM_BUPA_READ_ORDER_OBJECTS" but I can't filter it  by Activity type.
    All help will be appriciate
    Thank you,
    Rika

    There is no function module which does the filter like this.
    Alternatively, what you can do is :
    1. Get all the respective guids of the required activity types from the following query.
        SELECT guid
        INTO TABLE git_guid
        FROM crmd_orderadm_h
        WHERE process_type IN git_t_type " git_t_type contains the activity types
        AND object_type = 'BUS2000126'.
    2. Then pass these guids to the CRM_ORDER_READ function module to get the activity details.
    *Populate the requested objects to be passed to CRM_ORDER_READ
      INSERT gc_object_name-activity_h  INTO TABLE lit_requested_objects.
      INSERT gc_object_name-appointment INTO TABLE lit_requested_objects.
      INSERT gc_object_name-customer_h  INTO TABLE lit_requested_objects.
      INSERT gc_object_name-orderadm_h  INTO TABLE lit_requested_objects.
      INSERT gc_object_name-partner     INTO TABLE lit_requested_objects.
      INSERT gc_object_name-service_os  INTO TABLE lit_requested_objects.
      INSERT gc_object_name-status      INTO TABLE lit_requested_objects.
    *Retrieve all the activity details for the GUIDs
      CALL FUNCTION 'CRM_ORDER_READ'
        EXPORTING
          it_header_guid       = git_guid
          it_requested_objects = lit_requested_objects
        IMPORTING
          et_orderadm_h        = git_orderadm_h
          et_activity_h        = git_activity_h
          et_customer_h        = git_customer_h
          et_appointment       = git_appointment
          et_partner           = git_partnerdata
          et_service_os        = git_service_os
          et_status            = git_status
        EXCEPTIONS
          document_not_found   = 1
          error_occurred       = 2
          document_locked      = 3
          no_change_authority  = 4
          no_display_authority = 5
          no_change_allowed    = 6
          OTHERS               = 7.
    <b>Reward points if it helps.</b>

Maybe you are looking for