UME - WDP Application

Hello,
if u log on to http://portalhost:50100/useradmin, there is the possibility to create roles, and assign actions (among other things) to these roles.
I found API methods for creating roles trough java code, for example:
IRoleFactory roleFactory = UMFactory.getRoleFactory();
IRole testRole = roleFactory.newRole("TEST_NEW_DYN_ROLE");
testRole.commit();
But now I'm wondering, is there also the possibility to do the following things through java:
1. Create actions/permissions. (Or can this only be done via actions.xml?)
2. Assign those actions to roles. (As done in the user admin tool)
Want i want to achieve is that i can check the permissions for the user that is currently logged in through IUser.checkPermission(...) (as in the example on help.sap.com), but instead of defining the actions and permissions at design time (actions.xml), i want to create them at runtime via a UI, because I dont want to deploy my actions.xml every time an action is created or changed....
Kind regards.
J.

Moved to: UME - Create actions, permissions
Hope to get some answers there.

Similar Messages

  • UME Admin Application as EJB

    Hello,
    Basically we need to be able to create a user in both CRM backend and the UME at the same time. I have created a web dynpro app that creates the users successfully in CRM but now i am trying to do the same for the the UME.  I do see that in the UME admin application, there is a EJB container that exists to use the UME admin application functionality.  You can look in the application path ( usr\sap\<sap instance>\<Server Instance>\j2ee\cluster\server0\apps\sap.com\com.sap.security.core.admin/EJBContainer ). 
    What i need to know is specific info on how i call or use that EJB in my web dynpro app.  Also is there a web service available that we can call for the UME user admin functionality?
    Not sure if anyone has used this functionality before.
    Thanks in advance.
    Renchy Thomas

    Good question. I'm currently in a similar planning process (I'm still in a pretty early stage), and so far, I've come up with the following notes:
    pro non-ejb:
    - on EJB you cannot have multiple threads for a single EJB
    - File I/O is also restricted on EJB
    pro ejb:
    - location transparency; you can basically run it everywhere
    - on app server, possibility of ressource sharing (e.g. JDBC connection pooling)
    misc:
    - future ejb specs might contain timers (schedulers) so that you can schedule the jobs without programming the scheduler; not available at the moment in general, although some vendors might support this (weblogic ??)

  • Problem in Adobe WDP Applications

    Dear All
    I have installed ADS on my Web Server 6.40. It seems to be working. When I make an application based on Adobe it given me an message in the area where there is Adobe form. The message is 'I am a placeholder control'
    Please help
    GG

    Hi Gaurav,
    you need to have the following things installed and configured to get the Adobe output properly.
    1. ActiveX Controls should be enabled. In your IE settings, go to Tools ->Internet Options-> Security then Local Intranet or Internet depending upon you type of accessing the ADS. Click on Custom Level button and enable the ActiveX controls.
    2. Install ACF (Active Control Framework).
    3. Install Adobe Reader 6.0.2 upgrade or higher.
    If you have all these things in your client machine, it should work fine.
    Hope it helps!!!
    Shubhadip

  • How to customize error mess, when an Web Dynpro application Deployed

    Hi Frndz...
    When we r deploying any web dynpro application , if there was any error in that WDP application its showing an error page the list of errors with HOST name  n patch level n OS details n so many n with the line number of that error in the code.. Normally.
    But as my requirement i need to restrict the HOST,OS ,PATCH details in this list to avoid the security issues.
    If anybody have any idea plz share with  me...
    Regards
    Rajesh

    Hi..
    Thank u boss, ur reply was very helpfull to sort out our requirment.
    Regrads
    Rajesh

  • Use of SAP_WAPI_WRITE_CONTAINER in Java WDP

    Hi,
    I need to use SAP_WAPI_WRITE_CONTAINER module function in my Java Web Dynpro application. I have seen that the input parameter that handles the data is IFS_XML_CONTAINER.
    My WDP application displays a form. When clicking on the submit button, I would like to store all entries in the task container. The problem is that I have no idea what the data structure should be. I know it is XML, but where can I find a sample xml file to see how the container values are declared so that I can make my own one.
    Thanks in advance for your help.
    Thibault

    Hi,
    You should also be able to use the table SIMPLE_CONTAINER of the function to populate the container, if your container is not really complex.
    It's easy to check how the SIMPLE_CONTAINER should be filled, if you test function SAP_WAPI_READ_CONTAINER for some existing workflow and check how the SIMPLE_CONTAINER looks there. You just need to populate the elements in the write-version in the same way.
    Have fun!
    Regards,
    Karri

  • SolMan CTS+ Best Practices for large WDP Java .SCA files

    As I know, CTS+ allows ABAP change management to steward non-ABAP objects.  With ABAP changes, if you have an issue in QA, you simply create a new Transport and correct the issue, eventually moving both transports to Production (assuming no use of ToC).
    We use ChaRM with CTS+ extensively to transport .SCA files created from NWDI. Some .SCA files can be very large: +300MB. Therefore, if we have an issue with a Java WDP application in QA, I assume we are supposed is to create a second Transport, attach a new .SCA file, and move it to QA. Eventually, this means moving both Transports (same ChaRM Document) to Production, each one having 300 MB files. Is this SAP's best practice, since all Transports should go to Production? We've seen some issues with Production not being to happy with deploying two 300MB files in a row.  What about the fact that .SCA files from the same NWDI track are cumulative, so I truly only need the newest one. Any advice?
    FYI - SAP said this was a consulting question and therefore could not address this in my OSS incident.
    Thanks,
    David

    As I know, CTS+ allows ABAP change management to steward non-ABAP objects.  With ABAP changes, if you have an issue in QA, you simply create a new Transport and correct the issue, eventually moving both transports to Production (assuming no use of ToC).
    We use ChaRM with CTS+ extensively to transport .SCA files created from NWDI. Some .SCA files can be very large: +300MB. Therefore, if we have an issue with a Java WDP application in QA, I assume we are supposed is to create a second Transport, attach a new .SCA file, and move it to QA. Eventually, this means moving both Transports (same ChaRM Document) to Production, each one having 300 MB files. Is this SAP's best practice, since all Transports should go to Production? We've seen some issues with Production not being to happy with deploying two 300MB files in a row.  What about the fact that .SCA files from the same NWDI track are cumulative, so I truly only need the newest one. Any advice?
    FYI - SAP said this was a consulting question and therefore could not address this in my OSS incident.
    Thanks,
    David

  • Corresponding BAPIs for the respective Webdynpro applications

    Hi All,
    We are on EP7,ECC 6, ESS BP1.2 enhancement package. Configured the NWDI and how do we know which BAPI is being called.
    Scenario:
    In the Bank Information application,
    User can perform three actions : Enter, change and delete the bank details.
    First we need the list of BAPI’s through which this three feature are called by the WDP application.
    ( When ever there some modifications are done in the application, here they are goin to create a ZBapi which is goin to trigger a workflow… and send the notification for approval of mail to his manager)
    Second : once this operations are done , user clicks on save( or any submit button ) it should prompt a message saying “ Information sent for approval “ instead of “ Data saved”
    Guide me what needs to be done here …
    Thanks,
    NR

    Dear Nazeer,
    As suggested by Chris, follow the steps using system trace st01.
    Select the Trace components (RFC Calls etc), Click on general filters ->>> trace on for the user which you would test ESS application.
    Hope your Basis Guy can help you better.
    Regards,
    Anil Kumar

  • Corresponding BAPIs for each Webdynpro application

    Hi All,
    We are on EP7,ECC 6, ESS BP1.2 enhancement package. Configured the NWDI and how do we know which BAPI is being called.
    Scenario:
    In the Bank Information application,
    User can perform three actions : Enter, change and delete the bank details.
    First we need the list of BAPI’s through which this three feature are called by the WDP application.
    ( When ever there some modifications are done in the application, here they are goin to create a ZBapi which is goin to trigger a workflow… and send the notification for approval of mail to his manager)
    Second : once this operations are done , user clicks on save( or any submit button ) it should prompt a message saying “ Information  sent for approval “ instead of “ Data saved”
    Guide me what needs to be done here …
    Thanks,
    NR

    Hi NR,
    This is not the right forum to post this message .
    If you want to know which bapis are used in esss/bank application go to model node, you will see a list, those are  the bapis used. If you want to know which bapi is used for which purpose, you need to go to componenets which starts with VC  and open views. In each view check data binding and mapping parts. Mapping part will give from which bapi its getting data. Check for mappingReference element property of each context element.
    Regards
    Praveen

  • WDP to RFC error...

    Hi All,
    I created a RFC which is working perfectly fine in R/3. But when i use the same from WDP application RFC is going into a dump.
    Name of runtime error is : DBIF_RSQL_INVALID_CURSOR
    Exception raised is  :  CX_SY_OPEN_SQL_DB
    What i understood from the dump is that RFC could go into error while we debug it. But in my case we are not debugging it. And i have simply used a single select statement, then inserted some records in a custom DB table and then again a single select statement.
    Please advice.

    Hi,
    Check if there are any active "External Breakpoints" in the RFC for the user with which you are running the WDP.
    Regards,
    Chen

  • How to import the Local WDP into NWDI

    Hi,
    I have developed a WDP application, i have created this under "My Components" section of the Development Configuration perspective in NWDS.
    Can you please guide me how can i import this application into the NWDI?
    BR,
    Bharath

    Hi Bharath,
    is it [this|http://help.sap.com/saphelp_nw70/helpdata/EN/42/c8204dd57f136fe10000000a1553f7/frameset.htm] that you'd like to do?
    HTH,
    Carsten

  • Chinese language support in WDP

    Hi
    I want to pick up the Chinese characters from database and show it on WDP UI. On UI it all shows as junk characters.... How can I enable my WDP Application to show the Chinese characters correctly...
    Regards

    Hi,
    in Dbase i think encoding scheme is there, they need to set that one.
    BY the way if u want to manage from application side that u can do with the help of following code:-
    import java.io.UnsupportedEncodingException;
    public class MultiLingualUtil {
         /**This method will convert the String to UTF-16 Unicode String */
         public static String convertToUnicodeString(String strMessage){
              String tempUnicodeMessage = null;
              try {
                   tempUnicodeMessage = new String(strMessage.getBytes("UTF-16"));
              } catch (UnsupportedEncodingException e) {
                   e.printStackTrace();
              return tempUnicodeMessage;
         /**This method will convert the UTF-16 Unicode String to String */
         public static String convertFromUnicodeString(String strUnicode){
              String unicodeMessage = null;
              try {
                   unicodeMessage = new String(strUnicode.getBytes(), "UTF-16");
              } catch (UnsupportedEncodingException e) {
                   e.printStackTrace();
              return unicodeMessage;
    Hope this may help you...
    Deepak

  • Custome theme to custom applications and BSP pages

    Hi all,
    I would like to know how I can apply the same custom theme thats coming up with the standard applications.. to be applied to the custom ABAP WDP applications.
    And also want to apply the same theme to the EREC and LSO BSP pages.
    We have already created our own theme and applied that, we are able to see the modified theme in our standard ESS applications. But its not reflecting the same to the custome ABAP WDP applications.
    Do let me know where i am going wrong ...
    Thanks,
    NR

    NR,
    If you are displaying WDA from portal you need to follow the below mentioned steps to assign portal theme to WDA
    1.for assigning custom theme to the WDA pages you need to create configuration
    2.go to the webdynpro component-right click on the webdynpro application for that componet and create/change configuration.
    3.give some name and click on create
    4.go to properties tab and select external portal style sheet and save it
    5.go to iview properties for that WDA in portal and fill the configuration name with the name u created above
    6.stylesheet value to controls and select yes for support portal stylesheet.
    if you are executing WDA from backend itself then you need to pass a parameter to the application like sap-wd-configid=<name of the theme>
    for BSP applications change the iview properties
    stylesheet value to controls and select yes for support portal stylesheet.
    reward points if helpful

  • Error getting in useradmin after support package issue!!

    Hi all ,
    We have just upgraded our support package for Bi_JAVA and other.According to our BASIS guy the package installation is through.
    But when i checked the portal-----user adminnistration , iam getting the below error.
    500   Internal Server Error
      Web Dynpro Container/SAP J2EE Engine/6.40 
    Failed to process request. Please contact your system administrator.
    [Hide]
    Error Summary
    While processing the current request, an exception occured which could not be handled by the application or the framework.
    If the information contained on this page doesn't help you to find and correct the cause of the problem, please contact your system administrator. To facilitate analysis of the problem, keep a copy of this error page. Hint: Most browsers allow to select all content, copy it and then paste it into an empty document (e.g. email or simple text file).
    Root Cause
    The initial exception that caused the request to fail, was:
       java.lang.NoSuchMethodError: com.sap.tc.webdynpro.services.task.IRequestTask.isUsrLogoffRequest()Z
        at com.sap.portal.pb.PageBuilder.wdDoExit(PageBuilder.java:203)
        at com.sap.portal.pb.wdp.InternalPageBuilder.wdDoExit(InternalPageBuilder.java:169)
        at com.sap.tc.webdynpro.progmodel.generation.DelegatingComponent.doExit(DelegatingComponent.java:112)
        at com.sap.tc.webdynpro.progmodel.controller.Component.exitController(Component.java:255)
        at com.sap.tc.webdynpro.progmodel.controller.Controller.exit(Controller.java:154)
        ... 27 more
    See full exception chain for details.
    Correction Hints
    The currently executed application, or one of the components it depends on, has been compiled against class file versions that are different from the ones that are available at runtime.
    If the exception message indicates, that the modified class is part of the Web Dynpro Runtime (package com.sap.tc.webdynpro.*) then the running Web Dynpro Runtime is of a version that is not compatible with the Web Dynpro Designtime (Developer Studio or Component Build Server) which has been used to build + compile the application.

    Hi
    Check SAP Note : 869852
    I think it UME is not correctly installed
    After upgrading your system to a newer SP, you get one of the following
    exceptions when executing the UME WD application:
    o java.lang.NoSuchMethodError:
    com.sap.security.core.wd.umeuifactory.wdp.I
    ExternalUmeUiFactoryCompInterface.hasSimplePermission(Ljava/lang/St
    ring;
    Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/St
    ring;Ljava/lang/String;)Z at
    com.sap.security.core.wd.maintaingroup.MaintainGroupComp.afterModel
    Init(MaintainGroupComp.java:787)
    In order to avoid this error, perform following steps:
    - Open the SDM tool and undeploy all components starting with
    "tc/sec/ume/wd/..."
    - Go to your downloaded SP archives and find the UMEADMIN*.SDA.
    Redeploy it.
    Regards
    Krishna.

  • Error message ME006 order locked after support package

    we went to a new support package this weekend and shortly after we have errors about locked documents error ME006
    it is programm RVV50R10C
    VL10X
    I tried to change the number of tries from 100 to 1000 but had no effect ?
    does anybody know how to resolve this ???
    kind regards
    arthur

    Hi
    Check SAP Note : 869852
    I think it UME is not correctly installed
    After upgrading your system to a newer SP, you get one of the following
    exceptions when executing the UME WD application:
    o java.lang.NoSuchMethodError:
    com.sap.security.core.wd.umeuifactory.wdp.I
    ExternalUmeUiFactoryCompInterface.hasSimplePermission(Ljava/lang/St
    ring;
    Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/St
    ring;Ljava/lang/String;)Z at
    com.sap.security.core.wd.maintaingroup.MaintainGroupComp.afterModel
    Init(MaintainGroupComp.java:787)
    In order to avoid this error, perform following steps:
    - Open the SDM tool and undeploy all components starting with
    "tc/sec/ume/wd/..."
    - Go to your downloaded SP archives and find the UMEADMIN*.SDA.
    Redeploy it.
    Regards
    Krishna.

  • Open external portal link in same window ?

    Hello !
    I've got 2 different WDP applications (different controllers) in the same Portal environment.
    I want to call the second one's url from the first.
    Here's the code I'm using:
    IWDWindow window = wdComponentAPI.getWindowManager().createNonModalExternalWindow("/webdynpro/blabla", "blabla");
    window.show();
    It works very well but I would like it to open within the original window (cf the '_self' html fonction) instead of outside of it.
    Is there any alternative ?
    Thanx

    chk dis link
    Open URL in same window

Maybe you are looking for

  • Smartforms: Creating main windows in different pages

    Hi all! I am using smart forms, I tried to create 2 main windows in 2 different pages. I keep getting the following error: "Two main windows are not allowed." However, I have already seen an example where there are 2 main windows created in 2 differe

  • Grouping iTunes U items

    I am trying to change the way iTunes groups my iTunes U items. Many of my items have multiple authors and some have multiple album titles. One example is Spirituality and Religion from Stanford University. Each file lists the department where the lec

  • Problems with the installati​on of LabVIEW 6.1 on Windows 2000!

    Windows 2000 crashes while installing LabVIEW 6.1, and the computer is unusable after the installation!

  • Does a Signature Field Have a Signature?

    I have a form with 2 signature fields.  I want to make sure that the first Signature Field has a signature in it before the second can be entered.  I think I would use a script in the Pre-Sign event, but I don't know what property to check, or what e

  • Buy music from US apple store by using other country account

    I wish to buy a music album which is available in US apple store only but I have account in Indian apple store then how can I purchase, Apple not allowing to buy that. I am holding a international credit card which is register with Apple.