This repository contains technical artifacts required for running the Dev4S4C Hands-on workshop using some theory sessions with some hands-on exercises. Dev4S4C enables both Architects and Developers via highly interactive and high-touch sessions over a 2-day period, where our partners can learn with SAP experts, and put their knowledge to the test with hands-on exercises. Covering contents directly related to delivering cloud solutions keeping the core clean, such as: ABAP Cloud, custom code migration, Application Extension Methodology, SAP S/4HANA extensibility options, and Clean Core concepts.
This repository contains two packages
- Setup Content: (z_trainer_reuse_objects) : This contains the Trainer content which contains the re-usable artifacts to be used for the Hands-on Exercises.
- Sample Artifacts:(z_trainer_solutions_d4s4) : The sample artifacts created after the completion of the hands-on exercises. These are given for reference purposes only. These artifacts are ideally created after the completion of the hands-on exercises as per the documents given for the workshop.
This repository is requires S/4HANA Cloud, Public Edition (Development Tenant) to be able to import the content.
Exercise 1 : Build a small Extension in S/4HANA Cloud (Scenario Depiction)
Exercise 2 : Build a custom API for side-by-side extensibility
In this exercise, we will create a custom inbound OData API in an S/4HANA Cloud system. We will reuse the business object from the first day, i.e., the online shop, and create an OData service binding of type Web API on top of it. We will also create a custom communication scenario to expose our API.
We will consume the API from an ABAP system running on SAP BTP, i.e., an SAP BTP ABAP Environment service instance. We will use the API’s metadata to create a service consumption model, which will allow us to call the API directly from ABAP coding. As a simple example, we will consume the API from a plain HTTP service, which will contain the custom coding in its handler class.
Import the ABAP development objects of this repository into your system using abapGit as described here and run the demo classes by choosing F9 in the ABAP development tools for Eclipse (ADT) for checking out the ABAP syntax in action. Import the repository into the development tenant of the S/4HANA Cloud, Public Edition.
The code examples presented in this repository are only syntax examples and are not intended for direct use in a production system environment. The code examples are primarily intended to provide a better explanation and visualization of the syntax and semantics of ABAP statements and not to solve concrete programming tasks. For production application programs, a dedicated solution should therefore always be worked out for each individual case. There is no guarantee for either the correctness or the completeness of the code. In addition, there is no legal responsibility or liability for possible errors or their consequences, which occur through the use of the example code.
No known issues
Create an issue in this repository if you find a bug or have questions about the content.
For additional support, ask a question in SAP Community.
This is not intended to be a contribution repository, so please do not create pull requests. If you like to address issues or suggestions, please create an issue. However, this project is provided "as-is": there is no guarantee that raised issues will be answered or addressed in future releases.
Copyright (c) 2023 SAP SE or an SAP affiliate company. All rights reserved. This project is licensed under the Apache Software License, version 2.0 except as noted otherwise in the LICENSE file.