Creation of Campaigns in CRM

Hi,
    I have to create Campaigns in CRM for Legancy Data. Can anyone give me the appropriate FM or Classes for Mass Upload of Campaigns in CRM.
Thanks and Regards,
H.Krishnan

Here is some pseudo code
check if the campaign already exists , if not, then do the following
Class name cl_crm_mktpl_appl_base->ELEMENT_CREATE
then call cl_crm_mktpl_appl_base->save
and cl_crm_mktpl_appl_base->commit of this class.
If you have BW and want to sync with the system then
call cl_crm_mktpl_appl_base->after_commit.
if the campaign exists already, then
Read the campaign using cl_crm_mktpl_appl_base->Element_read
then cl_crm_mktpl_appl_base->Element_change to make updates to data
then call cl_crm_mktpl_appl_base->save
and cl_crm_mktpl_appl_base->commit of this class.
If you have BW and want to sync with the system then
call cl_crm_mktpl_appl_base->after_commit.
Probably you will do this in a loop.

Similar Messages

  • Creation of Campaign Id and assign Target Group to it.

    Hi all,
    I am facing a problem in creating a Campaign Id. This is the first time i am working on CRM Marketing Campaign, and i dont know the process of creating a Campaign id for a Target Group created for BP's. Please do help me in providing me any program or link where i can find the sample programs for creation of campaign id, Campaign Element, Profile Set, Target Group, Assigning BP's to Target Group.. I am presently using the below mentioned function modules/BAPI's for creation of Profile Set, Target Group etc.,
    For Profile Set Creation:                                         BAPI_PROFILESET_CREATE
    For Target Group Creation:                                    BAPI_TARGETGROUP_CREATE
    For Assigning Target Group to Campaign:             MKTPL_TGGR_ASSIGN_CREATE
    for Campaign Element:                                            MKT_ELEMENT_CREATE
    Please provide me complete program to explain the above.
    Thanks in Advance,
    Nagesh Thanneeru.

    hi,
    Target group is a group of BP, like a BP list.  It's a kind of master data which can be used in business transaction.
    And profile set is a base of target group, just like Product Hierachy and Product category.  Each target group should belong to a profile set. So create the profile set, before you create target group.
    Campaign is a kind of Marketing element of CRM Marketing.  In campaign, it need the BP or BP group or Target Group as its campaign objectives. Just like Customer of Sales Order, Vendor of Purchase order.
    Campaign can be assigned several target groups or BP or BP groups in it.
    So if you want to create campaign and assign target group to it, the steps is:
    1.  create a profile set  by BAPI_PROFILESET_CREATE
    2. create target group by BAPI_TARGETGROUP_CREATE, in this calling, you will use the profile set created before.
    3. create campaign by MKT_ELEMENT_CREATE
    4. assign the target group to your campaign, by MKTPL_TGGR_ASSIGN_CREATEl, the target group comes from step 2, the campaign comes from step 3

  • Error while creating Campaign in CRM

    Hi all,
    When I am trying to create Campaign in CRM, system is throwing an error saying that "Can not get RFC destination for SEM".
    We are not using SEM in our project.
    Can anybody suggest me how to avoid/rectify this error?
    points will be guaranteed.
    Thanks in advance.
    Regards,
    Rahul.

    Hi Rahul,
    As long your are not activate/ use the key figure planning or budget,
    you can use without SEM. There is setting in SPRO to set this.
    Also in your CRM Campaign, you do not use scenario planning.
    Hope this helps,
    Gun.

  • Creation of  Zreports in CRM 2007

    Hi All,
    Can anyone tell me how do we create Zreports in CRM 2007..? I need step by step process for creation of Zreports in CRM 2007. 
    Thanks in advance.
    Archana.

    One way is if you use BW. Then you have to create reports there. The other is if you use interactive reporting. Then you can do it via wizard that is available in CRM 2007. To do this, you need to be logged in with the ANALYTICSPRO business role. There you will have the option to Search reports. There you can search standard reports and the ones modified by you. If you want to modify the SAP delivered reports, select the report, click the Copy button and then rename it etc. You then walk through the wizard and make the changes you need. You can also modify the ones you created by clicking on Edit.
    Once you have created your reports, then make start ordywb transaction and check Show Custom Reports checkbox. This will show you the identifier for your custom report. Then you put your logical link in the nav bar profile to show the reports on web ui..

  • BADI for changing fields during Creation of BP in CRM

    Hello to everyone,
      I need to find a BADI (or other way) to default several fields during BP creation in CRM (4.0 SR1 SP9). The fields I will like to set are TAX TYPE, TAX NUMBER, TAX CATEGORY, etc.. I have found the BADI BUPA_TAX_UPDATE but i dont see any suitable parameters (structures) to changes these fields. Please advice and thanks in advance.

    Hi
    If you use function BUPA_NUMBERS_GET then your BP number will already be buffered and you can avoid a DB read. It may also be that the BP is not in the DB yet anyway.
    You can only pass one GUID in at a time - loop through IT_CHANGED_INSTANCES into a variable of type BU_PARTNER_GUID and pass that into the function as input parameter IV_PARTNER_GUID.
    Cheers
    Dom

  • Error while creating the campaign in CRM Web UI 7.0

    Hi,
    We are working on SAP CRM 7.0 Ehp1. On web Client UI -> Marketing, when I am trying to create a campaign by clicking on the create campaign , the system is giving the dump –
    Business Server Page (BSP) error:
    what happened?
    Calling the BSP page was terminated due to an error.
    SAP Note
      The following error text was processed in the system:
      Entry parameter of method CL_CRM_BOL_ENTITY->GET_PROPERTY contains
    value CRM_GUID, which is not allowed
    Exception Class
    CX_CRM_CIC_PARAMETER_ERROR
    Error Name
    Program
    CL_CRM_BOL_ENTITY=============CP
    Include
    CL_CRM_BOL_ENTITY=============CM00C
    ABAP Class
    CL_CRM_BOL_ENTITY
    Method
    IF_BOL_BO_PROPERTY_ACCESS~GET_PROPERTY
    Line: 22
    Long text
    When checked for explanation, the diagnosis procedure includes activating checkpoint group BSP_WD_EXCEPTION_DISPLAY. To do this, use transaction SAAB. I have activated the checkpoint but still getting the same dump.
    Please guide.
    Thanks and Regards,
    Kavita Chaudhary,
    Mobile: 8800222151

    I would create a break-point at the mentionned line, when it is reached check desktop 2 in debugger to see if a Z-method is involved and if no it might be a standard SAP-problem.
    The error message itself tells you that a certain entity has no property CRM-GUID but the system tries to read this property.
    Best regards,
    Thomas Wagner

  • How to create activity template for email campaign in CRM 5.0

    Hi,
    I tried attaching only a simple activity transaction type (Z005) to communication type email in SPRO > CRM > Marketing > Marketing Planning and Campaign Management > Campaign Execution > Define communication medium.
    After doing this, I was expecting that when I execute my campaign for channel email, emails will be sent to the customers and activity transactions of type Z005 will be created for each outbound email.
    Activity transactions are created, but I think I would like to maintain more details (description, responsible org etc.), which should be possible using activity template.
    I am struggling with creating activity template. I created a normal transaction of type Z005 and tried to maintain it as a template (which was obviously wrong), and the system gave me a message that I need to attach a template transaction of template type D.
    How do I create an activity template of type D?
    Any help would be appreciated.
    Regards,
    Kaushal

    Hi Kushal,
    As your are in CRM 5.0 you can create Activity template from SAP GUI. Just execute CRMD_ORDER and select your Activity type (ZOO5) and in Menu click on Extras->Template->Create  just enter required details such as (description, responsible org etc.)  save the template it will create Activity template number. While creating Email Campaign just enter activity template number.
    Execute Email Campaign it should create Activity with required details.
    Regards,
    Dipesh.

  • Campaign Code-CRM 2007

    Hi Experts,
    I need to generate Campaign Code in Campaign.Modified component CPGOE_DETAILS and added the field campaign code but it is appearing in non editable mode.Please help.
    Thanks & Regards,
    Moumita Rana

    Hi Srini,
    Thanks for your  response.
    In CRM 5.0 the camapign code (For e.g. 6CAA)get generated automatically.
    But in CRM 2007 its not getting generated.
    Camapign ID(For e.g.C-00004318) and campaign code are two distinct fields in CRM 2007.
    Thanks & Regards,
    Moumita

  • Communication medium creation in Campaign execution

    Dear experts,
    Please guide me how to create communication medium while executing the campaign.
    I had errors in communication medium and template while executing the campaign.
    Awaiting the response at the earliest of possible.
    Thanks in advance,..
    Regards,
    Ramesh Mudhigiri.

    Hello,
    depending on the communication medium selected system builds the screen configuration for the communication channel screen. If you select any communication medium that creates any business activity / lead / sales order the related template fields get enabled so you can use a activity template / lead template / sales order template for the business transaction creation.
    In case of the open channel communication medium system is not sure which fields are required in the open channel context all those fields are shown independently from the configuration.
    The same is hardcoded and determined in the following calls:
    119  METHOD CREATE_VISIBLE_ATTR_LIST CL_MKTPRJ_COMMCHNL_UTIL
    118  METHOD CREATE_NEW_CONFIGURATION CL_MKTPRJ_COMMCHNL_UTIL
    However you can use BAdI CRM_MKTPL_UIU_MODIFY_COMM_CHNL to modify the determined configuration according to your requirements. Using the BAdI you can add / delete fields from the configuration that are not required in the open channel conext.
    Please find further information in the following note:
    1454944   Modify channel attributes via BAdI
    The BAdI should be available in your system however I hope this helps to understand the behaviour.
    best regards,
    Johannes

  • How to use crm xif to finish batch creation of BP in crm

    Hi,
       we need to upload BP data in CRM from flat file and many fields to be filled. And seems CRM provides XIF to do this. But not many materials listed in SAP help. could anyone give some suggestion ?
    ths

    Hi,
    I've looked into your reply.
    For your first query, you have to provide identification numbers. It is like an identification for the external systems when you create the same.
    You do not have to pass Guid, since inside the code logic, if it is fresh insert there will be GUIDs generated also, which will cause the confusion. Let the system generate the GUID for fresh insert. You provide the identification numbers.
    For your second query you need to provide the sales area data in the following segment
    E101RMXIF_PR_MATERIAL_SALES of Idoc CRMXIF_PRODUCT_MATERIAL_SAVE01. Also kindly make sure that you have done the necessary customising for sales area of products. Hoping the 2nd error comes during the update of product data.
    I hope this helps.
    Regards,
    Venkat

  • MKT_ELEMENT_CREATE gives Dump during creation of Campaign Element

    Hi,
    I am trying to create campaign element through code and I am getting dump in the following class method.
    Class : CL_CRM_MKTPL_OL_MKTPROJECT
    Method : SET_ATTRIBUTES
    Line No : 15 ->> lr_header_item->get_attributes( EXPORTING iv_get_external_attributes = abap_true
                                      IMPORTING es_attributes              = ls_header_attr ).
    In above statement LR_HEADER_ITEM comes as Initial.
    Below is the code for creating campaign element.
    DATA: LR_TASK          TYPE REF TO CL_CGPL_TASK,
            LR_TASKS         TYPE REF TO CL_CGPL_TASKS,
            LR_PROJECT       TYPE REF TO CL_CGPL_PROJECT.
      DATA: WA_PROJECT  TYPE CGPL_PROJECT.
      DATA: WA_TASK     TYPE CGPL_TASK.
      DATA: LIT_TASKS   TYPE CGPLD_ITAB_TASK.
      DATA: WA_MESSAGE TYPE BAPIRET2.
      DATA: LIT_RETURN TYPE TABLE OF BAPIRETURN1.
      DATA: WA_CAMPAIGN TYPE CRM_MKTPL_CAMPAIGN,
            WA_ATTRIBUTES TYPE CRM_MKTPL_MKTELEMENT.
      DATA: LV_GUID TYPE SYSUUID-X."BAPI_MARKETINGELEMENT_GUID-MKTELEMENT_GUID.
      DATA: LV_CAMP_GUID TYPE BAPI_MARKETINGELEMENT_GUID-MKTELEMENT_GUID.
      CALL FUNCTION 'MKT_ELEMENT_READ'
        EXPORTING
          MARKETINGELEMENT = IV_SOURCE_GUID - THIS IS A IMPORT PARAMETER OF FUNCTION MODULE ( CAMPAIGN GUID ).
        IMPORTING
          EX_CAMPAIGN      = WA_CAMPAIGN
          EX_ATTRIBUTES    = WA_ATTRIBUTES.
      CONCATENATE WA_ATTRIBUTES-EXTERNAL_ID '_' SY-DATUM '_' SY-UZEIT INTO WA_ATTRIBUTES-EXTERNAL_ID.
      WA_ATTRIBUTES-OBJECT_TYPE = 'CPT'.
      CALL FUNCTION 'SYSTEM_UUID_CREATE'
        IMPORTING
          UUID = WA_ATTRIBUTES-GUID.
      LV_CAMP_GUID = WA_ATTRIBUTES-GUID.
      WA_ATTRIBUTES-PROJECT_GUID = IV_SOURCE_GUID.
      WA_ATTRIBUTES-PARENT_GUID = IV_SOURCE_GUID.
      CALL FUNCTION 'MKT_ELEMENT_CREATE'
        EXPORTING
          IM_MARKETINGELEMENT = LV_CAMP_GUID
          IM_ATTRIBUTES       = WA_ATTRIBUTES
        TABLES
          RETURN              = LIT_RETURN.
      IF LIT_RETURN[] IS INITIAL.
        CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
          EXPORTING
            WAIT = 'X'.
      ENDIF.

    This would happen if you are not passing the right guid to the program or Function Module. Please check that the guid is available in cgpl_project table.
    Ajay Gupta

  • Problem in APD creation from BW to CRM

    Hi all,
    I want to create apd which would feed data from BW to CRM. For that I have gone through a post in scn where it was told to create project and then extension in crm side (eewb transaction). I did all but in the wizard where I have to create table, I was unable to approach forward because of some issues.
    1) It gives an error message that key is not selected, although I have selected the key.
    2) Some other time it gives error that infoofject cannot be validated, although the infoobjects are activated in bw side.
    Please help me in this regard.
    Thanks and regards,
    Sumit

    Hi Vimal,
    You'd need to debug the FM CRM_BUPA_MAIN_VAL to find out what was the cause of validation error. Once you get the missing details, check if those details are being populated correctly at ECC end.
    Thanks,
    Rohit

  • Creation of BDOCs for CRM Billing - BEAIPMOBILLDOC

    Hi all,
    can anybody give me a hint, where I have to look for BDoc creation, especially BDOC type BEAIPMOBILLDOC? I mean really the piece of code, where the system is forced to create a bdoc of a special bdoc type.
    The background is, that I copied this standard bdoc type to a Z-one but I have no glue, how I tell the system to create a bdoc of this z-type when a predefined action is performed by the user.
    If anybody has an idea, where I can get an example of bdoc creation, please don't hesitate to post it.
    Thanks a lot!
    BR
    Mireille

    Chk txn SBDM (BDoc modeler) and create your own bdoc and assign the same to a Z table.
    Thanks,
    Mahesh

  • Creation of campaign from template through program in web ui

    Hi,
    We have requirement to send notifications to customers.We are using campaign framework to send notifications.Need to create a new campaign from an existing campaign template  and release the campaign through a program in web ui. Please suggest me to achieve this requirement.
    Regards,
    Brahmaji

    We have created camapign element  by passing parent campaign guid and assigned the target group
    LV_OBJECT is an Object of Class cl_crm_mktpl_appl_base.
      CALL METHOD LV_OBJECT->ELEMENT_CREATE
        EXPORTING
        IM_MKTELEMENT_GUID         =
          IM_OBJECT_TYPE             = lv_object_type
          IM_ATTRIBUTES              = ls_attribute
          IV_USE_EXTERNAL_ATTRIBUTES = 'X'
        IM_TEXTS                   =
          IM_PARENT                  = lv_campaign_guid_16
        IM_CHECK_ATTRIBUTES        =
        RECEIVING
          RV_NEW_GUID                = lv_campaign_guid_new
        CALL METHOD LV_OBJECT->TGGR_ASSIGN_CREATE
          EXPORTING
            IM_MKTELEMENT_GUID = lv_campaign_guid_new
            IT_TGRP            = lt_tgrp
    Regards,
    Brahmaji

  • RFC For Order and Delivery creation in SD from CRM - text not getting copie

    Hi
    I am trying to find out how the order and delivery is created in R3 if I create a return order in CRM, as we have one issue in which the text is not being copied to delivery??
    Thanks in advance
    Sameer

    Please check if you have any custom code/user exit in ECC which uses transaction code (VA01 , VA02 or VA05 etc) prior to invoking credit checks. 
    Orders created via CRM will not have transaction code set (SY-TCODE).

