Technology Blog Posts by SAP
cancel
Showing results for 
Search instead for 
Did you mean: 
lenapadeken
Product and Topic Expert
Product and Topic Expert
1,538

In this blog, you'll learn about the new features for SAP BTP ABAP Environment 2505 that were documented in the ABAP keyword documentation and ABAP data models documentation.

News for ABAP Release 9.15 

ABAP CDS

CDS Delegated Buffers

Delegated buffers in CDS are view entity buffers that delegate the buffer usage to the buffer of the base object. This saves memory in the AS ABAP. To turn buffer delegation on or off, use the annotation:

@AbapCatalog.entityBuffer.definitionType:[#DELEGATED]

To define a delegated buffer, use the syntax:

DEFINE VIEW ENTITY BUFFER ON cds_entity … TYPE DELEGATED

More about CDS delegated buffers

ABAP SQL

Level-based Hierarchies

The hierarchy function in ABAP SQL can now create an ABAP SQL hierarchy as a level-based hierarchy. Level-based hierarchies allow access to hierarchical data in data sources defined by level columns. To define a level-based hierarchy, use the addition LEVELS:

... HIERARCHY( SOURCE data_source ...
               LEVELS ( col1, col2,... )
               ... ) ...

More about level-based hierarchies

ABAP Keyword Documentation

Starting with this release, we will publish the ABAP Keyword Documentation content with the UI5 design. With the UI5 design, the documentation is even more aligned with SAP's corporate design. The functionality of the ADT design remains, and you can still search with the type-ahead functionality and send links. In addition, you can now copy code snippets and switch between syntax variants by clicking on tabs. In the header section, you can click the News button to know what's new in the current release or switch to an earlier one.

More about the UI5 design

Test and Consume CDS Data Models

The ABAP Data Models documentation is the home of two new sections: Test and Consume.

  • In Test, you find information about how to develop automated tests for CDS entities. Currently, unit tests for CDS entities are covered, using the ABAP CDS test double framework. Additionally, the AMDP test double framework has been integrated into ABAP for unit testing CDS table functions.
  • In Consume, you find information on the local consumption and service consumption of CDS data models.

More about Test
More about Consume

New Terms

The following new terms are used.

TermDefinition
RAP event-driven side effectA RAP side effect that is triggered by a business event for side effects. The business event in question is defined to be used exclusively for a side effect with the syntax event MyEvent for side effects.

An optional part of an entity behavior definition that enables change logging of persisted RAP BO data for a change documents-enabled RAP BO entity. When enabled, changes are written to a change document object. RAP change documents are a RAP reuse service.
CDS table entity
 
A CDS persistent entity that defines a database table in ABAP CDS. A table entity is defined as a CDS data definition using the statement DEFINE TABLE ENTITY.
writable database objectRepository object that allows modifying data on the database.
writable CDS view entityCDS view entity that allows modifying data on the database using the ABAP SQL INSERT, UPDATE, MODIFY, and DELETE operations. Defined using the statement WRITABLE.
writable CDS external entitydynamic external entity that allows modifying data on an external database system using the ABAP SQL INSERT, UPDATE, MODIFY, and DELETE operations. Defined using the statement WRITABLE in the CDS data definition. An ABAP SQL connection object is required to establish a service connection and enable the logical external schema for write access.
ABAP SQL connection objectAn  instance of a class that implements IF_ABAP_SQL_CONNECTION and represents a valid database connection.
level-based hierarchyAn  ABAP SQL hierarchy that is generated from a SQL data source where certain columns define from left to right the hierarchy levels and where each row content of these columns represents a path from a start node to a leaf node that spans these levels. In a level-based hierarchy, all leaf nodes have the same level that is the highest level defined in the data source. For each leaf node, a similar set of ancestor nodes is generated for the lower levels of the data source. In ABAP SQL, the addition LEVELS of the hierarchy generator HIERARCHY can be used to generate level-based hierarchies.
parent-child hierarchyhierarchy, where the hierarchy edges are parent-child relationships.

If you have any questions, feel free to comment below. We hope you enjoy the new features.

1 Comment