Sap authorizations in Webdynpro

I have a question regarding the use of authorizations from WebDynpro. We wants to use standard SAP authorizations when accessing the BAPIs through WebDynpro. For example: A sales person having a SAP logon should be allowed to see the data he would see using the transactions through SAP GUI. On the other hand persons without rights to the transactions should not be allowed to access the sales order data.
How do you do this?

Hi Rama,
According to me ,Upto Now thr is no such readymade facility available.But we can implement it.
1)Create a Bapi for Autherization Or Use standard  Bapis if any.
2)Use those Bapis in ur Project.
3)Before u executing ur Actual Bapi U can execute Ur Autherization Bapi.
4)According to The Result of Autherization Bapi ,U can Execute Ur Actual Bapi.
Regards,
Ramganesh.

Similar Messages

  • Please guide me for user authentication and authorization in WebDynPro App

    Hi,
        I just study the WebDynPro to develop the SAP Portal. I've ever developed the Web-based App using J2EE. So when i developed the Web-based App i have to develop the control of the user authentication and authorization on each page for example ,checking the session of the user whether they can access this page or whether session is expired or not,. So i have no idea with the WebDynPro and the SAP Portal because i never had experience for both WebDynPro and Portal.
    I need to ask you some question to clarify my doubt :
    1. SAP Portal  is web page that include every enterprise application with in one page and user log-in to them just on time, isn't it?
    2. If i integrate WebDynPro with SAP Portal, which one will do the authentication and authorization?. I mean that, Do i have to develop the code to check authentication and authorization in the WebDynPro App or Let the SAP Portal manage them?
    3.Could you please suggest the best practice for authentication and authorization in webDynPro.
    Many Thanks
    Noppong J

    in most case you don't have to write code to deal with session, authentication and authorization.
    1. yes,
    2. no, no code needed. you just set an attribute to your application, which make the the authentication required. when user access this page, portal will display the logon page
    3 you can put some authorization related code in web dynpro for specific requirement, search this doc "Protecting Access to the Web Dynpro Car Rental Application Using UME Permissions"

  • File upload in SAP BI using Webdynpro.

    Hi,
    I have requirement in Webdynpro, where I need to upload the data from file of type Tab delimited (*.txt) file from desktop. In ECC I know how to upload the file i.e., by using the Function module (FM) 'HR_KR_XSTRING_TO_STRING'. But in SAP BI the FM doesnu2019t exist.
    Is there any way to upload TAB delimited (*.txt) file in SAP BI for  Webdynpro ABAP.
    Can we move or copy the package P99E  from ECC to SAP BI.This package contains the above said Function module. If it is possible then please guide on this.
    Edited by: SUNIL B SMG on Jan 27, 2012 3:19 PM
    Edited by: SUNIL B SMG on Jan 27, 2012 3:22 PM

    Hi,
    iView:
    <hbj:form encodingType="multipart/form-data" >
       <hbj:fileUpload  id="myfileupload"                    maxLength="125000"                    size="50"   />
    </hbj:form>
    Action-Method:
    public void onLoadFile(Event event) {
             FileUpload fu = (FileUpload) this.getComponentByName("myfileupload");
    // this is the temporary file
             if (fu != null) {
    // Output to the console to see size and UI.
                System.out.println(fu.getSize());
                System.out.println(fu.getUI());
    // Get file parameters and write it to the console
                IFileParam fileParam = fu.getFile();
                System.out.println(fileParam);
    // Get the temporary file name
                File f = fileParam.getFile();
                String fileName = fileParam.getFileName();
    // Get the selected file name and write ti to the console
                ivSelectedFileName = fu.getFile().getSelectedFileName();
                System.out.println("selected filename: "+ivSelectedFileName);
    Regards,
    Gerhard

  • Calling SAP scripts from WEBDYNPRO

    Hi
    We need to call SAP scripts from WebDynpro application.  As per my understanding we need to do following steps
    Create a new RFC function module and create sap script output in PDF format.For this
        - use OPEN_FORM , by assigning TDGETOTF='X' in the Options(Structure
          ITCPO). 
        - call function module CLOSE_FORM with option OTFDATA
        - convert OTF data to PDF by using function module CONVERT_OTF_2_PDF
    Now I would like to know how to display the PDF string from WebDynpro.
    Please help....
    Regards
    Sujith

    Hi,
    You can call by creating external window method.
    create LINK to URL or LINK TO ACTION according to requirement, for this. write code in onaction of that.
    data: iv_url type string value 'http://<server>:<port>/sap/bc/gui/sap/its/webgui?~transaction=*se38 RS38M-PROGRAMM=rsparam;DYNP_OKCODE=SHOP'.
      data: api_component  type ref to if_wd_component,
              window_manager type ref to if_wd_window_manager,
              window type ref to if_wd_window.
      api_component = wd_comp_controller->wd_get_api( ).
      window_manager = api_component->get_window_manager( ).
      window = window_manager->create_external_window(
                     url = iv_url
                     modal = abap_false ).
      window->open( ).
    Cheers,
    Kris.

  • Can we call an SAP transaction in Webdynpro

    Hi,
    I have a requirement to call an SAP transaction in Webdynpro, ie on clicking a button in a view, the particular SAP transaction has to come . Kindly tell me how to do it.
    Regards,
    Lakshmi

    Lakshmi,
    You cannot call a transaction from WDA
    check these threads
    https://forums.sdn.sap.com/click.jspa?searchID=19319106&messageID=6146192
    https://forums.sdn.sap.com/click.jspa?searchID=19319106&messageID=6476084
    Thanks
    Bala Duvvuri

  • SAP Authorization Query

    Hi,
    Iam working in SAP Authorization team. Recently we had one issue, and it is long days back we have added one single role to many of the composite roles. But suddenly last week that single roles got deleted in some of the composite roles only from production system.
    Could you tell me how it is happened?
    Thanks!

    > This is because one of your team member have transported the single role with the same role name   frm development to production unknowingly thats reason it been overwritten in prd  server
    Then I think the changes should reflect even in DEV & TEST as well. But here the issue is only in PRD which is very surprising.
    Regards,

  • Enterprise/ SAP Authorization in CMC

    Hi Experts,
    Just need to clarify that if we are using CMC with Enterprise Authorization, is it necessary to use InfoView with same Authorization or can we use SAP Authorization with it?
    Thanks & Regards,
    Sumeet

    Hi,
    thats the most common way you are explaining.
    End- Users are using the SAP Auth. for InfoView and the Administrator(s) are using the Enterprise Administrator with the Enterprise Authentication in the CMC.
    Regards
    -Seb.

  • SAP Authorization

    Dear All,
    Good Day!
    Hi! I would like to know if there is an site or link that discuss of SAP Authorization ( SAP R/3 System version 46c or 4.6c ), complete and detailed particulary. Since I am new in this field or environment I'm asking for your guidance and help being as SAP Basis Admin assigned in SAP Authorization Group. Your suggestion and help mean a lot to me.
    Thanks A Lot,
    Armin

    Hi
         for a detailed explanation of the Authorization concept & how to handle that, please go thru this ..
    http://www.*********************/tutorials/authorization_analysis.htm
    hope this info helps you!
    with regards,
    raj
    <i>pls, award points</i>
    <i>if, your query is answered, pls, mark this issue as answered. thanks!</i>

  • Regarding sap authorizations

    hi all
    is there anyway to limit the users access to only their own batch input sessions in tcode sm35 using sap authorizations.
    thanks in advance
    mohan

    hi,
    check this
    Checking User Authorizations in your ABAP Program
    How to set Authorization to an ABAP Programs?
    Much of the data in an R/3 system has to be protected so that unauthorized users cannot access it. Therefore the appropriate authorization is required before a user can carry out certain actions in the system. When you log on to the R/3 system, the system checks in the user master record to see which transactions you are authorized to use. An authorization check is implemented for every sensitive transaction.
    If you wish to protect a transaction that you have programmed yourself, then you must implement an authorization check.
    This means you have to allocate an authorization object in the definition of the transaction.
    For example:
    program an AUTHORITY-CHECK.
    AUTHORITY-CHECK OBJECT <authorization object>
    ID <authority field 1> FIELD <field value 1>.
    ID <authority field 2> FIELD <field value 2>.
    ID <authority-field n> FIELD <field value n>.
    The OBJECT parameter specifies the authorization object.
    The ID parameter specifies an authorization field (in the authorization object).
    The FIELD parameter specifies a value for the authorization field.
    The authorization object and its fields have to be suitable for the transaction. In most cases you will be able to use the existing authorization objects to protect your data. But new developments may require that you define new authorization objects and fields.
    Use T/Code SE80 to Create Authorization object.
    if u find it useful mark the points
    Regards,
    Naveen

  • SAP Authorizations: ST01 - return code 12 (RC=12)

    Hi All!
    re: SAP Authorizations: ST01 - return code 12 (RC=12)
    When using ST01 to trace SAP authorizations and you come accross a return code 12 (RC=12), how do change the authorization object to check?
    Thanks for your help.

    Hi - some standard ST01 info I follow
    Main RC codes
    RC =0 Successful (user is authorised)
    RC =4 Failed - user does not have authorisastions but does have the authorisation object in their buffer (different authorisation combination though)
    RC = 12 Failed - user does not have the authorisation AND does not have not have the authorisation object in their buffer
    With RC =0 it can be due to:
    1. The user has access via authorisations
    2. SU25 has switched the object off system wide
    3. SU24 has switched the object off for the transaction
    As a note with RC=12 - I find these fails can identify a misleading authorisation check. That is, the user is not meant to have access. Take care on RC=12, especially for object S_ALV_LAYO, S_DEVELOP, S_CTS_AMDI, S_USER_GRP and when investigating a typical end user.
    IF the missing authorisation (RC=12) is required, you will need to fix the PFCG role and generate the authorisations so the user receives it. If the user has the access you will need to check user buffer or role generation/corruption issues.

  • Multimedia tutorials & online courses in SAP  authorization

    Hello,
    Could someone please guide me to  where I can find multimedia tutorials or online courses, or even conventional courses related to SAP authorizations.
    Thank you in advance for your cooperation.
    Best regards.
    Reda Khalifa
    IT Department - Almansour Automotive Group - Egypt

    Hi Reda,
    The "traditional" SAP auth courses are ADM940, ADM950 & ADM960
    ADM940 is your standard auth concept stuff, 950 is mainly regarding Audit & 960 is looking at system level security (the most technical of the three)
    There is loads of info on the individual courses on the SAP education site: http://www.sap.com/services/education/index.epx
    Alternatively there is some pretty good (if not 100% accurate in all cases) info here:
    http://www.*********************/
    The security section of OSS is very, very useful with a whole load of guides on there:
    https://websmp205.sap-ag.de/security
    You will need an OSS ID to access the documentation.  Your BASIS team will have one that they should let you borrow if you don't already have one.
    A few other resources are a book/pdf called Authorizations Made Easy and the R/3 Security Guide: VOLUME I, II & III
    If you enter those terms into google/another search engine you will get links to where you can buy those.

  • Calling sap transaction in webdynpro

    hi friends,
    can any body provide the solution how to call the standard transaction like va02 or .any . in Web dynpro abap.
    thanks in advance.
    sai.

    Hi,
    It can be posible to display a standard transaction into Webdynpro.for that no coding required.you need to use webgui for that. ( pls refer transaction SICF ). in that case u can specify the Tcode u want use in URL.
    like
    http://<server-name>:8000/sap/bc/gui/sap/its/webgui?~TRANSACTION=va02
    Call this url from linktourl or linktoaction
    Tell me if you find any problem in doing this
    Regards,
    Edited by: Raju.. on Jun 30, 2009 5:51 PM

  • Calling SAP Transaactions in Webdynpro ABAP

    Hi All
    I have a requirement, i have 4 link to actions in view, and created different views for all links. I creat viewuielement container in mainview and i embed all views in that. Now I want to call sap transaction when i click perticular link to action and i have to display perticular transaction in that view. is it possible in webdynpro or only in portal side.
    Thanks
    Madhan.

    Hi Madan,
    Yes It is possible in WDA as well as in Portal.
    we can use ITS for tat. In View Container UI element call view in which u have to create  IFrame then set this url to the IFrame :
    http://<domain>:<port>/sap/bc/gui/sap/its/webgui?sap-client=800&~TRANSACTION=<transaction name> 
    since IFrame is deprecated u can call this in external window using Window Manager.
    reply me if u need some more clarifications..
    Thanks,
    Regards,
    Kiran

  • How to edit text of UI elements in sap standard ABAP webdynpro component

    Hi All,
    I have a requirement wherein I want to change the standard text of mainly LABEL UI in travel and expenses ABAP webdynpro components. As per my knowledge we canu2019t change UI text directly by changing it in layout in enhancement. We have to do it via wdmodify view method and post and pre exits methods.
    Can you please help me with the steps that I have to follow and code?
    Regards,
    Madhvika

    Hi ,
    Please go through this document.
    [Doc|http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/700317da-bd79-2c10-368e-8f18bf5d8b81?quicklink=index&overridelayout=true]
    Create a Pre Exit method for WDDOMODIFY method of the view , and in that method code somthing like this.
    lo_button TYPE REF TO cl_wd_button.
    lo_button ?= view->get_element( 'ID of button' ).
    lo_button->set_text('New Text').
    Thanks,
    Aditya.

  • SAP Portal Network - WebDynpro iView and SAP Application iView sharing

    Hello All,
    I've read about the restrictions in SAP Portal supporting the WSRP standard for application sharing. Mainly WebDynpro iViews and SAP application iViews sharing is not supported. That is in the case of a SAP Portal as producer and Non-SAPPortal as consumer.
    I'm interested in a WebDynpro iViews and SAP application iViews sharing in a only-SAP Portals Network, where SAP Portals act as producer and consumer.
    I've heard about the Remote Role Assignment and Remote Content Copy that are used in such case. I would like to ask if anyone knows if these can help overcome the restriction in sharing WebDynpro iViews and SAP application iViews that is present with WSRP? And if the advantage of WSPR, that is the application execution and rendering on the producer side, and as follows decreasing of bandwidth usage, is remaining in the case of the Remote Role Assignment and Remote Content Copy.
    Thanks,
    Mladen

    Hi Manish,
    for sharing content between SAP and non-SAP Portals, your case, refer to
    http://help.sap.com/saphelp_nw2004s/helpdata/en/43/23fb36cad10d23e10000000a1553f7/frameset.htm
    All the possibilities and restrictions of WSPR in the case of SAP EP are explaind there.
    For sharing content between only SAP Portals refer to my other thread:
    Portal Network - Content Sharing
    Hope it helps you!
    Mladen

Maybe you are looking for

  • Document in Multiple curriencies

    Hi gurus, i need to know if there is a way to display a document in a currency of our choice which is other than the local currency and the document currency... suppose local currency = SAR document currency = USD and i want to the display document u

  • Can you have a different theme for different pages?

    I'd like to combine themes in my book I'm creating but I'm not able to lock the individual page themes so that I don't have to have each page be the same theme. Any way around this?

  • 2 Airport Expresses Next to each other

    Hi guys We have 2 Airport expresses next to each other plugged in on the same extention cable, with 2 ethernet cables plugged into them going to the same ethernet hub in the wall. Should this affect either of the Airports??? Thanks Fiona

  • Skipping parts of the boot process

    When I boot up arch on my laptop, it always tries to establish a Network connection, even when there is no chance of success, because I'm not plugged into a LAN. When this is the case, it often takes about 15-20 seconds  before it fails, and so far I

  • .Mac deleting my messages!?!

    Yesterday I had over 400 messgaes in my inbox. I leave them there since there is a lot of business correspondence I reference. Today I have 54 messages in my inbox; all I have done was run a .mac sync this morning. The 400 missing messages do not app