Authorization control in Web Dynpro

Dear experts,
I have a question about setting authorization in Web Dynpro.  For example, how can I control if a button can be pressed or what kinds of data should be displayed based on user role in UME. 
Moreover, if I have security settings declared in EJB (ejb-jar.xml). Then I use this EJB in Web Dynpro.  Can the UME role be passed to the EJB, i.e. the security setting in EJB still valid?  Thanks.
Best regards,
Ken

Hi
  I have created a webdynpro component that interacts with SAP. I have done the authorization control through SLD. Well for individual elements of a webdynpro application i dont know if it is possible to restrict through authorization control.Maybe its something that needs to be worked upon.
thanks
ravi

Similar Messages

  • Can I insert ActiveX controls in Web Dynpro Java?

    We want to insert ActiveX controls in Web Dynpro 7.3.
    Is it possible?

    Using the WebWidget UI element you can insert any HTML and JavaScript code but this does not guarantee that your special ActiveX control will work correctly.

  • OfficeIntegration control in Web Dynpro ABAP

    Hi,
    Is anyone aware of a test Web Dynpro component available in ECC6 that demonstrates this functionality? We're trying to add the control to a test component but failing to set the dataSource correctly.
    Is the dataSource property meant to be a URL, physical file location or byte stream? Please advise because the doco on help.sap.com is a little sketchy.
    Thanks in advance.
    Nick

    I am afraid that it is not possible , atleast there are no API to do that.

  • Authorization objects in web dynpro ABAP and SU24 transaction

    Hi,
    I have created a new authorization object to check a storage location for certain activities. I have added the authorization object in a specific web dynpro ABAP and I have created a new role in PFCG for my web dynpro ABAP.
    The organization level for storage location is not recognized in PFCG. Someone told me I have to maintain my authorization object in SU24 as it is done for transaction.
    I wanted to maintain my web dynpro in SU24 but I found no way to do that.
    It seems that we can maintain authorization for TADIR service and in those services there is R3TR WDYA but when I use the search help for  OBJ_NAME I don't find may web dynpro ABAP. I suppose I have to create a TADIR service for my web dynpro ABAP or something like that but I don't know how to do ?
    Does anybody  know how to deal with specific authorization in web dynpro ABAP and t ohave the organizational level recognized in PFCG.
    Thanks for your help,
    Emmanuel

    Hi,
    Please RUN the function module as "AUTH_TRACE_WRITE_USOBHASH" with following parameter
    R3TR
    "custom webdynpro application"
    SERVICE TYPE and Service can be kept blank
    after this try  SU24 it will be available in SU24 list.
    Thanks & regards

  • Table Control in web-dynpro for java

    Hi SDN,
    I was working on a web-dynpro application where I has to display a table control.
    Here I am listing my Requirement.
    1) A table with 7 columns are to be displayed.
    2) 5 of the columns are Drop down list where  3 of the 5 drop downs have dependency of the pervious drop down selection.
    3)other 2 columns are input box.
    4)The list for the drop downs come from a bapi.
    5)the user is to be allowed as many rows he can
    6)when he clicks save button the values are to be stored using table of another bapi
    Hi all, I have posted this earlier but no solution for this please help me in resolving this.
    Thanks in advance.
    Regards,
    Sai krishna.

    Hi Sai,
    I have better solution, I will explain solution for your design and then I will explain new design.
    <b>Solution to your problem</b>
    How many values each drop down contains? If its not large, execute all drop downs in the beginning of the application and store them in HashMap with dependency key and value as the list of populated values.
    - Create a top Node
    <b>1) A table with 7 columns are to be displayed.</b>
    Create 5 Value Nodes with simple type attributes under your topnode. Set singleton property for each of the node to false. And attach them to the Drop Downs. Populate the parent drop down and non dependent drop downs in the begining itself.
    <b>2) 5 of the columns are Drop down list where 3 of the 5 drop downs have dependency of the pervious drop down selection.</b>
    Attach onSelect events and based on the current selection of the values, check your pre populated HashMap and fill the node with new values.
    <b>3)other 2 columns are input box.</b>
    This is normal, create two nodes with simple types under Top Node.
    <b>4)The list for the drop downs come from a bapi.</b>
    As mentioned previously all these values are pre populated. so you need not to call the BAPI for each request.
    <b>5)the user is to be allowed as many rows he can</b>
    Provide  Add,Delete buttons which dynamically creates rows which means your context elements.
    <b>6)when he clicks save button the values are to be stored using table of another bapi</b>
    Read the values from nodes and send it to other BAPI.
    <b>New Design</b>
    As per your requirement create a form with 5 drop downs and 2 input fields( for dependency you can use the logic mentioned in the previous design). Provide Add,Delete and Update Buttons under the form. And also create a Result table with 7 columns with simple attribute types. Once user enters some values in the form and clicks on Add button then add a new value to the Bottom result table which doesn't have any drop downs. When user needs to update any row on selection of the row populate the values back to the form, then user clicks on update button. Same logic applies to delete also.
    Regards
    Abhilash

  • Absolute URL IMAGE UI control in Web Dynpro ABAP fails

    I would like to display a .jpg from the Internet, either using a URL or an RFC Destination as the source.
    The "Web Dynpro ABAP Development in Detail" manual says that this can be done using only the Source attribute of the IMAGE UI control (see page 114) - that is,
       create an RFC Destination G-HTTP entry for the URL,
       type in that RFC Destination as $NAME$
       append any further extension of the URL as "/path in lower letters"
    I can enter an RFC Destination (ex., $UBERORBS$) which points directly to a single image file via its host/path and it is displayed in SE80's Layout Preview, but nothing displays at runtime.
    If I try to extend an RFC Destination's path to point to that image file (ex., $UBERORBS_BASE$/uberorbs_44pence.jpg), the image is also displayed in the Layout Preview, but not at runtime.
    Is this a bug?  or something wrong with our implementation?  We are at SAP_BASIS 700 level 0006.
    (Also, if the Source entry is not exactly correct, SE80 aborts following the entry with STRING_OFFSET_NEGATIVE.)

    Here's another piece of information.
    I am able to use the test app WDR_TEST_UI_ELEMENTS to display at runtime the $UBERORBS$ RFC Destination-absolute URL image.
    So, does this mean that there is a critical setting within my Web Dynpro component which must be set properly to permit this?

  • Embedding SAP standard iviews in Tab controls with Web Dynpro

    Hi,
    I would like to develop a Web Dynpro application using TabStrip control. I have to display SAP standard iViiw(ex: KM navingation iView, expore iView) in each Tab. How can I embed iViews in each Tab in Web Dynpro.
    Thanks
    Tats

    Hi,
    using the IFrame UI element to display an iView inside a WD application will not work in general as the iFrame is reloaded after each request executed for the embedding WD application. In case that the iView is "stateless" this restriction is perhaps not so hard but you should nevertheless make sure that the ongoing reloading of the iFrame does NOT create new sessions again and again on the server-side for the iView running in the iFrame.
    With the next NetWeaver release we will provide a capability to define page layouts using WD components. Doing this it will be easily possible to define a page layout showing several iViews in different tabs of a tab strip.
    Best regards
    Jochen

  • How to focus controls in web dynpro

    Hello everyone
    I am wondering how I can focus on controls. I am making a page which only works with thw keyborad (not the mouse) So after pressing enter on an input field, it should focus to the next field and so on until the last one whic triggers an action.
    Thanks for your help.
    Regards.
    Gino

    Hi Gino,
          Your posting in wrong forum.
    There is no built-in way to get current focus.
    However, you can track focus yourself up to certain extent. Like validate the inputfield if empty setfocus on it.
    So it is possible even it's quite complex.
    See this thread: Re: Current focus
    You can also search in webdynpro forum
    Regards, Suresh

  • Splitter control in web dynpro ABAP

    Hello everyone,
    My requirement is my view will have 2 panes. The user wants a functionality where if he moves cursor on the separator bar for two panes, it should turn into the re-sizing arrow and allow him to resize the pane.
    I have searched for a week or so but have not found any convincing answer to this issue. Please help.

    I am afraid that it is not possible , atleast there are no API to do that.

  • Authorization about Web Dynpro ABAP

    Dear all:
                 I have some problem withs the authorization about the web dynpro for abap.Please give me some advices.
    For example: In my web dynpro abap,i have two tabs,one is "upload",anthor is "preview".Now there are two users,
    in this example ,i  assume user A and user B.If user A have the authorization of "Upload",and the user B have "Preview".
    Now how can i solve the problem ?  If i do not want to use the  code to implement it , is there any solution for it ? Thank  you ~
    Best wishes !

    Hi,
    There are many ways to achieve this, but without code changes I guess this would be the easiest route:
    Create 2 application configurations: one with Upload button Hidden and other with Preview Button Hidden.
    Now to run you application you have 2 URL's by vritue of 2 application configurations.
    Give the appropriate URL to required set of people.
    Learn more about [App Configuration Here|http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/media/uuid/af5e19e7-0b01-0010-37af-bc816f9a240c]
    Hope this helps.
    Regards
    Manas Dua

  • Reuse of Business Packages in WEB DYNPRO FOR ABAP

    Hi folks
    I have now been working with R3 and CRM for the last 8 years.
    As ABAP developer. Now we have to find out of if we can use the WEB DYNPRO FOR ABAP in our Portal Soloution. So far so good.
    Off course we can use the WEB DYNPRO FOR ABAP!!
    But i have heard that there should be a lot of existing IVIEWS in SAP Service Market Place, SDN.COM and so on. My question is: How do I find these IVIEWS and hos do i combine thes iviews, in a page, with our own develope WEB Dynpros????
    Hope You understand my problem and goal!!
    Have a nice weekend
    Carsten

    Hi,
    This is more a question for the webdynpro forum. Pls check threads like
    Embedding SAP standard iviews in Tab controls with Web Dynpro
    Eddy
    PS. Reward useful answers and earn points yourself

  • ALV in web dynpro

    Is there any way we can integrate ALV controls in web dynpro .Actually I am looking for developing simple reporting solution out from web dynpro.
    What would be the ideal way of displaying simple lists in web dynpro?
    Thanks in Advance .

    Hi,
    as far as I know there is nothing like ALV in Web Dynpro. If you want to display a list the easiest way is to use a Table-Control. Read the data via RFC-Call and display them in a Table-Control. Its very easy.
    Have a look in the tutorial "Creating a Web Dynpro Application Accessing ABAP Functions"
    http://help.sap.com/saphelp_nw04/helpdata/en/e9/1fc0bdb1cdd34f9a11d5321eba5ebc/frameset.htm
    Hope that helps.
    Best regards
    Renald

  • ADT: Web Dynpro view/window error "Failed to create the part's controls"

    Hi, all
    Most of the things in my ADT work fine (e.g. programs, structures, domains), even the Web Dynpro Componentcontroller can be edited.
    However, with Web Dynpro view and window I get this error message: "Failed to create the part's controls".
    In SAP GUI everything works fine.
    Why could this happen and what can I do?
    My system details:
    32-bit Windows 7
    Eclipse Luna Release (4.4.0)
    ADT from https://tools.hana.ondemand.com/kepler, according to these instructions:  SAP Development Tools for Eclipse.
    SAP GUI 7.30, patch level 9.
    SAP_ALL authorizations
    Java: SE, version 7 update 60
    Activated services (SICF): wdy_aie_vd_preview, toolsdocu, docu
    The Java error log in Eclipse is quite long. It starts with:
    java.lang.IllegalStateException: java.lang.IllegalArgumentException: No enum constant com.sap.adt.wda.controller.semanticfs.common.ControllerFileServices.ControllerObjectTypeEnum.WDYNWZ
        at com.sap.adt.tools.core.ui.editors.AdtFormEditor.addPages(AdtFormEditor.java:222)
        at org.eclipse.ui.forms.editor.FormEditor.createPages(FormEditor.java:138)
        at com.sap.adt.tools.core.ui.editors.AdtFormEditor.createPages(AdtFormEditor.java:1251)
        at org.eclipse.ui.part.MultiPageEditorPart.createPartControl(MultiPageEditorPart.java:362)
        at org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.createPartControl(CompatibilityPart.java:140)
        at org.eclipse.ui.internal.e4.compatibility.CompatibilityEditor.createPartControl(CompatibilityEditor.java:99)
        at org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.create(CompatibilityPart.java:321)
        at sun.reflect.GeneratedMethodAccessor45.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
    As it is not popular to post long logs unnecessarily, I will skip the rest of it for the moment - let me know if it could help and I will post it.
    Thanks for help!
    KR,
    Igor

    Hi Ponraj,
    note applied without any problem.
    I'm still facing some difficulties accessing a WD component, maybe you could suggest me how to solve/proceed:
    in Eclipse Luna, I can access now a WD but "Layout" tab doesn't work - HTTP 403 Forbidden - Service cannot be reached. I guess it's a missing configuration, could you help me out on this?
    EDIT: This one is solved; I just missed to activate a service in SICF (WDY_AIE_VD_PREVIEW).
    That Eclipse module however seems not to be very stable; I tried to open a standard SRM WD view (wd component /SAPSRM/WDC_DO_SOCO_GAF_1, view V_AO_SOCO_GAF_1) and that resulted in the message:
    500 SAP Internal Server Error
    ERROR: Conversion of type C LENGTH 255 to type TABLE OF DEEP_STRUCTURE not supported. (termination: RABAX_STATE)"
    is there a way, from the Methods tab, to access directly to a particular method's implementation? The only way I found is going manually under the IMPLEMENTATION tab and CTRL+F with the method's name.
    is there any way to access to a particular enhancement made on the WD? Using SapGUI, there's a special "vortex" button to switch on a specific enhancement, but under Eclipse I can't find the alternative command.
    I know we're getting a bit OT with respect to the topic, anyway if there's a guide that could help clarifying my doubts please, share that documentation
    BR,
    M.

  • Import Data from Office Control (Web Dynpro for ABAP) into internal-Table

    Hello,
    I have a question concerning the Office Control UI-Eelement in Web Dynpro for ABAP:
    How can I import spreadsheet data from the Office Control into  a internal-table?
    I have an Excel-sheet (without any data) which is shown initially in the Office Control. First the empty Excel-Sheet will be loaded and in the second step data from an alvxml-transformation will be loaded into the Excel-sheet with the method 'activatexmlsource'. This works so far. When I change the loaded data in the Office Control and save it it will be stored as XLS-File. The problem is that I'm not able to use existing Upload-FM because every function module I tried uses GUI-functions and WebDynpro has no GUI-functionality. I always get the error that data from clipboard cannot be imported.
    So now the question is:
    How can I import changed data from the Office control into a internal-table staying in Web Dynpro application?
    Please give some advice, if you have some useful code or ideas.
    Thanks
    ram
    Edited by: Ramakullay Challa on Sep 24, 2009 9:05 AM
    Edited by: Ramakullay Challa on Sep 24, 2009 9:07 AM

    Hi,
    Once you save to desktop again you have made some changes to that file, this file you want to upload it right.
    Then in that case you need to use the FILEUPLOAD UI element right.
    Regards,
    Lekha.

  • Authorization Missing error while creating web dynpro Application

    Hi experts,
        I am new to web dynpro and trying to learn it by myself. I am getting an authorization error while creating a web dynpro application. I am not getting any errors while activating Views or Windows. But when I created a web dynpro application and tried to save it, it thew me a warning saying that " You are not authorized to use function  Netzwerkadministration " . Still I could be able to create the application, but not able to run it.
       What  settings should be done to have this authorizations ?
    Any suggestion would be helpful.
    Thanks,
    RVSS

    Hi,
    Get your BASIS person to give you authorization to Tcode SICF and also authorization to create and activate services in Tcode SICF.
    You need authorization to object S_ICF_ADM apart from authorization to tcode SICF
    Regards,
    Ajay
    Edited by: ajay matam on Sep 9, 2009 12:04 PM

Maybe you are looking for