Restrict simultaneous login to a web dynpro application by the same user

I have a stand alone web dynpro application and used the sap.authentication for user to login into the application. How can i restrict a user from accessing the application from two different browsers using the same userid?

Hi,
   You can try the following approach:
1. Create an outbound plug to some dummy view which shows the message to the user that he/she is already logged in. Let's call this plug "ToMessageView".
2. In the "wdDoInit" method of the component controller write the following code:
String loggedInUserID = WDClientUser.getLoggedInClientUser().getClientUserID();
String[] apps = WDServerState.getActualApplications(loggedInUserID);
//All entries of apps will look like <application-name>/<application-id>
boolean isRunningParallely = false;
for (String app : apps) {
     if(app.split("/")[0].equals(wdComponentAPI.getApplication().getName())){
          isRunningParallely = true;
          break;
if(isRunningParallely)
//fire the plug to message view here
FYI, I haven't tested this but do try it out.
Regards,
Satyajit

Similar Messages

  • Multiple versions of the same Web Dynpro application on the same SAP Portal

    I have a single application (local development) and deploy directly to a SAP Portal(NW 7.0) from NWDS Version: 7.0.15
    No problems there, works like a charm.
    But I want to have multiple versions of the same application on one portal. Eg. ill build a version 1.0 for test and deploy this. Then continue to work on version 1.1 deploying this directly on the portal. The two versions should now co-existing under different names and/or packages.
    Please help.

    Hi Kim,
    May be you can try this and see if this works for you. I am not 100% sure if it will work for you, but worth a try I guess. Create a Test WebDynpro project and try the following steps on this project. If they work  out correctly and serve the purpose for you only then try them on your actual Web Dynpro project.
    1. Create a test Web Dynpro project  say "TestWDProject" with Component say "Comp1" and the default views and windows etc.
    Also create some working application our of this component and Windows using the Context.
    2. Right click the "Comp1" and select Copy.
    3. Right click 'Components" node in the project structure and select "Paste"
    4.This step will try to paste the copy of Comp1 as a new Component.
    5. You can change the Name and Package of the Component.
    6.Similarly you'll get the prompts for views,windows etc.
    7.Once you have copied everything, Just check if everything looks good.
    8.Now you can create a new Application using this new component and the Component Interface View and Deploy it.
    9.Test whether the Application created out of this copy works same as the original component.
    You can also try to create another Web Dynpro project and paste the Comp1 in the Components node of that new project and perform the same steps.
    Again, try with these Test Projects and see if this serves your purpose before applying the steps on actual projects.
    Regards,
    Ajay

  • Can two simultaneous locks be put on a delivery by the same user

    Hi All,
             If the user who has locked the delivery is the same as the user who is running the BDC session then  BDC should work.Is it possible? Calling the BDC for packing HUs (using Vl02n transaction)
    Regds
    Amruta

    Hi
    It is not possible even if  both users are same!
    Cheers,
    Hakim

  • Reg: Closing and Opening Web Dynpro Application in same browser

    Dear Experts
    In my webdynpro application when i click a button another web dynpro application is opened in another window(another browser) .
    But i want to open the second web dynpro application inside the same browser in which closing the first applicaiton and opening the second web application in same browser window .
    Please guide me to do this.
    Regards
    Arun

    hi ,
    Exit plugs have the special property that they use the defined URL parameter. After you have created the URL parameter in the parameter list on the Outbound Plugs tab page in the window editor, you can specify a value for this parameter in the method that calls the exit plug.
    ref
    link:[http://help.sap.com/saphelp_nw70ehp1/helpdata/en/48/ca3351508f04e7e10000000a42189c/content.htm]
    it would help u
    regards,
    amit

  • Assigning a login module to a Web Dynpro application

    Hi everybody,
    I would like a Web Dynpro application to use a custom login module for authentication. How can I do this?
    What I found is the Security Provider (in the Visual Administrator tool) where I can add a login module to the "form" authentication mechanism for example. But if I do this I think all applications using this mechanism have to use my custom login module, right?
    I wonder if I have to add my Web Dynpro application as a component to the Security Provider so that I can assign login modules to it. Am I on the right way? If yes, how can I do this? If I choose "Add" from the "Policy Configurations" tab a popup appears where I can enter the name for a new component. How do I specify my application there?
    Thanks in advance for all answers,
    Torben

    Hi,
    Web Dynpro applications use the ticket authentication template. U wud need to add your login module to the ticket template's login stack.
    Incase you are accessing the Web Dynpro applications thru the EP u wud need to make changes to the authschemes.xml file too.
    regards,
    Vishal

  • Access Web Dynpro application on different WAS ??????????

    Hi All,
    Current Scenario -
    We have deployed ESS & MSS Business package on one WAS and the iviews are present on another WAS.We have created a Dedicated R/3 system which is pointing to the WAS where these packages are deployed.
    All these things are working fine i.e. once the user maps the id pswd it directly runs the Web Dynpro applications in the iviews.
    That means, even if application is running on one WAS, and the user personalises data on another WAS, it still retrieves the credentials and shows the appropriate results for ESS MSS Packages.
    Query-
    Now i need to implement the same scenario in my Web Dynpro application
    Steps
    1) I have the WD application running on one WAS and portal on another
    2) In portal there is a R/3 system created
    3) The Web Dynpro application needs to know if the user has personalised mapping against that system created on portal(other WAS)
    4) If yes show him the home page else take him to the login page.
    Just as it is implemented for ESS MSS Packages.
    How can i pass the mapped data to the Web Dynpro iview ?
    Thanks and Regards,
    Samta Nichani

    Amol,
    as this questions existed twice, I've deleted one.
    As roles are in the UME, you can access them. But why do you want to do this? You could login to that user, but then the question is what you want to do....
    Regards,
    Benny

  • Problems using remote debugging for Web Dynpro applications

    Hello All,
      Have anyone ever encounter the above mentioned problem ? I am not able to step through my codes nor break @ my breakpoints using the debugging features despite many attempts following the tutorial on "Debuggng Web Dynpro applications". The problem always occur when I click on the Run -> Debug -> "Click on Debug". The debug perspective will show the threads running but my application window dows not appear. Should attempts  be made to "Terminate All" threads and relaunch my apllication again, I will get an error message   saying "Deployment of archive file already running : XXX.ear" Then I will need to wait some 15 mnutes or so before I can try again. Any suggestions ? Thank you.
    The status of my J2EE engine is as stated in the tutorial:
    1) State = "Debugging"
    2) Debug Mode = "On"
    3) Restricted Load Balancing = "Yes"
    4) Productive Use = "No"
      I have posted similar queries under "JDI" and "Web AS General" but did not receive and sugestions.
    from
    Kwok Wei

    Hi
    You should Create and Deploy if you want to reflect the code changes that you just did. However if you just want debug to an existing code then you need not Create and Deploy.
    This can also be done as a two step process where you first deploy from NDS and launch Debug without create and deploy.
    Is the issue that after you launch debug that it does not launch the application window.
    Regards
    Pran

  • Can the role info be passed from portal to ABAP web dynpro application

    Hi,
    We have some roles in the portal. We call the ABAP web dynpro applications from the portal. Is it possible to pass on the role from the portal to the Web dynpro ABAP application so that we can use this role information in the application.
    Thanks,
    Pooja

    Hi,
    you can try to add the expression
      role=<IView.PCDUnit>
    as part of the Application Parameters in the iView. This will be the role in 99%. However not all iViews started in the Portal must belong to a role. You can start iViews using page navigation that are not part of a role. Therefore the PCD does not talk about roles but about "units" which is the superordinate term.
    the value will be the PCD path of the role - e.g:
      portal_content/myFolder/roles/myRole

  • Exiting a Web Dynpro Application by pressing a button on a Web Dynpro View

    Hi all,
    I want to exit a Web Dynpro application when the user presses an Exit button on the screen. Is there an API for closing the current browser window and exiting the application?Thanks.
    Sukru

    hi,
    For closing Main Window, use Exit Plug in Windows:
    Do the following steps :
    -> Make an Outbound Plug to the Window.
    ->Make the type of Outbound plug to Exit Type.
    ->Add CLOSE_WINDOW of type wdy_boolean as a parameter to the outbound plug of Window.
    ->Do remember to add Component Name in the Properties Tab of View ( othervs Calling Outbound plug of window from view wont be possible ).
    ->Fire the outbound plug with close_window as X in the onAction of Exit Button .
    Refer SAP online help on using Exit plug to close a window:
    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/48/ca3351508f04e7e10000000a42189c/content.htm
    method ONACTIONGO_EXIT .
    data: L_REF_MAIN_WINDOW type ref to IG_MAIN_WINDOW .  
    L_REF_MAIN_WINDOW =   WD_THIS->GET_MAIN_WINDOW_CTR( ). 
    L_REF_MAIN_WINDOW->FIRE_MY_EXIT_PLUG_PLG(     CLOSE_WINDOW =   'X' ).
    endmethod.
    here Main_window is the window which needs to be closed.
    I hope it is clear.

  • Web Dynpro application callable object error: Page Builder Not available

    Hi, SDN Fellow.
    I created a callable object of Web Dynpro application. The callable object is atatched to an Action, and Action --> Block, and Block --> Process.
    I initiate the process in GP Runtime, when it comes to the Action screen the Web Dynpro application atatched to, I got the following error:
    The page builder required to display this application UI inside the portal environment is not available.
    As aa comparison, another callable object that atatched to a Web Dynpro component (that implement GP interface) is working fine.
    Please advise.
    Thanks in advance,
    KC

    Hi KC,
    When you start your process from GP Runtime, does the actual action/callable object open in a new window?
    Have a look at this SAP Note:
    [Error when executing a GP task - Page builder|https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes/sdn_oss_bc_gp/~form/handler%7b5f4150503d3030323030363832353030303030303031393732265f4556454e543d444953504c4159265f4e4e554d3d393831353137%7d]
    Although the error message you are getting is different, but if your callable object opens in a new window, then the problem (in most probability) is the same as mentioned in the SAP Note.
    Also, try testing the Web Dynpro callable object in standalone mode. For more information on this, see:
    [Testing Callable Objects|http://help.sap.com/saphelp_nw04s/helpdata/en/4c/588041a17e060de10000000a1550b0/frameset.htm]
    Bye
    Ankur

  • Consuming an outbound iDoc from a Java Web Dynpro application on EP front

    Hi,
    I am trying to consume an outbound iDoc from a SAP system into a Java Web Dynpro application. The result would be displayed on the Enterprise Portal. Could anyone help me with the process to be followed for the same.
    Regards,
    Chandrima.

    Hi,
    I am trying to consume an outbound iDoc from a SAP system into a Java Web Dynpro application. The result would be displayed on the Enterprise Portal. Could anyone help me with the process to be followed for the same.
    Regards,
    Chandrima.

  • Web Dynpro application on different WAS ???????????

    Hi All,
    Current Scenario -
    I have a Web Dynpro based application which gets the mapped id and pswd of R/3 system created on portal
    It works fine if both portal and Web Dynpro application are on same WAS.
    Problems -
    1) Can i run this application on another WAS other than portal.
    2) Where would this system be created i.e. on the WAS where portal is present or where the application is present.
    3)If the latter is true, can i get the mapped id and pswd of a system which is present another WAS.
    Thanks and Regards,
    Samta Nichani.
    Please help.
    Thanks and Regards,
    Samta Nichani

    Hi Samta,
    I try to understand your issue, so generally you can separate all the entities using different WAS, but this is strange. Why you want to use different WAS??
    Regarding the authentication you could use Single sign-on, choosing the target system for authentication. Some links here:
    http://help.sap.com/saphelp_nw04/helpdata/en/b9/5fc040fa717b2de10000000a155106/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/02/d4d53aa8a9324de10000000a114084/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/94/695b3ebd564644e10000000a114084/content.htm (SAMl protocol)
    Hope this help you,
    Vito

  • Debugging a web dynpro application

    Hi,
    I need to debug a abap web dynpro application from the internet browser.  I only have the application URL and i don't know the component name and application name. So i can't put a break point in the methods.
    I there a way by which we can call a debugger dynamically from the browser without knowing the WD component.
    Thanks & Regards,
    Ravi Aswani

    Hi Pooja,
    First of all, I am not sure about the more fieldinfo authority thing, I'm only guessing
    I think you got your answer to your original post answered from Patrick and my earlier post (about what application is used in URL etc)
    About the More Field-Info:
    I checked the said scenarios again:
    User with only my Basis ESS Roles: No Field Info available.
    User with SAP_ALL: Field Info Available
    User with my Basis ESS Roles and Content-Admin and System-Admin: No field Info available
    It seems to be dependant on some authority from R3, and since you say it works for you if the user has sysadmin and content-admin roles, I would take a look at the identity management in portal for your sysadmin and content admin portal roles. Take a look at the assigned R3-Roles and look within these which authorities are given. Maybe this will unveil something. I cannot check this in my system since our portal identity management works differently.
    Alternatively, maybe somebody with deeper knowledge pops up and delights you with the sample solution )
    Cheers, Lukas

  • What to after Creating a Web Dynpro Application

    Hello,
             My question might a little stupid so please don't mind. I have created a web dynpro application where the user enters a sales order no and the output of is shown in an ALV format in web dynpro. My question is what next, I mean how do I give it to the users to use it. They should only be given the URL which is generated?
            Also if i directly enter the URL it asks me for my Username Password of the SAP Logon. can this be avoided like some reports where one cant make any changes in the database just get the output this Username Password thing be skipped

    Hi.,
    You can create a Transaction for Web Dynpro Application to dispaly in browser as well as in SAP GUI.,
    check this: can we create a tcode for webdynpro application?
    else you can integrate it in Portal by creating iviews.,
    check this article: [How to integrate Web Dynpro  ABAP in Portal|http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/008fc414-997f-2e10-3899-fd895ec8eb5e]
    hope this helps u.,
    Thanks & Regards,
    Kiran

  • Value hep problem in web dynpro application

    Hi All,
    I have a requirement where I need to add a field for alternate payee to the web dynpro application and the field name is BSEG-EMPFB. I have written the following code to get the values of it based on the vendor number:
    SELECT SINGLE * FROM  lfb1 INTO f4lfb1_z
                      WHERE lifnr = lv_lifnr
                      AND   bukrs = '001'."bseg-bukrs'.
      CALL FUNCTION 'FI_VENDOR_ALTERN_PAYERS_READ'
        EXPORTING
          i_lifnr            = lv_lifnr
          i_filkd            = filkd
          i_bukrs            = '001'
          i_lfb1_head_office = f4lfb1_z
        TABLES
          t_zemtab           = t_zemtab.
      LOOP AT t_zemtab INTO w_zemtab.
        ls_value_set-text = w_zemtab-empfb.
        ls_value_set-value = w_zemtab-empfb.
    append ls_value_set to lt_value_set.
    DATA lo_nd_alt_payee_info TYPE REF TO if_wd_context_node_info.
    DATA lo_nd_alt_payee TYPE REF TO if_wd_context_node.
    lo_nd_alt_payee = wd_context->get_child_node( name = wd_this->wdctx_alt_payee ).
    lo_nd_alt_payee_info = lo_nd_alt_payee->get_node_info( ).
             lo_nd_alt_payee_info->set_attribute_value_set(
                name =  `ALTERNATE_PAYEE`
                value_set = lt_value_set )
    Now the problem is user wants the details of the alternate payee as F4 help and when I debugged the standard FV60 functionality this how the F4 help is being build therE:
    REFRESH fldtab.
      CLEAR fldtab.
      fldtab-tabname    = 'IZEMTAB'.
      fldtab-fieldname  = 'EMPFB'.
      fldtab-selectflag = 'X'.
      APPEND fldtab.
      CLEAR fldtab.
      fldtab-tabname    = 'IZEMTAB'.
      fldtab-fieldname  = 'NAME1'.
      APPEND fldtab.
      CLEAR fldtab.
      fldtab-tabname    = 'IZEMTAB'.
      fldtab-fieldname  = 'ORT01'.
      APPEND fldtab.
      CLEAR fldtab.
      fldtab-tabname    = 'IZEMTAB'.
      fldtab-fieldname  = 'STRAS'.
      APPEND fldtab.
    *------- Fill Values for Function Module Call --------------------------
      REFRESH valtab.
      LOOP AT zemtab.
        valtab-feld = zemtab-empfb.
        APPEND valtab.
        valtab-feld = zemtab-name1.
        APPEND valtab.
        valtab-feld = zemtab-ort01.
        APPEND valtab.
        IF zemtab-stras NE space.
          valtab-feld = zemtab-stras.
        ELSEIF zemtab-pfach NE space.
          CONCATENATE 'Postfach:'(019) zemtab-pfach INTO valtab-feld.
        ELSE.
          valtab-feld = space.
        ENDIF.
        APPEND valtab.
      ENDLOOP.
    *------- F4 Dialog -----------------------------------------------------
      CALL FUNCTION 'HELP_VALUES_GET_WITH_TABLE'
        EXPORTING
          display      = space
          fieldname    = 'EMPFB'
          tabname      = 'INVFO'
        IMPORTING
          select_value = empfb
        TABLES
          fields       = fldtab
          valuetab     = valtab.
      IF NOT empfb IS INITIAL.
        invfo-empfb = empfb.
      ENDIF.
    can you please tell me how can I accomdate this in the web dynpro application?
    Thnaks,
    Edited by: rajatg on Jul 13, 2011 6:41 PM
    Edited by: rajatg on Jul 13, 2011 6:42 PM

    Hi Raja,
    Search help is availble at dictinary level you get F4 help automatically.
    Otherwise create OVS help for alternate payee. use WDR_OVS.
    check this..
    http://wiki.sdn.sap.com/wiki/display/WDABAP/InputhelpofObjectValueSelectioninWDABAP
    /people/shruti.rathour/blog/2008/05/05/ovs-help-in-web-dynpro-abap
    Cheers,
    Kris.

