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 Home Page
https://ic-2023-q2.eu10.build.cloud.sap/lobby
- Click on Create button and select Build an Application
Create Node
- Select Application Backend
Application Backend Node
- Click on ‘Create’ to Create a project, like in below screenshot we created ‘Employees’
Create a Project
- Select the created project and select ‘Entities’ and click on ‘Create New’
Create Entity
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 Fields
- Entities are created with their respective fields
Entities
Create Functions to set data in the entities
- Select Functions Node, like in below screenshot
Function
- Click on ‘Create New’ to create a Function
Create New
- Click on ‘Input parameters’ to add input parameters to the function
Input Parameters
- Add Parameters, additionally , we can select parameter type and can set if it’s a required field or not
Add New Parameter
Parameters
- In the central node of the function, we need to select the logic/nature for the function
Nature of Function
- Click on Create Record and select the entity for which data needs to be Set
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
- Once all set, click on ‘Confirm’
Confirm
- In the Output, if any message needs to be passed, that can be added
Output Message
Create Functions to set data in the entities
- Create a new Function and in the middle node, select ‘List Records’
Get List
- Select the Entity, for which we need to Get data from
Select Entity
- Select the ‘End execution’ node
End Execution
- Click on Add value on above screen and click on ‘Confirm’.
Map Parameters
Deployment of Entities and Functions
Deployment
Data can be checked in ‘Entities’, using ‘Browse Data’
Browse Data
Records can be created Manually also using ‘New Record’
New Record
文章来源: https://blogs.sap.com/2023/09/28/sap-build-backend-entity-and-function-creation/
如有侵权请联系:admin#unsafe.sh