Target groups to file

Hi!
I am in the Segment Builder and using the function for sending target groups to file. This works fine, but the issue is that I want to have a layout that show fields, not only from standard tables, but also customized tables as well as field from BW. Is there any way to solve this?
Another issue I have faced when sending the target group to file is that it does not send all business partners. Does anyone know a constraint as to how many fields you can export? The problem may also be that when you open a target group there may be a constraint as to how many business partners are showing.
To information, I am working with CRM 3.1, but especially for the first question I am interested in the answer regardless version.
Thank you,
Camilla

Hi Camilla,
I had a similar problem because I want to print a mail out of CRM sorted by ZIP Code. I've opened a OSS Message on this topic and got this answer:
The sorting is possible, unfortunately, there is no standard code, note available for this purpose. But there is a BADI which can be used for this purpose, the badi is CRM_MKTTG_SEG_MEMBER_EX.
Here is the details of the BADI & the Interface, where the
customer has to make the necessary changes.
Interface : IF_EX_CRM_MKTTG_SEG_MEMBER_EX
Method select_tg_member_details
LOOP AT lt_tg_i INTO ls_tg_i.
IF NOT ls_tg_i-bp_guid IS INITIAL.
MOVE ls_tg_i-bp_guid TO ls_partner_guid-partner_guid.
APPEND ls_partner_guid TO lt_partner_guid.
ENDIF.
ENDLOOP.
Before this loop, you can sort the internal table lt_tg_i according to your qown requirements.
Regards
Gregor