Maybe you are looking for

  • Error in Email PDF of purchase order

    In the purchase order, we have set up a message(output) type as external send for sending the email to the buyer. It has been working good for the past 1 year and suddenly for the past few weeks we started noticing errors. The error is that we cannot

  • Web Servive in SAP 7.1

    Hi Experts , WSADMIN and WSCONFIG are obselete in SAP 7.1 .Hence when i created a Web Service through Wizard in se80 , the web service is not appearing in WSADMIN or CONFIG.Hence i got WSDL file from SOAMANGER. Please suggest me Web Service should be

  • How can I show JTree inside the ComboBox!!!!!!!

    hi, Is there a way to show JTree in a JComboBox. As JComboBox have the following constructors.. JComboBox() JComboBox(ComboBoxModel aModel) JComboBox(Object[] items) JComboBox(Vector items) Is there a way That I can put JTree in a JComboBox i.e. to h

  • BI Statistics Question

    All, It appears as though any query that we publish to portal that prompts the users to select variable values do not get logged in BI statistics.  All queries without the variables are getting logged. Is this the case for anyone else?  Does anyone k

  • Import LC configuration FI

    Dear Friends, How to configure import LC in FI. How will the entries flow right from PO creation to LC collection .. N also what t-codes to be used. I went through lots of previous posts on similar query. However, they have'nt been of much help. Than