cancel
Showing results for 
Search instead for 
Did you mean: 

username and "password" through webdynpro to access the backend system

Former Member
0 Kudos

Dear all,

I have created system landscape to access the backend system in portal.

How do i get the password in webdynpro, so that i can pass username and credentials to the backend system.

With Regards,

Laksh.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi

goto system administration> system configuration> open the created system for editing.

goto properties-->select WAS

enter the WAS Hostname , port number, and WAS Protocol --https/http

and save

regards

ambica

null

Former Member
0 Kudos

Hi,

Problem has been solved.

 try
					 {
						IWDClientUser wdUser = null;
						HashMap map1 = null;
						try 
						{
							wdUser = WDClientUser.getCurrentUser();
						} 
						catch(WDUMException e1) 
						{
						// TODO Auto-generated catch block
						e1.printStackTrace();
						}
						IUser user = wdUser.getSAPUser();
						user = wdUser.getSAPUser();
						logonID = user.getUniqueName();
						ArrayList systemLandscapes = UMFactory.getSystemLandscapeWrappers();
						ISystemLandscapeWrapper systemLandscape =(ISystemLandscapeWrapper) systemLandscapes.get(0);
						ISystemLandscapeObject  systemLandscapeObject =systemLandscape.getSystemByAlias("XYZ");
						IUserMapping mappings = UMFactory.getUserMapping();
						// boolean test = mappings.existsMappingData(systemLandscapeObject, user);
						IUserMappingData mappingData = mappings.getUserMappingData(systemLandscapeObject, user); 
						mappingData.isMappingDirect();
						map1 = new HashMap (); 
						 try 
						 { 
							mappingData.enrich (map1); 
						 } 
						 catch (NoLogonDataAvailableException nldae)   
					 	 {   
						 }
						 logonID = (String)map1.get( "user" );
						 passWord = (String)map1.get ("mappedpassword"); 
					 }
					 catch(Exception e)
					 {
					 }
					 

With regards,

Laksh.

Message was edited by:

Laksh

Answers (4)

Answers (4)

Former Member
0 Kudos

we could able to retrieve the password from the backend : by using IUserMapping and IUserMappingData...

Ronib
Participant
0 Kudos

do you run the application from url adrress or as a portal iview?

in web dynpro iview there is a system parameter : you can choose the local system or every other system that you created and tested

check this link

http://help.sap.com/saphelp_nw04/helpdata/en/77/931440a1c32402e10000000a1550b0/frameset.htm

Former Member
0 Kudos

Hi Laksh

Have set the properties of WAS for your created system?

regards

ambica

Former Member
0 Kudos

hi ambica,

i have not set any properties of WAS for our created system.what i need to do for that?

With regards,

Laksh.

Former Member
0 Kudos

Dear all,

for further information..i receive the following error while running the WD application.

com.sap.tc.webdynpro.progmodel.controller.MessageManager$AbortMessageManagerException: System alias 'pcd:portal_content/other_vendors/every_user/X/y/X.Y.mysystem' does not point to a valid PCD location and seems to be either corrupted or simply missing.

at com.sap.tc.webdynpro.progmodel.controller.MessageManager.raiseException(MessageManager.java:430)

at com.first.app.FirstAppView.wdDoInit(FirstAppView.java:160)

at com.first.app.wdp.InternalFirstAppView.wdDoInit(InternalFirstAppView.java:169)

With regards,

Laksh.