You are on page 1of 20

How to Customize Standard

Development Components with


WebDynpro Java and Portal

Applies to:
SAP NetWeaver Enterprise Portal 7.0, WebDynpro for Java.
For more information, visit the Portal and Collaboration homepage.
For more information, visit the WebDynpro Java homepage.

Summary
This is an end-to-end article describing how to customize the standard DC.
After going through the article you will be able to:1. Customize the standard DC
2. Add the FPM applications to the Self Service Administrator.
Author:

Gouri Manohar

Company: Yash Technologies Pvt Ltd.


Created on: 18 August 2009

Author Bio
Gouri Manohar is Consultant for Yash Technologies Pvt.Ltd based in India. He has more than four years of
IT experience. He has good knowledge in Java, WebDynpro Java, EP and Mobile Infrastructure 7.0.

SAP COMMUNITY NETWORK


2009 SAP AG

SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com


1

How to Customize Standard Development Components with WebDynpro Java and Portal

Table of Contents
Customizing the standard DC (Development Components................................................................................ 3
Documentation for customizing the standard DC ............................................................................................... 4
Procedure: .......................................................................................................................................................... 5
Self Service Administrator Role ........................................................................................................................ 15
Related Content ................................................................................................................................................ 19
Disclaimer and Liability Notice .......................................................................................................................... 20

SAP COMMUNITY NETWORK


2009 SAP AG

SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com


2

How to Customize Standard Development Components with WebDynpro Java and Portal

Customizing the standard DC (Development Components


And the requirement is the standard DC Overview roadmap step contains First Name, Last name, Employee
ID as the following screen contains

And the client requires displaying the data that is available in Edit tab in Overview tab as follows.

SAP COMMUNITY NETWORK


2009 SAP AG

SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com


3

How to Customize Standard Development Components with WebDynpro Java and Portal

Documentation for customizing the standard DC

SAP COMMUNITY NETWORK


2009 SAP AG

SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com


4

How to Customize Standard Development Components with WebDynpro Java and Portal

Procedure:
Initially log in to dtr perspective.

Right click on OFFLINE and enter the credentials to login

Once you login go to Development Configurations perspective

SAP COMMUNITY NETWORK


2009 SAP AG

SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com


5

How to Customize Standard Development Components with WebDynpro Java and Portal

SAP COMMUNITY NETWORK


2009 SAP AG

SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com


6

How to Customize Standard Development Components with WebDynpro Java and Portal

And import the required track.

Now according to the requirement create a project with respect to the required DC from Inactive DCs.

SAP COMMUNITY NETWORK


2009 SAP AG

SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com


7

How to Customize Standard Development Components with WebDynpro Java and Portal

When you click on Create Project the following screen appears and click on Select all and then click on OK
Now go to WebDynpro perspective and make the required modifications.
When you try to make the modifications in the project it asks you to check out the application and asks you to
create an activity.
Required modifications:
1. Rename all the WebDynpro components.
Old

New

CcPerPersonal

CcPerPersonal_new

FcPerPersonalIN

FcPerPersonalIN_new

VcPerPersonalINDetail

VcPerPersonalINDetail_new

VcperPersonalINOverview

VcperPersonalINOverview_new

VcperPersonalINReview

VcperPersonalINReview_new

You can Right click on the component and rename them.


2. Rename the application.
To rename the application copy and paste it and delete the original one.
Old Application Name
Per_Personal_IN

SAP COMMUNITY NETWORK


2009 SAP AG

New Application Name


Per_Personal_IN_new

SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com


8

How to Customize Standard Development Components with WebDynpro Java and Portal

When you click on Check Out the following screen appears

SAP COMMUNITY NETWORK


2009 SAP AG

SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com


9

How to Customize Standard Development Components with WebDynpro Java and Portal

Now click on New and create a new activity.

So when you create an activity the following screens appears and selects the activity that you have created

SAP COMMUNITY NETWORK


2009 SAP AG

SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com


10

How to Customize Standard Development Components with WebDynpro Java and Portal

Click on OK
Then the following screen appears and click on Add

Then click Ok.

SAP COMMUNITY NETWORK


2009 SAP AG

SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com


11

How to Customize Standard Development Components with WebDynpro Java and Portal

Now create a custom DC in the same track


Right click on the SC and click on Create New DC

SAP COMMUNITY NETWORK


2009 SAP AG

SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com


12

How to Customize Standard Development Components with WebDynpro Java and Portal

Check the Local Development Component.


Click on next

Click on Finish.
Now copy _comp from the location
C:\Documents and Settings\gouri.gadhamsetty\.dtc\2\DCs\sap.com\ess\in\pdata

SAP COMMUNITY NETWORK


2009 SAP AG

SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com


13

How to Customize Standard Development Components with WebDynpro Java and Portal

And paste it to
C:\Documents and Settings\gouri.gadhamsetty\.dtc\2\DCs\sap.com\pdatanew

SAP COMMUNITY NETWORK


2009 SAP AG

SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com


14

How to Customize Standard Development Components with WebDynpro Java and Portal

And now got WebDynpro and Rebuild the Project

Self Service Administrator Role


Now Login to Portal and go to Top Level Navigation and select Self-Service Administration and select the
standard PDATA FPM application in the following location.
Content Provided by SAP srvconfig com.sap.pct.erp.srvconfig.in Per_Personal_In FPM
ApplicationPer_Personal_IN
And for FPM Views
Portal Content Content Provided by SAP srvconfig com.sap.pct.erp.srvconfig.in
Per_Personal_InFPM Views and here you find the 3 Vcs views like BizCardsView, DetailView and
ReviewView.

SAP COMMUNITY NETWORK


2009 SAP AG

SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com


15

How to Customize Standard Development Components with WebDynpro Java and Portal

Now copy the FPM Applications and FPM views and paste them into your custom folder.

SAP COMMUNITY NETWORK


2009 SAP AG

SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com


16

How to Customize Standard Development Components with WebDynpro Java and Portal

Initially open the views.

Now change the Development Component and WebDynpro Component according to your requirement.
For each and every view.

Now open the FPM Application and make the required modifications.

SAP COMMUNITY NETWORK


2009 SAP AG

SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com


17

How to Customize Standard Development Components with WebDynpro Java and Portal

Now go to Define Event Links and set the values according to the standard FPM application.
Now finally go to NWDS and open the application properties and change the PCD location of the FPM
application.
Copy the PCD location from the following location

Paste the PCD location in the following location of the following application.

Finally the new copy of the Standard Application is created.

SAP COMMUNITY NETWORK


2009 SAP AG

SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com


18

How to Customize Standard Development Components with WebDynpro Java and Portal

Related Content
For more information, visit the Portal and Collaboration homepage.
For more information, visit the WebDynpro Java homepage.

SAP COMMUNITY NETWORK


2009 SAP AG

SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com


19

How to Customize Standard Development Components with WebDynpro Java and Portal

Disclaimer and Liability Notice


This document may discuss sample coding or other information that does not include SAP official interfaces and therefore is not
supported by SAP. Changes made based on this information are not supported and can be overwritten during an upgrade.
SAP will not be held liable for any damages caused by using or misusing the information, code or methods suggested in this document,
and anyone using these methods does so at his/her own risk.
SAP offers no guarantees and assumes no responsibility or liability of any type with respect to the content of this technical article or
code sample, including any liability resulting from incompatibility between the content within this document and the materials and
services offered by SAP. You agree that you will not hold, or seek to hold, SAP responsible or liable with respect to the content of this
document.

SAP COMMUNITY NETWORK


2009 SAP AG

SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com


20