Scenarion In NWDS ESR Objects
Enterprise Service Repository in NWDS
Summary
SAP has introduced new development strategy “Eclipse based
development”. In this a developer, can
configure many servers like DEV, QA, PRD in NWDS and whenever it’s required
just one click to connect to the server. The Eclipse tool can be used instead
of the classical Swing tool (IR and ID).
Abstract
In this document, I explained step by step creation of design object data
type, message type, service interface and Mapping objects in enterprise service
repository.
What is mean by IDE?
IDE - integrated development
environment.
Basically, an IDE is the place, where the application software
is developed, being supported through various stages of its life cycle. In an IDE,
we can do coding of different languages like java, xml, html, java script etc.
What is mean by eclipse IDE?
It is an open source IDE (integrated development environment)
for Java projects (and more. SAP has used eclipse IDE in NWDS to develop SAP PI
related objects.
NWDS à It is SAP
proprietary software to develop Webdynpro java applications and BPM objects etc.
Now SAP includes eclipse in to NWDS as a plug-in to develop PI related Objects.
Process Orchestration (Eclipse-Based)

Step
1: Configuring SAP Server. Go to menu bar and Click Windows and choose Service Enterprise service Browser.Enter the ESR Host (System Host name) and ESR Http
Port (System Port Number).

Step 2: Change the Perspective
Above screenshot is default perspective to create
Web Dynpro applications, but for PI perspective it has to change.
To change the perspective click window menu in menu
bar and select open perspective à other and
choose “Enterprise Service Repository”.
Step 3: Select Enterprise Service Repository.
Step 4: Connect to SAP PI System.
Now see the below window and there is icon with
message Offline, which means still PI enterprise service repository is not
connected in NWDS.
Click that connection icon to connect or right click
on offline button, it will ask for user id and password.
Provide the user id and password which is used to
login to PI Server.
Step 5: To disconnect the ESR click the same icon
once again.
Step 6: All software components will be displayed in
the left side top of window and change list will be displayed on left bottom.
Step 7: Click on any software component, it will
display all objects which are available in that particular software component.
Like data type message type and service interface etc.
Step 8: Create new data Type.
Step 9: Selecting data type and occurrences.
Step 10: Data Type created.
Step 11: Click the source button, you will get the
xsd file of data type which we created, it’s read only you can’t do any changes
in xsd file.
Step 12: Activate the data type
Step 13: You can see the same Data type object get
reflected in SAP PI server ESR.
Step 14: Handling error in NWDS.
Step 14: Handling error in NWDS.
Here is creating receiver data type in that while
creating element I given the space in middle of element name. Immediately it
will show error.
Step 15: Here the data type for element mobile
is not specified that’s why while activating the object its throwing error.
Step 16: Creation of message type.
Right Click on message type and choose New Message
type.
Step 17: Specify the name for message type and select the software component and data type by clicking “Browse” button.
Step 17: Specify the name for message type and select the software component and data type by clicking “Browse” button.
Step 18: Creating Service Interface
Right click on service interface and select new
service interface.
Step 19:
Specify the name for service interface and select the software component
and data type by clicking “Browse” button.
Step 20: You will get below Service interface
overview window, Click advance Tab and choose Outbound from Category dropdown
box.
Step 21: Now you have to choose message type
Go to Definition tab you will get below window.
Step 22: Click Input Link, below
window will appear.
Click “Message: Not set” and click Browse button to
select Message type. Choose appropriate message type from the list.
Step 23: Do the same for receiver interface.
Step 24: Create message mapping.
Step 25: Select source and target message.
Select the source and target message type under
source and target Tab.
Step 26: Select Source message type, repeat the same
for selecting target message type.
Step 27: After selecting both message types, you
will get below windows.
Step 28: Go to Definition Tab.
Mapping can be done by both drag and drop or
selecting particular element. On left bottom you can see all functions.
Step 29: Test Message mapping (Test Tab in PI ESR).
To test message mapping and operation mapping we
have to create new java project.
Step 30: Click NewàFileàProject
à
Java Project.
Create new java Project.
Step 31: Give name for java project.
While creating java project, it will ask you to
change the ESR perspective to java perspective. But you should not change, so
click “No”.
Step 32: Right click on Message mapping “Employee” à
Generate à
XML File.
The generated xml file has to save under some java
project, so we can this xml file in to our java project which we created
already.
Step 33: Now select the java project which created
in steps 30 and enter the file name if required. And click finish.
Step 34: Enter the input values and save the file by
“CTRL + S”.
Now your message mapping input values are ready and
now you need to run the mapping.
To run the mapping you have to define run time
configurations, so Right click on message mapping àRun
AS à
Run Configurations à ESR Message Mapping à
New_Configuration.
Click the workspace to select the source XML file
which is saved under java project. Choose the Input xml file and click”Ok”.
Mapping will get execute successfully and result
will displayed in the screen like below.
Step 35: Operation Mapping
All steps we have to do for operation mapping, one
extra step is choosing message mapping inside the operation mapping.
Below screen is to select the outbound and inbound
interface.
After selecting the service interface go to
Definition Tab à click the fx icon to
select message mapping.
Step 36: Operation mapping Test, generate the xml
file and save it in the java project.
Step 37: Enter the input values and save the file.
Step 38: Right click and choose run time
configuration and select the input file by click Workspace button.
Step 39: Operation mapping test result displaying in
the window.
Comments
Post a Comment