Product Information
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.
- Open SAP-Logon (on the backend system)
- Enter the transaction /IWFND/MAINT_SERVICE in the top left side of the user interface.
- Select Add Service.
- Select the System Alias field.
- Select the icon to open the SAP System Alias window.
- In the SAP System Alias window, select Local.
- Select the OK button to confirm the selection.
- In the External Service Name field, search for ANA_PAI_PS_SRV, ANA_PAI_PF_SRV and ANA_PAI_REPOSITORY_SRV.
- Select Enter to search.
- The results are shown in the Select Backend Services panel in the column Technical Service Name.
- Select the service names in the listing.
- The Add Service window opens.
- In Add Service window, for Package Assignment, select Local Object, or assign a suitable package as required.
- Select the icon to accept.
- The Information window opens, confirming that the service was created.
Check that the OData services are configured correctly
- Open SAP-Logon.
- Enter the transaction /IWFND/MAINT_SERVICE in the top left side of the user interface.
- You should see the above services listed and each should be active
- For each service, select it and click the SAP Gateway Client button.
- 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).
- Open SAP-Logon (on the frontend system)
- Enter the transaction /IWFND/MAINT_SERVICE in the top left side of the user interface.
- Select Add Service.
- Select the System Alias field and Click the Search button.
- Select the appropriate server name (backend) and double-click it.
- Use the Technical Service Name search box and search for *PAI* (wild card search)
- Select the following services:
- ANA_PAI_REPOSITORY_SRV
- ANA_PAI_PS_SRV
- Select the Add Selected Services button. The Add Service window appears.
- Select Local Object or any suitable package that you may use.
- Select the green accept button.
- You may get an information pop up window confirming the service was created. Select the green accept button.
- The System Aliases section of the “Active and Maintain Services” screen should be populated with the front end system.
- Select the following services:
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.
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.
Minimum version is 1705 Cloud and 1709 on Premise.
Thanks,
Orla
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: https://help.sap.com/viewer/8308e6d301d54584a33cd04a9861bc52/2020.000/en-US/b143fb32598b43eb9fb8949552a2bd81.html).
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 https://assets.sapanalytics.cloud/production/help/help-release/en/85e8c71cbe02483eb1a3ad8f7d4601f3.html).
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 https://blogs.sap.com/2020/08/22/extending-machine-learning-with-sap-analytics-cloud-doing-explorative-predictive-analytics/comment-page-1/#comment-556153 too.
Thank you.
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!
Orla
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.
Lohith