Enterprise Resource Planning Blogs by Members
Gain new perspectives and knowledge about enterprise resource planning in blog posts from community members. Share your own comments and ERP insights today!
cancel
Showing results for 
Search instead for 
Did you mean: 
Former Member
4,214
Overview

SAP’s Asset Intelligence Network (AIN) is one of the applications included in the SAP Leonardo IoT portfolio’s Connected Assets pillar. SAP Leonardo is the new umbrella brand for SAP innovations focusing on digital business transformations, and it is basically a collection of software and services which can be used by organizations to develop digital transformation applications, thus empowers business by connecting the emerging world of intelligent devices with people and processes to achieve real business outcomes. SAP’s Asset Intelligence Network is a cloud-based platform for secured information exchange between various roles in asset-intensive industries, like equipment manufacturers, operators, maintenance providers, etc.

Prerequisites            

SAP Mobile Add-On is a prerequisite for releases lower than SAP S/4HANA 1909 with following minimum requirements.



















SAP Mobile Add-On Minimum Requirement
SAP S/4HANA: Mobile Add-on for S/4 1.0 SP04 SAP S/4HANA: 1610 FPS01
SAP ERP: Mobile Add-on for ERP 6.3 SP03

SAP ERP: ECC 6 EHP7 SP14

 
SAP ERP: Mobile Add-on for ERP 6.2 SP08

SAP ERP: ECC 6 EHP5 SP03

 

 

INSTALLATION PROCESS BEGINS 

Step 1 - Activate Business Configuration Set

The Business Configuration Set /ACI/ASSET_CENTRAL_INTEGRATION holds all the required configurations for SAP EAM and asset central foundation integration, and it must be activated.

To activate, use transaction code SCPR20.


Step 2 - Define Number Range Intervals

 

The intervals for number range objects /SYCLO/C_2, /SMFND/IQ1, /SMFND/SY1 and /SMFND/DS1 must be defined -

  • Start transaction SNRO.

  • Enter the number range for object /SYCLO/C_2:



  1. Interval 01, Value 0000000001 ~ 0099999999: Push instance record ID

  2. Interval 02, Value 0100000000 ~ 0199999999: System statistic record ID

  3. Interval 03, Value 0200000001 ~ 0299999999: Mobile transaction history record ID

  4. Interval 04, Value 0300000001 ~ 0399999999: Subscription queue record ID





  • Enter the number range for object /SMFND/SY1.

  • Interval 01, Value 0000000001 ~ 0199999999: Object link record ID



 

  • Enter the number range for object /SMFND/IQ1.



  1. Interval 01, Value 0000000001 ~ 0199999999: Inbound transaction record ID



 

  • Enter the number range for object /SMFND/DS1.



  1. Interval 01, Value 0000000001 ~ 0999999999: Staging Data Store Data Segment Record No.



 

Step 3 – Get Client ID , Client Secret , Token URL , Application URL from SCP AIN.

 

OAuth 2.0 credential details from the service key instance using navigation path Subaccount → Spaces → Service Instances → (SAP Asset Strategy and Performance Management aspm-poc) → Service Keys → (select relevant service key).


Step 4 – Upload Root Certificate Authority (CA) of the SCP Server Certificate to the SAP S/4HANA or SAP ERP System

 

Import or download the root CA of the SAP Cloud Platform server certificate from the browser by launching the relevant application, such as SAP AIN, SAP PdMS or SAP ASPM.

  • The downloaded root CA certificate should be uploaded to the SAP S/4HANA or SAP ERP system using transaction code STRUST to the relevant PSEs (client standard and anonym).


 

Step 5 - Maintain SAP Asset Central Foundation System Information in the SAP S/4HANA or SAP ERP System

 

  • Create a new RFC destination for the CF tenant using transaction code SM59 using the following details:Name: AIN_CONNECTION_CF

  • Connection Type: G (HTTP Connection to External Server)

  • Target Host: Enter Java Application URL. For example, the SAP AIN or SAP ASPM or SAP PdMS tenant backend URL.

  • In the Security Options section, set SSL to Active and choose the relevant SSL certificate from the certificate list.



 

Step 6 - OAuth 2.0 Configuration

 

