Login to Portal by webdynpro application

I want two input fields in my web dynpro application for userid pwd. after pressing the button i want to retrieve the information of that particular user like assigned Roles to the user. How can i do this?

Hi Pankaj,
<b>refer to the code below to access the portal user:</b>
IWDClientUser user_info = WDClientUser.getCurrentUser();
IUser user_name = user_info.getSAPUser();
String saproles[] = UMFactory.getRoleFactory().getRolesOfUser(user_name.getUid(), true);
Now the above array will give u the list of roles assigned to the user.
<b>To check for any user given in any input field on screen</b>
IUser user = UMFactory.getUserFactory().getUserByLogonID(<user-name-text>);
Use the link below for further info:
<a href="https://www.sdn.sap.com/irj/sdn/wiki?path=/pages/viewpage.action&pageid=16442">https://www.sdn.sap.com/irj/sdn/wiki?path=/pages/viewpage.action&pageid=16442</a>
Regards
Deepak
Message was edited by:
        Deepak Gupta

Similar Messages

  • Login to portal from webdynpro application

    I want two input fields in my web dynpro application for userid pwd. after pressing the button i want to retrieve the information of that particular user like assigned Roles to the user. How can i do this?

    Hi;
    Have a look at IUserFactory.getUserByLogonID
    Hope this helps.
    J. Unterste Heufken

  • To get login details of portal into webdynpro application

    Hi All,
             How to get the portal login details(user name) into my webdynpro application.
    Thank you,
    Harsha P.

    Hi,
    If you want to have portal login details from backend system (with ABAP) you should ask this question in some portal forum and ask if it is possible. This has nothing to do with workflow or UWL. Even if you get the portal user ID to the backend system, then what? Do you want to manipulate the portal roles etc. from your ABAP WD application? Then you will have even more complicated requirements to achieve with ABAP. It is not that straightforward to call different portal functionalities from backend system. You might need to do some "portal development". And eventually your ABAP WD application might come just an unnecessary wrapper component for calling some web services or whatever in portal.
    Regards,
    Karri

  • SSO b/w portal and webdynpro application customized login??

    Hi,
    I  have one webdynpro application which has a login screen (Created as Webdynpro view). If user enters user/passord, the same gets checked from a custom table in the db (Method for checking user credtentials has been written in view controller). if user credentials are correct it performs some actions defined in webdynpro application.
    I want to configure SSO b/w portal and this webdynpro application sothat when user logon to the portal and open this webdypro application, Login page of webdynpro application should not be shown i.e user credentials should be passed from portal and corresponding authentication method in webdynpro should be called to authenticate the user.
    How to do the same without touching webdypro application ?
    Can we call a method of webdynpro application from portal?
    Regards
    Deepak

    1) To enable ticket authentication for the web dynpro iviews, you must maintain the definition of the system running the Web Dynpro application and set logon method to "SAPLOG"
    2)Since you have customized login screen, you need to bypass this screen manually when you login from portal.
    Add parameter to the application while defining the iview.Give some constant value.
    Check value of this parameter in webdynpro and fire to next view.

  • How to find out who is logged into portal through webdynpro application

    hi,
    whenever anyone logs in through the portal and runs a webdynpro iview, the webdynpro application should be such that it gives the name of the user logged in.
    Eg, if i logiin and run the webdynpro iview, the application should display that I have logged in.
    how can this be done?
    its urgent.

    add the jar file com.sap.security.api.jar
    IWDClientUser wdUser = null;
    IUser user = null;
    IUserAccount[] acct = null;
      try
         wdUser = WDClientUser.getCurrentUser();
         user = wdUser.getSAPUser();
         if (user!=null)
              acct = user.getUserAccounts();
              if (acct[0] != null)
                   strUserID = acct[0].getLogonUid();
                   wdContext.currentContextElement().setCa_UserId(strUserID);
              else
                   strUserID = "acc is null";
         else
              strUserID = "user is null";

  • SAP Enterprise Portals and Webdynpro application development environment

    Hi,
    Is there a way to set up a Development environment for SAP Enterprise Portals and Webdynpro on a laptop/desktop without SAP-GUI.
    Any help/guidance will be truly appreciated.
    Thanks,
    Prasanna

    hi,
    can you look at this
    [http://www.sap-hefte.de/download/dateien/1000/075_leseprobe.pdf]
    [http://www.octavia.de/fileadmin/octavia_files/content_bilder/Hauptnavigation/SAP_NetWeaver/WebDynpro/Tutorial_1.pdf]
    [http://www.sercononline.com/suntechnovate07/images/images/13%20-%20Rajiv%20Jain%20-%20SAP.pdf]
    Regards,
    Muralidhar

  • How to set portal authorization in ABAP Webdynpro application

    Hi All,
    Do you have an idea how to set the visibility for Group UI element based on the Portal user authorization in ABAP Webdynpro , for example if the portal user A(or group A), logins into the portal on click of the ABAP Webdynpro IView then we need to set  invisible (hide) the Group UI element  in webdynpro ABAP Application.
    Do you have any sample code on the same to handle the portal authorization in Webdynpro ABAP?? , please let me know if couldnu2019t understand this requirement or my explanation
    Thanks,
    PortalUser100

    Hi Kris,
    Thanks for your reply.
    Like however we passed the UserID, can we pass Group ID also to the ABAP Webdynpro application??
    Can u get me other things, how to copy of the existing component and i want to give the new name for the component and there i need to modify, i dont want to disturb original component  before copy...let me know the procedure for the same??
    Regards,
    PortalUser100

  • Webdynpro application time out in portal

    Hi all,
    I am trying to perform a batch of process in my webdynpro application.
    I selected 100 records in my view  which are displayed in a table ,for updateding..
    Upon selction of these 100 recoreds and on click of submit it is giving portal
    time out after a few seconds..
    where the problem can be??Is it in front view(webdynpro code means giving the selected records as input to the function module) or at the backend(mesns at BAPI's)
    Can anyone please tell me where problem might be  ??
    Regards
    Padma N

    Hi all,
    I am trying to perform a batch of process in my webdynpro application.
    I selected 100 records in my view  which are displayed in a table ,for updateding..
    Upon selction of these 100 recoreds and on click of submit it is giving portal
    time out after a few seconds..
    where the problem can be??Is it in front view(webdynpro code means giving the selected records as input to the function module) or at the backend(mesns at BAPI's)
    Can anyone please tell me where problem might be  ??
    Regards
    Padma N

  • Webdynpro Application Page in portal in CE7.1

    Hi,
        I have created a webdynpro application with property u201Csap.canBeSplitInIviewsu201D set to u201Ctrueu201D.I have deployed the application  and in Portal Content I have created a webdynpro page out of this application.So now my webdynpro page is having two iviews.
    Now I want to know the answers for below questions
    1)Can we  embed a url iview it in to the above created Webdynpro Application page in portal.I tried for it but couldnu2019t do so.
    2)So,as an alternative I created a Page,added the above created Webdynpro Application page and a url iview to that page.Now that url iview is displayed along with the Webdynpro iview.Bot the problem is url iview is getting refreshed when ever I click a button in the webdynbpro application view .It even refreshes when I select a table row in webdynpro.
    Please let me know if we can prevent url iview to refresh.
    Regards,
    Sudhir

    Hi,
    >1)Can we embed a url iview it in to the above created Webdynpro Application page in portal.I tried for it but couldnu2019t do so.
    No, I don't think so.
    >Please let me know if we can prevent url iview to refresh.
    For the parent page which hosts both the WD and the URL iview, set the property Isolation Method to URL. You can find this property under the property category Load.
    Regards,
    Satyajit.

  • Issues while running a WebDynpro Application through portal.

    Hi,
    I am trying to execute a webdynpro application through portal and facing some issues. I hope to get a significant help from the experts:
    > Initially, a report is called from the portal which in turns calls the WebDynpro Application.
    > After this, I am again trigerring "FIRE" event in order to go back to report.
    At this step, portal shows a message "The Page Can Not be Displayed". Browser link field contains the event name which I am passing to the Fire Event.
    Can anybody let me know the root cause for this issue? Below is the piece of code that I am using for navigating from Webdynpro to Report.
            l_sapgui_manager->fire(
              EXPORTING
                name = 'INDI'
            parameters = lt_parameters ).
    lt_parameters contains some field values which are required in the report.
    Thanks,
    Ashish

    No Solution

  • Closing a webdynpro application, should call a portal page

    Hi All,
    I have a requirement in which, after a webdynpro application is closed in portal, the portal should show the workset content from which the webdynpro application is triggered.
    For example,
    Wedynpro application Created is  ZWDA1.
    Two iviews are created in portal which refers to the webdynpro application ZWDA1, the portal Iview names are ZPORTAL_IVIEW1, ZPORTAL_IVIEW2.
    Two worksets ZWORKSET1 & ZWORKSET2 are created in portal which refers to Iview ZPORTAL_IVEW1 and ZPORTAL_IVEW2 respectively.
    Two roles ZROLE1 & ZROLES2 are created in portal which refers to workset ZWORKSET1 & ZWORKSET2 resepectively. These two roles are assigned to users ZUSER1 and ZUSER2, when these user logs into portal they will see the content of the  workset ZWORKSET1 & ZWORKSET2 respectively.
    Assuming ZUSER1 and ZUSER2 invokes the portal ivew ZPORTAL_IVEW1 & ZPORTAL_IVEW2, the underlying webdynpro application called is same. So in the webdynpro application only I need to write the code to close the application and call the workset ZWORKSET1 for ZUSER1 and workset ZWORKSET2 FOR ZUSER2. This differentiation I am not able to indentify in webdynpro application, I thought of using relative navigation.
    Any suggestion to achieve this functionality is greatly appreciatable
    Regards,
    H.K.Hayath Basha.

    Just closing the message

  • How to create an iview for ABAP Webdynpro Application in Portal?

    HI,
    I am Webdynpro Java webdynpro developer.
    I want to create an IVIEW for an ABAP Webdynpro application in the enterprise portal.

    The process is almost exactly the same as creating a Web Dynpro Java iView. You simply chose the ABAP instead of the Java radio button when you reach that step in the Web Dynpro iView creation process.  There is a video on the topic here:
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/media/uuid/eae111e7-0b01-0010-6cb7-e0dd2bfbfa7a
    You can also read about the process in the online help:
    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/1d/e4a34273f60b31e10000000a1550b0/frameset.htm

  • How to create the IView and Roles ,User for WebdynPro Application in Portal

    Hi,
           I have one simple webdynpro application. i want to create the user,Role and Iview for my webdynpro application in the Portal . after that i need to assign the roles to the user and i want to see the different output for each user depends upon the Role.
      Can anyone give me Tutorial page(PDF) or Guide me How to do?
             Thanks in Advance
    Regards
    Ramkumar

    Hello Ramkumar,
    following please find the link to available documentation in SAP Help Portal:
    http://help.sap.com/saphelp_nw70/helpdata/en/42/fa080514793ee6e10000000a1553f7/frameset.htm.
    Regards,
    SAP AG
    Gesine Raith

  • Problem when trying to login webdynpro application

    Hello,
    we developed a WebDynpro application using basic authentification.
    It works fine. If the user logs in, everything is ok.
    But there is a strange problem if the user presses the ENTER button twice during the login process after entering the password.
    In that case the user gets a stack trace with the following content:
    Caused by: com.sap.tc.webdynpro.services.sal.deployment.api.WDDeploymentException: Failed to get deployable object part for application 'j_security_check' of deployable object 'local/SCOPrototyp'.
         at com.sap.tc.webdynpro.serverimpl.core.deployment.AbstractDeployableObject.getApplication(AbstractDeployableObject.java:91)
         at com.sap.tc.webdynpro.clientserver.task.Task.getApplicationDeployableObjectPart(Task.java:383)
         ... 43 more
    I have found out that the 'j_security_check' is the application which is normally called to change a password. After refreshing the user is logged in.
    Any idea?
    Thanks,
    Michael

    Have you tried to put the Main-Class under a package (e.g. move LaunchSimulator to org.jyothi.sunke.LaunchSimulator or something)? I'm not sure but it's possible that Main-Class can't be located in the "root package", because the JAR launcher can't address it.
    Always put your stuff in a package, otherwise it can't be addressed by other packaged classes.
    - Erik

  • Need to open an ABAP WebDynpro application from Portal UWL work item

    Hi All
    I need some suggessions on how to navigate to an ABAP WebDynpo application iview from a mail(Work Item) in portal UWL.
    Requirement in detail:
    Agreements will be created from portal( Agreement Creation Application is developed in ABAP webDynpro and iview has been created with in the portal for this WD application). as and when the agreement is created a mail (ECC Workitem) should trigger to the approver, who has access to portal and check the mail(Work Item) from the portal UWL.
    The mail body should consist the link to the Agreement created in portal ( Link to navigate to the Agreement Creation ivew).
    So, the main requirement is user should navigate to the Agreement creation iview when he open the mail from UWL.
    Mail can be sent from ECC by using ABAP Function modules or by creating a workflow
    Please advice me on how can we achieve this requirement.
    Thanks & regards
    Vijay Bedamsetty
    Edited by: VIJAY BEDAMSETTY on Apr 19, 2011 5:42 PM

    Hi,
    You can call the iView directly by using NavigationTarget..
    http://myServer:50000/irj/portal?
    NavigationTarget=ROLES://portal_content/myFolder/myRole/myIview
    Plz note that the iView you are calling should be part of a Role.
    And the PCD location of the iView in the Role must be given for Navigation Target.
    Check this URL
    http://help.sap.com/saphelp_nw04s/helpdata/en/43/014421d21d6fade10000000a11466f/frameset.htm
    Thanks
    Prashant

Maybe you are looking for