In this section you will expand your application with an API, which allows to get data from your SAP S/4HANA backend system. This enables the application to use data directly out from the backend system. Also you will update the user interface, so the data from backend is displayed correctly in your application.
-
Open your SAP Business Application Studio and navigate to the Home.
-
Find the tile External Data Model and choose the + icon to create a new data model.
-
On the left side of your screen the menu Service Center will appear. Expand the section SAP System and find your Subaccount there.
-
Then open the destination that you created in section earlier, for example, bupa.
-
On the bupa page, choose A_BusinessPartner in the list Entity.
-
Choose Add Data Model.
-
Go back to the Home page and look for the tile Services. Choose the + icon to add a new entity.
-
In the pop-up enter the following data:
- Name: A_Supplier
- Type: bupa.A_BusinessPartner
- Properties: BusinessPartner, BusinessPartnerFullName, BusinessPartnerIsBlocked
-
Choose Create.
-
Go back to the Home page and find tile Data Models. Choose the entry Risks.
-
Choose the icon to Add Relationship of the risk entity. Click on anywhere on screen to configure relationship.
-
In the pop-up configure the relationship like:
- Relationship: Association
- Relationship Type: to-one
- Property Name: supplier
- Target Entity Type: bupa.A_BusinessPartner
-
Choose Create.
-
Navigate to the Home page of SAP Business Application Studio.
-
Find the tile User Interfaces and choose the entry Risks.
-
Find the entry List Report and choose the icon to edit.
-
In the Page Editor, expand the Columns section and choose the + icon and select *Add basic columns from the dropdown.
-
In the pop-up, choose supplier_BusinessPartner for Columns. Then choose Add.
-
Click on the arrow to navigate back and choose risks to open the Object Page entry and choose the edit icon.
-
In the entry Section open General Information → Form → Fields. Choose the + icon to add new fields to the UI. In the dropdown, select Add Basic Fields.
-
Add the following fields using the dropdown:
- miti_ID
- supplier_BusinessPartner
- BusinessPartnerFullName
- BusinessPartnerIsBlocked
-
Choose Add.
-
Navigate back to the risks object page page and choose supplier_BusinessPartner.
-
Find entry Display Type and choose Value Help in the dropdown.
-
In screen Value Help choose Add column button.
-
In the dropdown, select BusinessPartnerFullName.
-
Repeat step 12 and 13 with BusinessPartnerIsBlocked.
-
Disable the Display as Dropdown toggle button
-
Choose Apply.
-
Similary, configure value help for mitigation. select the property
miti_ID
-
Find entry Display Type and choose Value Help in the dropdown.
-
In screen Value Help choose the following
-
Choose Apply.
In this section, you have integrated an external service API from an SAP S/4HANA system to your application. In the next step, you will deploy your application.
Need help? Look at the Troubleshooting Guide or use mission support to connect with mission experts.