The following configuration steps must be performed to set up the OAuth 2.0 client credentials authentication. This is applicable only for customers with SAP BASIS release 752 and above.

 

  • Start transaction OA2C_CONFIG (OAuth 2.0 Clients).

  • To create an OAuth 2.0 client, choose Create button on the Overview screen and a popup with the configuration UI appears.

  • Choose the OAuth 2.0 client /ACI/INT_SERVICE.

  • Enter the OAuth 2.0 Client ID and choose OK. For more information regarding the Client ID and Client credentials, refer to the Onboarding Guide for SAP AIN, SAP PdMS or SAP ASPM.

  • Provide the Client secret password of the SAP AIN or SAP ASPM account.

  • In the Access Settings section, choose Selected Grant Type as Client Credentials.

  • In the Authorization Server Settings section, adjust the Authorization Endpoint and Token Endpoint by providing the token endpoint of the SAP AIN, SAP PdMS or SAP ASPM account. The authorization endpoint may be the same as token endpoint (uaa.url+'oauth/token').

  • Save your changes.



 

Step 7 - Define Server Management Properties

 

  • Run the transaction /N/SYCLO/ADMIN from your on-premise system. The web-dynpro application displays.

  • Navigate to the Administration Tab and choose Server Management from the navigation bar.

  • Select Mobile Application from the dropdown and select Asset Central Integration.

  • Choose the Create button and provide the following details in Basic Info tab.

  • Mobile Application: Asset Central Integration

  • Middeware Svr SerNo: For example, SCP

  • System Component: Select relevant option from the drop down

  • RFC Destination: Enter the name of the RFC destination created.

  • UI Host Name: AIN FLP Launchpad URL.

  • Choose to the Additional Properties tab and Add the following details:




































































Property Group Property Name Property Value
AC_PROPERTY EXTERNAL_SYSTEM_NAME <External System Name>
UI_URL_PATH ANNOUNCEMENT /cp.portal/site#ainannouncements-display&/PlannedMaintenanceList/
UI_URL_PATH ASSESSMENT /cp.portal/site#assessment-display&/assessmentDetails/
UI_URL_PATH EQUIPMENT /cp.portal/site#ainequipment-display&/
UI_URL_PATH FUNLOC /cp.portal/site#ainlocations-display&/
UI_URL_PATH INDICATOR /cp.portal/site#ainequipment-display&/
UI_URL_PATH INSTRUCTION /cp.portal/site#aininstructions-display&/
UI_URL_PATH MODEL /cp.portal/site#ainmodels-display&/
URL_PATH PATH_PREFIX /ain
AUTHENTICATION AUTH_TYPE OAUTH
AUTHENTICATION AUTH_OAUTH_PROFILE /ACI/INT_SERVICE

Click on SAVE.

 

Step 8 - Activate and Maintain Services

Go to Transaction Code - /n/iwfnd/maint_serivce to add Service - /ACI/ASSET_CENTRAL_CHANGE_NOTIF in Gateway.

