Skip to Content
avatar image
Former Member

2 General Questions concerning Web Dynpros

Hi all,

While reading the Web Dynpro documentation I came up with two questions:

1) Web Dynpros are supposed to be incorporated into the portal (starting from EP 6.0 anyway), probably in the form of a web-dynpro-based-iview (just like BSP based iview or any other). Is there a way to use the user management services inside the dynpros (read user data, store personalization data and execute the Model through user mapping to the backend system).

2) Can Web dynpros communicate with each other (again, assuming two of them are incorporated in the same portal page)?

Please enlighten me 😊

Amit

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    Nov 28, 2003 at 01:15 PM

    Hello Amit,

    It is a pleasure for me to enlighten you 😊

    1) Web Dynpro applications are first class citizens within the Enterprise Portal. You are right, the application is based on Web Dynpro and you then include it (using the Web Dynpro Wizard) into the portal. You can make use of the user management as well. Portal and Web Dynpro Runtime are using the same UME of the J2EE engine.

    To force user authentication (a logged in user) or to force user logoff, the class WDClientUser provides the methods forceLoggedInClientUser , getLoggedInClientUser and forceLogoffClient¬User. There is also a ?comfort? method checkAuthentication that reads the configuration of the current Web Dynpro application and checks if user authentication is required. If so, it forces a user login.

    To access the current client user (the client user attached to the current session), the method

    getCurrent¬User of the class WDClientUser can be used. Example:

    // get the currently logged in user

    IWDClientUser user = WDClientUser.getCurrentUser();

    // check whether the current user is authenticated or anonymous

    if ( user.isAnonymous() ) {

    // anonymous user

    } else {

    // authenticated user

    }

    User mapping is possible too:

    Web Dynpro App:

    - set Authentication on "true" in Web Dynpro application (application properties - > edit -> new)

    Portal:

    As Administrator:

    - Go to System Administration, System Configuration, System

    - Choose the Portal Content

    - edit object

    - go to Catogory - User Management

    - Logon Method -> UIDPW

    - User Mapping type -> admin, user

    As User:

    - Personalize

    - User Mapping

    - Choose the system (deployment server of the Web Dynpro application)

    2) Web Dynpro apps are able to communicate with each other if they are on the same portal page.

    Please check out the following links. Here you will find:

    - Documentation: How to program portal eventing

    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sapportals.km.docs/documents/a1-8-4/how to program portal eventing

    - Documentation: How to integrate a Web Dynpro app into EP 6.0

    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sapportals.km.docs/documents/a1-8-4/how to integrate a web dynpro application into sap ep 6.0

    Hope that helps!

    Best regards, Karin

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Christopher Cedro

      Chris,

      Two requirements you would need:

      - using the adaptive RFC

      - EP 6.0, SP 2+ (within Personalization the User Mapping must appear within the left frame)

      Except from Marcos second point (2. User calls an iview containing a Webdynproapplication - no authentication) we demonstrate exactly this process - but the Web Dynpro app is authenticated!

      Do you use the right Portal SP and adaptive RFC?

      Best regards, Karin