S_SCRL_LIBRARY_OVERVIEW_C
CRL: Library overview view
S_SCRL_LIBRARY_OVERVIEW_C is a CDS View that provides data about "CRL: Library overview view" in SAP S/4HANA. It reads from 4 data sources (I_SCRL_LIBRARY_TP, I_SCRL_LIBRARY_TP, S_SCRL_LIBRARY_REGISTRY_C, I_SCRL_LIBRARY_TP) and exposes 37 fields with key field LibraryID. It has 6 associations to related views.
Data Sources (4)
| Source | Alias | Join Type |
|---|---|---|
| I_SCRL_LIBRARY_TP | CurrentVersionLibrary | from |
| I_SCRL_LIBRARY_TP | CurrentVersionLibrary | union |
| S_SCRL_LIBRARY_REGISTRY_C | LibraryRegistry | inner |
| I_SCRL_LIBRARY_TP | PublishedLibrary | inner |
Associations (6)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | S_SCRL_User | _CreateUser | _CreateUser.Name = CurrentVersionLibrary.CreatedBy |
| [1..1] | S_SCRL_User | _ChangeUser | _ChangeUser.Name = CurrentVersionLibrary.LastChangedBy |
| [1..1] | S_SCRL_Publish_State | _PublishState | _PublishState.Code = CurrentVersionLibrary.PublishState and _PublishState.Language = $session.system_language |
| [1] | p_scrl_library_transported | _LifecycleStatus | _LifecycleStatus.LibraryID = CurrentVersionLibrary.LibraryID |
| [1] | P_SCRL_LBRY_RGSTRY_DRFT_AVAIL | _DraftStatus | _DraftStatus.LibraryID = CurrentVersionLibrary.LibraryID |
| [0..1] | ATOV_REWORK_DEMAND | _AtovReworkDemand | _AtovReworkDemand.Item_Id = $projection.LibraryID and _AtovReworkDemand.Item_Type = 'SCRL' |
Annotations (6)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | S_V_SCRL_LOV_C | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| EndUserText.label | CRL: Library overview view | view | |
| Search.searchable | true | view | |
| ClientHandling.type | #CLIENT_INDEPENDENT | view |
Fields (37)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | LibraryID | LibraryID | Library ID | |
| 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 | ||
| IsDraftAvailable | _DraftStatus | IsDraftAvailable | ||
| _CreateUser | _CreateUser | |||
| _ChangeUser | _ChangeUser | |||
| _PublishState | _PublishState | |||
| ReworkPriorityText | _AtovReworkDemand | Priority_Text | Priority Description | |
| ReworkCategory | _AtovReworkDemand | Rework_Category_Text | ||
| LibraryID | Library ID | |||
| VersionNumber | I_SCRL_LIBRARY_TP | VersionNumber | Version Number | |
| Name | I_SCRL_LIBRARY_TP | Name | Zone name | |
| PublishState | I_SCRL_LIBRARY_TP | PublishState | Publish State | |
| PublishState_Text | _PublishState | Description | Well Code Des. | |
| Transported | _LifecycleStatus | Transported | Truth Value | |
| OriginalLanguage | I_SCRL_LIBRARY_TP | OriginalLanguage | Original Language | |
| OriginalRelease | I_SCRL_LIBRARY_TP | OriginalRelease | Release | |
| CreatedBy | I_SCRL_LIBRARY_TP | CreatedBy | User Name | |
| CreatedOn | I_SCRL_LIBRARY_TP | CreatedOn | Time Stamp | |
| LastChangedBy | I_SCRL_LIBRARY_TP | LastChangedBy | User Name | |
| LastChangedOn | I_SCRL_LIBRARY_TP | LastChangedOn | Time Stamp | |
| IsDraftAvailable | _DraftStatus | IsDraftAvailable | ||
| _CreateUser | _CreateUser | |||
| _ChangeUser | _ChangeUser | |||
| _PublishState | _PublishState | |||
| ReworkPriorityText | _AtovReworkDemand | Priority_Text | Priority Description | |
| ReworkCategory | _AtovReworkDemand | Rework_Category_Text | ||
| ReworkPrioritySorter | _AtovReworkDemand | Highest_Priority_Sort_Order |
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_OVERVIEW_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_OVERVIEW_C AS
SELECT
LibraryID,
VersionNumber,
Name,
PublishState,
_PublishState.Description AS PublishState_Text,
_LifecycleStatus.Transported AS Transported,
OriginalLanguage,
OriginalRelease,
CreatedBy,
CreatedOn,
LastChangedBy,
LastChangedOn,
_DraftStatus.IsDraftAvailable AS IsDraftAvailable,
_AtovReworkDemand.Priority_Text AS ReworkPriorityText,
_AtovReworkDemand.Rework_Category_Text AS ReworkCategory,
_AtovReworkDemand.Highest_Priority_Sort_Order AS ReworkPrioritySorter
FROM I_SCRL_LIBRARY_TP AS CurrentVersionLibrary
INNER JOIN S_SCRL_LIBRARY_REGISTRY_C AS LibraryRegistry ON /* join condition not captured in parsed metadata */
INNER JOIN I_SCRL_LIBRARY_TP AS PublishedLibrary ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN S_SCRL_User AS _CreateUser ON _CreateUser.Name = CurrentVersionLibrary.CreatedBy -- association [1..1]
LEFT OUTER JOIN S_SCRL_User AS _ChangeUser ON _ChangeUser.Name = CurrentVersionLibrary.LastChangedBy -- association [1..1]
LEFT OUTER JOIN S_SCRL_Publish_State AS _PublishState ON _PublishState.Code = CurrentVersionLibrary.PublishState AND _PublishState.Language = $session.system_language -- association [1..1]
LEFT OUTER JOIN p_scrl_library_transported AS _LifecycleStatus ON _LifecycleStatus.LibraryID = CurrentVersionLibrary.LibraryID -- association [1]
LEFT OUTER JOIN P_SCRL_LBRY_RGSTRY_DRFT_AVAIL AS _DraftStatus ON _DraftStatus.LibraryID = CurrentVersionLibrary.LibraryID -- association [1]
LEFT OUTER JOIN ATOV_REWORK_DEMAND AS _AtovReworkDemand ON _AtovReworkDemand.Item_Id = LibraryID AND _AtovReworkDemand.Item_Type = 'SCRL' -- association [0..1]
-- UNION with additional select branch(es): I_SCRL_LIBRARY_TP
;
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