on 11-02-2009 10:46 PM
Hello ,
I am creating a Webdynpro Application in which i want to give the user File Upload element with which he can upload attachments in KM Repository .....with a unique id ...and later on i want to read(retrieve) these attachments based on that uniqueid...how can i achieve the same using KM API's...?
Any help would be highly appreciated...
Regards,
Shikhil
HI,
For File Upload to KM, refer to [this article|http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/a099a3bd-17ef-2b10-e6ac-9c1ea42af0e9].
For File Download from KM, refer to [this forum thread|http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/5275] [original link is broken] [original link is broken] [original link is broken];.
Regards,
Joyer
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Shikhil,
The file will be stored in KM repository. Store the reference for the file in some database. When you want to retrive the file, get the reference from the database and read the file from KM repository.
The following links would be helpful
1. Create repository in KM
http://help.sap.com/saphelp_nw04s/helpdata/EN/e3/92322ab24e11d5993800508b6b8b11/frameset.htm
2. If you dont want to create a new KM repository you can use the default provided in the SAP portal
http://help.sap.com/saphelp_nw04/helpdata/en/1a/6ec041f123c717e10000000a155106/frameset.htm
3. You can use this RF API code inside webdynpro to read and write files from repository
Look specifically in to the IContent interface. You can store the UID of the file as a reference in any database.
https://media.sdn.sap.com/html/submitted_docs/nw_kmc/howto/rf/client_api/rf_client_api.html
4. You can use the File upload\download UI elements in webdynpro to upload and download files. Convert the binay from webdynpro into IContent while reading and writing repository.
5. Use the Java Bean model in webdynpro to read and write to database. No need to develop EJB
/people/balaramnaidu.bankuru/blog/2006/04/23/importing-complex-javabean-model-into-webdynpro-by-creating-relationships-for-the-model-classes
Regards
Srini
Edited by: Sinivasan Rajamani on Nov 3, 2009 4:07 PM
Hello Srini,
Thanks for the reply....but even if i store the id for attachements in some database like R/3 and later on retrieve it ....i should store the id in KM also to pick the right attachment.....otherwise how will i associate the id with the right attachment ...since i am allowing users to create forms through webdynpro which are stored in R/3 in a Custom Table ....so there can be 1 or more attachments for a single form....
Please help.
Regards,
Shikhil
User | Count |
---|---|
98 | |
11 | |
11 | |
10 | |
10 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.