BAPI to create Target groups

Hi Gurus,
The scenario is I will get a list of Business Partners as a file.The program should create a Target group and attach the list of partners to the created Target group.Is there a BAPI to create Target group?.Kindly let me know
Points assured for helpful answers.

Hi RAghu,
please check if the following BAPI's fullfill your requirements:
BAPI_TARGETGROUP_CREATE
BAPI_TARGETGROUP_ADD_BP
if you want to fill a target group with BPs the target group has to
exists before.
Moreover, it is unlikely, that BAPI_TARGETGROUP_CREATE is useful
in your process (because it generates a TG for an existing
profile group!
Kind Regards´

Similar Messages

  • Creating Target Group from External File

    Hello Experts
    We need to create target group from external file. (That is to say we will have let's say txt file containing BP that belongs to specific target group and we need to assign these BPs to to specific target group in SAP CRM)
    I have searched for it on sdn and found something benefical. I have found BAPI_TARGETGROUP_CREATE, I have checked it but I don't understand how should we use it becuase as far as we understand it just creates target group, we cannot see anything related with Business Partner. How can we relate BPs with the target group we create by this BAPI.
    What should we do, is anyone have previous experience about it? or is there a way to do it without using BAPI.
    thanks it advance
    M.
    Edited by: Mehmet Ergul on Jan 22, 2009 11:19 AM

    Hi,
    You can do this from within the standard Web UI. It's straight out of the box.
    Create a profile set and in there create a target group in the target group assignment block just by entering the description of the target group. Then enter edit mode of this target group and click the button "Import Members". Remeber to mark "Change selected target group" unless you want to create a new target group.
    /Anders

  • BAPI to build target group for segments

    Hi all,
    I looking for a BAPI that builds target group for segments and not for profile sets.
    Transaction CRMD_MKTSEG allows to create TG in two ways :
    - Build for Profile SET
    - Build for Selected segment
    BAPI_TARGETGROUP_CREATE is like u201CBuild for Profile SETu201D, since it requires a profile set guid as input
    I have not found anything to u201CBuild for Selected segmentu201D, putting as input only a Profile.
    The reason is that I need to "refresh" every day the target group and it is possible only if I create a TG for segment and not for profile set. In this second case the TG is frozen and no more refreshable,
    Thanks.
    regards
    Emanuele

    Hi Emanuele,
    There are three types of Segments:- Profile Sets, Target Groups, Profiles. 
    (You can check this yourself:- Go inside Find segments, then choose Advanced Search. You will get option to find Marketing Segments based on whether they are Profile sets or Target Groups or Profiles )
    It means Profile Sets is also a type of Segment. So i am bit confused with your question.
    If i understand your question correctly, you simply want to create a target group which should be refreshed automatically on a daily basis.
    You can very well achieve this daily refresh by building the Target Group in Background Mode. While creating a Target Group there are two modes possible :- 1)Build Target Group in Dialog Mode 2)In Background Mode.
    So u need to build your Target group in background mode and While creating the Target Group in Background mode:-
    Select the Checkbox "Active"
    Do not select the checkbox "Modelling Completed".
    Hope this helps in resolving your issues.
    rgrds,
    Randhir

  • Creating Target group

    HI all,
    I am trying to create the target group in Segment builder, for which I have done the following settings
    1)I have maintained Attributes and attribute set,
    2)i have assigned attribute set to Business partner.
    3)I also have created Data source here i have maintained
    Origin type as attribute set
    maintained name of attribute set
    function module used Cross-selling: function module CRM_MKTPR_PP_CS_TG_READ,and description.
    4)Created attribute list as follows
    Description_______
    Category:Product proposal
    Segment type:Product Proposal and saved.
    Then assigned data source and highleted what ever attributes required to display in Segment builder.
    The issue here is:
    When i go to Segment builder(crmd_mktseg):
    in Segment builder when i tried to create profile set for product proposal the system is asking for Profile set description and Master group.
    and i am unable to drag and drop profile set onto staging area and create target group.
    can u/any one advice me in this regard/
    Thanks in advance.
    mdv.

    Hi mdv,
    For the purpose of creating your target group, the name of the profile set is of no importance. CRM just requires that you do create the target group within a profile set. That being said, when you create a profile set and system asks you for profile set description and master group, just put any words in the description field that is meaningful to you, and don't select anything in the master group.
    Once this is done, you will need to drag and drop your 'filter' that you created for your attribute list into the staging area. Then, one very important step (which I missed in the beginning and it took me 8 hours to figure out) is that you need to click on the 'Count' button. Once you see a number on the target group, it means the filter is working. From there you can create your target group and open it for list export.
    Hope this helps.
    Leon

  • Creating Target group with Bi Query

    Hi,
    I am trying to create Target group with BI query, for that I created one query on real time info cube  with 0BPARTNER, 0BP_GUID  and selected all navigational attributes.  In the query info object properties u2013 Advance setting I selecting u201C Values from Master Data Tableu201D  & Access Type u201C Master Datau201D , In query Property u2013 selected u201C Allow External Access to Queryu201D
    In CRM while creating Data source I can see the In objects selected in   the query u2013 selected Business partner info object as 0BP_GUID ,In the attribute list I just selected one item Industry code against the above data source, while running the Segment Builder when I selected the industry code it gives me 0 business partner where as I am having 20 BP with that Industry code.
    I appreciate your help ASAP.
    Regards,
    Rajiv Jain

    Hi Rajiv
    I have the same issue with my BI Query. Hope you have resolved by now, if you have please do let me know.
    What we have done is, created a BI Query and used this query in in CRM datasource, then created some filters where i can see the objects in the query while creating filters in Attributes List. But when we use these filters to create Target group, its not resulting any results in the query, i mean not brining any values on segmentation area. This issue is only in Production as we have already tested in Test and passed without any problems. But in Production we have this issue, i m not sure why this is happening, i spoke to BW team regarding this and they are not sure eitherl. If you know could you please let me know
    Thank you in advance
    Regards
    shankar

  • Create Target Group in CRM from BW Query in Bex analuzer using program.

    Hi ,
    I want to create Target Group in CRM from BW Query in Bex analuzer using ABAP program RSCRMBW_TG_GENERATE_BUPA .
    I did all the setting and enable the Release the OLE DB for OLAP.
    The Target group is created but the Data from the report(BW query )  is not populated in the target group.
    Please help me what i need to do?
    Thanks,
    Nimai

    Hi Nimia,
    Did you manage to resolve this, I am having the same problem. I am not getting any errors and the target group is created but there is no data in the target group.
    Thanks,
    Rue.

  • Create target group for contacts does not work

    Hi Experts,
    I am working on a Markting solution for a University with CRM 5.0.
    We need to contact certain Teachers in Schools (they have an orientation function for pupils that might study in the University in the future).
    I can segment for schools in Segmentbuilder. Now, I need to generate "new target group from contact". In my case the contact person of the school is the Teacher (function type is contact person). This does not work.
    Am I missing some parametrization, or is there a relation to sales area (wich we do not have).
    Hoping for your help. I will regard points generously.
    cristina

    Hi Cristina,
    I understand Schools are crated as Org and Teacher as Persons. There exist a Relationship between these similar to Contact Person (BUR001).
    Now, Follow the process
    1) Create a Data Source in CRMD_MKTDS.
    2) Assign an Infoset Query, as per your scenario.
    3) Assign Function Module "CRM_MKTTG_PF_BP_TAB_TO_CP" to data source
    4) Save, and then create an Attribute List.
    Go to Segment Builder and create target group based on above Attribute List.
    You'll get a list of all the contact persons. For your case, Teachers.
    Hope this helps......
    Regards,
    Vikas
    PS: This will only work if Schools - Org, Teacher = Person and Relationship = BUR001. If you have other criterias please copy Function Module "CRM_MKTTG_PF_BP_TAB_TO_CP" and edit it as per your business case. Then assign this FM in Data Source.

  • Can't create target group in graphical modeler

    Hi,
    I have a problem with the target group creation.
    To create the target group I have done the following steps:
    1. Go to Marketing -> segment;
    2. Create Profile Set; save.
    3. Go to Graphical Modeler;
    4. Drag&Drop the attributes to the work area;
    5. Select Count;
    6. Select Build target group -> In Dialog;
    7. Save target group;
    8. Select u201CBacku201D to go to the Profile Set;
    The system doesnu2019t do any error, but when I go to the profile set, in the block Target Groups doesnu2019t appear the target group that I have created.
    If i go to the CRMD_MKTTG_TG_T CRM table, my target group is not create.
    Can anyone help me, please.
    Regards,
    Brahmaji

    HI
        in gui u have to create target group in tcode crmd_mktseg  create profile  create target group and copy attribute list of existingif needed create filters  and go for web ui create profile set and go for graphical modler and take ur attribute list and drag and drop u can split or rejoin merge target groups i think it is use full
                                                                                    abhinav

  • Criterion for Date to Creat Target Group

    hi Guru's
    Need a help on creating and executing birthday campaign.
    We are using CRM 5.0 and would like to create a target group for birthday campaign, selected BirthDay from attribute lists from the DataSource field "CRMT_MKTTG_IS_BIRTHDATE-BIRTHDT" and when i am trying to filter the date, i am confused what criterion i should select.
    Can some advice or explain me how the birthday date criterion works.
    Can any one kindly get back to me, full points will be allocated for quick reply with solution
    thank you
    regards
    shankar

    hi there
    yeah you can do what is suggested in abobe post
    besides
    try having month as filter first,like say may is the month
    now put date as 6,like all those having date of birth as 6 may irrespect of the year will get filtered out
    likewise there are many ways to do this
    best regards
    ashish

  • Atributes list to create target group does not appear

    Hi experts,
    In CRM Portal, It is not showing the page which I can choose Attributes list in order to create profile groups and target groups.
    I'm looking for something similar as tcode: CRMD_MKTSEG in SAP GUI.
    I have already assigned Marketing Manager/Assistant in my profile.
    Does anybody could help me ?
    regards,

    Hi,
    Assign Transaction category CRMD_MKTSEG to your user role for GUI as well as Portal(PCUI),
    u'll see the Segment Builder tab in PCUI screen, u can create profile/sets and target groups.
    Thanks,
    Dipesh.

  • Using custom fields to create Target Groups?

    Hi Experts,
    I might be missing something but I couldn't find anything in the different help guides, so if anyone saw that please help!
    Do you know if it is possible to edit the available fields to search/filter Contacts, Accounts etc. when trying to add them to a Target Group?
    We are currently not really using any Marketing-related features but this will be a focus for us in a few months so we are having a closer look at this area. There might be some other settings in the Admin/Project Scope etc. that I am missing and need to check and activate.
    We have some custom fields integrated with our on premise SAP CRM system which are heavily used by our marketing departments for extracting Contact lists, this is why we would like to see how we could reproduce this in C4C.
    Thanks a lot in advance,
    JB.

    Hi JB,
    You can go to => Marketing => Target Groups => Your Group => Members => Personalize => Start Personalization => Add => Add Contacts => here you can select the field you want to change/hide, you can also drag and drop a field to change its order on the screen => Personalize => End Personalization.
    Please find attached file with only a few changes that I did on that screen.
    Best Regards,
    Cristiano Rosa

  • How to create a target group with all prospects?

    Hi guys,
    I am wondering how do I have to set up my data source when I would like to build a target group in my segment builder which includes all persons/contacts/organizations with the bp role prospect?
    Which infoset do I need to choose in my data source? What do I need to fill under details?
    Thanks a lot for your help.
    Best regards,
    Janine

    Hi Janine,
    What I could understand is that you require to create target group of all BPs having BP role as prospects.
    To do so, you can create an infoset joning tables BUT000 and BUT100. The table BUT100 , has a field "BP Role"->select it, so that it is available when you are creating the attribute list using this infoset.
    Create a data soucre for this infoset. Then when creating a attribute list, include this datasource and under this select the attribute "BP Role". Add filter to this attribute for prospects.
    This filter can be used in segmentation builder in UI to create TG containing BPs having BP role as prospect.
    Hopes this helps you.
    Thanks,
    Apoorv

  • Creating the Target group

    Hi ,
    i would like to create the target group in segment builder.i got the list of business partners.how to create the target group using this list(excel sheet)
    your help would be appreciated.
    Thanks,
    kenny

    In CRM4, Segment Builder (CRMD_MKTSEG)
    Create New Profile Set
    Right click in main window area and select Create Target Group
    Right click on New Target Group, select Properties
    Click on the Load File and Create New Target Group tab
    Follow directions there:
    The file must contain a column with BP number or BP GUID.    
    The file must be an ASCII file (e.g. *.txt or *.csv).        
    The first line of the file must contain the column heading.  
    The columns must be separted with ; or ,                     
    The new target group receives inactive status.                                                                               
    BP Column                                                                               
    Action          1 Add Business Partner to Target

  • How manage unsubscribers from Target Groups created in Graphical Modeler

    We have a communications database which I've created in Graphical Modeler. I have used a SMB filter and then subtract a 'Do not Contact' filter.
    How can I manage those contacts who do not want to receive these email campaigns? In general: how can we manage unsubscribes when creating Target Groups in GM?
    Best,
    Siegbert

    HI
        in gui u have to create target group in tcode crmd_mktseg  create profile  create target group and copy attribute list of existingif needed create filters  and go for web ui create profile set and go for graphical modler and take ur attribute list and drag and drop u can split or rejoin merge target groups i think it is use full
                                                                                    abhinav

  • 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

Maybe you are looking for