Restricting Enhancement Set

Hi Experts,
I have created custom enhancement set in component workbench and assigned to client in view BSPWDV_EHSET_ASG. Also done enhancements for particular role config key. Now when i check in web UI the enhancements are applicable to all business roles irrespective of role config key. Can anyone suggest how do I control the changes done in Enhancment set should be applicable for particular role config key?
Thnx in advance,
Regards,
RR

Hi ,
Alternativey we can use the following to get the user role .
  DATA :  ls_user_role     TYPE string,
          lr_profile_instance TYPE REF TO if_crm_ui_profile.
  lr_profile_instance = cl_crm_ui_profile=>get_instance( ).
  lr_profile_instance->get_profile( RECEIVING rv_result = ls_user_role ).
Thanks,
RR

Similar Messages

  • Error while transporting Enhancement set to QA

    Hello All,
    We are implementing AAK for a product. We have imported all the Transport Requests from DEV to QA. We have created a Change Piece List Package and did object check list. We got errors regarding table contents of Enhancment set like 'Table Contents(Cross-client, delivery class C) : No import'. Contents in the table are BSPWD_EHSET_DEF, BSPWD_CMP_C_REPL, BSPWD_COMP_EXT, BSPWD_EHSET_ASGN.
    Please suggest me a solution.

    YOu can try transporting the entries using generic keys.

  • How to restrict manual setting of User Status?

    Hi,
    I have created an User Profile where a particular User Status is "set" based on the Business Transaction "Release".
    However, we are also allowed to set this User Status manually without carrying out the Business Transaction "Release".
    How do I restrict manual setting of those User Statuses that are "set" based on a Business Transaction?
    Raj

    Pete,
    I did read that post. But it is about providing authorisation to set a Status for an User.
    The case I am referring is, an User Status is auto set by a Bus. Trans Release. But I am also permitted to set the status transition manually. This way, Users tend to skip Releasing the Service Order. This is affecting upstream processes.
    Is there a way where we can restrict manual setting of User Statuses that have to be normally auto set by Bus. Transactions?
    Raj

  • Restricting a set of person on change first approver

    Hi,
    I have recently intergated AME for Purchase Requisitions on 11.5.10.2 - 11i.AME.B
    I am now trying to restrict a set of HR people that can selected when a requisitoner tries to change first approver while raising a requisition in iProcurement. At the moment, the system is allowing any valid person from HR who has a valid entry in WF role.
    Is there any way we can achive this?
    Thanks in Advance.
    Chetan

    Same problem here. Batteries last about 10 days. Checked each with a digital multimeter. One battery was drained, the other was perfect.
    I replaced the dead battery and marked the other one I left in. One week later, the new battery was dead. The marked battery was fine. The mouse is defective, it is only using the power on one side. Time for a return to the Apple Store. I hope it will be a quick swap.

  • Issues of using same enhancement set for different components

    Hi experts,
    I have an issue when using the same enhancement set(ZCRM_EHSET) for two different components IUICMD & IUICMRD. Component IUICMRD has two views IUICMRD/MainVS & IUICMRD/MeterReading and these views have been copied to Component IUICMD.
    Now, i am getting the following error, when i try to access AccountSearch view of component IUICMD
    Context initialization failed in view IUICMRD/MeterReading of UI Component IUICMD
    An exception has occurredException Class CX_SY_MOVE_CAST_ERROR - Source type \CLASS=CL_IUICMD_BSPWDCOMPONENT_IMPL is not compatible, for the purposes of assignment, with target type \CLASS=CL_IUICMRD_BSPWDCOMPONENT_IMPL
    Method: CL_IUICMRD_METERREADING_IMPL=>DO_INIT_CONTEXT
    Source Text Row: 10
    Let me know how i can solve this. Is there any precautions that i should have taken before using the same enhancement view for two different components.
    Thanks in advance.......................
    Regards,
    Prabahar

    Hi Bharathy,
    Thank you for the reply which helped me to come close to the solution.
    I hope you reply will solve the second part of my question where i get MOVE_CAST_ERROR.
    My first Question is still unanswered and i request you to provide solution if you have any. I worked on CRM 4.0 and CRM 2007 is new to me.
    My first question is below.
    I have two components IUICMD & IUICMRD. I have enhanced 4 views in the first component IUICMD using enhancement set ZCRM_ENHSET. There is no problem with that. But when i try to use the same enhancement set ZCRM_ENHSET for enhancing the second component IUICMRD, it's enhanceable in enhancement set.  But 2 views IUICRMD/Meterreading & IUICMRD/MainVS is also copied to first component and available as enhanceable views in First component.
    Is it the std behaviour that views from one component is copied to other when you try to use the same enhancement set? Kindly let me know if you faced similar situation.
    Best regards,
    Prabahar

  • Can we change the enhancement set for a component

    Dear All
    I have a situation where in we need to change assign a different enhancement set to all our components which got enhanced.
    We can only have 1 enhancement set active for a client.
    Now in our case
    Say for client 300 we were using Enhancement Set E1.
    Our requirement is to create one more enhancment set E2 and assign it to client C1. We can do that.
    Do we we have a mechanism to move all development already done using E1 to E2?
    Please Help.
    Thanks
    Gaurav Sahai

    Hi Gaurav,
                   We create enhancement set in SM30, then assign it to client also there.
    After that, when we go to BSP_WD_CMPWB - by default we see the enhancement set assigned to the client. Now there are 2 things:
    1. to use different enhancement set for different users - you can implement badi component_loading to load different enhancement set depending on business requirement by writing code:
    RV_RESULT = <name of ENHANCEMENT_SET. >
      there is a default implementation in the system for reference.
    2. all enhanced views can be seen in transaction SM34, give name of view cluster as  BSPWDVC_CMP_EXT
       Select your enhancement set -> go to Enhancement Definitions (here you see components enhanced) -> select any -> go to Controller Subsitutes (here you see all view enhanced).
      You can try copying all these entries into another enhancement set. I am not sure if it will allow same entries in two different sets (if it doesn't you will have to delete from the other).
    I hope that resolves your query.
    Thanks,
    Rohit

  • Is it possible to change Enhancement Set at  runtime ?

    If yes plz give an example

    Hi Anjeyulu,
    You can set the Enhancement Set in the Implementation for the Badi - Component_Loading, Method - Get Active Enhancement Set, as already mentioned by Bhushan. Here you need to assign the required Enhancement Set name to the Returning Parameter of the method - RV_RESULT. For  e.g., if you want to load a particular enhancement set for a business role, you can code as follows -
    DATA: lr_profile TYPE REF TO if_crm_ui_profile,
              lv_profile TYPE string.
    lr_profile = cl_crm_ui_profile=>get_instance( ).
    lv_profile = lr_profile->get_profile( ).
    IF lv_profile = 'SALESPRO'.
             rv_result = 'ZENH_SET'.  "your enhancement set name
    ENDIF.
    Regards,
    Rachna

  • How to determine active enhancement set

    Hi there,
    I have enhanced a SAP component and I have added a customer specific button. In the event handler of this button I would like to know which enhancement set is currently active.
    Is it possible to determine this information somehow?
    Thanks,
    Karsten

    Hello Karsten
    If there are no custom implementations of BADI COMPONENT_LOADING, then it will be as indicated by Naresh in the previous reply, a query to table BSPWD_EHSET_ASGN with the client in the where clause should do. This is precisely what is done in the default implementation of BADI COMPONENT_LOADING, in method GET_ACTIVE_ENHANCEMENT_SET.
    If there is a custom implementation of BADI COMPONENT_LOADING then each user can have his own enhancement set assigned. Method GET_ACTIVE_ENHANCEMENT_SET of the custom implementation of the BADI would return the active enhancement set.
    Best Regards
    Luis Rivera

  • Enhancement Set error in AAK

    Hello Experts,,
    We are trying to follw the steps given in the AAK Standard Documentation. We have created the Change Piece List Delivery Package and When we are doing the Object List check - We are getting the following error for enhancement set table Contents.
    - Table contents (cross-client, delivery class C) : No Import
    - R3TR TABU BSPWDVC_CMP_EXT
    - R3TR TABU BSPWD_CMP_C_REPL
    - R3TR TABU BSPWD_COMP_EXT
    - R3TR VDAT BSPWDV_EHSET_ASGN
    Please suggest solution to resolve this. Thanks in Advance.
    Regards,
    Vinay

    Dear Balaji,
    For the above type problem, iam sure it wont hits as error, it will throughs warning only. If you want to rectify that warning you should get accesskey.
    Regards
    Arani Bhaskar

  • Creating an Enhancement Set

    Does anyone know how to create an enhancement set. Ive tried checking the menu's but i cannot find how to do this anywhere.

    Hi,
    1)Go to transaction sm30->view BSPWDV_EHSET_ASG to create a new enhancement set for your client.Only one enhancement set allowed per client.
    2)Open the component you want to enhance with this enhancement set in bsp_wd_cmpwb transaction.
    3)Click on enhance component button to enhance it within the enhancement set.
    4)Now this is your component. Do whatever you want to do in this. To modify an existing view, just right click and enhance.
    Hope this helps!
    Thanks and Regards,
    Rohit

  • How can we copy an enhancement set to a different Business Role?

    Experts,
    How can we copy an enhancement set to a different Business Role?
    Currently we have an enhancement to a Business Role "SALES PRO."  How can i make the same enhancement set active for a different Business Role? ie. MARKETINGPRO.
    Thanks,

    Hi,
    it is recommended to have only one active enhancement set per client.
    For your businessrole you could use the role configuration key.
    In our system each businessrole has it´s own role configuration key. But we implemented also a BADI if no configuration is found use our company default role configuration key and only if there is also no configuration use SAP .
    Kind regards
    Manfred

  • Enhancement Set

    Hi,
    Knowingly or unknowingly we have created two enhancement sets for enhancing different components.
    Enhacement Sets            Components                       Client Assigned To (SM30)
             z1                         BP components                           200    
             z2                         Object components                      100
    We are able to display custom fields (of Object components & z2) in 100, but not in 200. I assume only z1 is getting activated.
    How do we make sure that the enhacement set z2 is also active for 200. Using BAdi COMPONENT_LOADING is an option or there are any ways to proceed without deleting the enhancement sets.
    I am not sure if I can trasport them to other systems.
    Please suggest the best possible approach to this issue.
    Thanks,
    Aditya.

    Hi Aditya,
    For one client, you can only activate one set of Enhancement Set.
    You can delete the record for  z1 BP components 200  in tcode SM30 (table BSPWDV_EHSET_ASG)
    Then add new for client 200 with Enhancement set z2 BP Components.
    Yes! you need to delete the old record setting in table BSPWDV_EHSET_ASG before adding new one.
    Don't worry, your current enhancement under that Enhancement Set will not be deleted. Setting on table
    BSPWDV_EHSET_ASG only define which Enhancement Set is activer per client.
    Beside why do you need to activate 2 Enhancement Set (by not deleting the old assignment)?
    I don't see any reason to do this.
    Cheers,
    Gun.

  • Abap query about enhancement set

    How do we use an enhancement set?Where we can maintain a particular enhancement set to a client?
    *How do we know about an activated enhancement set?
    Moderator message: please search for available information/documentation before asking, this is not a training forum.
    locked by: Thomas Zloch on Oct 5, 2010 5:32 PM

    Hi,
    In PBO code this way :
    MODULE f4_scr OUTPUT.
      REFRESH g_list1.
      g_name1 = c_status.
      g_value_1-key = c_to_be_sub.
      g_value_1-text = c_to_be_sub.
      APPEND g_value_1 TO g_list1.
      g_value_1-key = c_sub.
      g_value_1-text = c_sub.
      APPEND g_value_1 TO g_list1.
      g_value_1-key = c_chg_needed.
      g_value_1-text = c_chg_needed.
      APPEND g_value_1 TO g_list1.
      g_value_1-key = c_app.
      g_value_1-text = c_app.
      APPEND g_value_1 TO g_list1.
      IF NOT g_list1 IS INITIAL.
        CALL FUNCTION 'VRM_SET_VALUES'
          EXPORTING
            id     = g_name1
            values = g_list1.
      ENDIF.
    ENDMODULE.                 " F4_SCR  OUTPUT
    And in PAI :
    MODULE user_command_9000 INPUT.
    * function module to get the list box values.
      g_name1 = c_status.
      CALL FUNCTION 'VRM_GET_VALUES'
        EXPORTING
          id           = g_name1
        IMPORTING
          values       = g_list1
        EXCEPTIONS
          id_not_found = 1
          OTHERS       = 2.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
      READ TABLE g_list1 INTO g_wa_list WITH KEY key = g_status.
      IF sy-subrc EQ 0.
        g_status = g_wa_list-text.
      ENDIF.
    ENDMODULE.                 " USER_COMMAND_9000  INPUT
    Hope this helps.
    thanx,
    dhanashri.
    Edited by: Dhanashri Pawar on Aug 21, 2008 11:36 AM

  • Need to change field details of view but no enhancement sets exist.

    I am attempting to change one of the fields in the Accounts screen, changing it from a help value field to a field that will be populated with data from ERP. I'm okay with the appropriate code to populate the field but what I don't know is how I can initially create an enhancement set. When I look at the component and view the [Enhance Component] button reveals no enhancement sets.
    My understanding is that I will need an enhancement set in order to change the code/method related to the field. But how do I create one?.
    Where I believe the problem may be is that when I execute the transaction BSP_WD_CMPWB all I get is a Component and Test Application entry field and three buttons underneath with Display, Create and Test. There is NO Enhancement Set option or  icons in the far right corner to Create or Delete.
    What can be wrong here?.
    I should point out that this is abrand new CRM 7 implementation and there are NO enhancements sets in existance at the moment, which might be why this screen looks like it does, but this is surely a bug as I don't (using this transaction) have the option to even create an Enhancement Set.
    If this is the reason then maybe I need to create some kind of dummy enhancement set that more or less does nothing, and therefore no harm, and which may trigger the Enhancement Set field to be displayed when I enter the BSP_WD_CMPWB transaction.
    Anyone...
    Jason

    Micha, that little icon to the left of the component field was not there, but there was a different one saying 'SAP standard'. Anyway, I clicked on this icon and changed to the little man with paper behind him, and, the Enhancement Set field was also displayed, along with the create/delete icons as well.
    I've never paid much attention to that Icon before and had not realised it was switchable.
    You live and learn.
    Now that I can create an Enhancement set I can finally get on and make the changes required.
    With regards
    Jason

  • Multiple Enhancement sets

    Hi Experts,
    What are the advantages/disadvanyages of multiple enhancements sets:
    For example :
    I am having two components 1. Component of lead 2. Component of opportunity.
    I want to have2 different enhancement set for different component i.e ZLEAD for lead and ZOPPT for opportunity. So , my query is , Is it possible to have multiple enhancement sets in a client and what could be the advantage/disadvantage of doing this?
    How I have to make entries in customizing table  BSPWDV_EHSET_ASG , because I assume that we have to maintin only one enhancement set with respect to a client.
    Please clear my doubts.
    Help will be appreciated.
    Best regards
    Sourabh

    Hi,
          The same client can support different enhancement sets. This is likely done if you have some requirement that demands different enhancements based on user role/profile. To determine which enhancement to load when a user logs in, you can use the COMPONENT_LOADING BADI/Enhancement spot(New BADI).
    Regards,
    Arun Prakash

Maybe you are looking for

  • Logical Formula at query level?

    I have requirment like if D =  0 then ' ' (SAPCE) else E / F. I dont know how to get space ? please help me to create this formula at query level?

  • Problem with 'RP-PROVIDE-FROM-LAST' and IT0377(GB)

    Greetings, I have encountered a problem in that we have an interface from SAP to UNIPAY and this interface selects all the paydata from employees and then converts it so that it can be payed via UNIPAY. Now this in itself may sound fairly simple but

  • Xp box can only see 1 mac on wireless...

    I hope im in the right section....? My set up: 1 MacBook Pro (my work laptop) 1 iMac 24 (shared printer, iTunes lib) 1 PC with XP (partners work laptop) All connected via wireless My iMac has a printer connected and contains the shared iTunes library

  • Airport Extreme Dual-Band Base Station Is excessively slow

    Let me start off by stating this is my first apple support discussion and I have no experience in these forums but rather forums elsewhere. My Airport Extreme Dual-Band Base Station is completely updated as of DEC. 30, 2012 running version 7.6.1 and

  • WHY WON'T MY 3GS CAMERA ROLL OPEN?

    Why won't my 3gs camera roll open. i select it and the it goes back to the main screen. I've tried the hard reset but still not working:((((