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

Similar Messages

  • How to determine the timeout setting?

    I read all the items about the time out. I created a javascript function which informs you that you only have 5 (after that 1) minutes before logout. But in the profile file the setting for http timeout 180 and the rz11 setting icm/keep_alive_timeout is set to 60. But when waitng for 180 seconds I can still go on with the application. No timeout occur.
    How can I determine the real timeout so I can use this in the setting for the Javascript (reading it for the system and concatenate into the javascript statement)!
    With regards,
    Frank Roels

    Hai Frank,
    You can follow the methodology described by thomas in this blog.
    https://www.sdn.sap.com/sdn/weblogs.sdn?blog=/pub/wlg/1063. [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken]
    When I have opened this blog now it was not opened properly(Formating lost),Make sure that u read it properly.
    Regard,
    venkatesh.

  • How to determine active ribbon tab?

    My addin ribbon has a few controls which show live database values. To avoid frequent updates I need to determine if my addin ribbon tab (created via Ribbon XML) is active or not. Example: I subscribe to the SelectionChange event in Outlook Explorer and
    if my tab is active, actual data will be inquired from the DB. If my tab is not active, no DB inquiry should be performed.
    How can I do this? I did not find any event I could subscribe to.
    Any help is very much appreciated.
    Thanks,
    Markus

    Hello Markus,
    The Fluent UI (aka Ribbon UI) doesn't provide anything for that. But you can use the
    GetVisibleMso method of the CommandBars class for checking whether a built-in controls is visible or not. You just need to pass the idMso value of the control to the method, see
    Office 2013 Help Files: Office Fluent User Interface Control Identifiers  . But the best way to get the job done is to use callbacks in your custom UI markup. For example, the getVisible callback is invoked when controls are going to be shown on the
    ribbon (your tab is active). Thus, you will always know your tab is visible.
    C#: bool GetVisible(IRibbonControl control)
    VBA: Sub GetVisible(control As IRibbonControl, ByRef visible)
    C++: HRESULT GetVisible([in] IRibbonControl *pControl, [out, retval] VARIANT_BOOL *pvarfVisible)
    Visual Basic: Function GetVisible(control As IRibbonControl) As Boolean
    Read more about the Fluent UI in the following series of articles in MSDN:
    Customizing the 2007 Office Fluent Ribbon for Developers (Part 1 of 3)
    Customizing the 2007 Office Fluent Ribbon for Developers (Part 2 of 3)
    Customizing the 2007 Office Fluent Ribbon for Developers (Part 3 of 3)

  • Cash discount - F-28 - how to control Active / Inactive setting

    Hi All,
    When I try to post incoming posting through F-28 for a customer and choose the open items, the cash discount value is INACTIVE.
    But when another user tries to post incoming payment for the same customer, Cash discount value is ACTIVE.
    We are building a custom program for clearing the open items, so this is causing some discrepancies in the amount to be posted.
    We checked the editing options(OPEN ITEMS tab) and it looks same for both of us.
    Can anyone please let me know if there is any setting through which we can control the cash discount (ACTIVE / INACTIVE)
    Thanks in advance.
    Krishna

    Please try executing f-28 once again and check case discount column, if it is not there, execute transaction /nSU53 and check the authorization which is missing in your case.
    Hope this helps!!!
    Regards,
    Murlidhar Khatri

  • How to determin who/what set application status "UNAVAILABLE"?

    Hello Experts,
    I've had users reporting that Application is unavailable during normal business hours... Surely, when I've received those reports it was back to normal. Is it being logged anywhere who (user) or what (process) set an application status "UNAVALIABLE"?
    From what I can tell, the only job was running during that time was a Data Auditing job (created by Manage Data Audit option).
    I have also noticed that from time to time (when Auditing job is running) I receive the following error message trying to access Manage Data Audit:
    "Job name :  http://outlooksoft.kaplaninc.com/osoft/Admin/AuditAdmin.aspx
    Detail       :  No accessible overloaded LogHandler.WriteLog can be called without a narrowing conversion. "
    Eventually, the error goes away and I can access Data Audit page.
    Thanks in advance for any info.
    Akim

    Audit is the one which can provide you the information what process was putting the appset offline.
    You have to be aware that only the Admin processes are able to put the appset offline. And the admin processes are refering to entire appset not only for one application.
    So usually this happen when an administrator was creating a copy of application or it is playing into another application just for test.
    The bad thing it is that admin actions into that application is disturbing also the users using the applications from the same appset.
    That's the reason because this should not happen into production environment.
    Any Admin process for any application from an appset :
    Process dimension,
    Modify Application.
    Full Optimize,
    can make the appset to be offline.
    So my expectation is that actually nobody is doing something wrong into your current application but you have an admin users doing tests into an application from the same appset and this is creating the application to be sometimes offline.
    I hope this will help you.
    Regards
    Sorin Radulescu

  • How to determine the get/set methods of an element from the schema

    Is there a way that I can obtain the java method call to an element using only the schema (maybe using SchemaTypeSystem, SchemaType, SchemaComponent)? For instance, as I traverse the schema is there a method that I can call that will return:
    "getPurchaseOrder().getCustomer().getName()"
    for the name element in the form of a string or some other representation?
    Thanks in advance.
    Joey

    Sorry Manoj,
    but i didn´t find out, why these programs should be able to solve my issue. They just display a picture using the CL_GUI_PICTURE control.
    I am looking fo a way to resize a given control to the very maximum, so that it fills the whole SAPGUI window!
    Thanks anyway...
    MIKE

  • 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

  • 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

  • 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

  • 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 to send active links in email from firefox. Works in IE but not Firefox... Is there a setting to change?

    how to send active links in email from firefox. Works in IE but not Firefox... Is there a setting to change?
    == This happened ==
    Every time Firefox opened
    == Always

    Check with your web mail service provider for help with that issue.

  • BADI COMPONENT_HANDLING   -  Determining Enhancement Set

    Hi Experts,
    we've implemented the BADI COMPONENT_HANDLING.
    My Intention is to set the enhancement set in dependancy of the selected business role and my problem is that I couldn't find the correct class which could deliver the selected business role in the badi......
    It would be great if you could give me a hint how I can call the correct class in BADI COMPONENT_HANDLING...
    regards
    marc

    Hi Marc,
       Implement the BADI - COMPONENT_LOADING instead.
       In the method write the logic as follows:
      data: LS_USER_ROLE type STRING.
      data: LR_PROFILE_INSTANCE type ref to IF_CRM_UI_PROFILE.
      data: LS_ASSIGMENT type BSPWD_EHSET_ASGN.
      lr_profile_instance = CL_CRM_UI_PROFILE=>GET_INSTANCE( ).
      lr_profile_instance->get_profile( RECEIVING rv_result = ls_user_role ).
      CASE ls_user_role.
         WHEN 'your user role'.
          RV_RESULT = 'your enhancement set'.
      ENDCASE.
      RV_RESULT - is the returning parameter of this method.
      And the framework will take care of all other things.
      I hope this will solve your issue.
    Regards,
    Raghu

  • How to determine whether process Chain is active or Not

    Hello Experts,
    How to determine whether process Chain is active or Not, because i have large number of PC to activate.

    Hi,
    Please check this program in SE38---- /SSA/BWT
    This program will give you information regarding all your process chains which are active and running based on there timings.
    Hope it helps.
    Regards,
    AL

  • How to determine Default Table Logging (log data changes )

    Does anyone know how to view exactly what tables and related data fields have change logging enabled by default? I know that some of the standard reports will produce "edit reports" show who changed what field, when ,old and new values, etc, but I don't know how to determine where the data is retrieved from.
    For example: If I look in the ABAP Dictionary at table LFA1, technical settings, it shows that log data changes is not "checked" or enabled. But if I run the standard AR Master Data Change Report, I get output showing valid field changes.
    I have seen other threads that refer to SCU3 but I can't determine the above this from report.
    Any assistance would be greatly appreciated.

    Hi Arthur,
    As far as I am aware, these are 2 different things. 
    There is table logging which is at the table level & if activated (i.e. it's listed in table DD0LV, PROTOKOLL=X and the table logging parameter is set in the system profile/s).
    The second one is programatical logging for change documents when data is maintained though a program that has been written to include a log.  I'm not sure how to identify a complete lit of these though unfortunately.
    Hope that is of some assistance.

  • Insufficient rights - How to determine the correct rights?

    All,
    Does anyone know how to determine the correct rights if you get the error message "Insufficient rights for operation"?
    In SAP backend systems you can start transaction SU53 to check your "missing" authorizations, but is something like that also possible in MDM?
    I also don't see any detailed information in the logs or reports.
    If anyone has an good suggestion, please let me know, since I don't want to do "trail and error" to know what Functions to set to Execute and what Tables/Fields to set to Read/Write (because there are quite some combinations to check).
    p.s. I've read the complete reference guide of the MDM console and sometimes it's really obvious what Functions and Tables/Fields you have to set, but for instance when I want to give authorization to maintain Relationships in the DataManager and have set the Main table and all Relationships to Read/Write and have set all Records and DataManager functions to Execute it still doesn't allow me to maintain the relationships on the records! I only get the message "insufficient rights" and it's unclear what rights are missing!
    Regards,
    Marcel

    hi Marcel,
    I doubt if we have anything in MDM to show you what authorizations are missing.However,you can check the following :
    1. What activity are you trying to perform when you get this error.
    2. Check if authorization are given in the role for that actitvity.
    3. Check how many roles are allocated to user and  Is authorization given in all roles if more than 1 role is assigned to that user?
    Please let us know answer of the queries...
    Regards,
    Vineet

Maybe you are looking for

  • EP starting failed after switching UM datasource to LDAP

    I would like to use Windows 2003 AD as user storage of EP. For this purpose, I completed the necessary configuration steps according to online help but still not able to connect EP to LDAP. Test button show me that parameters entered in the LDAP conf

  • Share Printer with WiFi XP Laptop

    I have a Mac-Mini w/AirPort Extreme built in, and I have my Lexmark X5150 connected to the USB Port on my AirPort Express, and I want to setup my wifes Dell Laptop running XP to connect and print wirelessly using her built in wireless addapter so we

  • IPhoto incorrectly syncs from iTunes

    I just downloaded 6.0 on my iPad2, and now my iPhoto is all screwed up (again). I had a tough time getting images I didn't want off the iPad, then setting up the iTunes sync from the desktop iPhoto  (OSX 10.6.8) so it only sees/syncs one iPhoto folde

  • Photoshop CS6 screen problem in PC with photo

    hi guys, there is a black spot screen problem with my photoshop. No matter I open a new file or a old file, the black spot screen is still here. Also the black spot screen are always changed, when I zoom in or out, sometimes the whole screen disppear

  • Where can i get a good Oracle Reports tutorial

    Hi. Any of you can tell me where i can find a good oracle reports tutorial? Cheers.