cancel
Showing results for 
Search instead for 
Did you mean: 

Store Attachments in KM

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (1)

Answers (1)

JCardoza
Explorer
0 Kudos

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

Former Member
0 Kudos

Thanks for the reply.....the links are helpful but i need a way to store the documents with a id to retrieve it later on ...can u please throw some light on it....?

Regards,

Shikhil

Former Member
0 Kudos

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

Former Member
0 Kudos

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