Add a read or update entity to a model in ERP Canvas
Release version: Washingtondc
Updated April 10, 2024
3 minutes to read
Specify the operation entity, which is the table or BAPI (Business Application Programming Interface) that ERP Canvas uses to read or update the ERP (Enterprise Resource Planning) system.
Role required: sn_erp_integration.erp_admin, sn_erp_integration.erp_user
About this task
Read operations retrieve ERP data by either reading a table or using a BAPI.
Update operations use a BAPI to write updates to the ERP system.
Procedure
Navigate to All > ERP Canvas > ERP Canvas Home.
Open the ERP model page by selecting the ERP model icon () in the side panel.
Select the model that you want to add an operation entity to.
Select the Manage model button.
Select the Read or Update operation card on the ERP model management page to choose the operation you're adding an entity to.
The Manage entities tab appears.
Figure 1. Manage entities tab
Select the Add entity button in the Manage entities tab.
For read operations, specify the type of read operation you're adding by selecting it in the Select type field of the Entity type section.
Read table defines a read operation entity that retrieves data by reading it directly from a table on the ERP system.
Function call (BAPIs) defines a read operation entity that uses a BAPI remote procedure call.
Note:
Update operation entities must use a BAPI Function call, so this field is read only for update operations.
Figure 2. Add an entity
Define the entity by specifying the name of the table to read or BAPI to use in the Select entity field of the Entity section.
The AI Search for this field can help you find what you're looking for faster, for example by entering Countries instead of T005. AI Search also suggests tables and BAPIs that are in the connected ERP system.
For table read operations, you may need to check the Model entities tab of the current or another, related model to get the table name, or ask your SAP admin. For more information, see View and edit the foundation of ERP models.
Finish adding the entity by selecting the Add entity button.
Optional: Rearrange and delete table entities as needed.
Important:
Reordering deletes any existing table joins for the reordered entities.
Select the Rearrange order button.
Drag the tables to the order that you want.
Select the delete icon () on the card for a table to remove any tables you don't need.
Deleting an entity removes all of its related field mappings and table joins.
Select the Confirm reorder button.
Result
The entity is added to the operation. ERP Canvas connects to the ERP system using the specified entity and retrieves data that you can use to define input and output parameters.
When you view the entity on the Manage operation entities page, a status shows whether the ServiceNow AI Platform is currently retrieving data or has finished retrieving data.
If you added a Read table operation, you can repeat this process to add as many tables as necessary to the operation. Then you can add joins to create relationships between tables.
Note:
If you have more than one table for an operation, you must join the tables.
The Entity fields tab for the ERP model automatically populates for the new table when the table is connected to an ERP system. View their details as needed. For more information, see ERP Canvas ERP model table field descriptions.