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

Similar Messages

  • Changing archived status for target group or segmentation model.

    Hello, CRMies!
    In SAP CRm WEBUI i set "To archive" flag for segmentation model and now it has status "Archived". The problem is hat it became inactive now and i can't reset this status. I didn't execute any archiving reports, just set the flag on.  I was looking for any FM or reports to recover the status.
    Anybody knows how to unarchive segmentation model or TG?

    Hi Katya,
    as far I know the segmentation model is archived with the next scheduled archive run once the status 'to be archived' is set. The status can be undone before the archive run, once this is archived there is no way other then generating the segment again.
    Please refer to the online help about further information:
    Archiving Segmentation Elements - SAP Library
    For target groups andproduct segments there is also a read program in transaction SARA, which you can use to display the archived segmentation elements again at a later point in time, if required.
    Furthermore, the information structure SAP_CRM_MKTTG_I is available for target groups and product segments in the transaction SARA.
    You can not only read, but can also load archived segmentation models into the system. However, you should only use this function when it is absolutely necessary. For further information, see Reloading Archive.
    Since you cannot load target groups or product segments into the system, you need to generate these again to be able to use them.
    I hope this helps.
    best regards,
    Johannes

  • 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´

  • Help needed to generate new target group for contacts from BP Target Group

    In CRM 5.0, we have a functionality in which say we have created a target group (T1) for 10 BPu2019s (organization) and each of these BPu2019s have one or more contact persons associated to them. Now if I want to create a target group for all these contact persons associated to the 10 BPu2019s, in CRM 5.0 I have the option to right click on the target group (T1) and then I get an option u201C generate new target group from contactsu201D. By doing so another target group for all the contacts associated to those BPu2019s will be generated. I am not able to find out the similar option in CRM 2007 (web UI) where in I can create target group for contacts associated to BPu2019s (organization). There should be some work around for this requirement.
    Please let me know how to achieve this requirement.
    Thanks,
    udaya

    Hi udaya,
    we're also using that functionality in CRM 5.0. I think it would be worth a combined OSS message to get this functionality back in standard if it isn't there.
    Best regards
    Gregor

  • Target Group for different Relationships

    Hi All,
    I would like to create the target group consisting of Buisness Partners(Level 2) having specific relationship with Identified Business Partners(Level 1).
    How should I acheive this?
    Do I need to create the target group for Business Partners(Level 1) and treat it as master group for creating target group for Business Partners(Level 2).
    Afterwords filters needs to be applied on the Buisness Partners(Level 2).
    Regards,
    Piyush

    I think help file is pretty clear. SAP provides one example with CP but they expect you to follow up the following (there is some programming involved):
    You have defined data sources that are capable of providing the business partner relationship information. In the case of InfoSets, this means that the InfoSet itself contains all the fields required to provide the partner function information.
    You need a conversion function for the data sources Business Intelligence Cube and Attribute Set. This function uses a function module to deliver the required information (for example, contact person for an organization). You need a separate function module for each relationship type. The standard delivery contains the following example function modules:
          CRM_MKTTG_PF_BP_TAB_TO_CP
          CRM_MKTTG_PF_BP_TAB_TO_CP_BW
          CRM_MKTTG_PF_FIND_CPS
    Cheers

  • Enhance output of Target Group in segment builder

    Hello Experts,
    We are implementing SAP CRM Lean Marketing using CRM 7.0. Our business requirement is to do segmentation based on Company attributes and Relationship Category. The output of the target group should enlist the persons related to the Company based on the relationship category selected while doing the segmentation.
    Using standard InfoSet CORM_MKTTG_BP_ORG_CDE and while creating data source selecting BUT000_PER-PARTNER_GUID in the field business partner, we are able to get the list of persons matching the segmentation query (based on the relationship category e.g. Has Supplier, Has Contact Person, etc) . But the issue is , the output of the target group (shown as an ALV grid , when the target group is opened in segment builder) only enlists matching Persons, it does not enlist the related company ID /name in front of the Person ID in the output of the target group. And this Company BP ID is not available if I try to modify the output layout. So business is unable to understand the Person enlisted in TG belongs to which Company. Can we enhance this ALV grid output of the target group displayed in segment builder ? if yes , how can it be achieved ? If this is possible and we are able to add related company BP ID/ name in front of every person enlisted in the target group then our issue gets resolved. Or is there any alternative solution to resolve this issue ?
    Highly appreciate your early response in order to resolve this critical issue.
    Thanks and Regards
    Ambar
    Edited by: AMBAR ADHAV on Sep 10, 2011 11:53 AM
    Edited by: AMBAR ADHAV on Sep 10, 2011 2:22 PM

    Hello Experts,
    We tried implementing BADI CRM_MKTTG_SEG_MEM_EX in order to add Company ID/ Name , but the issue is the BADI gets Input as persons BP id, nothing else, due to this if a person is having relationships with multiple companies, the BADI is unable to identify which company to choose as Relationship Category is not available to the BADI. And further issue is if a Person is having same relationship category with 2 companies e.g. Supplier for company A and for Company B too , in this case too the BADI is unable identify correct Company to return to the target group output
    Is there someting in the Infoset that can resolve our issue ? How can I make available the fields in the infoset to the ALV output of the target group. Using SQ02 I am able to add fields to the field groups for selection in segmentation, but can anyone guide, how to make the field available in the output list ?
    Please provide your technical assistance
    Thanks
    Ambar

  • 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.

  • Target Group creation & Segmentation

    Hi Friends,
    Can you tell me the use of the toggle buttons OR/AND WITHIN AN ATTRIBUTE / OR/AND ACROSS ALL ATTRIBUTES below the Attribute Lists in the Segment Builder.
    I my Project there is a requirement where the Client wants to use OR & AND CONDITIONS while creating a Target Group.
    Thank you,
    Rajendran S

    Hi Rajendra,
    When you have more than one filter to create a target group then use these toggle buttons to set AND / OR conditions between filters of different attributes or different filters of same attribute.
    OR/AND WITHIN AN ATTRIBUTE :
    If you have two filters with in same attribute, select two filters and while drag and drop the condition you see in toggle button will be set between two filters.
    Ex: If Toogle button is set to : OR WITHIN AN ATTRIBUTE
          Attribute : City
          filter1:  Havana
          Filter2: Atlanta
    select two filters and drag and drop to the work area, then an OR condition will be set between two filters
    If Toogle button is set to : AND WITHIN AN ATTRIBUTE
    Then the condition between two filters will be AND.
    Similar functionality with other toggle button OR/AND ACROSS ALL ATTRIBUTES.
    Thanks,
    Priyanka

  • Target group for contacts

    Hi Folks,
    I need help with a segmentation based on 'Relationships' requirement. In our system a Contact Person is assigned to a 'Partner' where 'Partner' is an Employee in the system (has a BUR011 relationship with the Contact). Also, the Relationship record (between the Contact and Employee in BUT050) will have some addition custom fields which define other attributes of the 'relationship'. As an example let assume the custom field is XYZ and the possible values are A, B, C for this field.
    The requirement is to create a Target Group of all Contact Persons where the Partner 'Region' = IL and relationship custom field XYZ = A. From the list of Business Partners I can drill down to the list of Contact Persons, but I'm having trouble filtering the list of Contacts further based on the details of the Employee (Region & Custom field XYZ). Any thoughts on how this can be done with a custom infoset and if the solution approach will change based on whether we do classic Vs high-volume segmentation?
    Thanks!
    Siddharth

    Hi Siddharth,
    please refer to the online help of how to perform the segmentation based on relationships:
    Segmentation Based on Relationships - Segmentation - SAP Library
    The best way to fulfill your requirement is to first create a segment of the employees using the filter criteria mentioned. Then you may use the follow up function 'convert organizations to contact persons':
    I hope this also works in your employee - contact scenario.
    best regards,
    Johannes

  • CRM Target Groups and Product Segments - BW and BPS settings

    Hi gurus,
    I have some questions regarding the CRM Target Groups and Product Segments as it relates to BW and BPS planning layouts.
    1. When a target group is created in CRM, is it supposed to also be create master data entry for the object 0TGGRP_ID in BW? If it is, what kind of settings need to be made to ensure that? When we create target groups in our CRM instance, we donu2019t see the master data being updated for the  0TGGRP_ID info object.
    2. Where exactly (in BW) is the relationship between the target group and the underlying customer/business partners  stored/updated? We have a requirement to use target groups for defining the trade promotions and still being able to explode and plan on (individual) customers in the embedded BPS Planning layout. I believe that we need to have target group and associated customer assignments stored somewhere (?) in BW and use BPS characteristic relationships to populate all the possible combinations for a target group ID being passed from CRM. Am I correct in my assumptions? Any ideas if SAP has already delivered something similar in the BPS business content for TPM? 
    3. We are planning to use product segments to define the trade promotions as well. I believe BW info object is 0CP_SEGMENT. Similar to what I mentioned in Question 1, I donu2019t see any master data being updated for 0CP_SEGMENT. Am I looking at a wrong BW object or missing some key settings?    
    4. Where is the relationship between a Product Segment and the associated products stored/updated in BW?  How do I create a trade promotion using a product segment and make the BPS planning layout populate individual products in the lead column?
    Thank you for your help

    Hi Anna,
    After reading your post, what i understand is that there is no existing relationship present in CRM system between the Org BP and the contact person BP.
    As per my Knowledge in order to create a Target group with Contact Persons you should have an active relationship persent in the CRM system bewteen the BP and the Contact person.Now as your sceanrio suggests that the Contact person's are present in the BW system but not in CRM, i would assume that the relationship also exsits in the BW . So if it does then your BW team should be able to help you in creating the necessary infocube with there analytical tools and you can then use there cube as the datasource and create the necessary Target Group with Contact persons.
    Comming to the second part of your question, your guess is absolutely right but to give you more detailed infomation , the BP ID is converted in a unique GUID and this is passed into the program to retrive the necessary information from the BP after the campaign is executed.
    Hope this helps!!
    Regards,
    Naveen

  • Combine Profiles and Target Groups -Segmentation

    Hi Experts,
    I have a requirement where I will need to join profiles with other profiles and Target groups. I checked in help.sap and I saw the following sentence regarding combining the profiles.
    In addition to attributes, you can also combine profiles with other profiles and with target groups.
    Example
    You select a profile from the components area, drag it onto an existing profile in the staging area and choose keep. The resulting profile contains the attributes contained in both profiles as inclusive conditions.
    How do I get the Profiles and the Target groups in the Components area? I can only view the existing Attribute lists. Is there any setting that I have to make to see the existing profiles and target groups ?
    Any help will be greatly appreciated.

    Hi Pooja,
    which version of the product do you use? CRM 2007?
    Scenario 1) I need to combine 2 profiles with an 'OR' condition and create target groups out of the combined profile. How do I accomplish this? Is there any method to combine profiles in the Graphic Modeler?
    => You could have 2 profiles in a profileset and create the target group for the complete profileset. Then the results are "OR combined".
    => Alternatively you can create a new profile which consists of all attributes and create a target group for this profile.
    Scenario 2) If we have 2 profiles and a target group in a profile set how do I create a Target Group for all the BP's in the Profile set. The only selection criteria in the Graphic Modeller for me right now is Attribute lists. How do I select Target Groups and Profiles
    => Just create the target group for the complete profile set, then one consolidated target group is created.
    Does this help?
    Regards, Guido.

  • Segmentation and Target groups

    Hi,
    Is there a way to create sub-sets of Target Groups so that whenever users run a campaign, the system does not have to go back todatabase tables to filter data, but it is done in sub-sests only to enhance system performance.
    Regards,
    Monica

    Hi Pooja,
    which version of the product do you use? CRM 2007?
    Scenario 1) I need to combine 2 profiles with an 'OR' condition and create target groups out of the combined profile. How do I accomplish this? Is there any method to combine profiles in the Graphic Modeler?
    => You could have 2 profiles in a profileset and create the target group for the complete profileset. Then the results are "OR combined".
    => Alternatively you can create a new profile which consists of all attributes and create a target group for this profile.
    Scenario 2) If we have 2 profiles and a target group in a profile set how do I create a Target Group for all the BP's in the Profile set. The only selection criteria in the Graphic Modeller for me right now is Attribute lists. How do I select Target Groups and Profiles
    => Just create the target group for the complete profile set, then one consolidated target group is created.
    Does this help?
    Regards, Guido.

  • 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

  • Regeneration of Target Group

    Hi crmguys,
    We have the following case about the Target Group in CRM Marketing:
    Already Generate a Target Group in Segment Builder on x date
    A Campaign has been created and the Target Group has been assigned to this Campaign
    After that some changes has been done at the time of releasing the campaign,
    shall i have to regenerate the target group or not to get the exact target group accroding to attribute list
    thanks in advance
    Raj

    hi
    you said you already maintained the target group ,so when you release the campign its pretty simple,if you have maintained the target group using the same set of attributes which are there in your attribute list,then you need not create the target group again
    but if thats not the case then you need to regenerate the target group on the basis of attribute list,infosets or BW query,using whatever you want to do the segmentation.
    target group once assigned to the campaigns can be used again and again but on the basis of which target group are assigned is very crucial.this must be remembered every time we do segmentation.
    besides you can maintain a background job for scheduling the target group assignment to the BP too,so that once target group is generated it is assigned automatically for segmentation.
    best regards
    ashish

  • 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

Maybe you are looking for