I_SCRL_LIBRARY_TP
CRL: Library interface view
I_SCRL_LIBRARY_TP is a CDS View that provides data about "CRL: Library interface view" in SAP S/4HANA. It reads from 1 data source (scrl_library) and exposes 16 fields with key fields LibraryID, VersionNumber. It has 4 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| scrl_library | scrl_library | from |
Associations (4)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..*] | I_SCRL_METHOD_TP | _Method | _Method.LibraryID = $projection.LibraryID and _Method.VersionNumber = $projection.VersionNumber |
| [0..*] | I_SCRL_STRUCTURE_TP | _Structure | _Structure.LibraryID = $projection.LibraryID and _Structure.VersionNumber = $projection.VersionNumber |
| [0..*] | I_SCRL_TABLE_TP | _Table | _Table.LibraryID = $projection.LibraryID and _Table.VersionNumber = $projection.VersionNumber |
| [0..*] | I_SCRL_DATA_TP | _Data | _Data.LibraryID = $projection.LibraryID and _Data.VersionNumber = $projection.VersionNumber |
Annotations (14)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | I_V_SCRL_LIB_TP | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| EndUserText.label | CRL: Library interface view | view | |
| ClientHandling.type | #CLIENT_INDEPENDENT | view | |
| ObjectModel.compositionRoot | true | view | |
| ObjectModel.modelCategory | #BUSINESS_OBJECT | view | |
| ObjectModel.transactionalProcessingEnabled | true | view | |
| ObjectModel.draftEnabled | true | view | |
| ObjectModel.writeDraftPersistence | SCRL_D_LIBRARY | view | |
| ObjectModel.createEnabled | false | view | |
| ObjectModel.updateEnabled | true | view | |
| ObjectModel.deleteEnabled | true | view | |
| ObjectModel.entityChangeStateId | LastChangedOn | view |
Fields (16)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | LibraryID | library_id | Library ID | |
| KEY | VersionNumber | version_number | Version Number | |
| Name | name | Zone name | ||
| PublishState | publish_state | Publish State | ||
| OriginalLanguage | original_language | Original Language | ||
| OriginalRelease | original_release | Release | ||
| CreatedBy | created_by | Version Created By | ||
| CreatedOn | created_on | Variant created on | ||
| LastChangedBy | last_changed_by | Username | ||
| LastChangedOn | last_changed_on | Time Stamp | ||
| ImplementationClass | implementation_class | Type Name | ||
| ETag | Time Stamp | |||
| _Method | _Method | |||
| _Structure | _Structure | |||
| _Table | _Table | |||
| _Data | _Data |
Derived SQL interpretation, reconstructed from the parsed view metadata (data sources, associations, and field mappings). SAP annotations are omitted and the structure is reformulated as SQL — this is a functional approximation, not the verbatim SAP source.
-- Derived SQL interpretation of CDS view I_SCRL_LIBRARY_TP.
-- Reconstructed from parsed metadata (data sources, associations, fields).
-- SAP annotations are omitted and the structure is reformulated as SQL;
-- this is a functional approximation, not the verbatim SAP source. Some join
-- conditions may be unavailable and a few CDS constructs are kept as-is.
CREATE VIEW I_SCRL_LIBRARY_TP AS
SELECT
library_id AS LibraryID,
version_number AS VersionNumber,
Name,
publish_state AS PublishState,
original_language AS OriginalLanguage,
original_release AS OriginalRelease,
created_by AS CreatedBy,
created_on AS CreatedOn,
last_changed_by AS LastChangedBy,
last_changed_on AS LastChangedOn,
implementation_class AS ImplementationClass,
cast ( last_changed_on as abap.char(40) ) AS ETag
FROM scrl_library
LEFT OUTER JOIN I_SCRL_METHOD_TP AS _Method ON _Method.LibraryID = LibraryID AND _Method.VersionNumber = VersionNumber -- association [0..*]
LEFT OUTER JOIN I_SCRL_STRUCTURE_TP AS _Structure ON _Structure.LibraryID = LibraryID AND _Structure.VersionNumber = VersionNumber -- association [0..*]
LEFT OUTER JOIN I_SCRL_TABLE_TP AS _Table ON _Table.LibraryID = LibraryID AND _Table.VersionNumber = VersionNumber -- association [0..*]
LEFT OUTER JOIN I_SCRL_DATA_TP AS _Data ON _Data.LibraryID = LibraryID AND _Data.VersionNumber = VersionNumber -- association [0..*]
;
Learn More
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA