Show TOC Start of Content Area

Procedure documentation Creating an Example Project in SAP NetWeaver Developer Studio  Locate the document in its SAP Library structure

Use

In order to be able to implement your own bundle files in Knowledge Management, you must create a project in the SAP NetWeaver Developer Studio. You can then integrate your bundle files into this project.

Below you can find out which steps are necessary to do this.

 

Prerequisites

SAP NetWeaver Developer Studiois installed. The following settings have been configured there:

      In the menu bar, choose Window ® Preferences... Navigate to SAP Enterprise Portal. Check whether the parameters are active and if necessary, activate them.

      You are using the Enterprise Portal perspective. If you have not yet activated this perspective, choose Window ® Open Perspective ® Other... ® Enterprise Portal.

      Import KM software component: KMC-CM. For more information about importing software components, see Importing and Updating Software Components.

 

Procedure

Proceed as follows to create a new project:

...

       1.      In the menu bar, choose File ® New ® Other... ® Development Infrastructure  ® Development Component  ® Enterprise Portal ® Portal Application Standalone. Choose Next.

       2.      Select your software component. Choose Next.

       3.      Enter the following data:

       Vendor: Enter your vendor ID. Example: customer.com

       Name: kmbundle

       Caption: used for changed labels

       Language: American English

       Domain: Knowledge Management

Choose Next.

       4.      Select the following settings:

Create an empty project

SDA archive properties: deployment type EAR SDA

Choose Finish.

       5.      Use the secondary mouse button to select the component properties for the development component. Choose Add on the Dependencies tab page. Select the development component called KMC-CM tc/km/frwk. Choose Next. Choose Run Time in the Dependency Details section.

You have now created a new project.

 

Carry out the following steps to modify this project:

...

       1.      Download the project that SAP provides, which already contains some bundle files. This project is an attachment to SAP Note 981880. Save the ZIP file on your local PC.

       2.      Open the ZIP file and pull its contents into the kmbundle/src.api directory in the project you just created in the SAP NetWeaver Developer Studio. The system automatically extracts the content of the ZIP file into this directory.

       3.      Modify the portalapp.xml file. This file is located in your project in the /dist/PORTAL-INF directory. Enter the following lines for the <services/> entry:

<services>
  <service name="RFServiceWrapper">
   <service-config>
    <property name="className"
     value="com.sap.netweaver.rf.wrapper.RFServiceWrapper"/>
    <property name="startup" value="true"/>
   </service-config>
  </service>
</services>

 

Then enter the name of your company for the generic placeholder customer:

...

       1.      Use the Sap NetWeaver Developer Studio package explorer to open the following folder and change its name: kmbundle ® src.api ® com.<%your company name%>.km.resource.bundle

       2.      Make a modification to the source code of the following file:
kmbundle ® src.api ® com.sap.netweaver.rf.wrapper ® IRFServiceWrapper.java. Find the entry com.customer.km.resource.bundle and change it in accordance with the newly chosen name: com.<%your company name%>.km.resource.bundle

 

Result

You have created an example project and can now modify the bundle files.

By default, the bundle files are located at kmbundle ® src.api ® com.<%your company name%>.km.resource.bundle.

Change the existing bundle files or create new ones in this folder.

 

See also:

Changing Labels for Properties

Changing Labels and Symbols for Entry Points

Changing the Labels of Commands

 

 

End of Content Area