AD182v@SAP TechEd 2023 Final RAP Extensibility JS

Download as pdf or txt
Download as pdf or txt
You are on page 1of 27

1

Use ABAP Cloud for developer


extensibility – DT182v
Andre Fischer, Harish Bokkasam – SAP SE
November 3, 2023
OVERVIEW
EXERCISES

3
INTRODUCTION

4
ABAP Cloud
… is the ABAP development model to build cloud-ready business apps, services, and extensions
… comes with SAP Business Technology Platform (SAP BTP) and SAP S/4HANA
… works with public or private cloud, and even on-premise

5
SAP S/4HANA SAP S/4HANA Cloud, SAP S/4HANA Cloud, SAP BTP,
any premise1 private edition1 public edition2 ABAP Environment

ABAP Cloud development model


to build cloud-ready business apps, services, and extensions

Classic ABAP development model

1 SAP S/4HANA any premise or SAP S/4HANA Cloud, private edition release ≥ 2022
2 SAP S/4HANA Cloud, public edition release ≥ 2208, 3-system landscape required
6
SAP S/4HANA Cloud extensibility patterns
On-stack Side-by-side

New app

remote API
Side-by-side

Public
Remote API call,
consume events LOOSELY coupled
to SAP data, transaction,
app

SAP S/4HANA New app


local API

Local API
Public

on stack
Cloud call,
SQL join
Today‘s
TIGHTLY coupled
application such as to SAP data focus

Extend an
extension point

Extend SAP
code, data SAP app
Public

structure,
user TIGHTLY coupled
interface such as to an SAP app
or transaction

SAP Business
SAP S/4HANA Cloud Technology Platform
PUBLIC Loosely coupled Tightly coupled 7
New app on stack and SAP app extension

ON-STACK DEVELOPER
SAP S/4HANA CLOUD EXTENSIONS
(custom code/partner extensions)

public interfaces
ABAP
Development
SAP S/4HANA
APPLICATIONS
Tools

public interfaces

❖ ABAP RESTful application programming model


❖ ABAP Cloud
❖ ABAP platform reuse services
❖ Released interfaces and APIs
❖ BAdIs
Public interfaces released
SAP S/4HANA CLOUD ABAP ENVIRONMENT for on-stack developer extensibility

INTERNAL – SAP and Partners Only 8


ON-STACK DEVELOPER EXTENSION OPTIONS

OData/ Web API OData/ Web API


Consumption Consumption • Create new BO‘s on top of
released BO interfaces
Service Binding Service Binding
• Consume released BO
interfaces in custom code
Service Definition Service Definition
• Extend existing BO‘s
Business Service Business Service
RAP BO Interface
Projection Projection

Create new Business


Service
Original BO

CDS Data Model Behavior


Custom Code (RAP = New app on stack
or Non-RAP)

Consume Released RAP


Extend existing Business Service BO Interface = Extension
INTERNAL – SAP and Partners Only 9
RAP business object extension in detail
Extend
C_View C-view
C-BDEF
C-BDEF
Extension
Both
select Interface BO Interface
from view view extension
selects Interface
from BDEF
R_View uses
R_View Extension
selects R-BDEF
R-BDEF Extension
from
E_View
E_View
Extension

Basic
I_view
selects
Draft Query from Draft query
View view extension
selects
DB Draft from DB Active
Table Table

Include Include
Structure Structure Ext.

CDS Data Model Behavior Extend Model ExtendBehavior


INTERNAL – SAP and Partners Only 10
TODAY’S SCENARIO – OVERVIEW

11
Add e.g. side effects

12
New field:
Feedback
New Action:
Update Feedback
Update Feeback

13
ZRAP630_SOL_EXT Two packages contain
the solution
• ZRAP630_SOL
Base BO
• ZRAP630_SOL_EXT
Extension objects

14
TODAY’S SCENARIO – EXERCISES

15
Generate your own extensible RAP BO
Run ZDMO_GEN_RAP630_SINGLE via F9

Run as console
application F9

16
Use ABAP Cloud for developer extensibility
Two packages have
been generated:
• ZRAP630_###
Base BO
• ZRAP630_###_EXT
Extension objects

17
The DT182v hands-on exercises
https://github.com/SAP-samples/teched2023-DT182v

01 Access to the exercises:


https://github.com/SAP-samples/teched2023-DT182v

02
Set up your development environment.
1. Install and set up your ABAP Development Tools for Eclipse
2. Create an SAP BTP ABAP Environment Trial User
3. Create an ABAP Cloud Project

03
Move at your own speed!

04 Feel free to ask questions via GitHub issues!


▶ Provide screenshots to facilitate the support

18
The DT182v hands-on exercises – Working on GitHub (1)

Follow the step-by-step


instructions provided on GitHub.

19
The DT182v hands-on exercises – Working on GitHub (2)

### Always replace all occurrences of ### with your assigned suffix in code snippets

20
The DT182v hands-on exercises – Working on GitHub (3)

Open GitHub Issues to get help from the SAP experts.

21
SUMMARY

22
ABAP Cloud is the development model provided to build cloud-ready
enterprise services, apps, and extensions on SAP BTP ABAP environment
and all editions1 of SAP S/4HANA, in the cloud and on-premises.

The ABAP RESTful application programming model (RAP) is at the heart


of ABAP Cloud for efficiently building transactional OData-based services
and SAP Fiori apps with built-in cloud qualities.
RAP best support SAP HANA and SAP Fiori elements.

RAP is available on SAP BTP ABAP Environment, SAP S/4HANA Cloud,


and SAP S/4HANA as of edition 1909.

The RAP feature set is enhanced quarterly in SAP BTP ABAP environment,
twice a year in SAP S/4HANA Cloud, and every two years in SAP S/4HANA
and SAP S/4HANA Cloud, private edition.

What’s New: SAP BTP ABAP environment | SAP S/4HANA | SAP S/4HANA Cloud

What’s Next: ABAP Platform Roadmap Information for all SAP products

1 SAPS/4HANA any premise or SAP S/4HANA Cloud, private edition release ≥ 2022 23
SAP S/4HANA Cloud, public edition release ≥ 2208, 3-system landscape required
Thank you
Contact information:
[email protected]
Product Manager for ABAP Platform

[email protected]
Product Manager for ABAP Platform

© 2023 SAP SE or an SAP affiliate company. All rights reserved. See Legal Notice on www.sap.com/legal-notice for use terms, disclaimers, disclosures, or restrictions related to SAP Materials for general audiences.
COMPACT GLOSSARY

29
29
→ BACK TO MAIN
PRESENTATION

Develop UI Specifics CDS Annotations SAP Fiori elements


Showcase App for RAP And ABAP CDS

Working with Large


Objects

Virtual Elements

30
→ BACK TO MAIN
PRESENTATION

Numbering

Validations

Determinations

31

You might also like