Extending SAP Build Apps Skills

Objectives

After completing this lesson, you will be able to:
  • Describe Visual Cloud Functions in SAP Build
  • Describe how Generative AI in SAP Build Apps can accelerate UI development.

Building Application Backends with Visual Cloud Functions

Usage scenario / Introduction

Imagine you're developing a mobile app for your company's sales team. This app needs to display near real time customer data, update information, and integrate with other SAP or third party services. Traditionally, this required manually building backend services, provisioning infrastructure, and writing integration code.

With Visual Cloud Functions (VCF), you can visually create backend logic, define data models, and build integrations—all inside SAP Build Apps. This lowers complexity, accelerates delivery, and enables fusion teams to develop end to end apps while keeping the backend clean, governed, and cloud native.

Visual Cloud Functions provide a low-code approach to building cloud-deployed backends for your front-end SAP Build Apps applications. This empowers full-stack developers to independently create entire applications, reducing the need for specialized backend skills and accelerating development cycles.

SAP Build Lobby ScreenshotSap Build Lobby Application Backend Option

Basic Benefits

Before Visual Cloud Functions, developers often needed to:

  • connect to CAP services,
  • model database tables manually,
  • or rely on device storage for small apps.

These scenarios required more specialized backend knowledge. VCF reduces this complexity by providing:

  • a built-in backend,
  • visual data models,
  • server-side logic, and
  • ready-to-expose APIs

—all without writing backend code.

This is ideal for apps that require custom data persistence and logic but do not justify a separate pro code service.

Use Cases for Visual Cloud Functions

Visual Cloud Functions support a wide range of extensibility scenarios, including:

1. Data Transformation

Transform or combine data before exposing it to the front end.

Examples:

  • reformatting dates
  • merging two data collections
  • filtering sensitive fields

2. Business Logic Execution

Execute rules on the server rather than in the client.

Examples:

  • validating customer input
  • performing calculations
  • enforcing business constraints

3. Automation

Server-side workflows or scheduled logic.

Examples:

  • cleaning up data
  • generating derived entries

4. Endpoints

Create tailored endpoints that expose only the data required by your app or workspace.

SAP Build Apps backend areas

Backend Areas in Visual Cloud Functions

Visual Cloud Functions consist of four core backend areas:

1. Entities (Including Extended Entities)

Entities represent structured datasets similar to database tables. They define:

  • the fields of the dataset
  • the data types (text, number, boolean, date, datetime, UUID, list)
  • the underlying schema stored in the managed PostgreSQL system

When additional transformation or data‑reduction needs arise, Extended Entitiescan be created. They allow you to:

  • hide fields
  • rename fields
  • compute virtual fields using formulas
  • expose a simplified or privacy‑filtered data view

Extended Entities do not store their own data—they are virtual layers built on top of native entities.

2. Functions

Functions represent backend logic created visually using a flow-based editor.

Typical use cases include:

  • validating user input
  • transforming data before saving
  • performing calculations
  • querying or updating entity data
  • calling external REST APIs
  • orchestrating conditional logic

Functions run server-side, ensuring a consistent and governed backend execution environment.

3. Deployments

Deployment area

Deployments publish the latest backend version and make it available to your SAP Build App.

A deployment:

  • captures all changes made since the last version
  • analyzes whether changes are breaking or non‑breaking
  • activates the new version
  • ensures that entities, functions, and authorization rules take effect

Changes only become active for the running application after deployment.

4. Authorization (Roles & Users)

Authorization determines which users can access or modify backend data.

Roles

Roles define what operations are allowed on each entity. Permissions include:

  1. List – view all records
  2. Retrieve – view a single record
  3. Create – insert new records
  4. Update – modify records
  5. Delete – remove records

Creating a Role:

  1. Open the Roles tab in Visual Cloud Functions.
  2. Select Add Role.
  3. Enter a name and description.
  4. Assign permissions in the Data entity access tab.
  5. Save the app.
  6. Deploy the backend to activate the role.

Modified roles also require redeployment.

