Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

not able to add new properties in portalapp.xml

Hi All,

I want to access IUserMapping in my WD application.

I got the hint for doing this from sdn. After following the steps I came across a PortalRuntime Error.

sdn forums suggested that I need to make an entry for sharing references in my portalapp.xml file but whenever I make those changes and deploy the application I find that those changes are removed from portalapp.xml

Following is the code I am using to get the data:

String systemalias = "EC1";

IWDClientUser user = WDClientUser.getLoggedInClientUser();

IUser iuser = user.getSAPUser();

IUserMappingService userMappingService = (IUserMappingService)PortalRuntime.getRuntimeResources().getService(IUserMappingService.KEY);

// get current user's credentials

IUserMappingData mappingData = userMappingService.getMappingData (systemalias, iuser);

Map credentials = new HashMap ();

try {

mappingData.enrich (credentials);

String mappedPassword = credentials.get("UMAP_KEY_PASSWORD").toString();

String mappedUserId = credentials.get("UMAP_KEY_USER").toString();




catch(Exception e)




Following is the property that I need to add in my portalapp.xml file

<property name="PrivateSharingReference" value=","/>

Any expert comments on this.



Not what you were looking for? View more on this topic or Ask a question