User Authentication in Web Dynpro Java
Hi guys,
I was just wondering how user authentication can be achieved in WDJ? In Web Dynpro ABAP this comes for free when you launch an application. However, in WDJ we can deploy and call the URL without any authentication at all. Is there a way to configure this or do we really have to code this? Thanks! Generous points will be awarded!
Hi Alex,
check this links,
Re: User Authentication in Web Dynpro Application
Authentication of Web Dynpro
Using Web Dynpro authentication for a Web Service call
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/dd48d990-0201-0010-92a3-c3ed7e9fd244
http://help.sap.com/saphelp_nw04s/helpdata/en/04/ee8b8b0d23b746854897adc5611c1d/frameset.htm
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/8304e990-0201-0010-ed8b-d978f1e67b1e
Regards,
vino
Similar Messages
-
Storing Current Logged on User Details in Web Dynpro Java
Hi Experts,
My GP Process containd 2 steps:
- Create Activity
- Evaluate and Approve
The user creates the Activity and the manager approves it.
I have to make sure the User Details are avaialble for the Manager to see.
How do i store the user details logged on.
I need the "Name", "Date" and "Time" of the user when he creates the Activity.
Can somebody guide me how to do it using Web Dynpro java.????
Thanks a lot.
Cheers
Gaurav RaghavHi Gaurav,
Make use of background callable object which retrieves the logged in user details. If you are using WD and you need the logged in user infomation use the IWDClient . Code for getting this is there in sap help.
Thanks,Uma.A -
Application Authentication Similar to Web Dynpro JAVA
Hi,
I am developing a Web Dynpro ABAP application on the lines of existing Web Dynpro JAVA application.
In WDJ, application is authenticated and user needs to provide his intranet id/password to login to application. (with same user-name and password he logs into portal)
Now, my first question is how do I make my WDA application authenticated? (I can see that when application is called from URL, I need to enter my R/3 user-name and password)
And once I do that, how do I make sure that user is authenticated by his intranet ID and password?
Please help.
Thanks and regards,
Amey Mogare>And before that I would like to know how do I make WDA application authenticated?
Go to transaction SICF. There you will find a service node for all WDA, BSP, and Web Services in your system. At the level of each service node you can edit the authentication settings and choose the allowed authentication mechanism and the order in which they are interpreted. See this online help link for the listing of Logon Procedures supported by the AS-ABAP:
http://help.sap.com/saphelp_nw70ehp1/helpdata/en/d3/2bb3405226bc4ee10000000a1550b0/frameset.htm
>I want to authenticate users with SAP Portal login credentials.
That isn't one of the options from the AS-ABAP directly. If you want the Portal Login credentials, then you should have the user logon via the portal and run the Web Dynpro ABAP application as an iView within the portal. -
How to create a user in UME Database using web dynpro java custom application
Hi,
Can you please suggest me how to create a user in UME Database using web dynpro java custom application.
My Requirement is user can register his/her user id in SAP Portal 7.3 UME database.
Please suggest me.
Thanks and Regards,
AmitHi Amit,
Generated Documentation (Untitled)
This is what you're looking for, there's no real cook-book -- though Amey mentioned there might be some material on SDN, perhaps some tutorials.
You should be looking into com.sap.security.api.IUserFactory, methods newUser(String) which gives you and IUserMaint and commitUser(IUserMaint, IUserAccount) -- IUserAccount can be obtained using com.sap.security.api.IUserAccountFactory, method newUserAccount(String)
Hope it helps,
D. -
IView Personalization (Web Dynpro Java) for Anonymous User
Hello All,
Is it possible for anonymous user to see iView personalization (Web Dynpro Java) when personalized by an administrator? What I did was create new role and iView making available to anonymous user. This work fine meaning I can view iView using URL http://<servername>:<port>/irj/portal/anonymous . But the personalization I made to iView using administrator mode launching iView in preview mode and then using personalization dialog by choosing Ctrl and secondary mouse button to personalize is not showing. Iu2019m currently on EP7 SP15 and using iView type Web Dynpro Java for the development component sap.com/tcsecumewdenduser application name LogonHelpApp.
Any help is very much appreciated.
Many Thanks,
GaryHello Michael,
Yes, the Web Dynpro for Java Personalization is working perfect for non-anonymous users. The issue is when I view same iView using anonymous URL http://<servername>:<port>/irj/portal/anonymous the personalization is not showing just defaults back to the original Web Dynpro Java application settings. The iView that I created and personalized is the new Logon Help Dynpro Java application (LogonHelpApp). Is there some permissions that restricts anonymous user to view personalization?
Koti Reddy Iu2019m using the Web Dynpro for Java Administrator Personalization. Here is the documentation [http://help.sap.com/saphelp_nw70/helpdata/en/42/ed3ce7f8593eebe10000000a1553f7/frameset.htm |http://help.sap.com/saphelp_nw70/helpdata/en/42/ed3ce7f8593eebe10000000a1553f7/frameset.htm ]
Thank You for your help,
Gary -
How to configure SSO for web dynpro ABAP (not web dynpro Java)
Hi Experts,
I am testing SSO in IDES for web dynpro ABAP (Not for web dynpro Java / not for portal). When I am entering url of web dynpro application in web browser like internet explorer, then it should ask for user id and password first time, after login whenever user would access that url, it must not ask for user ID and password (url would be access web browser in mobile). For this I select to configure single sign-on for web dynpro ABAP. I have done below works:
1). I have created a web dynpro application having url: http://susws076.sap.swk:<port>/sap/bc/webdynpro/sap/zadb_hello_world2
2). I run TCode SICF and access service node to "Zadb_hello_world2". Double click on it, hit change. pressed "logon data" tab, select "Alternative logon
procedure"
Then deleted all logon procedure other than "SSO Authentication" and saved.
3). Go to "STRUST" and create certificate, choosed "Environment==> Logon Ticket" fill the required parameters and execute. It is OK (no red traffic
signal).
4). Execute TCode "RZ10" to change profile parameter, insert new parameter (indicated by red arrow)
After all this settings I opened a browser enter above URL and hit enter but there is an error
There is no login page. It directly showed this error page. No cookies is saving.
Can anyone tell me what all the settings/configuration other than this I have to do. And is there any wrong setting done by me?
How to set the for single sign-on?
Thanks in Advance
Regards
PiyushHi Piyush,
Pls refer below links,
Single Sign On with ABAP WebDynpro
http://help.sap.com/saphelp_nw70ehp2/helpdata/en/5e/6c85c3edf942f39349a1e337434d29/content.htm
Regards
K.N -
Maintaining security in web dynpro java applications
hi guys
please if any one have any idea of how to and what to do for maintaining the applcation developed in web dynpro java secure( how to mantain the security product standard).any help regarding this will b highely Appreciated.
thanks & Regards
sudheer varma
Edited by: Sudeer Kumar Varma Ganapathiraju on Sep 10, 2008 8:25 AMHi,
for maintaing scurity using web dynpro for abap :[http://help.sap.com/saphelp_nw04s/helpdata/en/af/0489ce55002f44a8c927371bedf719/content.htm]
security standards of webdynpro for java:[http://help.sap.com/saphelp_nw04/helpdata/en/15/0d4f21c17c8044af4868130e9fea07/frameset.htm]
[http://www.securitytracker.com/alerts/2008/May/1020097.html]
Try out teh link below which gives you an overview of Security Guides for the SAP NetWeaver Scenarios.
[http://help.sap.com/saphelp_nw70/helpdata/EN/7e/bc2b3d2c99431da4dd28b0fbde255a/frameset.htm]
you can use authentication for this...it will force users to login first before they can access to Web dynpro applicaation..
go through:[https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/00c80a68-ac51-2b10-efa6-c3ea8f984a6a]
hpe it hlps u..
Regards
Khushboo -
How to set a variable in portal session using web dynpro java.
Hi,
I have created a web dynpro application, which is running inside portal. I have created a role called "R1". Inside role R1, i have created 3 workset W1, W2 and W3. and inside each workset i have some pages and iviews.
My requirement is when user logins to the portal , and when he clicks on role R1 for the first time, a login page should come (so that we can do revalidation), and when he enters his password again in that login page , then only workset W1, W2 and W3 should be visible/accessible to him and after successful revalidation, if he clicks again on role R1, in that particular portal session, than that login page should not come.
for this, i thought i will set a variable in portal session, whenever user successfully revalidated himself, and if after successful revalidation he clicks again on role R1, i will check in doinit method of webdynpro whether variable is set or not (which i already set on successful revalidation), and if it is set then i will do Donavigation else i will present login page to the user.
Can anyone tells me how to set a variable in portal session using web dynpro java.
thanks
ArushHi,
Try this:
WDScopeUtil.put(WDScopeType.CLIENTSESSION_SCOPE, key, value)
WDScopeUtil.get(WDScopeType.CLIENTSESSION_SCOPE, key)
Ex:
WDScopeUtil.put(WDScopeType.CLIENTSESSION_SCOPE,"Key1","Value1");
String value1=WDScopeUtil.get(WDScopeType.CLIENTSESSION_SCOPE,"Key1").toString();
/people/william.cui/blog/2007/02/12/sharing-session-context-between-parent-and-external-windows-running-on-same-host
Regards,
Charan -
Reading contents of uploaded excel file in web dynpro java
Hi All.
I am aware how to provide facility to upload files in web dynpro java. But my requirement is that on uploading a particular file (for eg. an excel file having 10 columns), I need to read the contents of that file and store it in a table in R/3.Can anyone suggest a way how I can read the contents of the uploaded file?
Thanks and Regards,
Saurabh.Hi.
I am having the following requirement : I have a FileUpload UI element where user clicks Browse button, selects a file from the local system and presses a Upload button. Upon pressing Upload, the name of the selected file and the contents of the file should be shown.
In the View context, I have two value attributes: FileName of type String and FileResource of type binary.
This is the code that I have in the Upload button action handler :
public void onActionUpload(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
//@@begin onActionUpload(ServerEvent)
IWDAttributeInfo attributeInfo = wdContext.getNodeInfo().getAttribute(
IPrivateReadExcelView.IContextElement.FILE_RESOURCE);
IWDModifiableBinaryType binaryType = (IWDModifiableBinaryType)attributeInfo.
getModifiableSimpleType();
IPrivateReadExcelView.IContextElement element = wdContext.createContextElement();
String fname = binaryType.getFileName();
wdComponentAPI.getMessageManager().reportSuccess("File selected - "+fname); //Statement 1
try {
wdComponentAPI.getMessageManager().reportSuccess("Successful"); // Statement 2
InputStream in = new FileInputStream(fname);
HSSFWorkbook wb = new HSSFWorkbook(in);
wdComponentAPI.getMessageManager().reportSuccess("Successful"); //Statement 3
int sheetsNo = wb.getNumberOfSheets();
for (int i=0;i<sheetsNo;i++) {
HSSFSheet sheet = wb.getSheetAt(i);
Iterator rowsNo = sheet.rowIterator();
while(rowsNo.hasNext()) {
HSSFRow rows = (HSSFRow)rowsNo.next();
Iterator colsNo = rows.cellIterator();
while(colsNo.hasNext()) {
HSSFCell cell = (HSSFCell)colsNo.next();
wdComponentAPI.getMessageManager().reportSuccess("File uploaded" +
"successfully");
if(cell.getCellType()==1) {
wdComponentAPI.getMessageManager().reportSuccess("00000"+
cell.getStringCellValue());
else if(cell.getCellType()==0) {
String str=""+cell.getNumericCellValue();
wdComponentAPI.getMessageManager().reportSuccess("11111"+str);
catch(Exception e) { wdComponentAPI.getMessageManager().raisePendingException();
//@@end
On pressing Upload button, name of selected file is being shown(Statement 1). I am also getting Statement 2 in the output. However I am not getting Statement 3 onwards.
Where am I going wrong? Can anyone shed some light on this? -
Deploying problem of web dynpro java application
Hi,
I have a web dynpro java application with no problem about deploying.
I copied this application with another name.
I tryed new application to deploy but sdm aborted with error.
Error
19.Tem.2011 10:22:25 /userOut/deploy (com.sap.ide.eclipse.sdm.threading.DeployThreadManager) [Thread[Deploy Thread,5,main]] ERROR:
[001]Deployment aborted
Settings
SDM host : vserver0202
SDM port : 52018
URL to deploy : file:/C:/Users/CEMIL~1.BOZ/AppData/Local/Temp/temp27456HF_PERS_RAPOR_BUTCE.ear
Result
=> deployment aborted : file:/C:/Users/CEMIL~1.BOZ/AppData/Local/Temp/temp27456HF_PERS_RAPOR_BUTCE.ear
Aborted: development component 'HF_PERS_RAPOR_BUTCE'/'local'/'LOKAL'/'0.2011.07.19.10.22.15'/'0':
Caught exception during application deployment from SAP J2EE Engine's deploy service:
java.rmi.RemoteException: Cannot deploy application local/HF_PERS_RAPOR_BUTCE.. Reason: Clusterwide exception: Failed to deploy application local/HF_PERS_RAPOR_BUTCE. Check causing exception for details (trace file). Hint: Are all referenced components deployed and available on the engine?; nested exception is: com.sap.engine.services.deploy.container.DeploymentException: Clusterwide exception: Failed to deploy application local/HF_PERS_RAPOR_BUTCE. Check causing exception for details (trace file). Hint: Are all referenced components deployed and available on the engine?
(message ID: com.sap.sdm.serverext.servertype.inqmy.extern.EngineApplOnlineDeployerImpl.performAction(DeploymentActionTypes).REMEXC)
Deployment exception : The deployment of at least one item abortedHi,
Since the exception says "Are all referenced components deployed and available on the engine?"
Check wether any DC is used as a used DC in the webdynpro component which you are deploying.
If any used DC is available try to deploy that DC in the server and then deploy ur webdynpro application.
If all reference DC's are avialable in server, still if you get this error try to rename the component and reload+rebuild the project and deploy it.
Hope this helps you...
Regards,
Saleem Mohammad. -
Web Dynpro Java : Failed to get deployable object part info for component
Currently we have a web dynpro java project which connects to the ABAP backend with Web Services. Everything seems fine, and when we transport to the production server via NWDI, we have the following error. Everytime we try to access the application , the error is occurred.
com.sap.tc.webdynpro.services.exceptions.WDRuntimeException: Failed to get deployable object part info for component com.sie.attachmentcomp.AttachmentComp
at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.getComponentDeploymentDescription(ClientComponent.java:784)
at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.createComponent(ClientComponent.java:934)
at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.createComponent(ClientComponent.java:177)
at com.sap.tc.webdynpro.progmodel.components.ComponentUsage.createComponentInternal(ComponentUsage.java:149)
at com.sap.tc.webdynpro.progmodel.components.ComponentUsage.createComponent(ComponentUsage.java:116)
It is working properly in our development , and testing environment. Only production has this error. And one weird thing is that this particular error occurred only sometimes to some user. For example; I could not access to the application with this error yesterday but my friend can access. Today, I can access in the morning but my friend cannot. For another friend , Yesterday he can access by using IE but not by Firefox. But today Firefox is fine but not with IE. It seems crazy.
For more information, in our J2EE engine for the production server, we have 3 server nodes (clusters). And we are not sure it is the source of the problem. Is there any solution , and any way to know from the application that we are on which server?
We also go and check from the Content Administrator in Web Dynpro Console. Under our project name, in the list of Components, sometimes we can see AttachmentComp but sometimes not.
Please help us as our project is about to go-live next week.
Thanks,
YuHi Meenge,
Please check below document for finding root cause for "Failed to start deployable object part info for <development component> and application <application name>"
http://help.sap.com/saphelp_nwce711core/helpdata/en/44/7716e1633a12d1e10000000a422035/frameset.htm
OR http://help.sap.com/saphelp_nw04/helpdata/EN/f4/1a1041a0f6f16fe10000000a1550b0/frameset.htm
Hope it helps
Regards
Arun -
Synchronization in Web Dynpro JAVA
Hi All,
I have a Web Dynpro JAVA application, for which an iView has been created and is assigned to a role. Now I have the below requirement,
If two users tries to access this application at the same time then the second user has to get a message stating that "A user is already accessing this application please try later". Basically the thread concept. Is it possible to achieve this in Web Dynpro JAVA. If yes please provide me some pointers on how to achieve this.
Thanks & Regards,
VishweshwaraHi Vishweshwara,
Create the Custum table with UserID fields.
Create the RFC with UserID fields as input parameters and result field as export parameter.
Write the logic in RFC if Custum table contains any value in UserID Field then return error message like " This application is already using by <UserID>"
else
stor the values UserID and LoginStatus(which you are sending from Webdynpr java app) in custom table and return success message.
Create webdynpro java component and create two iview called main and info view
import the RFC in webdynpro java app and do the binding from model to component controller and component controller to view controller of main.
Write the following code in wdDoInit() method of main view to get the login userid and sending that to RFC.
String userID = null;
IWDClientUser clientUser = WDClientUser.getCurrentUser();
IUser User = clientUser.getSAPUser();
if (User != null)
try
IUserAccount[] acct = User.getUserAccounts();
if(acct[0] != null)
userID = acct[0].getLogonUid();
wdContext.current<RFCNodeName>Element().setUserID(userID);
catch(UMException e)
//Raise some error msg according to your scenario.
//code for calling the RFC
wdThis.wdGet<ComponentControllerName>().execute();
String msg = wdContext.current<OutputNodeName>Element().getResult();
if(msg != null && msg.lenght() !=0)
if(msg.equalsIgnoreCase("This application is already using by <UserID>")
wdThis.wdFirPlug<PlugName>();// code for naivigate from main view to info view
the navigation between main view to info view needs to defined in navigation moduler area.
if you foolow the above specified way u can achive your requerment.
Revert back if you any quaries.
Thanks & Regards,
bhargava. -
KM Permissions in Web Dynpro Java
The error message: "Permission denied: uri=/kmfolder,
permission=node_create_child, user=XXXXXX"
Background:
We are using a KM Windows repository to connect KM to a Windows shared
folder over the network. Then we are using a Web Dynpro java
application to write a file to the KM Folder, which is then mapped to
that KM Windows repository.
Security on the Windows shared folder is wide open. Everyone=Full
Control, and Domain Users=Full control.
Problem:
When end users try to write the file to KM through the Web Dynpro app,
they get the error:
"Permission denied: uri=/kmfolder, permission=node_create_child,
user=XXXXXX"
But when we give them the Content Admin role, they are able to write
the file just fine. For this reason, I do not believe there is a
Windows permission issue.
We have tried:
-Explicitly setting User Mapping through User Admin -> Identity
Management
-Using a System Principle role with Full Access (Read, write, delete)
-Duplicating the Content Admin role, removing the pages & iViews (so
they can't view the Content Admin interface) and assigning this role to
our test users.
We have setup:
Network path
- ->jCIFS=True
- ->Network path=
<serv.host.com>\<sharename>
- ->User=<domain>\<ADMIN User>
KM Windows System Object
- ->User Mapping=admin,user
KM Windows System Landscape Definition
CM Repository Manager
- ->Prefix=/<sharename>
- ->Persistance Mode=fsdb
- ->Root directory=
<serv.host.com>\<sharename>\root
- ->Root directory for versions=
<serv.host.com>\<sharename>\versions
- ->Repository services=svc_acl
- ->Security Manager=W2kSecurityManager
- ->ACL Manager Cache=ca_rsrc_acl
Edited by: Peter Speers on Apr 9, 2009 11:41 PM/thread/1302951 [original link is broken]
-
Hello Experts,
I have a task to migrate the usage of UI element IWDtable to ALV Table in my application for some features like Sorting and filtering supported in ALV table.
I searched in Google and SDN about the ALV table, could not find any document about ALV table in Java (Found docs only with ABAP).
Is ALV table supported in Web dynpro java ? If yes, please pass me the URL for the basics of ALV table.
Thanks in Advance,
Regards,
HarishHello,
I understand from previous posts in this thread, that the ALV is not yet available for use within WebDynpro. Although it is already documented in the NWDS documentation under:
SAP NetWeaver CE Developer Studio Documentation > Developer's Guide > Developing and Composing Applications > Developing User Interfaces with Web Dynpro for Java > Reference > UI Element Guide > Tables and Lists > Displaying Lists with SAP List Viewer > Integrating SAP List Viewer into Applications
Since it is listed under "Developing User Interfaces with Web Dynpro for Java" I would assume that is should be possible. We are on NW CE 7.1 SP5.
I tried to get a test application running based on the documentation, but the documentation is too thin and I run into an Null-Pointer exception in a SAP class called:
at com.sap.ip.bi.alv.rendering.ALVGraphicsRenderer.init(ALVGraphicsRenderer.java:117)
If it is not yet released for use then I wonder why it is already part of the documentation ?
Take care
Ingo -
Web Service Consumption in Web Dynpro Java
Hi,
I'm using NetWeaver 2004s for Java. I have generated a Web Service out of a BAPI. I use that Web Service in a Web Dynpro Java Application as Model. Model generation works fine. But when I call the Web Service during execution of the corresponding Web Dynpro Application, I get the following Exception:
"java.rmi.RemoteException: Service call exception; nested exception is: java.lang.Exception: Call to returned http code 500 with unacceptable content type (text/html; charset=iso-8859-1). <HTML> <HEAD> <TITLE>Unknown Host</TITLE> </HEAD> <BODY BGCOLOR="white" FGCOLOR="black"> <H1>Unknown Host</H1> <HR> <FONT FACE="Helvetica,Arial"><B> Description: Unable to locate the server named "<EM>us0308.wdf.sap.corp</EM>" --- the server does not have a DNS entry. Perhaps there is a misspelling in the server name, or the server no longer exists. Double-check the name and try again. </B></FONT> <HR> </BODY>"
Testing the Web Service via transaction WSADMIN works fine. Can anybody give me an advise how to solve that problem?
Thanks in advance!
Regards,
FrankHad Exactly same problem with authorization issues on the server hosting the webservices.
Create a CPIC user Id on the server hosting the webservice. The user id should have authorization to execute the webservice.
Create a webservice destination in VA for the said webservice using the user id
1. Log on to the J2EE Engine as an administrator using the Visual Administrator.
2. Expand -> Server ->Services.
3. Select the Destinations service.
4. Under Destinations, select HTTP and choose New
You need to create two destinations one for matadata and another for execution data.
Use the destinations while creating the WS model in NWDS.
if you have issues importing the model using the URL, you can create the model using the WSDL and use the WS Destinations to execute it.
I am following the same approach after i had faced similar issues with webservices on PI7.1 and Portal 7.0
About the option to use _setusername, _set...., not all webservices come with the _set methods.
and moreover if you do that, it would be more of hardcoding in the code, which should be avoided.
Regards,
Nitin
Edited by: Nitin Mahajan on Jun 11, 2009 6:11 PM
Maybe you are looking for
-
Incoming Email in SharePoint 2013
Trevor, Side question - I need to configure incoming email; since I have multiple WFE Servers & APP Servers and based on Q&A at the link below (is the hotfix part of the December cumulative update 15.0.4551.1511 or I have to apply it separately)? htt
-
I cannot get Abobe Acrobat XI to recognize my Fujitsu S500 Scanner.
I cannot get Abobe Acrobat XI to recognize my Fujitsu S500 Scanner. The scanner is installed and it's in the device manager but Adobe Acrobat does not show it as a choice under scanner selections.
-
What web host would you recommend?
I've found out that my provider godaddy dosen't fully support flash. If anyone knows of ay low cost providers that don't disable anything Flash let me know.
-
I'm a bit confused with iCal. I've used it for a long time but this issue seems to be happening only recently. I add an event and choose my "calendar" for it to be on so it is color coded... sometimes the there is just a dot of color and other time
-
Create draft invoice document from a sales order
When i create an invoice document from a draft invoice document from a sales order, this invoce is linked to the order sales. Sorry for my english, i hope you can understand