Authors: Jaipal Reddy Bommadi , Rajinder Pal Singh and Rajni Yadav
SAP Build helps us to create Apps with Low Code – No Code and has simplified the development efforts to build an app. There are few steps to create an application with a capability to save and read data also.
This blog talks about steps to create the backend entities which will store the data.
To create the backend entity in SAP Build, follow the below steps. Each step is followed by a screenshot. This blog also includes steps to create Functions which can be used to create and read records.
- To access the SAP Build App, use below link
![Build%20Home%20Page](https://blogs.sap.com/wp-content/uploads/2023/09/Build-Home-Page.png)
Build Home Page
https://ic-2023-q2.eu10.build.cloud.sap/lobby
- Click on Create button and select Build an Application
![Create%20Node](https://blogs.sap.com/wp-content/uploads/2023/09/Create-Node.png)
Create Node
- Select Application Backend
![Application%20Backend%20Node](https://blogs.sap.com/wp-content/uploads/2023/09/Application-Backend.png)
Application Backend Node
- Click on ‘Create’ to Create a project, like in below screenshot we created ‘Employees’
![Create%20a%20Project](https://blogs.sap.com/wp-content/uploads/2023/09/Create-a-Project.png)
Create a Project
- Select the created project and select ‘Entities’ and click on ‘Create New’
![Create%20Entity](https://blogs.sap.com/wp-content/uploads/2023/09/Create-Entity.png)
Create Entity
![Entity%20Details](https://blogs.sap.com/wp-content/uploads/2023/09/Entity-Details.png)
Entity Details
- After entering Entity details, click on ADD, Entity is created
- Select the entity and Add fields to the entity be selecting ‘Add New’ in above screenshot and click on ‘Add’
![Entity%20Fields](https://blogs.sap.com/wp-content/uploads/2023/09/Entity-Fields.png)
Entity Fields
- Entities are created with their respective fields
![Entities](https://blogs.sap.com/wp-content/uploads/2023/09/Entities.png)
Entities
Create Functions to set data in the entities
- Select Functions Node, like in below screenshot
![Function](https://blogs.sap.com/wp-content/uploads/2023/09/Function.png)
Function
- Click on ‘Create New’ to create a Function
![Create%20New](https://blogs.sap.com/wp-content/uploads/2023/09/Create-New.png)
Create New
- Click on ‘Input parameters’ to add input parameters to the function
![Input%20Parameters](https://blogs.sap.com/wp-content/uploads/2023/09/Input-Parameters.png)
Input Parameters
- Add Parameters, additionally , we can select parameter type and can set if it’s a required field or not
![Add%20New%20Parameter](https://blogs.sap.com/wp-content/uploads/2023/09/Add-New-Parameter.png)
Add New Parameter
![Parameters](https://blogs.sap.com/wp-content/uploads/2023/09/Parameters.png)
Parameters
- In the central node of the function, we need to select the logic/nature for the function
![Nature%20of%20Function](https://blogs.sap.com/wp-content/uploads/2023/09/Nature-of-Function.png)
Nature of Function
- Click on Create Record and select the entity for which data needs to be Set
![Create](https://blogs.sap.com/wp-content/uploads/2023/09/Create.png)
Create
- To map entity fields with importing parameters to create a new record, click on ‘Function Inputs’ in below screenshot . In the placeholder for the mapping field, put the cursor and from below function inputs select the respective importing parameter and click on ‘Enter +’, like in below screenshot.
![Mapping](https://blogs.sap.com/wp-content/uploads/2023/09/Mapping.png)
Mapping
- Once all set, click on ‘Confirm’
![Confirm](https://blogs.sap.com/wp-content/uploads/2023/09/Confirm.png)
Confirm
- In the Output, if any message needs to be passed, that can be added
![Output%20Message](https://blogs.sap.com/wp-content/uploads/2023/09/Output-Message.png)
Output Message
Create Functions to set data in the entities
- Create a new Function and in the middle node, select ‘List Records’
![Get%20List](https://blogs.sap.com/wp-content/uploads/2023/09/Get-List.png)
Get List
- Select the Entity, for which we need to Get data from
![Select%20Entity](https://blogs.sap.com/wp-content/uploads/2023/09/Entity-to-select-from.png)
Select Entity
- Select the ‘End execution’ node
![End%20Execution](https://blogs.sap.com/wp-content/uploads/2023/09/End-Execution.png)
End Execution
- Click on Add value on above screen and click on ‘Confirm’.
![Map%20Parameters](https://blogs.sap.com/wp-content/uploads/2023/09/Map-Parameters.png)
Map Parameters
Deployment of Entities and Functions
![Deployment](https://blogs.sap.com/wp-content/uploads/2023/09/Deployment-2.png)
Deployment
Data can be checked in ‘Entities’, using ‘Browse Data’
![Browse%20Data](https://blogs.sap.com/wp-content/uploads/2023/09/Browse-Data.png)
Browse Data
Records can be created Manually also using ‘New Record’
![New%20Record](https://blogs.sap.com/wp-content/uploads/2023/09/Manual-record.png)
New Record
文章来源: https://blogs.sap.com/2023/09/28/sap-build-backend-entity-and-function-creation/
如有侵权请联系:admin#unsafe.sh