Step 9 - Configure Destination Service

  • Navigate to the corresponding Asset Central SaaS tenant.

  • Choose Destinations and select New Destination.

  • Provide the Destination name and its details. For example:

  • Name: EAM_CONNECTION (Make sure that the Name is always prefixed with EAM_)

  • Type: HTTP

  • Description: Provide a short description

  • URL: API to access the SAP S/4 HANA system (For example http://***********/sap/opu/odata/ACI/ASSET_CENTRAL_CHANGE_NOTIF/AssetCentralChangeNotifications)

  • Authentication: Basic Authentication

  • User: Username to access the SAP EAM system

  • Password: Password to access the SAP EAM system

  • Save your entries.



Step 10 - Set-up Cloud Connector

  • Login to the Cloud Connector.

  • Create a connector for your SAAS tenant by adding the subaccount.

  • The system prompts you to login to your subaccount. Enter the Region, Subaccount, Login details and Description.

  • Enter the Port details that are open for communication.

  • From the navigation panel, choose Cloud To On-Premise option and then select the Subaccount that you created.

  • Click Add for HTTP and HTTPS URL for the host that is open for communication.

  • Add relevant details in the Resources Accessible tab and enter the following:

  • Enter /sap/opu/odata as the endpoint in URL Path column and Path and all sub-paths in Access Policy column.



 

 

Step 11 - Integration Readiness Check

 

Run Program - /ACI/CORE_READINESS_CHECK_PROG to check the integration and connectivity of SAP AIN to Onpremise S/4 HANA 1909 System.

Once everything below is green you are good to you for Functional Configuration.


CONCLUSION -

This blog post provide steps to establish connectivity of SAP BTP AIN product  with S/4 HANA On-Premise System.

We have used these steps to configure the end to end scenario of SAP BTP AIN product with S/4 HANA On-Premise for AIN which comprises ASPM, PdMS & PAI.

Dear Readers please provide your valuable feedback on this post  in the comment section , as this will help me to improve upon my future posts.

You can also find Q&A and post questions for the address mentioned below of community tag -

https://answers.sap.com/tags/73554900100800000331

https://answers.sap.com/tags/7bf2eaed-4604-44ae-bad7-d2d2d5c58c54

 

Happy sharing !!

REFERENCE LINKS

 

  1. https://help.sap.com/doc/199c84a900e44369a7e5838c7af6929e/1911/en-US/loio919f7c9aead74cd3a5d413bc779...


 

I HAVE COME TO THE END OF THIS POST. HOPE THIS BLOG POST WILL BE BENEFICIAL FOR YOU.
15 Comments
Giuseppe_Miceli
Explorer
0 Kudos
Hello,

 

Very useful post.

I have implemented all the steos but the report /ACI/CORE_READINESS_CHECK_PROG is giving error:

  • Check Asset Central connection setting
    Connection test failed
    The HTTP response code is unexpected.
    Authentication via oAuth profile failed


Could you please help?

Many thanks
Former Member
0 Kudos
Hi Giuseppe,

Hoping Cloud Connector & Syclo Admin is configured.

Then make sure the AIN RFC destination(using service key etc) & Oauth2config is configured correctly , destination is working & token is generated from your settings.

Once it's configured correctly connection test will be successful.

Regards

Anirudh
Giuseppe_Miceli
Explorer
0 Kudos
Hi anirudhbiswas,

 

many thanks for your answer.

My problem was solved, I made a mistake in an url but now the connection works.

Now I have another problem. The synchronization is ok from S4 to AIN but objects are not synchronized from AIN to S4

Could you please suggest which part of the configuration to be checked?

 

Many thanks

Kind regards,

Giuseppe
Former Member
0 Kudos
Hi Giuseppe,

 

Kindly Configure the Syclo Admin Config Panel for the Objects that needs to synced as the guide which is shared in Reference Link above.

Once Functional Settings is done Sync will work.

 

Regards

Anirudh
KellyZheng
Associate
Associate
0 Kudos
Hi Anirudh,

Thanks for your blog, I followed the help guide and reference your blog to finished all the configuration, but after run the check report /ACI/CORE_READINESS_CHECK_PROG. also facing connection test error: Connection test failed.

There is no detail error log, I checked SM59  destination, and connection test for the destination failed with the error: NIECONN_REFUSED(-10).

Is the connection test in your SM59 successful?

Thanks and Best Regards,

Kelly

 
Former Member
0 Kudos
Hi Kelly,

 

RFC Destination "AIN_CONNECTION_CF" as  mentioned in my blog should give you 200 or 405 as a status which is meant to be successful.

In my case its 405 which is ok.

So in your case its neither of it.

Kindly check the below two things in your  RFC in SM59 which i believe once checked/fixed your RFC connection will be working fine -

  1. Import the SSL Certificate in your STRUST (Standard/Anonymous) of the AIN ASPM URL mentioned in your SM59.

  2.  Check the AIN ASPM URL is correct or not as per service key generate in Service Instance.


Hopefully after checking these two things it will get resolved.

Regards

Anirudh
KellyZheng
Associate
Associate
Hi Anirudh,

Thanks for your reply, my problem is customer used proxy in their ERP system, after configured the proxy, the connection is fine.

Best Regards,

Kelly
Giuseppe_Miceli
Explorer
0 Kudos
Hi anirudhbiswas,

 

I was able to configure the syncronization.

Now I have another problem.

When we try to syncronize a functional location in S4 the same is created as location or equipment in AIN and not as a functional location as I would expect

 

Could you please help?

Many thanks

Kind regards,

Giuseppe
Former Member
0 Kudos
Hi Giuseppe,

 

As i understand you are saying sync is happening S4 to AIN but not AIN to S4.

If so check the if external system under application settings Tile is maintained or not in AIN FLP tenant.

If not maintained ..maintained it it will resolve the sync from AIN to S4.

Regards

Anirudh
Former Member
0 Kudos
Hi Giuseppe,

 

As i understand you are saying sync is happening S4 to AIN but not AIN to S4.

If so check the if external system under application settings Tile is maintained or not in AIN FLP tenant.

If not maintained ..maintained it it will resolve the sync from AIN to S4.

Regards

Anirudh
thund
Discoverer
0 Kudos

Hi Anirudh Biswas,
very useful blog in combination with the configuration guide.

Currently we are setting up our systemlandscape S4HANA and IAM-Suite and using the following Guide in combination with your blog:
Integration of Asset Central Foundation with SAP EAM Document Version: 1911 – 2020-02-05

We are facing one issue with Chapter 5 and the final Integration Readiness-Check:
So far we did the setup like described but receive the following error.

Check configuration activation - green/done
Check number range setup - green/done
Check user registartion - green/done

Check Asset Central connection setting - not okay
Connection test failed
200:OK

<html><head><link rel="shortcut icon" href="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" /><script>document.cookie="fragmentAfterLogin="+encodeURIComponent(location.hash)+";path=/;Secure;SameSite=None;";document.cookie="locationAfterLogin="+encodeURIComponent(location.href.split('#')[0].split(location.host)[1])+";path=/;Secure;SameSite=None;";document.cookie="signature...

It is not the complete message because contains the "authentication-url" as well "front-end-url". If required I can forward you the complete message. the html contains a "redirect" and "callback".

Do you have any idea of the root cause? If you need more informations please also let me know.

Best regards,
Tobias

Former Member
0 Kudos
Hi Tobias,

 

Kindly check the RFC connection "AIN_CONNECTION_CF" & Oauth Configuration(make sure client ID , client secret etc are correct)

If RFC & Oauth connection is working fine Then connection test will be successful.

 

Regards

Anirudh
asaithambi13
Discoverer
0 Kudos
Hi Anirudh

Can you share the Technical architecture of ERP ,S/4 system integrated with SAP Asset intelligence network.

Note: looking out for the connection details like Odata,Rest API etc

Thanks and Regards

Asaithambi
dnieten
Newcomer
0 Kudos

Hello anirudhbiswas,

our AIN integration is working to S/4. Can you please provide us a documentation how to set up the connection between 2 AIN subaccounts located in one global account in one POC system.

Thank you!

Regards

David

0 Kudos
Hello Anirudh,

Currently we are integrating ACF with SAP ECC, with SAP BASIS release version- 750, and after connection test we are getting the "500 internal server error" for "AIN_CONNECTION_CF" RFC destination and since our SAP BASIS release version is lower than 752 we are configuring the required RFC "OAUTH_DESTINATION" by providing the client credentials and required details and after connection test it is giving '"200 OK".

For "AIN_CONNECTION_CF" destination we used host from the aspm-preview service instance endpoint url.

 

We have followed the following sap help document:

https://help.sap.com/doc/06cb149229db44a5887cdcd204c6c9a8/2204/en-US/loio919f7c9aead74cd3a5d413bc77...

When we perform /ACI/CORE_READINESS_CHECK_PROG we are getting the below error:

Check Asset Central connection setting
Connection test failed
401:Unauthorized
{"error":"unauthorized","error_description":"Invalid Jwt"}

 

Even though the jwt token is being generated and after using the same jwt token we are getting "401 unautorized" error in postman aslo.

Could you please help me why we are facing this jwt token "401 Unauthorized issue" and "500 internal server" issue for AIN_CONNECTION_CF RFC destination.

Any information would be much appreciated!

Thanks and Regards,

Sandeep Kumar
Labels in this area