Target groups - Authorization

Hi,
We have requirement (implemented for two companies ( A & B ) in same system)  , if user of company A creates target group, the target group shouldn't be displayed to user of company B and vice versa. Found the authorization object for tagert group (RSCRM_TG) , the permitted activities are create/generate, change. ' Display ' is not available.
Please suggest me to achieve the requirement.
Regards,
Brahmaji
Edited by: brahmaji24 on Feb 14, 2012 7:09 AM

Hi, brahmaji24.
You can use the BAdI BADI_CRM_MKTTG_TARGET_GROUP (enhancement spot is BADI_CRM_MKTTG_TARGET_GROUP) and method CHECK_AUTHORITY.
This method can achieve your issue. If the user don't have authorization on target group, raise the exception no_authorization.
Example:
  select single created_by from crmd_mkttg_tg_h into lv_user where guid = iv_tg_guid.u2028
  if lv_user <> sy-uname.u2028      
   raise no_authorization.u2028   
 endif.

Similar Messages

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

  • Attaching Target Groups in the Webshop admin in R3/CRM scenario

    Hi Gurus,
    I am trying to attach Target Group in the marketing tab in the webshop admin.
    We have R/3 and CRM in landscape. I have created a target group in CRM Backend.
    Now when i go to webshop admin and try to assign this target group in the Marketing tab, i get an error while doing a search for the traget groups. The error message says "No authorization for search help at CRM_MKTCA_UIU_SEG_TG". Now this CRM_MKTCA_UIU_SEG_TG is not a tcode in CRM nor ECC. I am not able to get any clue on this item CRM_MKTCA_UIU_SEG_TG.
    So i tried to bypass this error message at search help, by directly assigning the target group in the webshop admin.
    But by doing so we when we try to login to the Webhsop, we get an error "An error occured while webshop was loaded, The target group does not exist or is inactive "
    So then we remove the Target group from the webshop admin, and then we are able to login to the webshop. But in all this we are not able to use our target group inside our webshop.
    We are not getting any clue to this problem. Please advice how can we use target groups inside the webshop in the R3/CRM scenario. Thanks for your help in advance.
    rgrds,
    Randhir Soni

    Hi Easwar,
    thanks for your prompr response.
    We were able to get rid of the first error by getting the required authorizations to our role.
    But now when we have assigned the target group in the marketing tab of the catalog in the webshop admin.
    Then when we login to the webshop and when we select that catalog for opening, i throws two errors
    " An erro occured the while shop <catalog name> was loaded "  ,
    " The target group does not exist or is inactive "
    This target group is active in CRM backend. We cross checked this in the Segment Builder. There we selected the target group and when we did "Open Traget Group" , we are able to see the members within target group and we are able to do a "Count" on this target group. Also we are able to create product association rules using this target group. This shows that our target group is Active. So we are confused with the error message.
    When we remove this target group from webshop admin, then we are able to open the catalog in the webshop.
    Are we missing something regarding the activation of Target groups ? Are there any other settings which we are missing ?
    rgrds,
    Randhir
    Edited by: Randhir Soni on Apr 14, 2010 2:57 PM

  • Changing default Target Group when creating transports.

    Hi All,
    We have 4 different target groups for the transports created in development systems. I would like to make one transport group default which is mainly used by majority of consultants.
    How to make one transport group default during creation of transport.
    Regards,
    Krishna

    And to just make it more clear :
    and here is the SAP help on the subject:
    Transport Layer in ABAP Workbench
    The Change and Transport System supports the distribution of development work on large projects across multiple SAP Systems.
    The packages in each development system are grouped into one transport layer.
    The transport layer determines whether objects are assigned to a local or transportable change request.
    Use
    Each of your SAP development systems is assigned a transport layer as its standard transport layer. If you use Extended Transport Control, you can assign different standard transport layers to certain clients.
    You can define at the most one consolidation target for each SAP System and transport layer.
    When you create a package, it is assigned the standard transport layer of the SAP System.
    If you want to assign a different transport layer to a package, you require the administration authorization for the Change and Transport System.
    The objects in a package automatically have the transport attributes defined for the corresponding transport layer.
    If a consolidation route originating in their SAP System is defined, then the objects are assigned to a transportable request, and transported into the consolidation target when it is released.
    If a consolidation route is not defined, the objects are assigned to a local request, and are not transported.
    Customizing settings are not assigned to a package. They have the transport attributes of the standard transport layer of the system or client.
    It is best to assign a package a standard transport layer for which a consolidation route originating in the development system is defined.
    To display and maintain the transport layers and routes, use the Transport Management System (transaction STMS).
    Only the system adminstrator can make changes.
    Caution:
    The tables TSYST, DEVL, TWSYS, TASYS are no longer productive as of Release 4.0A and cannot be maintained.
    Best regards,
    Menelaos

  • Target group changing

    Hello All,
    I've created TG "My TG" and attached it to a campaign "My campaign". I released campaign and transffered a group to a channel(call list in my case)
    After that I want to add additional BP to "My TG" and attach this group to the same campaign.
    According to help.sap.com I should delete the target group from campaign , change it and attach it again.
    But when I tryed to delete TG from campaign I got error message "Segment already transfered to a channel".
    Some suggestion?
    Is there some another way to add additional BP's to existing  target group and attached it to the same campaign?
    Thank you very much

    And to just make it more clear :
    and here is the SAP help on the subject:
    Transport Layer in ABAP Workbench
    The Change and Transport System supports the distribution of development work on large projects across multiple SAP Systems.
    The packages in each development system are grouped into one transport layer.
    The transport layer determines whether objects are assigned to a local or transportable change request.
    Use
    Each of your SAP development systems is assigned a transport layer as its standard transport layer. If you use Extended Transport Control, you can assign different standard transport layers to certain clients.
    You can define at the most one consolidation target for each SAP System and transport layer.
    When you create a package, it is assigned the standard transport layer of the SAP System.
    If you want to assign a different transport layer to a package, you require the administration authorization for the Change and Transport System.
    The objects in a package automatically have the transport attributes defined for the corresponding transport layer.
    If a consolidation route originating in their SAP System is defined, then the objects are assigned to a transportable request, and transported into the consolidation target when it is released.
    If a consolidation route is not defined, the objects are assigned to a local request, and are not transported.
    Customizing settings are not assigned to a package. They have the transport attributes of the standard transport layer of the system or client.
    It is best to assign a package a standard transport layer for which a consolidation route originating in the development system is defined.
    To display and maintain the transport layers and routes, use the Transport Management System (transaction STMS).
    Only the system adminstrator can make changes.
    Caution:
    The tables TSYST, DEVL, TWSYS, TASYS are no longer productive as of Release 4.0A and cannot be maintained.
    Best regards,
    Menelaos

  • Creation target group in CRM from SAP BW by Bex.

    Hi,
    I  am using RSCRMBW_TG_GENERATE_BUPA ABAP report to generate target group in CRM from Bex Query . On exection target group is created  in CRM but no record (business partner ) is transferred across .  I have assigned role "SAP_BW_CAMPAIGN_MANAGEMENT" to my user ID  and i have SAP_ALL authorization in user ID.
    Thanks
    Romita

    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.

  • Campaigns and Target Groups

    I'm trying to extract information about target groups and related campaigns to BW from CRM. I was initally looking at 0CRM_TGBPCT but this was extracting only one record and I found an associated OSS note (No 717539) to it recommending the use of another datasource called 0CRM_CONTACT_OUT. I tried using this datasource but when I test it even in CRM (RSA3) it says 0 records. I know data is in there though.
    Would someone be able to shed some light on this and be able to give me any tips on the same.
    Thanks !!!!

    Hi to all,
    I've the same problem when load data with datasource 0CRM_TGBPCT.
    If I extract from RSA3 retrive the correct data but if I extract directly from BW the system load only 1 record!!!
    please anyone help me?
    P.S.: The remote user for the connection have already SAPALL authorization!

  • Creation of Target group.

    Hi All,
    I having one urgent requirement, we have maintained the Ztable for maintaning the information of Vehicles against Business partners.
    The Fields in the said Ztables are Vehicle type, vehicle Reg Number and BP number.
    I want to send the mails using target group to customer who is having Perticular vehicle type for that i have created Infoset using the Ztable, then i have created the data source for target group still i m not getting the desired result !!!!!!
    please anybody tell me that i  missing any of step for above requirement ???
    how to link up the BP to Ztables fields ???
    How to create the said Target group ???   
    Regards,
    Dipesh

    Hi,
    You can try this alternative solution:-
    Instead of maintaining vehicle type etc in Z table, please crate it as "attribute", and assign it to Business Partners.
    You can use CRMD_PROF_BP transaction to assign Attributes to Business partners.
    Based on the attributes , you can subsequently create the "target group".
    Regards,
    PD
    Pl. Reward points if it helps !!

  • How to retrieve Business Partners Per Target group

    Hi experts!!!
    I am new to CRM development and i need to find the tables related to the target group.
    So far i have only found some tables that hold the T.G. GUID, but i cannot understand how these are connected among them.
    The requirement i have is to retrieve all the bussiness partners related to a specific target group.
    So in the selection screen i should use the target group. (Which field is that??)
    Please help!!!
    Thank u in advance!!!

    HI Grigoria,
    The tables that hold the information that you have requested for is as follows:
    Assuming you found the TG GUID for which you are trying to find the BP's inside it
    Go to Table CRMD_IM_ML_HEAD
    Paste the TG Guid value in the TARGETGRP_GUID field.This would return you "ML_GUID_H" value.
    Take this Guid value and go to table "CRMD_IM_ML_ITEM"
    Paste the ML_GUID_H value from the previous table in the field "ML_GUID_H" of the above table.
    This will return all the BP Guids associated in that TG , which you can convert into the BP # using an FM or from the table BUT000
    Hope this Help's
    Regards,
    Naveen

  • Custom Attributes in Target Group Email Campaign Not Refreshed

    We have a campaign sending emails to a target group of BPs.  To fill our custom attributes with values  we have implemented our code in badi CRM_IM_ADD_DATA_BADI method CRM_IM_BPSELE.  We tested our code using the Test Send feature from the email form and all worked fine.
    But when we ran the campaign in the background for a Target Group with multiple BPs it would not work correctly, our attribute values were incorrect. 
    We discovered while debugging the job, that the badi gets run once for each BP, but the attribute values from the previous BP do NOT get refreshed.  In fact there are 2 entire sets of attribute records in the CT_ATT_VALUES table parameter.  Each time through it multiplies by another set of our attributes.
    I have put code in the badi as a workaround that deletes the previously filled attributes for the previous BP, but I'd like to figure out what is causing this problem.
    Any help would be appreciated.
    thanks,
    Lee

    Hi Lee,
    Is this issue resolved for you now??
    I am facing the similar problem.
    Though the BADi is not used for these two mails (it is used in some other mail forms), it is actually called in 'CRM_ERMS_MAIL_COMPOSE' Function Module and the process is same as u said. There are 2 sets of values.
    I am using a Mail Alert functionality where in a 'Mail Alert ON' is sent to field engineers (FE) and then upon FE accepting the work we will send a 'Mail Alert OFF' to FEs.
    Problem is, we get one or two fields data incorrectly sometimes. I am not able to find out the root cause yet.
    Please let me know if you have had any resolution to this!
    Thanks in advance.
    Chaitanya

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

  • Need to change the targeting group of a Rule or monitor after a alert is created.

    Hi All,
    I have created many alerts and they are working fine. Currently due to business requirement we have installed Windows server 2012 operating systems in our production environment. But we have targeted the
    "Windows server 2008 r2 full operation system" group as per the below screen shot. As we now have to import the management pack for Windows server 2012 as well.
    What we have planned is to change the targeting group from "Windows server 2008 r2 full operation system"
    to "Windows server operating system group" so the alert / monitor or rule will target all windows server which has been discovered in SCOM rather that only the servers running Windows server 2008 r2.
    I was also not able to set overrides for this as that server was not coming under Windows server 2008 r2 full operation system as it was a Windows server 2012 agent.
    I can also go ahead and create new alerts but i have created custom of 1000 alerts and i cannot go ahead and re create them.
    Is there any way to change them. If yes Can i do a bulk change via powershell ?
    Below is the screenshot of what i really want. Can any on e please help.
    Gautam.75801

    You can't really change the target class of a monitor in a sealed vendor pack. If this is your own custom pack, then you can change the target class no problem, but this would need to be done on the unsealed XML (using VSAE or some other authoring tool).
    Then you can seal the pack and re-import (should be upgrade compatible, since you are just changing the target).
    I'm not familiar with this particular monitor in your screenshot, but it looks like this should probably target Exchange? If this is the case, then I would recommend targeting the closest typed class that the monitor should run against. In this case, some
    type of Exchange class that is already in the Exchange management pack.
    Otherwise, you can also create your own custom class for targeting, which I describe in detail on my blog.
    Here are all my sample VSAE fragments.
    Here is an example of
    using the Application Component base for your new class.
    Here is an example of
    using Local Application base for your new class.
    Jonathan Almquist | SCOMskills, LLC (http://scomskills.com)

  • How to create/assigh Target Group while creating Marketing Plan in CRM 6.0

    Hi all,
    I am new to this field  and would like to know that how can we assign the Target Group ( business Partners ) in the Campaign while creating a Marketing plan.
    It will be really handy for me if I get the detail steps to execute.
    Regards,
    Zen

    Hi,
    perhaps this can help you:
    http://help.sap.com/saphelp_crm60/helpdata/en/32/ad6f422f91c153e10000000a1550b0/frameset.htm
    http://help.sap.com/saphelp_crm60/helpdata/en/46/0abec5abb314dce10000000a155369/frameset.htm
    This describes step by step what you have to do to create a marketing plan / campaign.
    Regards,
    Claudia

  • Change Management and Target Group in STMS

    Hello, We use the Change Management (SolMan 4.0). Up to now it works fine. We deliver always one client in the System (E33.002; T33.002 and P33.002). Now we try to change this. We will deliver more than one client in every system at the same time (to have always the same status in every client). So we use Target groups in STMS. This works fine if I do the transports manualy. But if I try to do it with the change management it doesn't work. The change management still deliver one client (002).
    Can someone give me a hint?
    Best regards

    Hi Jose,
    check below link.
    Leads not getting created via ELM
    Rgds
    Hari

  • Automatic Profile Set / Target Group Creation in SAP CRM

    Hi,
    Need some help on the listed process.
    Is there any procedure to create Profile Ser/Target group automatically based on certain criteria? We want to reduce the manual work of Profile/Target group creation for the users.
    We are currently using SAP CRM 5.0 and looking at options of creating Target Groups automatically based on infoset. The criteria used to model is below mentioned.
    - New Customers  & Head Office (They are the customer specific Z-fields in BP Master Data)
    - Relationship Data: Has contact person Relationship. This is based on the assignment of Contact person to the BP (i.e. Day when the Relationship assignment done to the respective BP Master Data --> under Relationship tab page.
    We are not using Attribute Set (that we assign to Marketing Attribute tab page of BP Master), for your information.
    Appreciate, if you could let us know whethe this is possible by Standard feature/ any work around on this.
    Kindly do the needful.
    Thanks,
    Rahul

    Hello Rahul,
    it is possible to create a target group from an external list as far as i am aware. Maybe have a look at
    http://help.sap.com/saphelp_crm50/helpdata/en/57/d7de42777c2978e10000000a155106/frameset.htm
    Regards
    Mark

Maybe you are looking for