Users, Groups, and Custom Attributes

Roles can be assigned to:

  • individual users (via email from IAS token)
  • IAS groups
  • custom identity attributes (e.g., Country = "DE")

Assigning Roles to Users:

  1. Open the Users tab.
  2. Choose Add User, enter one or more email addresses.
  3. Select the role to assign.
  4. Save and submit the changes.

Assigning Roles via Groups:

  • Groups must match the IAS group name exactly.
  • All group members inherit the assigned role.

Assigning Roles via Custom Attributes:

  • Attribute names/values must match those defined in Cloud Identity Services.
  • Enables context-based authorization (e.g., region-based access).

All authorization changes require a new deployment.

Integration Tab OverviewVCF Data Entities

The data entities can be found in SAP Build Apps under the Integration tab within the Visual Cloud Functions by clicking the CLOUD FUNCTIONS button. There you will see all available data entities that can be used within SAP Build Apps. The following section also explains how the embedded Gen‑AI functionality can automatically generate different pages with the appropriate logic based on a data entity.

Summary

  • Visual Cloud Functions enable rapid backend creation for SAP Build Apps without traditional coding.
  • Entities manage structured data, and Extended Entities prepare data for frontend consumption.
  • Functions implement business logic using a visual flow editor.
  • Deployments activate new versions of backends and enforce stability.
  • Authorization ensures controlled access through roles, user assignments, groups, and custom identity attributes.

Together, these four backend areas enable full-stack development inside SAP Build Apps—aligned with cloud governance standards.

Generating UI Pages with AI in SAP Build Apps

Usage scenario / Introduction

Imagine you need to quickly build a user interface for your new application based on existing data. SAP Build Apps now offers a feature that leverages Generative AI to create these UI pages automatically, significantly reducing development time and effort. This allows you to focus on customizing and extending your application with unique features.

Content

SAP Build Apps integrates Generative AI to enhance various aspects of business operations, offering flexibility by allowing you to enable or disable the feature at the tenant level. One of the key capabilities is the automatic generation of UI pages from data entities, such as OData services. This feature streamlines the application development process by creating pages with Create, Read, Update, and Delete (CRUD) operations, providing a substantial head start for developers.

Benefits of AI-Driven UI Generation:

  • Reduced Development Time: Automatically generate UI pages based on your data entities.
  • CRUD Operations: Pages come pre-configured with basic CRUD functionalities.
  • Customization and Extension: Use the generated pages as a foundation to add custom components and logic.

Enabling Generative AI:

Before you can start generating pages using AI, you need to ensure that the Generative AI feature is enabled in your SAP Build Apps environment.

Enable of Gen AI in the Control Tower

Prerequisites:

  1. Enable Generative AI: In the Lobby, navigate to Control Tower > Tenant Configuration > Generative AI. Enable the feature and accept the AI Usage Terms and Conditions.
  2. SAP BTP Authentication: Ensure that SAP BTP Authentication is enabled for your application and that you have integrated a BTP Destination with the necessary data entities enabled.
Generate Pages Button

Steps to Generate Pages Using AI:

  1. Navigate to Integrations: Go to the Integrations tab in SAP Build Apps.
  2. Select Integration: Choose the desired integration that contains your data entities.
  3. Enable Data Entity: Select any data entity from the list and ensure it's enabled for use.
  4. Generate Pages: Click the "Generate Pages" button.
Pages Overview

Extending the Generated Pages:

The true power of this feature lies in its extensibility. The generated pages serve as a foundation that you can then customize and extend to meet your specific requirements. You can examine the components and logic used in the generated pages, copy and adapt them, or add entirely new components and functionalities. This provides a blend of rapid development and extensive flexibility, enabling you to accelerate your projects with low-code and Generative AI.

Summary

  • Generative AI in SAP Build Apps accelerates UI development by automatically creating CRUD pages from data entities.
  • Enabling Generative AI in the Control Tower is a prerequisite for using this feature.
  • Developers can extend and customize the generated pages to meet specific application requirements.