on 08-17-2009 11:51 AM
HI Experts,
I have a new implementation that i need to upload and download the documents to portal using webdynrpo java with out
any connection with SAP backend.
As per my knowledge we can use KM to upload the document to portal using webdynpro but i need some documents
or PDFs regarding this implementation.
Can any one send me the documents related to this.
Thanks & Regards,
Suresh
Hi Suresh,
You can check this sampple example from SDN
Uploading and Downloading Files In Web Dynpro Java
/people/rohit.radhakrishnan/blog/2005/05/27/uploading-files-to-km-repository-using-webdynpro-apis
http://help.sap.com/saphelp_nw04/helpdata/en/43/85b27dc9af2679e10000000a1553f7/content.htm
Uploading and Downloading Files In Web Dynpro Tables
Some more links regarding Uploading and DownLoading Files
Hope this helps you....
Regards,
Saleem
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Suresh,
You can create the folder dynamically using webdynpro for java.
You can create the parent folder as empdoc manually in KM documents folder.
The subfolders emp1,emp2 and emp3 can be created dynamically based on the emp id
Create a folder dynamically based on empid
String empid = wdContext.currentContextElement().getEmpId();
IUser epUser = (IUser)request.getUser().getUser();
ResourceContext ctx = new ResourceContext(epUser);
String repository = "/documents/empdoc";
RID rid=RID.getRID(repository);
ICollection collectiona =(ICollection) (ResourceFactory.getInstance().getResource(rid, ctx));
collectiona.createCollection(u201Cempu201D+empid,null);
Revert back if u need more help
Regards,
Saleem
Suresh,
Check these
Go through this link
/people/gopala.krishnan2/blog/2006/08/02/km-customization-150-change-the-layout-context-menus-as-per-your-choice
/people/gopala.krishnan2/blog/2006/08/09/km-transports-part-i
/people/gopala.krishnan2/blog/2006/08/10/km-transports-part-ii
/people/gopala.krishnan2/blog/2006/08/18/km-transports-part-vi
This is one part of a series of blogs by Gopala Krishanan,you can find links for various other blogs related to KM on these above mentioned blogs.
You can visit these docs on KM
http://help.sap.com/saphelp_erp2005vp/helpdata/en/30/a12ddeea29534eaa33c67fefed3504/frameset.htm
http://help.sap.com/saphelp_erp2005vp/helpdata/en/58/485d425d2f0d53e10000000a155106/frameset.htm
Just in a nutshell.......
Its very simple to upload the documents as below:
Goto Content Adminitration Role -> Portal Content ->
Create one folder .
On folder right click and select from templates -> select KM Upload iView
Give the name and ID after that open the object and in property called
Target Folder specify the folder in repository where you want to upload the documents.
Then save and preview the iView.
To navigate through the documents follow same procedure but select the KM Navigation iView from templates and in its properties go to Initially displayed folder mention the same folder name.
Thanks
Avik
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HI Gurus,
Thanks for your reply and valuble inputs,
Here my requirement is i have to create upload and download applications in webdynpro java and all the doucments will
store in KM(Knowledge Management) But i want retrieve that docuemtns with some reference ID like portal userid or document id.
Here i have 100 employess evey employeee have multiple documents,so i have store separate folders in KM and how can i
retrieve that documents for example if i search one empID i need to get all documents related to that EMP ID and i have to download that.
Can any one give suggesion regarding this requirement.
With Regards,
suresh
Hi suresh,
First get the user in the webdynpro.
IWDClientUser wdClientUser = WDClientUser.getCurrentUser();
IUser sapUser = wdClientUser.getSAPUser();
String id=user.getUniqueID();
get the resource
IResourceContext resourseContext = new ResourceContext(id);
IResourceFactory resourseFactory = ResourceFactory.getInstance();
The read the doc form KM in application by getting the path to the doc.
Here is the example to get the image from KM[example|https://wiki.sdn.sap.com/wiki/display/KMC/Getting%20an%20image%20from%20KM%20Documents%20to%20be%20used%20in%20Web%20Dynpro]
Regards,
srikanth.
Hi Suresh,
Just to give you an idea, you can create the one parent folder called attachments in KM documents path
and you can create the sub folders with each of your Unique Emp Ids and store the documents related to that empid
in that subfolder
For example:
documents
->Attachments
... -->EmpId1
... -->EmpId2
... -->EmpId3
And you can retrieve the documents based on your Unique EmpId.
You need to get the Empid before when ever you want to retrieve the documents for that emp id
You can give the path as /documents/Attachments/"+EmpId
Revert back if you need more information
Regards,
Saleem
Hi,
You can use the FileUpload UI element to upload files from the client to the server. The UI element appears with an input field, in which the directory path and the file name appear, and a button for searching for the file. [upload|http://help.sap.com/saphelp_nw2004s/helpdata/en/b3/be7941601b1d09e10000000a155106/frameset.htm]
Regards,
srikanth
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
80 | |
9 | |
9 | |
7 | |
7 | |
6 | |
6 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.