Maybe you are looking for

  • SBH52 with Z1 doesn't work

    Hi. I bought SBH52 8 months ago and it works good, but today I wanted to listen the music and I couldnt open music by sbh52... I could only play it from Z1 walkman and I couldn't pauze, play and get next or previously music. Why? I have update Z1 and

  • Two problems with 10.9.3 update

    Two problems that seem to have appeared after the latest update. 10.9.3 1) My trackpad will not scroll up/down left/right. All other functions work. 2) User accounts are not showing up in finder windows. When I click on internal or external drive (bo

  • How to limit the number of version of a content item in UCM?

    Hi, I am looking for a solution to limit the number of versions which can be created for a content item. It should be configurable as in future if I need to increase or decrease, it should be possible. I have seen the solution given in Re: Limiting n

  • How to handle the Rowalreadydeleted,Row inconsistent exception in adf

    Hi all, In my application user can update,delete the database table. If one user deletes the row and other user tries to update the same row then i am getting the error and the user how got this error was not able to perform any operation on other ro

  • Installed new battery. Not working right?!?!

    I bought a battery from battery plus for my Macbook Pro 13" Early 2011. I installed it and it wouldn't turn on. So I figured it just wasn't charged, I plugged in the charger and it turned on. Great!! Not really. I noticed the battery symbol in the st