Archive

Posts Tagged ‘KM’

SAP KM API – Copy KM Folders

August 3rd, 2011 No comments

Below code snip can be used to copy one KM folder and its subfolders to another location.

Note:

1. The destination folder shouldn’t exist before the copy. Otherwise the copy method will raise an exception.

2. The source folder display name are copied too. It might need to be changed if necessary.

String source = ";/documents/source";;
String destination = ";/documents/destination";;
 
try {
	//1. Create a RID
	RID aRid = RID.getRID(source);
	logger.errorT(aRid.getPath());
	//2. Get Resource Factory
	IResourceFactory resourceFactory = ResourceFactory.getInstance();
	//3. Get user and resource context
	com.sapportals.portal.security.usermanagement.IUser user =
		WPUMFactory.getServiceUserFactory().getServiceUser(";cmadmin_service";);
	ResourceContext rContext = new ResourceContext(user);
	//4. Retrieve the collection for Resource using the resource context
	IResource aResource = resourceFactory.getResource(aRid, rContext);
	//5. Get Destination RID
	RID dRid = RID.getRID(destination);
	logger.errorT(dRid.getPath());
	IResource dResource = aResource.copy(dRid, new CopyParameter());
 
	dResource.setProperty(new Property(PropertyName.createDisplayname(), ";destination";));
 
	logger.errorT(";After Copy";);
} catch (ResourceException e) {
	logger.errorT(";ResourceException INSIDE copy(): "; + e.toString());
} catch (UserManagementException e) {
	logger.errorT(";UserManagementException INSIDE copy(): "; + e.toString());
}
 
wdControllerAPI.getComponent().getMessageManager().reportSuccess(";Files are copied successfully.";);

Web Dynpro Java – how to use KM API

October 26th, 2010 No comments

KM(Knowledge Management) provides a central, role-specific point of  entry to unstructured information from various data sources in the portal. It also provides a set of API to allow other applications to use KM functions.

Below are the steps on how to use KM API in web dynpro application.

Step 1. Go to web dynpro project properties and select ‘Java Build Path’.

web dynpro project

Read more…

SAP KM – WebDAV

September 26th, 2010 No comments

SAP KM Web UI provides many useful features for sharing and collaboration, such as feedback, rating, subscription. In general, it is a great DMS tool serves as a central repository for company to manage their unstructured documents.

image

Read more…

SAP Portal KM Configuration

March 24th, 2010 No comments

Application Area – Portal

Overview

KM (knowledge management) is a part of SAP Enterprise Portal. It is used to store and manage unstructured information form various data sources such as file system, intranet and World Wide Web.

Suppose we got below simple requirement. We have some technical materials for ABAP and Java and want to use KM to manage these materials. Two folder will be created for ABAP and Java. These materials need to be displayed in the portal and only authorized user can access these documents.

Configuration Detail

1. Create KM folders and upload needed documents

We plan to store these documents utilizing file system. Two folder need to be created under folder documents. In the navigation bar, go to Content Administration – > KM Content. Choose folder documents. Create two sub folder Java and ABAP.

clip_image002

Read more…