0% found this document useful (0 votes)
22 views30 pages

ABAP RESTful Application Programming - Session 2

Uploaded by

vittal yadav
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
22 views30 pages

ABAP RESTful Application Programming - Session 2

Uploaded by

vittal yadav
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

ABAP RESTful Application

Programming

Session 2: Introduction to RESTful


Application Programming Model :
ABAP RAP
[email protected]
www.zapyard.com WhatsApp: +1-251-727-9273 www.zapcademy.com
Session
Topic Details
No
OData Overview | ABAP Programming Models | Eclipse Installation | Trial
1 Introduction
Account ABAP Instance
RESTful Application
2 Introduction to RESTful Application Programming Model
Programming Model
2 Managed Scenario Create Custom Table | CDS View Entity | Create Managed Scenario
3 RAP Generator Generating RAP Managed Scenario from custom table
Managed Scenario with
3 Implementing save in Managed Scenario
additional save
Basic Unmanaged Scenario | Draft | Actions | Create Fiori Element
4, 5 Unmanaged Scenario
Application using Unmanaged RAP Service
6 Annotations Annotations for List Page | Annotations for Object Page
More RAP concepts and
7 Actions with features | Locking & ETags
implementation
More RAP concepts and
8 Validations | Determinations | Side effects
implementation
RESTful Application Programming Model (RAP)
https://developers.sap.com/tutorials/abap-environment-restful-programming-model.html
RAP RAP BO

Model
/
RAP
BO
Create Custom Package
Custom Package Creation
Create Custom Table
Custom Table Creation
Create Custom Table
Custom Table Creation
Create Custom Table
Custom Table Creation
CDS View Entity
CDS View vs CDS View Entity
• CDS view entities can be considered a new version of CDS views and will replace the CDS views.
• CDS views were first released in ABAP 7.40, SP05. These are declared using DEFINE VIEW and they create a DDIC /
ABAP Dictionary view. The annotation @AbapCatalog.sqlViewName is used to specify the DDIC view name.
• The SQL view is created/adjusted in the background during activation which impacts the activation performance.
• CDS View Entity is defined with DEFINE VIEW ENTITY and does not have DDIC view associated with it.

Advantages of CDS View entity


• No SQL view is generated on activation – hence improved activation performance
• Automatic client handling which is also implicit – no additional annotation is required
• Strict syntax & annotation checks are applied during activation
• Simpler to extend
• New functionalities like regex replace, new operators like EXCEPT & INTERSECT are available from 7.56
• SAP also provides a standard program RUTDDLS_MIGRATION_CANDIDATES to see if migration of CDS View to CDS View
Entity is possible and in 7.56 we also get a program RUTDDLSV2MIGRATION that does the actual migration.

Root View Entity


• CDS View Entity which acts as a Root Entity for RAP BO
Create Root CDS View Entity
Create Root View Entity

Note : This screenshot is skipped for all further


explanation. Please select appropriate TR.
Click Next/Finish.
Create Root CDS View Entity
Create Projection for Root View Entity
Create Service Definition
Create Service Definition
Create Service Binding
Create Service Binding
Create Service Binding
Preview
Adding Data to the Table
Adding Data to the Table
Managed Scenario
Managed Scenario
• RAP framework Manages Create/Update/Delete operations

Unmanaged Scenario
• Developer Manages Create/Update/Delete operations
• RAP framework does not Manage Create/Update/Delete operations – hence - unmanaged
Create Behavior Definition
Create Behavior Definition
Create Behavior Definition Projection
Preview
Add Metadata
Add Metadata
Update Behaviour Definition Numbering
App Testing with Preview

You might also like