Friday, May 31, 2013

Using Web Service action in SAP MII

Drag the web service action block on to a sequence in MII transaction.

Configure the object and must use the wizard. Configure links should not be used.

Provide the wsdl url press next.

If the wizard hangs / blocks / stops / does not respond, it could be an issue with your java. The web service action does not work with Java 7, so run it on java 6.

Java SE Runtime Environment 6 Update 43 or Java SE Development Kit 6 Update 43


http://scn.sap.com/thread/3327443



Click next to select a port from the Port list taken from WSDL.


Click next to select an operation from a list with operations taken from the WSDL.

Click finish to save the configuration.


Now you can open the properties of the web service action in the link editor and set the payload data.

Wednesday, May 29, 2013

JNDI Resources in NetWeaver

Login to Netweaver Administrator

Create a database resource:
Go to Configuration Management > Infrastructure > Application Resources
 Create a JDBC resource for a database in Microsoft SQL Server


Check your resource is available in JNDI:

Go to Troubleshooting and JNDI Browser:



In your Spring application access the JNDI as:

<jee:jndi-lookup id="dataSource" jndi-name="<Object Name as shown in the picture>"  resource-ref="true" expected-type="javax.sql.DataSource" />

Export as war convert to sda, using \usr\sap\MII\J01\j2ee\deployment\scripts\make_SDA.bat command.

Deploy java application in Telnet.

Access your application: http://<nwa ip>:<nwa port>/<sda name>

Go to nwa > troubleshooting > log viewer for any errors/warnings.
Logs are available on file system at: usr\sap\MII\J01\j2ee\cluster\server0\log


Deploy/Undeploy a Java Application (SDA) from SAP NetWeaver

Undeploy an application

Check the name and vendor of your application that you want to undeploy. Goto SAP NetWeaver Administrator interface:
http://ip:port/nwa
Operations > Systems > Start and Stop



Goto Java Applications and look for the application you want to undeploy, note the name and vendor.


Telnet into SAP AS and login.

> lsc
To list the available server nodes.

> jump <server node> (usually jump 0)
Jumps to the server

> add deploy

> undeploy name=<name of the application> vendor=<vendor> on_undeploy_error=stop


To deploy an SDA

use the command deploy:
>deploy c:\sdafiles\mysda.sda

On the file system you deployed applications will normally reside in:

\usr\sap\MII\J01\j2ee\cluster\apps\JavaEE