Now that you have successfully deployed the extension application in SAP BTP and completed the configurations in AWS, SAP BTP and SAP S/4HANA. From an SAP standpoint, we are only looking for inference data from Monitron. Without the actual hardware set up, This can be done in 2 ways
- Use the payload file as a sample to integrate into SAP.
- Use the Kinesis data generator and use the template file to simulate a kinesis stream.The sample output file contains a seriesof json documents.
- AN S3 bucket is a prerequisite for both these scenarios.
We have followed the first approach, that is, using the payload to test the scenario. Follow these steps to test the application.
-
Go to to your AWS account and Navigate to S3 Service.
-
Choose the S3 Bucket that you have created earlier.
-
Choose the folder named monitron
-
Download the payload.txt (payload.txt). This file has the sample event, which we use for testing the scenario. In the monitron folder, Choose Upload
-
Click on Add files, choose the payload.txt downloaded in the previous step. Choose Upload.
-
Upon the file upload, you should get a Upload Succeeded message
-
In the SAP BTP cockpit, navigate to your subaccount and choose Cloud Foundry > Spaces. Choose your space and then choose action-management application. Choose the url provided under Application Routes section.
-
Choose Business Action Logs Tile.
-
Under Log Details, click on the Complete to expand it. You should see a entry with Create PM Notification. Click on it to see the details.
-
Expand the Log Data of the Log Message that says execution is successful , Click on the log to get the details.
-
In the detailed log message, you can see that the maintenance notification was created in the SAP S/4HANA System. We can see the ID of the maintenance notification that was created. Now, copy the value of ID found in the paranthesis of MaintenanceNotification('ID'), for example : MaintenanceNotification('10000440')
-
To verify the creation of PM Notification, Log into SAP S/4HANA Fiori Application. In the SAP S/4HANA Fiori Application landing page, search for Maintenance notification, and select the app as shown in the image below.
-
You will get the Maintenance Notifications Application as shown below.
-
In the Search field, Enter the value of ID copied from Step 11 and press Enter on the keyoboard. You see that, you get the Maintenance Notification that was created. To see the details, click on the entry as shown below.
-
You should be able to see the Maintenance Notification Screen, with the details of the event as follows. Observe that the Long Text field describes the event that might have caused the plant to undergo the maintenance. This description is the summary generated by the AWS Bedrock Claude 3 Sonnet Model, which was deployed and accessed via SAP GenAI Hub.
You have completed the end-to-end integration of events to business actions from Amazon Monitron to SAP S/4HANA with SAP BTP.