on 01-16-2007 11:28 AM
Hi ,
Iwant to write an java application which will take the userid and get the
last sucessful login date.
I used the sap ume apis for this purpose
There is an API getLastSuccessfulLogonDate() in the class IUserAccount.
But it says
Deprecated.
get last sucessful logon date NOTE: This attribute is not automatically updated during login.
link :https://help.sap.com/javadocs/NW04/current/um/index.html
What does "attribute not updated automaticlaly during login implies".
Is there any other method from where i can get this information
Regards
Manoj
Few things to mention.
I am using SAP Netweaver 2004s
When i run the code
thisUser = userFact.getUser(userid);
IUserAccount userAccts[] = thisUser.getUserAccounts();
System.err.println(" Iterating in for loop ");
for(int i=0; i<userAccts.length; i++)
{
d= userAccts<i>.getLastSuccessfulLogonDate();
System.err.println(" got date ");
result = d.toGMTString();
}
I get the following exception
Login date java.lang.NullPointerException
at SecurityLogic.getLastSuccessfulLogonDate(Unknown Source)
at SecurityRemoteObjectImpl0.getLastSuccessfulLogonDate(SecurityRemoteOb
jectImpl0.java:125)
at SecurityRemoteObjectImpl0p4_Skel.dispatch(SecurityRemoteObjectImpl0p4
_Skel.java:186)
at com.sap.engine.services.rmi_p4.DispatchImpl._runInternal(DispatchImpl
.java:304)
at com.sap.engine.services.rmi_p4.DispatchImpl._run(DispatchImpl.java:19
3)
at com.sap.engine.services.rmi_p4.server.P4SessionProcessor.request(P4Se
ssionProcessor.java:122)
at com.sap.engine.core.service630.context.cluster.session.ApplicationSes
sionMessageListener.process(ApplicationSessionMessageListener.java:33)
at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRu
nner.java:41)
at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:3
7)
at java.security.AccessController.doPrivileged(Native Method)
at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.ja
va:100)
at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:1
70)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.