SAP Build Backend Entity and Function Creation
2023-9-29 06:24:54 Author: blogs.sap.com(查看原文) 阅读量:4 收藏

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.

  1. To access the SAP Build App, use below link

Build%20Home%20Page

Build Home Page

https://ic-2023-q2.eu10.build.cloud.sap/lobby

  1. Click on Create button and select Build an Application

Create%20Node

Create Node

  1. Select Application Backend

Application%20Backend%20Node

Application Backend Node

  1. Click on ‘Create’ to Create a project, like in below screenshot we created ‘Employees’

Create%20a%20Project

Create a Project

  1. Select the created project and select ‘Entities’ and click on ‘Create New’

Create%20Entity

Create Entity

Entity%20Details

Entity Details

  1. After entering Entity details, click on ADD, Entity is created
  2. Select the entity and Add fields to the entity be selecting ‘Add New’ in above screenshot and click on ‘Add’

Entity%20Fields

Entity Fields

  1. Entities are created with their respective fields

Entities

Entities

Create Functions to set data in the entities

  1. Select Functions Node, like in below screenshot

Function

Function

  1. Click on ‘Create New’ to create a Function

Create%20New

Create New

  1. Click on ‘Input parameters’ to add input parameters to the function

Input%20Parameters

Input Parameters

  1. Add Parameters, additionally , we can select parameter type and can set if it’s a required field or not

Add%20New%20Parameter

Add New Parameter

Parameters

Parameters

  1. In the central node of the function, we need to select the logic/nature for the function

 Nature%20of%20Function

Nature of Function

  1. Click on Create Record and select the entity for which data needs to be Set

Create

Create

  1. 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

Mapping

  1. Once all set, click on ‘Confirm’

Confirm

Confirm

  1. In the Output, if any message needs to be passed, that can be added

Output%20Message

Output Message

Create Functions to set data in the entities

  1. Create a new Function and in the middle node, select ‘List Records’

Get%20List

Get List

  1. Select the Entity, for which we need to Get data from

Select%20Entity

Select Entity

  1. Select the ‘End execution’ node

End%20Execution

End Execution

  1. Click on Add value on above screen and click on ‘Confirm’.

Map%20Parameters

Map Parameters

Deployment of Entities and Functions

Deployment

Deployment

Data can be checked in ‘Entities’, using ‘Browse Data’

Browse%20Data

Browse Data

Records can be created Manually also using ‘New Record’

New%20Record

New Record


文章来源: https://blogs.sap.com/2023/09/28/sap-build-backend-entity-and-function-creation/
如有侵权请联系:admin#unsafe.sh