Adapter Module Development in NWDI - SAP Blogs
Adapter Module Development in NWDI - SAP Blogs
Community
Former Member
May 29, 2017 5 minute read
Like it or not, as a PI/PO developer one will eventually face the need to develop certain custom Adapter
Modules to ful ll speci c customer requirements. So in this blog we are going to describe how this can be done
in NWDS (SAP NetWeaver Development Studio) using NWDI (SAP NetWeaver Development Infrastructure). By
doing this, custom java developments are secured in a center repository and can be shared with other
developers easily.
Re-requisite: A Development Con guration is needed, which contains Build Time dependencies to at least
following software components:
ENGFACADE
SAP_BUILDT
SAP_XIAF
Once a Development Con guration is con gured and ready for use. We need to imported it into a NWDS client.
Make sure that you are in the NWDS perspective “Development Infrastructure”, and proceed as follow.
https://blogs.sap.com/2017/05/29/adapter-module-development-in-nwdi/ 1/12
12/23/2020 Adapter Module development in NWDI | SAP Blogs
Note, if the naming reservation service has not been setup for the development con guration, you will only see
the vendor as “demo.sap.com” and with name pre x eld disable (as number 1 and 2 indicated above). It is ne
https://blogs.sap.com/2017/05/29/adapter-module-development-in-nwdi/ 2/12
12/23/2020 Adapter Module development in NWDI | SAP Blogs
like that, just give the development component a name separate either by “/” or “_”.
After clicking on “Finish”, the NWDS client would ask to switch to the “Java EE” perspective. Click on “No”, since
there are still a couple of things to be taken care of.
Because an EJB development component cannot be deployed into a SAP PI runtime directly, we need to create
an EAR development component to do the deployment.
https://blogs.sap.com/2017/05/29/adapter-module-development-in-nwdi/ 3/12
12/23/2020 Adapter Module development in NWDI | SAP Blogs
Click on “Next” and “Next”. When promoted with which projects to refer to, tick the check box in front of the EJB
development component. So that when deploying the EAR into a PI runtime, the NWDS client knows it should
include the EJB development component.
https://blogs.sap.com/2017/05/29/adapter-module-development-in-nwdi/ 4/12
12/23/2020 Adapter Module development in NWDI | SAP Blogs
Click “Finish”. Then when the NWDS client asks to switch perspective, still click on “No”. Because we still have
one thing left.
Following Build Time dependencies are needed for the EJB development component:
sap.aii.af.ifc.facade
sap.aii.af.lib.facade
tc/bl/logging/api
To add a dependency to a development component, rst select it and then choose the tab “Dependencies”.
https://blogs.sap.com/2017/05/29/adapter-module-development-in-nwdi/ 5/12
12/23/2020 Adapter Module development in NWDI | SAP Blogs
Click on “Finish” and then repeat the same steps for the remaining dependencies. In the end It looks like below
for the EJB development component.
Then add Build Time, Deploy Time and Run Time dependencies for the EAR development component:
sap.aii.af.ifc.facade
sap.aii.af.lib.facade
tc/bl/logging/api
The process is pretty much the same as for EJB development component, only this time we need to tick the
checkboxes in front of Deploy Time and Run Time as shown below.
https://blogs.sap.com/2017/05/29/adapter-module-development-in-nwdi/ 6/12
12/23/2020 Adapter Module development in NWDI | SAP Blogs
In the end It looks like below for the EAR development component.
Now switch to the perspective “Java EE” to create a Java Session Bean. Expand the EJB project; navigate to the
folder “ejbModule”; and right click on it.
https://blogs.sap.com/2017/05/29/adapter-module-development-in-nwdi/ 7/12
12/23/2020 Adapter Module development in NWDI | SAP Blogs
Click on “Finish”.
https://blogs.sap.com/2017/05/29/adapter-module-development-in-nwdi/ 8/12
12/23/2020 Adapter Module development in NWDI | SAP Blogs
Go back to the NWDS perspective “Development Infrastructure” to build and deploy the EAR development
component.
https://blogs.sap.com/2017/05/29/adapter-module-development-in-nwdi/ 9/12
12/23/2020 Adapter Module development in NWDI | SAP Blogs
After deployment, you should be able to nd the adapter module from the SAP PI NetWeaver Administrator
(Path: http://<host>:<port>/nwa >> Troubleshooting >> Java >> JNDI browser).
Until now, we have deployed the custom Adapter Module into the SAP PI runtime, but still the Java source code
remains in the local NWDS client. Next we need to check in the source code, so that they are stored in the NWDI
server and are available for other developers to check and rework.
Write some meaningful comments, so that one can always understand what has been done. He can revert it to
previous versions if needed.
https://blogs.sap.com/2017/05/29/adapter-module-development-in-nwdi/ 10/12
12/23/2020 Adapter Module development in NWDI | SAP Blogs
Alert Moderator
How to setup NWDI with CM Services and CTS+ for Process Orchestration
By Former Member , Oct 10, 2013
Later on, if someone else want to have a look at the source code and work on it, he can just load the source
code from NWDI development con guration to his local NWDS client.
Related Questions
Then he is ready to start working on any changes. But always remember to check in his changes to NWDI
server!
2 Comments
Ravi Gupta
https://blogs.sap.com/2017/05/29/adapter-module-development-in-nwdi/ 11/12
12/23/2020 Adapter Module development in NWDI | SAP Blogs
October 27, 2017 at 9:44 am
Hi Kevin,
Nice blog. I followed the steps and deployed EAR on the PO development server. During deployment, I am
getting a warning –
And the deployment sign is green. When I try to nd the module in JNDI browser, I see nothing. Am I missing
something.
Like(0)
Like(0)
Find us on
Newsletter Support
https://blogs.sap.com/2017/05/29/adapter-module-development-in-nwdi/ 12/12