Posts mit dem Label SAP PI/PO werden angezeigt. Alle Posts anzeigen
Posts mit dem Label SAP PI/PO werden angezeigt. Alle Posts anzeigen

Dienstag, 23. Februar 2016

How to configure sap.application.global.properties

The most SAP PI/PO adapters have some settings which you cannot configure in the PI GUI, for example timeout values, number of connections etc. These settings are normally defined in sap.application.global.properties file. To configure these values go to NetWeaver Administrator (you can use the shortcut nwa) and then Configuration Management -> Infrastructure -> Java System Properties -> Applications and select your application. In Extended Details you can edit the settings under Custom Calculated Value.

Sonntag, 13. Dezember 2015

The easiest way to deploy/undeploy a component in SAP PI/PO for developers



If you want to deploy (or undeploy) a component, e.g. (a new version of) an adapter in SAP PI / PO, then you have multiple possibilities to do so. You can use the Software Update Manager (SUM), you can use JSPM or even write a user defined script, e.g. in Gradle, that uses ant. But the deployment with SUM and JSPM you need access to this tools and this is normally a task for SAP basis people. And writing a gradle script is not a trivial task.

So IMHO the best way for a developer to deploy a component is to use the Eclipse-based NetWeaver Development Studio (NWDS). In NWDS you can open the Deployment view by going to Window -> Open Perspective -> Other ... and then select Deployment. If the Repository Explorer on the left-hand side is empty than you are not connected to a PI system. To connect to your PI / PO system go to Windows -> Preferences and type "SAP AS Java" in the filter text field. Select SAP AS Java and click the Add button. Then you have to specify the host name of your system. The instance number should normally be 0 and the domain default. Click OK. After that you should see the PI / PO system in repository explorer in Deployment view.

When you expand the node, you'll see all components deployed on the system. You can right-click on a component and select "Add to Undeployment List" or drag-and-drop it to the undeployment list and click "Start". To deploy a new component you have to import the sca-file from your workspace or the file system. If everything was fine, you should receive a success message.

One more thing to think about is the deployment / undeployment strategy. You can configure it in settings section under deployment / undeployment list. For undeployment you can decide, whether to stop the process or to undeploy depending components if there are some. For deployment you have to choose whether only components with lower versions have to be updated or components with lower and equal versions or components with any version (which means that components with higher version can be replaced with ones with lower version which can be usefull to test a behavior in a previous version of the component).

That's it! It is a quick and easy way to make the deployment of a component on SAP PI / PO.

Dienstag, 10. November 2015

Fixing problem "Channel started but inactive" in SAP PI

Problem
 
Today I faced a problem on SAP PI which took some time for me to solve. The problem was that I made some changes on our SFDC adapter and deployed it again on PI. After that the communication channel was shown as "Channel started but inactive" in comunication channel monitoring. I tried to stop and start the channel, but with no effect. In the integration builder the channel's state was set to active, so firstly I had no idea how to fix this issue.

Solution

After some trying and asking PI experts I figured out the solution, which  was not obvious. The solution was to go to Java Locks at <sap-instance:port>/nwa/locks (default port is 50000) and delete the lock entry for this channel.

Hope this can be useful for some of you!