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

Create a Shopping Cart Business Object

Create a shopping cart business object with SAP S/4HANA Cloud, ABAP Environment or SAP S/4HANA on-premise.

Overview

🎓 beginner 25 min. SAP S 4hana Cloud ABAP EnvironmentBeginnerABAP DevelopmentABAP Extensibility

You will learn

  • โœ”How to create an ABAP package
  • โœ”How to create a database table
  • โœ”How to create transactional UI services
  • โœ”How to enhance the behavior definition of a data model
  • โœ”How to publish a service binding
  • โœ”How to run the SAP Fiori Elements Preview
Merve Temel M Merve Temel January 12, 2026
Created by August 14, 2023
Contributors

Prerequisites

Prerequisites

  • This tutorial can be used in the SAP S/4HANA Public Cloud. This tutorial can also be used in both SAP S/4HANA Cloud, private edition system and SAP S/4HANA on-premise system with release 2023 FPS03. We suggest using a [Fully-Activated Appliance] (https://blogs.sap.com/2018/12/12/sap-s4hana-fully-activated-appliance-create-your-sap-s4hana-1809-system-in-a-fraction-of-the-usual-setup-time/) in SAP Cloud Appliance Library for an easy start without the need for system setup.
  • For SAP S/4HANA on-premise, create developer user with full development authorization
  • You have installed the latest Eclipse with ADT.
  • Use Starter Development Tenant in S/4HANA Cloud for the tutorial to have necessary sample data in place.
  • Business role SAP_BR_PURCHASER needs to be assigned to your business user
  • In case the CAL instance is not used, please set up for developer extensibility to get ZLOCAL package.
  • Create software component for local cloud-ready development with ZLOCAL
  • Create a structure package with ZLOCAL
  • You are already logged into SAP S/4HANA Cloud, ABAP Environment or SAP S/4HANA on-Premise. If not, please complete the login tutorial.

Steps

Intro

In this tutorial, wherever ### appears, use a number (e.g. 000). This tutorial is done with the placeholder 000.


Step 1 Create ABAP package
โ€”

Hint: In case the CAL instance is not used, please set up for developer extensibility to get ZLOCAL package.

  • Create software component for local cloud-ready development with ZLOCAL
  • Create a structure package with ZLOCAL
  1. Select ZLOCAL > New > ABAP Package.

    package
    package

  2. Create new ABAP package:

    • Name: Z_PURCHASE_REQ_###
    • Description: Package ###
    • Check Add to favorite packages

    package
    package

    Click Next >.

  3. Click Next >.

    package
    package

  4. Create a new request:

    • Request Description: TR12345

    package
    package

    Click Finish.

Step 2 Create database table
+
Step 3 Generate transactional UI services
+
Step 4 Enhance behavior definition of data model
+
Step 5 Publish service binding and run SAP Fiori Elements preview
+
Step 6 Test yourself
+

Resources

Discussion

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

Submit detailed feedback Discuss in Community
Steps
Step 1 of 6
1. Create ABAP package 2. Create database table 3. Generate transactional UI services 4. Enhance behavior definition of data model 5. Publish service binding and run SAP Fiori Elements preview 6. Test yourself

Learn more →