Git Product home page Git Product logo

abap-platform-rap630's Introduction

REUSE status

RAP630 - Use ABAP Cloud for developer extensibility

https://github.com/SAP-samples/abap-platform-rap630/tree/main

Description

This repository contains the material for the RAP hands-on workshop called RAP630 - Use ABAP Cloud for developer extensibility.

Developer extensibility as defined by SAP basically encompasses two activities

  1. Develop custom code to implement your own business logic.

    Here you can make use of existing API's from SAP that have been released for that purpose.

  2. Extend an existing RAP Business Object so that additional business functionality is added.

    Such an extensible RAP business object will usually reside in another software components or it is an existing extensible RAP BO that has been delivered by SAP or a SAP partner.
    By extending the funcitionality of an existing RAP Business object its functionality can be adapted to your specific business requirements.

Overview

This session introduces attendees to the ABAP Cloud programming model and how this can be leveraged how

  • to build extensions (own code) in SAP S/4HANA BTP, ABAP Environment and
  • to extend an existing RAP Business Object using the ABAP Cloud programming model.

📋Requirements for attending this workshop

^Top of page

You need the latest version of the ABAP Development Tools for Eclipse (ADT) on your laptop or PC as well as the access to an appropriate ABAP system* to carry out the practical exercises of this workshop.

(*) The supported ABAP systems are SAP BTP ABAP Environment, SAP S/4HANA Cloud, Public Edition or release 2023 (or higher) of SAP S/4HANA and SAP S/4HANA Cloud, Private Edition. The openSource RAP Generator must be imported into the relevant system - e.g. SAP BTP ABAP Environment Trial.

Click to expand!

The requirements to follow the exercises in this repository are:

  1. Install the latest Eclipse platform and the latest ABAP Development Tools (ADT) plugin
  2. Create an user on the SAP BTP, ABAP environment Trial (Read exception below)
  3. Create an ABAP Cloud Project

Exception regarding SAP-led events such as "ABAP Developer Day" and "SAP CodeJam":
→ A dedicated ABAP system with pre-generated packages for the hands-on workshop participants will be provided.
→ Access to the system details for this on-site workshop will be provided by the instructors during the session.

Slides

Presentation

🛠 Exercises

^Top of page

In the Getting Started section you will generate

  • two exercise packages and
  • an extensible managed Business Object (BO) with one entity Shop with generic transactional behavior - i.e. CRUD: Create, Read, Update, and Delete.

In Exercise 1 you will learn how to leverage the released RAP BO I_BankTP in your own code.

In Exercise 2.1 you will extend the behavior of the base RAP business object that has been generated at the end of the Getting Started section. You will learn how extend the behavior of the base RAP BEO by validations, determinations and side effects.

In Exercise 2.2 you will then continue to extend the data model with additional fields. This requires you to perform several steps and you have to create quite a lot of repository objects. (There is a plan to provide a Generator for that.)

In Exercise 2.3 you will continue to extend the behavior of the base RAP business object by adding an action. Since actions can only added via an extension to fields that have been added via an extension as well, adding an action via an extension must be performed after Exercise 2.2.

So let us start and have a look at the Getting Started section.

Online Help

https://help.sap.com/docs/abap-cloud/abap-rap/develop-rap-extensions https://help.sap.com/docs/SAP_S4HANA_CLOUD/6aa39f1ac05441e5a23f484f31e477e7/1b345c53060846b091f55ea901e21ae7.html

Download and Installation

The packages ZRAP630_SOL and ZRAP630_SOL_EXT that contain the solutions of this workshop can be downloaded via abapGIT into an SAP BTP, ABAP Environment system or into the SAP S/4HANA Cloud, ABAP environment system.

Please note that these packages have already been installed in the SAP BTP, ABAP Environment Trial systems !
So there is no need to install them on an ABAP Environment trial system.

Click to expand download and installation steps.

The steps to download and install the package of the base RAP business object can be found here:

  1. Create a package 'ZRAP630_SOL' with 'ZLOCAL' as the superpackage.

  2. Link this package with the URL of the RAP630 GitHub repository https://github.com/SAP-samples/abap-platform-rap630.

  3. Use the branch main.

  4. Pull changes.

  5. Use mass activation to activate the objects that have been imported in step 3.

  6. Publish the service binding ZRAP630UI_SHOP_O4_SOL.

    After you have performed the aforementioned steps you can continue to download the solution package of the extension project ZRAP630_SOL_EXT.

    Since these are stored for technical reasons in another Github repository abap-platform-rap630-ext you have to to download the source from that repository 'https://github.com/SAP-samples/abap-platform-rap630-ext'.

Known Issues

How to obtain support

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.

Contributing

If you wish to contribute code, offer fixes or improvements, please send a pull request. Due to legal reasons, contributors will be asked to accept a DCO when they create the first pull request to this project. This happens in an automated fashion during the submission process. SAP uses the standard DCO text of the Linux Foundation.

Code of Conduct

Please read the SAP Open Source Code of Conduct.

License

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.

abap-platform-rap630's People

Contributors

anfisc avatar btbernard avatar harishb2018 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.