Skip to Content

    MASTHEAD MODIFICATION, DEPLOYMENT AND NEW MASTHEAD IVIEW CREATION   

Introduction :

Masthead is the portal header area and entry point to the portal.

It contains branding elements, user identification, links such as Help, Personalize, and Log off.

/wp-content/uploads/2015/02/mast_644818.jpg

It can be modified to fit a company requirements.


According to project requirement we have to modify SAP delivered code. One example is Modify and create a new portal masthead. To customize Masthead in NW Portal 7.3 we have following steps:

  • Identify the EP component (that is, WAR file) that needs to be modified.
  • Download that WAR file from Server.
  • Rename the WAR file to customer namespace.
  • Import the WAR file into NWDS and modify the appropriate code.
  • Upload and deploy the WAR file into portal.
  • Create new iView based on deployed WAR file.


    Explanation:

Above steps are discussed here in detail with some screen shot.

Step 1: Download  from  server this WAR File:
           Path: C:\usr\sap\<SID>\<Instance>\j2ee\cluster\apps\sap.com\com.sap.portal.navigation.masthead\servlet_jsp\ com.sap.portal.navigation.masthead

Step 2: Download from server these  JAR Files:

  • common.jar
  • com.sap.portal.navigation.masthead_core.jar
  • prtapi.jar

       Notice: Most of them you will find in following path:
                  C:\usr\sap\<SID>\<Instance>\j2ee\cluster\apps\sap.com

Step 3: Open your NetWeaver Developer Studio (NWDS)

Step 4: Import the WAR File com.sap.portal.navigation.masthead.war
            In NWDS: File -> Import and choose your WAR File

/wp-content/uploads/2015/02/importprojet_645787.png

/wp-content/uploads/2015/02/importprojet1_645788.png

Step 5: Open in NWDS the JAVA EE perspective.At first you find errors in HeaderIview.jsp & Light_HeaderIview.jsp files.

Step 6: To fix these errors you have to config your build path and import the JAR Files

  • Right click on your import WAR file and choose Build Path -> Configure Build Path in context menu.

    /wp-content/uploads/2015/02/add_jar_645776.png

  • Choose tab/register libraries and click button Add Jars…
  • First of all choose the private JAR File com.sap.portal.navigation.masthead_core
  • Path: WebContent/WEB-INF/private/lib
  • Switch tab/register Order and Export and set a flag on JAR File.
  • Next import your JAR Files into your web module.

Step 7: Select all JAR Files on your file system and paste the files into the lib folder.
         Right click on your import WAR file and choose Build Path -> Configure Build Path in context menu. click button Add Jars…and add all JAR Files from lib.

Step 8: Make your changes in jsp files according to your need.

Step 9: Save your file.

———————-Now File is ready to deployment—————————

MASTHEAD DEPLOYMENT:

Following steps are needed to deploy an EAR file through NWDS

Step1 : Creating SAP system

  • Go to management console perspective->right click on sap system->new sap system

–>Give Host Name :

–>Instance Number:

–>and click on OK.

  • It will ask for OS logon JEE Host ID and password. After giving Id and password system will be created.

/wp-content/uploads/2015/02/add_system_645780.png

Step 2: For deployment we export our web module as WAR File.

  • Right click on your web module and choose Export->Export as WAR File.
  • Right click on ear project and export->SAP EAR
  • Right click on EAR file just now created and select run as->run on server

        /wp-content/uploads/2015/02/deploy_ear_645795.png

  • select SAP Server and click on next.

    deployEPQ.png

  • select project name and click on finish it will ask for connecting SAP JEE Engine

    /wp-content/uploads/2015/02/ear_deploy2_645796.png
    /wp-content/uploads/2015/02/mst_deploy5_645800.png

  • connect with it and click ok. Deployment is started and one successful msg comes up.
    /wp-content/uploads/2015/02/ear_deploy3_645793.png

Now it will be deployed.

Create Masthead iView

  • Go to  Portal Application (it will shows all apps under that folder)
  • Select app you want create iView
  • Right click on the iView
  • click on copy
  • go to Portal content select folder and Right click —>Paste As PCD objects

Modify the properties according to yours need and test it.
Cheers

To report this post you need to login first.

Be the first to leave a comment

You must be Logged on to comment or reply to a post.

Leave a Reply