Skip to Content

Applies to:  NW 2004 SE SP9 and above, developed and tested on NW2004SSP18.

Summary:  Multiple users are mapped to a portal system using UMAP API.

Preconditions

The following are the preconditions that we need.

  • Basic Concepts of Java programming.
  • An overview of Web Dynpro Programming.

Before Deploying our Web Dynpro Application we should check whether the configuration settings for the J2EE server and for the SDM server are entered correctly in the Netweaver Developer Studio or not. To check the server settings, we have to choose the menu path Window => Preferences=> SAP J2EE Engine

UMAP API

Provides access to system landscape providers plugged into UME for management of User Mapping data. Please follow the link for more details UMAP API .

Now as we are familiar with the Interfaces and classes which are to be used, let us discuss about the development setup.

The Development Setup

The first thing which we need to do is to finalize the development setup. Since we are developing a Web Dynpro application. We need to create the Development Components (DC) for Web Dynpro application.               

Step 1: Create a New WebDynpro Application Project

For creating a new WebDynpro Application project:

  1. 1. Start NetWeaver Developer Studio
  2. 2. Choose File → New → Development Component Project→ Local Development→ My Components→ Next→ Provide enteries (Vendor, Name, Domain: Enterprise Portal, DC Type: Web Dynpro ) → Next→ Finish.

Development Components

For this scenario, I have created two DCs one as the portal application project and the other for including external libraries.

Before proceeding, I would like to say you can create External Library DC same as step 1 only thing which will differ is the value of DC type earlier it was Web Dynpro now choose DC type to “External Library”.

Untitled1.png

Create Web Dynpro Component, Views, Window.

The structure of DC will look like

Untitled1.png

UserMappingAppView: In this view there is a EVS which is pre populated with portal systems a TextEdit for entering comma separated user names which are to be mapped and a InputField for mapped password. Now suppose,

  • A user choose system1 from EVS and entered User1, User2 in Username and some password and clicks the  submit button then User1 and User2 are mapped to system1.

Layout and Outline of UserMappingAppView:

Untitled1.png

Create Simple Type for EVS

For creating simple types follow Saptechnical Document.

Untitled1.png


Structure of Context

Untitled1.png

Browse the type property of System context value attribute and choose the Simple Type created.

Untitled1.png

Code in wdDoInit() of UserMappingAppView for populating the EVS with portal systems.

Untitled1.png

Code under onActionUserMapping () which is assign to “Submit” button of UserMappingAppView.


Untitled111.png

Create WebDynpro application, Build and deploy the DC and then run.

Output Screen will look like:

Untitled1.png

Related Contents

http://help.sap.com

http://wiki.sdn.sap.com

To report this post you need to login first.

Be the first to leave a comment

You must be Logged on to comment or reply to a post.

Leave a Reply