Setting global ICO logging/staging configuration for PI agents in the Figaf tool

Setting global ICO logging/staging configuration for PI agents in the Figaf tool

For the Figaf tool, it's important to know relevant logging and staging configuration used on the PI system. This configuration helps to perform better analysis of the Integration scenarios and gives more automation for testing. In other words, these settings are not mandatory, but really recommended.
See this article if you need more details about these settings: https://blogs.sap.com/2012/11/06/message-staging-and-logging-options-in-advanced-adapter-engine-of-pi-73x/

There are two ways to define these values.

Search global configuration automatically

By default, a flag "Search global configuration automatically" is enabled in the Agent dialog. So the Figaf tool will try to search it automatically. Since there is no public API providing such information, the Figaf tool will parse some HTML pages to fetch needed data. The Figaf tool user should have access to http://sapserver:port/webdynpro/resources/sap.com/tc~lm~itsam~ui~mainframe~wd/FloorPlanApp?applicationID=com.sap.itsam.cfg.java.systemproperties&applicationViewID=systemproperties# page. Usually, it's enough to assign a role NWA_READONLY  for the user.
If the global configuration is changed in some time, the Figaf tool will be able to detect it and use a new value when doing a synchronization.


Define global configuration manually

If it's not possible to find it automatically (for example, you don't want to assign NWA_READONLY  role or the Figaf tool fails when parsing the HTML pages), you can define it manually. In order to do this, you need to open http://sapserver:port/webdynpro/resources/sap.com/tc~lm~itsam~ui~mainframe~wd/FloorPlanApp?applicationID=com.sap.itsam.cfg.java.systemproperties&applicationViewID=systemproperties#. Switch to the Services tab, fill in com.sap.aii.adapter.xi.svc in the Service Component Name and then fill in xiadapter.*.conf in the Properties table. 
Then copy the values from xiadapter.logger.conf and xiadapter.stage.conf  to Global logging configuration and Global staging configuration fields correspondingly. Use a value from the Custom Calculated Value column if it's not empty. Otherwise, use a value from the Default Calculated Value column. If it's a space character enclosed in quotes (" "), copy it as is.



If some processing steps are not presented, the Figaf tool will resolve them with the following default values.
For logging: BI=0,MS=0,AM=0
For staging: BI=0,VI=0,MS=3,AM=0,VO=0
If these values get changed, it's important to update them in the Figaf tool correspondingly. Otherwise, testing in the Figaf tool will not work properly for scenarios using Global logging/staging configuration.