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.


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.

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

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:
- List – view all records
- Retrieve – view a single record
- Create – insert new records
- Update – modify records
- Delete – remove records
Creating a Role:
- Open the Roles tab in Visual Cloud Functions.
- Select Add Role.
- Enter a name and description.
- Assign permissions in the Data entity access tab.
- Save the app.
- 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:
- Open the Users tab.
- Choose Add User, enter one or more email addresses.
- Select the role to assign.
- 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.


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.


