Skip to Content
Product Information
Author's profile photo Orla Cullen

PAi Series Blog 2: ABAP Configuration of PAi within S/4HANA by Shekhar Chhabra

In Blog 1 we went through the steps to install PAi and APL in to HANA and now it’s time to configure ABAP (S/4 HANA) for PAi-specific applications

The Predictive Models app and the Predictive Scenarios app (PAi applications) require OData services configuration on the frontend (UI) and the backend systems. Note:  Let’s assume in this case, that the backend and frontend servers are on different machines.

For the Predictive Scenarios app, the ANA_PAI_PF_SRV service is used in conjunction with Predictive Factory and SAP Analytics Cloud Smart Predict to create the draft predictive scenarios. The ANA_PAI_PS_SRV service is used by the Fiori app to display or update draft predictive scenarios. Also, the ANA_PAI_REPOSITORY_SRV is also needed.

  1. Open SAP-Logon (on the backend system)
  2. Enter the transaction /IWFND/MAINT_SERVICE in the top left side of the user interface.
  3. Select Add Service.
  4. Select the System Alias field.
  5. Select the icon to open the SAP System Alias window.
  6. In the SAP System Alias window, select Local.
  7. Select the OK button to confirm the selection.
  8. In the External Service Name field, search for ANA_PAI_PS_SRV, ANA_PAI_PF_SRV and ANA_PAI_REPOSITORY_SRV.
  9. Select Enter to search.
  10. The results are shown in the Select Backend Services panel in the column Technical Service Name.
  11. Select the service names in the listing.
  12. The Add Service window opens.
  13. In Add Service window, for Package Assignment, select Local Object, or assign a suitable package as required.
  14. Select the icon to accept.
  15. The Information window opens, confirming that the service was created.


Check that the OData services are configured correctly


  1. Open SAP-Logon.
  2. Enter the transaction /IWFND/MAINT_SERVICE in the top left side of the user interface. 
  3. You should see the above services listed and each should be active
  4. For each service, select it and click the SAP Gateway Client button.
  5. Click Execute (F8) and ensure the request works successfully e.g.



The following steps are similar to the previous steps, but are to be executed on the frontend (UI) system.
Note: The front-end system communicates with the backend server using RFC (Remote Function Call).

  1. Open SAP-Logon (on the frontend system)
  2. Enter the transaction /IWFND/MAINT_SERVICE in the top left side of the user interface.
  3. Select Add Service.
  4. Select the System Alias field and Click the Search button.
  5. Select the appropriate server name (backend) and double-click it.
  6. Use the Technical Service Name search box and search for *PAI* (wild card search)
    1. Select the following services:
      2. ANA_PAI_PS_SRV
    2. Select the Add Selected Services button. The Add Service window appears.
    3. Select Local Object or any suitable package that you may use.
    4. Select the green accept button.
    5. You may get an information pop up window confirming the service was created. Select the green accept button.
    6. The System Aliases section of the “Active and Maintain Services” screen should be populated with the front end system.

Check out our next blog post for more details on further configuration and setup steps. In the meantime, why not refer to our official documentation on the SAP Help Portal at Simply search for S/4 HANA, and within the Product Documentation area, select the Installation Guide.

The chapter called “Follow-Up Activities for Predictive Analytics integrator” brings you through the business roles needed to access the tiles for the Predictive Models and Predictive Scenarios apps, setting up the OData Service and setting up the bgRFC Queue.


Now you have completed the installation of PAi at both the HANA and Netweaver level. Stay tuned for next week’s installment where we will start to use Predictive Scenario available with S/4HANA out of the box.

Assigned Tags

      You must be Logged on to comment or reply to a post.
      Author's profile photo M Depa
      M Depa

      Hi Orla,

      Which version of S/4 HANA required, I am having IDES S/4 HANA 1610 can I perform all these steps mentioned in the blog.


      Author's profile photo Orla Cullen
      Orla Cullen
      Blog Post Author

      Minimum version is 1705 Cloud and 1709 on Premise.





      Author's profile photo Lohith Hattera
      Lohith Hattera

      Hi Orla,

      Thank you very much for the detailed step-by-step writing. I have the following question. Pls suggest.

      Now that ISLM is available (next version of PAi), the PAi services ANA_PAI_PS_SRV, ANA_PAI_PF_SRV and ANA_PAI_REPOSITORY_SRV mentioned in this article aren't applicable from HANA2020 onwards. Instead the ISLM specific services ISLM_REPOSITORY_SRV and ISLM_IS_SRV to be configured (reference:

      My question is:

      Currently in SAC, a connection to be setup in SAC-->Home-->Connections-->"PAi connection" option to access the PAi services from S4/HANA (reference

      This will still be applicable with ISLM too? So that i need to configure the "PAi connection" within SAC using the details from ISLM services from S4/HANA? Or

      ISLM has a different feature to integrate SAC and S4/HANA?

      And will "PAi Connections" within SAC be renamed as "ISLM connections" ?

      I have posted the same in too.

      Thank you.

      Author's profile photo Orla Cullen
      Orla Cullen
      Blog Post Author

      Hi Lohith,

      I am now working full time on SAP Analytics Cloud so I am not aware of new developments in this area.

      Siar Sarferaz or Marion Schlotte can you point Lohith to the latest documentation please?

      Many thanks!



      Author's profile photo Hattera Lohith
      Hattera Lohith

      Hi Orla,

      Thank you for your response. I will wait to hear more on this.

      Meanwhile, I am offered an help from SAP product support team for an overview on SAC as well, I hope I get answers there.