Skip to Content
Author's profile photo Former Member

Naming Conventions Service in SAP Netweaver Portal

Configuring the Naming Conventions Service for any Portal Landscape

When creating PCD objects – such as iViews, pages, worksets, and systems – the portal allows administrators to enter any string as the namespace of an object. To facilitate and standardize this procedure, you can define naming conventions service for the namespace used in the content object ID.

Image.jpg

In the above screen shot “Folder ID Prefix” field is a free text entry and we need to restrict user from entering any desired value in it.

Create an XML file which contains all the valid namespace for your landscape. Proposed set of Namespace for any client landscape is

·         com.client

·         com.client.pct

·         com.client.pct.roles

·         com.client.pct.ui

·         com.client.pct.iviews

·         com.client.pct.pages

·         com.client.pct.roles.technical

·         com.client.pct.roles.functional

·         com.client.pct.ui.layouts

·         com.client.pct.ui.desktops

·         com.client.pct.systems

·         com.client.pct.transports

·         com.client.pct.twl 

create an XML file say client_namespace.xml and enter the above decided namespaces in xml file in following way.

<definitions>

   <namespace id=”com.client”> 
      <principal uniqueName=”Everyone” typeId=”GROUP”/>

      <namespace id=”pct”>
           <namespace id=”roles”>
                 <namespace id=”technical”/>
                 <namespace id=”functional”/>       
           </namespace>
           <namespace id=”ui”>
                 <namespace id=”layouts”/>
                 <namespace id=”desktops”/>       
            </namespace>
           <namespace id=”iviews”/>
           <namespace id=”pages”/>
           <namespace id=”systems”/>
           <namespace id=”transports”/>
           <namespace id=”twl”/>             
           <namespace id=”others”/>                      
      </namespace>
  </namespace>

</definitions>

This file must be placed in the following location

“/usr/sap/<SID>/<instance>/j2ee/cluster/server0/apps/sap.com/irj/servlet_jsp/irj/root/portalapps/com.sap.portal.namingconventions/xml”

Now go to System administration\System configuration\ select Service Configuration from detailed navigation.

Image.jpg

Expand Applications Node and go to com.sap.portal.namingconventions\Services\NamingConventionsSrv. Double click this service.

Configure the service according to the following snapshot.

Image.jpg

Save the content and close the editor. The service is configured according to our landscape. Now we need to enable this service to accept our changes.

Right click on com.sap.portal.namingconventions and select administrate

Image.jpg

Capture.JPG

Now stop the service and start again. Following would be the result

Image.jpg

Now the Prefix field is open for text but only to some standard values.

This Blog is applicable to SAP Netweaver portal 7.0 version

Assigned Tags

      3 Comments
      You must be Logged on to comment or reply to a post.
      Author's profile photo Sandip Agarwalla
      Sandip Agarwalla

      good blog...Nice hidden trick of Portal..

      One suggestion, move your blog to the appropriate Portal space..Right now it appears under the Try SCN space..

      Link to Portal space - http://scn.sap.com/community/netweaver-portal

      Author's profile photo Former Member
      Former Member
      Blog Post Author

      Thanks Sandip I will move it to right place..

      Author's profile photo Former Member
      Former Member

      Further details can be found in the help pages: http://help.sap.com/saphelp_nw70ehp2/helpdata/en/49/28123e43961d24e10000000a421937/content.htm

      I would question why someone would want a different namespace for roles, iViews etc. My preference is to put them in different folders.