Setting Links in Documents to Objects in KM Folders 
If you set links to objects in KM folders, you should use the short ID for the object. The short ID does not change if you move an object from one KM folder to another.
To set a link in a document to an object in a KM folder, proceed as follows:
In a KM navigation iView, navigate to the object that you want to link to and choose in the Details dialog box for the object.
Select the short ID and use the key combination Ctrl + C to copy it to the clipboard.
Use the key combination Ctrl + V to insert the short ID in your document.
Add the document URL.
The URL is composed of the following parts:
<Protocol>://<server>:<port>/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/<short_ID>
You can copy the first part of the URL from the Target URL field on the Access Paths tab page.
In an HTML file, a link to a document in a KM folder could look like this:
<a href="http://myportal.com:50000/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/guid/c00e4dc8-2bbe-2710-b9bc-e7ee1e676ad4">My Document</a>