cancel
Showing results for 
Search instead for 
Did you mean: 

Uploading a document to KM using API

Former Member
0 Kudos

Hi,

I have few documents in my windows folder. I wanted to upload this into KM programmatically and assign properties to it. How can we do this? Any samples/Help?

regards,

Sujesh

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos
Former Member
0 Kudos

Thanks Detlev.

Do we have any samples which uses these API to upload content and associate propoerties to it?

Also let me know if there is any out of the box solution from SAP to connect to Lotus notes database and pull the contents and put it in KM

regards,

Sujesh

Former Member
0 Kudos

Hi Sujesh,

Just to add to that of Detlev's contribution...

This is with regard to SAP connectivity with Lotus Notes.. a third party solution..

http://www.youatweb.com/C1256BC0003F7A3E/vwContentByKey/W26NKC84038CCHEEN

Apart from this we do have standard sap configuration to link SAP Portals with Lotus Domino..

http://help.sap.com/saphelp_nw04/helpdata/en/ba/8bccaef0dac945a4177797f4e29aa0/content.htm

Hope this helps.

Regards,

venkat.

[Pls do reward points for helpful answers]

detlev_beutner
Active Contributor
0 Kudos

Hi Sujesh,

> any samples which uses these API

see http://help.sap.com/saphelp_nw2004s/helpdata/en/43/68a36ba327619ae10000000a1553f6/frameset.htm and around.

Hope it helps

Detlev

detlev_beutner
Active Contributor
0 Kudos

Hi Sujesh,

This is pretty straight forward; to access the file content on the file system, I expect you know the corresponding Java APIs. On KM side, you need to create an IResource, see https://media.sdn.sap.com/javadocs/NW04/SPS15/km/com/sapportals/wcm/repository/IResource.html and around for details. One approach is for example to get the collection where you want to store the files into, and then to call "createResource(...)" on that collection. The byte content has to be stored in an IContent object.

Hope it helps

Detlev