Create an application with SAP Build Apps on SAP BTP. The application, created in a browser, can be used with the mobile preview app to scan physical barcodes on food packaging to display calorific information.
IMPORTANT: Make sure to follow the above prerequisites for installing SAP Build Apps – the booster will install SAP Build Apps and the Cloud Identity Service, as well as assign you the needed roles.
In this mission you will learn how to create a no-code application using SAP Build Apps. The application you create enables someone to scan a barcode of a food item and display information about the product using the Open Food Facts API:
Diagram of scanning a food item from a mobile app
IMPORTANT: Though you can use any SAP Build Apps version, these tutorials are based on a SAP BTP trial account.
Step 1Did you set up SAP Build Apps correctly?
—
Yes, no one reads the documentation.
But you need to follow the documentation to set up SAP Build Apps correctly on a trial account. The setup is simple, but it does require a custom identity provider and specific roles, so it’s worth taking an extra 2 minutes to make sure everything is set OK.
If you set up SAP Build Apps properly, skip this step. Otherwise, we have tried to make it as simple as possible by giving you a choice:
Written instructions – the written instructions are in a single step – Step 2 – in our SAP Build CodeJam prerequisites tutorial. You only have to do Step 2, Install SAP Build Apps.
ADVERTISEMENT: The Developer Advocates deliver SAP Build CodeJams –- both beginner and more-advanced workshops – and we are always looking for hosts. If you are interested, see our blog about what’s required to host a CodeJam and add a comment there that you want to host one.
SAP Build CodeJam
Step 2Create SAP Build Apps project
+
Open the SAP Build lobby in your trial account by doing the following:
Under Instances and Subscriptions, click the button next to SAP Build Apps.
Instance
This opens the SAP Build lobby.
SAP Build lobby
Within the SAP Build lobby, click Create.
Create
If you have other SAP Build tools installed, you may get other options. Still click Create and then click on Create again.
Create button
Click Application, and click Next.
Create
Click Frontend, and click Next.
Create
Click Web & Mobile Application, and click Next.
Create
Name the new app by entering:
Field
Value
Name
Scanner Application
Description
Scanner app for reading food barcodes
Click Review.
Create
On the Summary page, click Create.
Create
Your SAP Build Apps project is created, and the default Home page is displayed. Once created, projects can be accessed again at any time from the SAP Build lobby.
New project
Since we want to create a mobile app, open the device dropdown and select Mobile.
Mobile
Your project will now look like this:
Mobile layout
Step 3Understand SAP Build Apps
+
Editor
When working with SAP Build Apps, the majority of your time will be spent in the app builder area. This area allows you to complete key tasks such as, but not limited to, the following:
Build pixel-perfect user interfaces
Integrate with external data resources
Create complex logic with visual programming
Bind data to components to create dynamic views
Define navigation
For more detailed coverage of the features available in the app builder area, view the SAP Build Apps documentation.
Step 4Edit app interface
+
You’ll now start to create a basic layout for your application, starting with editing text.
Select the Title component (the one that says Headline) by clicking it once.
Select title
Click the text to select the text.
Select text
Copy-and-paste or type in the following:
Text
Barcode Scanner
Paste text
Double-click the Text component to highlight the text, and paste in the following:
Text
Scan a barcode of a food product using your smartphone
Text field
Instead of editing text directly inside a component, you can also set the text using the Content property in the Properties tab to the right. This option is needed if you set the text based on a formula or variable.
Step 5Add scan button
+
Next, you’ll need to add a scan button which, when tapped, will open the camera device on your smartphone.
Locate the Button component (found under Core > Essentials) and drag and drop this underneath the paragraph/text field.
Adding a button
Edit the button label by clicking the word Button inside the button and typing Scan.
Edit button text
Click Save (upper right).
Save Project
The application is now saved and available to preview using the preview app on your smartphone.
Step 6Preview app on your device
+
Click Preview at the top-right of the screen.
Launch
You will get a QR code that you will need to scan with the SAP Build Apps preview app.
Get code
Open the SAP Build Apps preview app on your mobile device, and click the big SAP Build Apps button in the middle.
Big button
Scan the QR code.
Scan
This will generate a 6-character code.
Pin code
Back in the preview of the SAP Build Apps project on your desktop, enter the pin code.
Share feedback on this tutorial or join the conversation in SAP Community.
Submit detailed feedbackDiscuss in Community
Steps
Step 1 of 6
1. Did you set up SAP Build Apps correctly?2. Create SAP Build Apps project3. Understand SAP Build Apps4. Edit app interface5. Add scan button6. Preview app on your device
Joule
AI Notice
Joule is an AI assistant. Generative AI may produce inaccurate, incomplete, or biased information. Always verify important details before acting on them.
Conversations are sent to SAP-hosted large language models for processing. Do not include personal data, credentials, or confidential information in your messages.
Joule's responses are based on the SAP tutorial catalog and may not reflect the latest product changes. For authoritative guidance, consult the linked tutorials and official SAP documentation.