cancel
Showing results for 
Search instead for 
Did you mean: 

Reading text file from KM

0 Kudos

Hi Expert,

I want to read a text file placed in KM Document Folder in portal through web dynpro java application.


Kindly help me in this to solve my problem , i am referring many blogs () but unable to do that .






Thanks And Regards,

Anmol Gupta

Accepted Solutions (0)

Answers (2)

Answers (2)

0 Kudos

Dear expert,

Please help me in this as soon as possible.

Former Member
0 Kudos

Hi,

You need to add a reference in your Project to Library Jar File com.sap.security of suitable version depending on your Portal Version.

Go to your NWDS installation path like below, you can fine the find the com.sap.security folder

C:\Program Files\SAP\IDE\IDE70\eclipse\plugins.

Zip the folder as com.sap.security.jar and include it in your Project Build Path.

In NWDS, Your Project-->Properties-->Java Build Path-->Libraries-->Add External Jars-->Give the reference to jar file created.

junwu
Active Contributor
0 Kudos

what's ur problem?

0 Kudos

hi jun,

i am using below mention code to get the file text but it is giving me error(create class).

i am unable to get the respective  jar file's that require by this code .

om.sapportals.portal.security.usermanagement.IUser ep5User =

  WPUMFactory.getUserFactory().getEP5User(sapUser);

//Getting the Resource.........

  IResourceContext resourseContext = new ResourceContext(ep5User);

  IResourceFactory resourseFactory = ResourceFactory.getInstance();

//path to the KM Folder ("/documents/data/data.txt")

  RID rid= RID.getRID(repository_km);

   com.sapportals.wcm.repository.IResource resource =

  resourseFactory.getResource(rid, resourseContext);

0 Kudos

Dear Experts,

Kindly reply  as soon as possible it is urgent