Hi,
I am trying to use KM API's to read/upload files with KM repository.
Here is the piece of code which throws the problem.
IWDClientUser wdClientUser = WDClientUser.getCurrentUser();
com.sap.security.api.IUser sapUser = wdClientUser.getSAPUser();
IUser epUser = WPUMFactory.getUserFactory().getEP5User(sapUser);
I have tried printing all the returns and till " sapUser" its fine and returns value as expected.
However the line WPUMFactory.getUserFactory().getEP5User(sapUser) throws null pointer exception.
I am using SAP NetWeaver 7.3.
I have also checked and found in WebDynpro reference > Sharing reference -- > PORTAL:sap.com/com.sap.km.application is added.
Also it seems getEP5User is deperecated in 7.3. What is the latest code to create the ResourceContext ?
Could some one help me with this.
Thanks.
Regards,
Milton.