Technology Blogs by SAP
Learn how to extend and personalize SAP applications. Follow the SAP technology blog for insights into SAP BTP, ABAP, SAP Analytics Cloud, SAP HANA, and more.
cancel
Showing results for 
Search instead for 
Did you mean: 
Orla_C
Product and Topic Expert
Product and Topic Expert
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:

      1. ANA_PAI_REPOSITORY_SRV

      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 https://help.sap.com. 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.
5 Comments