Similar Messages

  • Target Group to file - u0093DATA FILEu0094 contents

    Hello
    When you export target group to a file, it gets stored in application server as Data file and Meta File.
    How can one see the contents of “DATA FILE”
    Thanks & Regards,
    Raju

    Hello Raju,
    it is not a good habit to ask the Question in multiple Threads and also contact via E-Mail. SDN is not OSS! We do this all for fun in our free time. Please have a look to my Answer in topic: Export Target group to file
    Regards
    Gregor

  • Export target group by using mail form?

    Hi Gurus,
    we have a requirements to export the target group to a file but with the attributes we defined in Mailform. If I chose the export to a file then I need to enhance a BADI to define all these attributes again.
    Is it possible to export target group to a file by leverage the mail forms?
    We are working on CRM7.0
    Thanks,
    Wu

    Hi Hongfa,
    Export target group to file
    You use this function to export the business partner data for target group members to a file, so that you can process this data further at a later date, or simply for storage purposes.
    You can choose which business partner fields the export file will contain. You use the BAdI CRM_MKTTG_SEG_MEM_EX to define the fields you require.
    The name of the file you create is freely definable. The file name you specify is saved in the logical file path MARKETING_FILES, which you define in Customizing (see Prerequisites). The data is written to two files: a data file that contains the actual data, and a meta file that contains the description of the data (for example, field types and field descriptions). In the standard system, MARKETING_FILES refers to the DIR_GLOBAL directory (transaction AL11). There is no restriction on the number of business partners.
    Thanks & Regards,
    Srini

  • View List of BP's in Segmentation Basis and Target Groups

    Hi Experts,
    We are using Segmentation Basis for Segmentation. When I create the Segmentation Basis using WINGUI I see that the list  of Business partners in the Segmentation Basis is around 15,000 but I can view only 100 of them in the List output. Is there any other way where I can see all the BP's that are assigned to a Segmentation Basis/Master group.
    I have a similar issue with the Target Group members in a Target group. The Target Group to file export will save the file to an application server to which all the users will not access . Is there any alternate method to view all the BP's in a Target group other than the file export to the application server.
    Please Help.
    Regards,
    Pooja

    Hi Pooja
    I have the same problem with segmentation basis.
    I have created a segementation basis  for  certain number of targetgroup example: 500 members
    When  i am trying to create a new profile set by selelecting the created segementation basis , no target group was displayed and it is showing as Zero.  but  the target group is displaying in SAP GUI.
    Is anything i am missing , can you please let me know the steps for segementation basis procedure and how we can use them for further segementation.
    Thanks
    shashi

  • Authorization Error while exporting a target group to local file

    Dear All,
    When we tried to export a created target group to local file, system gave an error message: "Authorization required. See SAP Note: 697572".
    In this note, it tells that we should add certain authorization entries into the Java policy file under: \lib\security. It mentioned:
    Authorization              Target name       Action
    RuntimePermission                                modifyThread
    PropertyPermission        user.dir           read
    FilePermission            <<ALL FILES>>   read
    FilePermission            <<ALL FILES>>    write
    RuntimePermission                                  shutdownHooks
    And what we put into the policy file is as below:
         permission java.util.PropertyPermission "user.dir", "read";
         permission java.util.FilePermission "ALL FILES", "read";
         permission java.util.FilePermission "ALL FILES", "write";
         permission java.util.RuntimePermission "modifyThread";
         permission java.util.RuntimePermission "shutdownHooks";
    We are not sure about whether we should put  <<ALL FILES>> or ALL FILES, but tried both way and still didn't work.
    Could you please share your experience on this?
    Thanks!

    Tried again and it worked.

  • 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

  • Issues exporting file from Target group

    Hi Experts,
    Can someone let me know the process for exporting file from Target group, I am working on CRM 7.0 .
    or give me the SNOTE to implement the same.
    Thanks
    Leela

    Hi,
    for small Target Groups (i.e. Target Groups that can be displayed completely on the UI, < 10k members) you can export them via the export to spreadsheet button on the header of the Target Group item page (right side). Note that only the members that are shown in the table on the UI are exported. For bigger Target Groups, you can only export them to the application server. To do this, you will have to press the "Export to File" button on the header of the Target Group page. this will schedule a job which exports your Target Group to the application server. You can download it from there using report CRM_MKTTG_FEXP_SHOW_FILE.
    Hope this helps
    --klaus

  • Target Group - Export to File

    Hi all,
    I am having some difficulties exporting target group details to a file. The standard bit of functionallity allows you to export the file to the application server, which isnt really a very user friendly option.
    What i was wondering is...
    1. Is there was a way to save it locally?
    2. Can you change the format of the file from a .dat to a spreadsheet?
    3. Configure the type of data that is displayed in this file?
    Points for any help!
    Kind regards,
    David

    Hi,
    if you open the target group itself (not via grapical modelling of the profile group), you see a table of the items of the target group.
    Here you can export the table to excel (like any table in the UI).
    Regards,
    Claudia

  • Creating a target group based on the BP email address only in CRM

    Hi there,
    I am currently trying to create a target group based on the business partner email address only.
    I have a list of over 1000 email addresses - these email addresses equate to a BP in our CRM system, however I do not have a list of the equivalent business partner numbers, all I have to work on are the email addresses.  With these 1000 BP email addresses I need to update the marketing attributes of each of these 1000 BP records in CRM.
    What I need is a method to find the 1000 BP numbers based on the email addresses and then use the marketing expert tool (tx. CRMD_MKT_TOOLS) to change the marketing attributes on all of the 1000 BPs.
    The issue I am having is how can I find the list of BP numbers just based on the BP email address, I tried creating an infoset based on table BUT000, BUT020 and ADR6 but I after creating attribute list & data source for this I am stuck on what to do next. In the attribute list the selection criteria does not allow me to import a file for the selection range.  I can only enter a value but I have 1000 email addresses and cannot possibly email them manually in the filter for the attribute list.   I also looked at imported a file into the target group but I do not have any BP numbers so this will not work.
    Does anyone know a method where I can create a target group based on the email addresses only without having to do any code?
    Any help would be most appreciated.
    Kind regard
    JoJo

    Hi JoJo ,
    The below report will return you BP GUID from emails that is stored in a single column .xls file and assign the BP to a target group.
    REPORT  zexcel.
    * G L O B A L D A T A D E C L A R A T I O N
    TYPE-POOLS : ole2.
    TYPES : BEGIN OF typ_xl_line,
    email TYPE ad_smtpadr,
    END OF typ_xl_line.
    TYPES : typ_xl_tab TYPE TABLE OF typ_xl_line.
    DATA : t_data TYPE typ_xl_tab,
           lt_bu_guid TYPE TABLE OF bu_partner_guid,
           ls_bu_guid TYPE  bu_partner_guid,
           lt_guids TYPE TABLE OF bapi1185_bp,
           ls_guids TYPE  bapi1185_bp,
           lt_return TYPE bapiret2_t.
    * S E L E C T I O N S C R E E N L A Y O U T
    PARAMETERS : p_xfile TYPE localfile,
                  p_tgguid TYPE bapi1185_key .
    * E V E N T - A T S E L E C T I O N S C R E E N
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_xfile.
       CALL FUNCTION 'WS_FILENAME_GET'
         IMPORTING
           filename         = p_xfile
         EXCEPTIONS
           inv_winsys       = 1
           no_batch         = 2
           selection_cancel = 3
           selection_error  = 4
           OTHERS           = 5.
       IF sy-subrc <> 0.
         CLEAR p_xfile.
       ENDIF.
    * E V E N T - S T A R T O F S E L E C T I O N
    START-OF-SELECTION.
    * Get data from Excel File
       PERFORM sub_import_from_excel USING p_xfile
       CHANGING t_data.
       SELECT but000~partner_guid FROM but000 INNER JOIN but020 ON
    but000~partner =
       but020~partner
         INNER JOIN adr6 ON but020~addrnumber = adr6~addrnumber INTO TABLE
    lt_bu_guid FOR ALL ENTRIES IN t_data WHERE adr6~smtp_addr =
    t_data-email.
       CLEAR: lt_guids,ls_guids.
       LOOP AT lt_bu_guid INTO ls_bu_guid.
         ls_guids-bupartnerguid = ls_bu_guid.
         APPEND ls_guids TO lt_guids.
       ENDLOOP.
       CALL FUNCTION 'BAPI_TARGETGROUP_ADD_BP'
         EXPORTING
           targetgroupguid = p_tgguid
         TABLES
           return          = lt_return
           businesspartner = lt_guids.
    *&      Form  SUB_IMPORT_FROM_EXCEL
    *       text
    *      -->U_FILE     text
    *      -->C_DATA     text
    FORM sub_import_from_excel USING u_file TYPE localfile
    CHANGING c_data TYPE typ_xl_tab.
       CONSTANTS : const_max_row TYPE sy-index VALUE '65536'.
       DATA : l_dummy TYPE typ_xl_line,
              cnt_cols TYPE i.
       DATA : h_excel TYPE ole2_object,
              h_wrkbk TYPE ole2_object,
              h_cell TYPE ole2_object.
       DATA : l_row TYPE sy-index,
              l_col TYPE sy-index,
              l_value TYPE string.
       FIELD-SYMBOLS : <fs_dummy> TYPE ANY.
    * Count the number of columns in the internal table.
       DO.
         ASSIGN COMPONENT sy-index OF STRUCTURE l_dummy TO <fs_dummy>.
         IF sy-subrc EQ 0.
           cnt_cols = sy-index.
         ELSE.
           EXIT.
         ENDIF.
       ENDDO.
    * Create Excel Application.
       CREATE OBJECT h_excel 'Excel.Application'.
       CHECK sy-subrc EQ 0.
    * Get the Workbook object.
       CALL METHOD OF h_excel 'Workbooks' = h_wrkbk.
       CHECK sy-subrc EQ 0.
    * Open the Workbook specified in the filepath.
       CALL METHOD OF h_wrkbk 'Open' EXPORTING #1 = u_file.
       CHECK sy-subrc EQ 0.
    * For all the rows - Max upto 65536.
       DO const_max_row TIMES.
         CLEAR l_dummy.
         l_row = l_row + 1.
    * For all columns in the Internal table.
         CLEAR l_col.
         DO cnt_cols TIMES.
           l_col = l_col + 1.
    * Get the corresponding Cell Object.
           CALL METHOD OF h_excel 'Cells' = h_cell
             EXPORTING #1 = l_row
             #2 = l_col.
           CHECK sy-subrc EQ 0.
    * Get the value of the Cell.
           CLEAR l_value.
           GET PROPERTY OF h_cell 'Value' = l_value.
           CHECK sy-subrc EQ 0.
    * Value Assigned ? pass to internal table.
           CHECK NOT l_value IS INITIAL.
           ASSIGN COMPONENT l_col OF STRUCTURE l_dummy TO <fs_dummy>.
           <fs_dummy> = l_value.
         ENDDO.
    * Check if we have the Work Area populated.
         IF NOT l_dummy IS INITIAL.
           APPEND l_dummy TO c_data.
         ELSE.
           EXIT.
         ENDIF.
       ENDDO.
    * Now Free all handles.
       FREE OBJECT h_cell.
       FREE OBJECT h_wrkbk.
       FREE OBJECT h_excel.
    ENDFORM. " SUB_IMPORT_FROM_EXCEL
    Just copy paste the code and run the report select any local xls file with emails and pass the target group guid.
    snap shot of excel file:
    Let me know if it was useful.

  • How to enable the target Group option "Dispaly target Group"  in WebUI

    hello All,
    I am Working on Market Role in CRM 7.0 here when we search for the segment from the Marketing Work center and select any one segment from the search i.e profile set .After that when we click on the graphical Modeler button  on the top . That takes to a view where in we can see icons with target group on the right top in the view when we right click on the icon we get options eg: count,export to file etc here we dont have an option call "Display Target Group" but this option is avaiable in the GUI . How can we get this option on to the webUI can any one help me out in this regards.
    Thanks in advace.
    Regards,
    Kiran Posanapalli.

    I don't think you can get a button like this. You are not supposed to view the content of the target group from within the graphical modeler. You have to see this from the traditional CRM WebClient user interface. There you will see the members of the target group when clicking on the target group name.
    From the graphical modeler the only thing you can do is to right click the target group and export it to a file.

  • XSLT transformation error when importing target group in CRM Survey cockpit

    Hi,
    I created a target group using the segment builder and exported that to a local file. Then when creating a survey using CRM survey cockpit (tcode: SURVEY) and trying to import the same target group from the local file; I get an error :
    "Error when applying a XSLT transformation"
    System Response
    Data transformation cannot be executed. Application functions that depend on the transformation cannot be executed
    I tried various file formats : RTF, TXT, XLS, HTML but still I get the same error. Export to XML option is neither available while exporting from segment builder nor while importing into Survey cockpit. The target group is not empty.
    Are there any settings to be maintained to resolve the error ?????
    Dhaval.

    Hi Suhel,
    Thanks for the response... as far as my understanding goes, the crm survey suite can be used for maintaining questoinnaires that are transaction specific. also the functionality of question tables and rows is not available in the survey suite but is available in the survey cockpit (tcode: SURVEY).
    However the same does not allow me to refer to the target groups created using the segment builder.... Is there a way I can use the target group created through the segment builder in the survey cockpit ????
    Dhaval.

  • Error when exporting target groups with more than 10000 BPs using mail form

    Dear experts,
    we are working on 7.0.
    we customized the communcation medium file export for the usage in campaigns.
    Everything is working fine: the target group (<4000 BPs) is exported to a .csv-file and attached to the campaign.
    As soon as number of BPs in the target group exceeds app. 9.000-10.000 the background job is executed successfully without errors, but no .csv-file is attached to the campaign.
    Has anyone experienced the same? Soem hitns or solutions?
    Thanks a ton and kind regards
    Hannes

    I don't think the character set is the problem. I used a string of numbers 0123456789 and just copied and pasted it repeatedly to build up the text. The database character set is WE8MSWIN1252.
    Regarding the apache log. I have to admit that I don't even know if I'm running apache. I am using a newly installed Oracle XE on a laptop in order to get some experience with application express. This app is the first one I've done. If someone will direct me to the log then I'll be glad to check it and post the relevent contents.
    I signed up for an apex workspace and intend to see if I can recreate the error from there so I can see if the problem is just in the free version of apex that comes with the Oracle Express Edition for windows database.

  • Add business partner to target group - some data missing

    Hello,
    I created a target group. This target group includes data of person and the associated data of organization (for example: city, street, ...). Now I want add some other person. I have two opportunities when I have open the target group:
    1. In the table of the target group
    In the column "Business Partner ID" I can open the input help and search the person which I want add zu the target group
    2. In the view of the target group
    On the top there is a button "Import Business Parterns", there I can upload txt files with the bp-no. from the person.
    It works only the first possibility. There are all data of person and organization included.
    At the second possibility there are the data of person included, but it lacks the data of organization and I don't know why.
    Does anybody know, what's the problem? Is it standard or is it a bug?
    Thank you in advance.
    Best regards, Jasmin

    For information:
    When you want add business partner by file upload to the target group, in the SAP standard the target group can handle only one ID, either the account ID or th contact ID. So when I add some contact IDs by file upload to the target group then I miss the data of the account. So, I have to build up the same target group a second time.

  • Transport Layers and Target Groups

    Hello,
    Can one transport layer be assigned to two different target groups?  We have some number range changes that are automatically trying to go to our FIX_QAX target group since it is config, however, the transport cannot be generated because the config is part of package KEG0 which is set up currently as part of the SAP layer which only handles the FIX_IND target group.  I was thinking of making the SAP layer go to both target groups FIX_QAX & FIX_IND.  Is there any danger of this?
    Thank you for your time,
    Erin Byrne

    i think we can't assing a transport layer to 2 different target groups. and, even connection b/n 2 target groups is not possible. i am not sure, if we can use the same transport layer (SAP) twice.
    the alternative way is.. manually (copy the data file and cofile in the other tranport domain) import the request.
    hope this info helps.
    regards,
    Rajesh.
    <i>pls, award points</i>

  • 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

Maybe you are looking for

  • Mail Attachment from KM

    I have some trouble to send a File in a Mailattachment from KM. The Mail has a Attachment with the correct name of the file, but the File on the Mail is empty. Hier is the code: //Init Session session = Session.getInstance(props, new javax.mail.Authe

  • Ipad replacement - new or refurb ?

    My Ipad first gen is two months out of warranty and it not holding charge. Apple has offered a replacement for a small charge. My question is; are these 'new' or 'refurb' products. I cannot find the definitive answer to this question, even though it'

  • Mounting Windows Disk within Single User Mode

    A Windows machine I administer kacked and the users didn't back up all their data. Windows won't touch the drive, so I popped it in a 10.3.9 Mac... I can copy a handful of files and folders from the Finder, but some directories won't read -- there ma

  • Registering event as application event for local class inheriting grid clas

    hello all,      i have a scenario where i have to use many events as system events and one event as a application event for a local class defined which inherits cl_gui_alv_grid can any one tell me how exactly could  i do it. Thanks, raju N

  • N97 mini italian language package

    Hi there recently my gf bought a N97 mini. Since she is Italian, we would like to configure the phone in Italian but this isn't available on the phone, and I can't find it on the internet. Any one who can tell me where to get it?