S_SCRL_LIBRARY_C
CRL: Library consumption view
S_SCRL_LIBRARY_C is a CDS View that provides data about "CRL: Library consumption view" in SAP S/4HANA. It reads from 1 data source (I_SCRL_LIBRARY_TP) and exposes 22 fields with key fields LibraryID, VersionNumber. It has 9 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_SCRL_LIBRARY_TP | I_SCRL_LIBRARY_TP | from |
Associations (9)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | S_SCRL_User | _CreateUser | _CreateUser.Name = $projection.CreatedBy |
| [1..1] | S_SCRL_User | _ChangeUser | _ChangeUser.Name = $projection.LastChangedBy |
| [1..1] | S_SCRL_Publish_State | _PublishState | _PublishState.Code = $projection.PublishState and _PublishState.Language = $session.system_language |
| [0..*] | S_SCRL_METHOD_C | _Method | _Method.LibraryID = $projection.LibraryID and _Method.VersionNumber = $projection.VersionNumber |
| [0..*] | S_SCRL_STRUCTURE_C | _Structure | _Structure.LibraryID = $projection.LibraryID and _Structure.VersionNumber = $projection.VersionNumber |
| [0..*] | S_SCRL_TABLE_C | _Table | _Table.LibraryID = $projection.LibraryID and _Table.VersionNumber = $projection.VersionNumber |
| [0..*] | S_SCRL_DATA_C | _Data | _Data.LibraryID = $projection.LibraryID and _Data.VersionNumber = $projection.VersionNumber |
| [1] | p_scrl_library_transported | _LifecycleStatus | _LifecycleStatus.LibraryID = $projection.LibraryID |
| [1] | P_SCRL_LBRY_RGSTRY_DRFT_AVAIL | _DraftStatus | _DraftStatus.LibraryID = $projection.LibraryID |
Annotations (12)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | S_V_SCRL_LIB_C | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| EndUserText.label | CRL: Library consumption view | view | |
| ClientHandling.type | #CLIENT_INDEPENDENT | view | |
| Search.searchable | true | view | |
| ObjectModel.draftEnabled | true | view | |
| ObjectModel.transactionalProcessingDelegated | true | view | |
| ObjectModel.compositionRoot | true | view | |
| ObjectModel.createEnabled | false | view | |
| ObjectModel.updateEnabled | true | view | |
| ObjectModel.deleteEnabled | true | view |
Fields (22)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | LibraryID | LibraryID | Library ID | |
| KEY | VersionNumber | VersionNumber | Version Number | |
| Name | Name | Zone name | ||
| PublishState | PublishState | Publish State | ||
| PublishState_Text | _PublishState | Description | Well Code Des. | |
| Transported | _LifecycleStatus | Transported | Truth Value | |
| OriginalLanguage | OriginalLanguage | Original Language | ||
| OriginalRelease | OriginalRelease | Release | ||
| CreatedBy | CreatedBy | User Name | ||
| CreatedOn | CreatedOn | Time Stamp | ||
| LastChangedBy | LastChangedBy | User Name | ||
| LastChangedOn | LastChangedOn | Time Stamp | ||
| ImplementationClass | ImplementationClass | Type Name | ||
| IsDraftAvailable | _DraftStatus | IsDraftAvailable | ||
| ETag | ETag | Update Token | ||
| _CreateUser | _CreateUser | |||
| _ChangeUser | _ChangeUser | |||
| _PublishState | _PublishState | |||
| _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 S_SCRL_LIBRARY_C.
-- 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 S_SCRL_LIBRARY_C AS
SELECT
LibraryID,
VersionNumber,
Name,
PublishState,
_PublishState.Description AS PublishState_Text,
_LifecycleStatus.Transported AS Transported,
OriginalLanguage,
OriginalRelease,
CreatedBy,
CreatedOn,
LastChangedBy,
LastChangedOn,
ImplementationClass,
_DraftStatus.IsDraftAvailable AS IsDraftAvailable,
ETag
FROM I_SCRL_LIBRARY_TP
LEFT OUTER JOIN S_SCRL_User AS _CreateUser ON _CreateUser.Name = CreatedBy -- association [1..1]
LEFT OUTER JOIN S_SCRL_User AS _ChangeUser ON _ChangeUser.Name = LastChangedBy -- association [1..1]
LEFT OUTER JOIN S_SCRL_Publish_State AS _PublishState ON _PublishState.Code = PublishState AND _PublishState.Language = $session.system_language -- association [1..1]
LEFT OUTER JOIN S_SCRL_METHOD_C AS _Method ON _Method.LibraryID = LibraryID AND _Method.VersionNumber = VersionNumber -- association [0..*]
LEFT OUTER JOIN S_SCRL_STRUCTURE_C AS _Structure ON _Structure.LibraryID = LibraryID AND _Structure.VersionNumber = VersionNumber -- association [0..*]
LEFT OUTER JOIN S_SCRL_TABLE_C AS _Table ON _Table.LibraryID = LibraryID AND _Table.VersionNumber = VersionNumber -- association [0..*]
LEFT OUTER JOIN S_SCRL_DATA_C AS _Data ON _Data.LibraryID = LibraryID AND _Data.VersionNumber = VersionNumber -- association [0..*]
LEFT OUTER JOIN p_scrl_library_transported AS _LifecycleStatus ON _LifecycleStatus.LibraryID = LibraryID -- association [1]
LEFT OUTER JOIN P_SCRL_LBRY_RGSTRY_DRFT_AVAIL AS _DraftStatus ON _DraftStatus.LibraryID = LibraryID -- association [1]
;
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