Friday, April 22

How to Develop Portal Applications


Apart from standard components and services provided by SAP, Developers can develop custom components and custom services for providing custom content and custom processing. These services and components can make use of hundreds of standard SAP provided components and services like creating navigation links, transforming XML content and client side eventing.
When we develop a portal application, we must know beforehand that what are portal administrators going to use it for. There are 2 steps one must follow to create a portal application:

·         Run NWDS and use enterprise portal perspective.
·         Create an enterprise portal project and add components and services, create a PAR file and upload it on the portal.

We can use any of the following technology to build a portal application:

Portal Runtime: Portal runs on portal runtime. PRT also provide infrastructure to develop portal components which provide HTML for display purpose. Also PRT is used for creating portal services which provide functionality to components and other services.

Web Dynpro: Web dynpro comes in 2 flavours, web dynpro ABAP and web dynpro Java. One can build UI using web dynpro and deploy it on portal. This is the preferred method of creating portal applications.

I shall explain web dynpro ABAP and web dynpro Java development in detail later in upcoming porsts on this blog.
In order to develop applications in portal, you need to know basic things like HTML and servlet programming and JSP.
Tasks that can be performed in portal application perspective are:
·         Perspective configuration
·         Portal application project creation
·         Importing JAR and PAR files
·         Check Web services
·         Working with NWDI


Perspective configuration

Once the portal application is created, developer needs to upload its PAR file to the portal from NWDS EP perspective. For this, EP perspective must know the installation information of the portal to which Portal application is to be uploaded.
In NWDS go to Window ® Preferences ® SAP Enterprise Portal  ® Application Development Studio. There are various checkboxes available to configure the EP Plug-in. Select the checkboxes, as needed.

Portal application project creation

Create a new portal application project
Select the menu File ® New ® Project…  ® Portal Applications ® Create a Portal Application Project Specify the project name etc. That’s it.
Create a new portal service
Select the menu File  ® New  ® Other…
select Portal Application ® Create a new Portal Application Object, click Next
Select the project in which you want to create the service,  click Next.
Select Portal Service to be created, click Next.
Enter the service name etc.
 That’s it.

Create new portal component
Select the menu File  ® New  ® Other…
Select Portal Application ® Create a new Portal Application Object, click Next
Select project in which you would like to create the component,  click Next.
Select Portal Component ® AbstractPortalComponent, click Next.
Enter the component name etc. That’s it.




No comments:

Post a Comment

You are welcome to express your views here...