SAP Home Learn Build Integrate Model Operate Extend with AI ConnectTutorial navigator Knowledge Graph API Devtoberfest Developer Advocates App Space

Manage my Account SAP Devs YouTube ↗ Learnings ↗ Community ↗ Provide Feedback ↗
Logout
⤢ Open full site

3 - Configure the Shopping Cart Page

Set up the shopping cart page –- including variables, binding, styling, and logic -– and update your CAP service as part of the SAP Build CodeJam.

Overview

🎓 beginner 30 min. SAP BuildBeginnerSAP Build Apps

You will learn

  • How to update a CAP service
  • How to set up filter condition on a data variable
  • How to add a navigation menu
Shrinivasan Neelamegam S Shrinivasan Neelamegam September 28, 2025
Created by January 28, 2024
Contributors

Prerequisites

Prerequisites

Steps

Intro

In this exercise, you will be enhancing the Cart page of the SAP Build CodeJam app.

You will:

  • Retrieve data from our CAP service –- which we created for this CodeJam to maintain the data for your cart and later for the order once it is requested.

  • Bind that data to your UI components.

  • Create logic for deleting an order item from the cart (i.e., from the CAP service).

A CAP service is a service built with the Cloud Application Programming Model. CAP is beyond the scope of this CodeJam, though we offer a separate CodeJam just on CAP. For more information about CAP, see SAP Cloud Application Programming Model.

In the prerequisites you already created a destination to that CAP service.

Step 1 Create data resource for CAP service

Previously, we made a data resource to the CAP service and enabled the Products entity. Now we need some other entities.

  1. Back in your ShoppingApp project, open the Integrations tab.

  2. Look for SAP Systems, and under that CodeJamOrdersService

    Click Enable More Data Entities.

    Data resource
    Data resource

  3. Select Orders, and click Enable Data Entity.

    Destination
    Destination

    Select OrderItems, and click Enable Data Entity.

    Data resource
    Data resource

  4. Click Save (upper right).

    Click Exit to return to the previous screen.

Scroll back to the top and you should now see Orders and OrderItems appearing under the Integrations > CodeJamOrdersService section.

New entities
New entities

You should also see that the red warnings are gone. Why is that?

Step 2 Create data variable
+
Step 3 Bind total text
+
Step 4 Add navigation menu item
+
Step 5 Test the app
+
Step 6 Get your own cart
+
Step 7 Add items to cart
+
Step 8 Delete items from cart
+
Step 9 Test the App
+
Step 10 Further study
+

Resources

Discussion

Share feedback on this tutorial or join the conversation in SAP Community.

Submit detailed feedback Discuss in Community
Steps
Step 1 of 10
1. Create data resource for CAP service 2. Create data variable 3. Bind total text 4. Add navigation menu item 5. Test the app 6. Get your own cart 7. Add items to cart 8. Delete items from cart 9. Test the App 10. Further study

Learn more →