C_CAPostingLockAnalysis
Analyse der Buchungssperren
C_CAPostingLockAnalysis is a Consumption CDS View that provides data about "Analyse der Buchungssperren" in SAP S/4HANA. It reads from 2 data sources (I_CABusinessLock, I_CABusinessPartnerLock) and exposes 21 fields with key fields CABusinessLockObject, CABusinessLockObjectCategory, CABusinessProcess, CABusinessLockReason, CABusinessLockValidFrom. It has 2 associations to related views.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| I_CABusinessLock | Lock | from |
| I_CABusinessPartnerLock | Lock | union_all |
Associations (2)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1] | I_CAPostgAndClrgLockReason | _LockReason | $projection.CABusinessLockReason = _LockReason.CAPostgAndClrgLockReason |
| [0..1] | P_CABusinessLockExtension | _Extension | $projection.CABusinessLockObject = _Extension.CABusinessLockObject and $projection.CABusinessLockObjectCategory = _Extension.CABusinessLockObjectCategory and $projection.CABusinessProcess = _Extension.CABusinessProcess and $projection.CABusinessLockReason = _Extension.CABusinessLockReason |
Annotations (10)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | CCAPOSTLOCKANL | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| AccessControl.personalData.blocking | #REQUIRED | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| EndUserText.label | Analyse der Buchungssperren | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| ObjectModel.usageType.sizeCategory | #XXL | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| VDM.viewType | #CONSUMPTION | view |
Fields (21)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CABusinessLockObject | CABusinessLockObject | Lock object | |
| KEY | CABusinessLockObjectCategory | CABusinessLockObjectCategory | Lock Category | |
| KEY | CABusinessProcess | CABusinessProcess | Process | |
| KEY | CABusinessLockReason | CABusinessLockReason | Posting Lock | |
| KEY | CABusinessLockValidFrom | CABusinessLockValidFrom | From | |
| KEY | CABusinessLockValidTo | CABusinessLockValidTo | To | |
| KEY | BusinessPartner | BusinessPartner | Issuing Authority | |
| KEY | ContractAccount | ContractAccount | Contract Acct | |
| LastChangeDate | LastChangeDate | Time Stamp | ||
| CABusinessLockDuration | ||||
| KEY | CABusinessLockObjectCategory | Lock Category | ||
| KEY | CABusinessProcess | Process | ||
| KEY | CABusinessLockReason | CAPostgAndClrgLockReason | Posting Lock | |
| KEY | CABusinessLockValidFrom | CABusinessPartnerLockStartDate | From | |
| KEY | CABusinessLockValidTo | CABusinessPartnerLockEndDate | To | |
| KEY | BusinessPartner | BusinessPartner | Issuing Authority | |
| KEY | ContractAccount | Contract Acct | ||
| LastChangeDate | CreationDate | Time Stamp | ||
| CABusinessLockDuration | ||||
| CABusinessLockSequenceNumber | 0 | |||
| CAPostgAndClrgLockReasonName |
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 C_CAPostingLockAnalysis.
-- 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.
-- SQL view name: CCAPOSTLOCKANL
CREATE VIEW C_CAPostingLockAnalysis AS
SELECT
CABusinessLockObject,
CABusinessLockObjectCategory,
CABusinessProcess,
CABusinessLockReason,
CABusinessLockValidFrom,
CABusinessLockValidTo,
BusinessPartner,
ContractAccount,
LastChangeDate,
dats_days_between(CABusinessLockValidFrom,CABusinessLockValidTo) + 1 AS CABusinessLockDuration,
0 AS CABusinessLockSequenceNumber,
_PostgAndClrgLockRsn._Text[1:Language = $session.system_language].CAPostgAndClrgLockReasonName AS CAPostgAndClrgLockReasonName
FROM I_CABusinessLock AS Lock
LEFT OUTER JOIN I_CAPostgAndClrgLockReason AS _LockReason ON CABusinessLockReason = _LockReason.CAPostgAndClrgLockReason -- association [1]
LEFT OUTER JOIN P_CABusinessLockExtension AS _Extension ON CABusinessLockObject = _Extension.CABusinessLockObject AND CABusinessLockObjectCategory = _Extension.CABusinessLockObjectCategory AND CABusinessProcess = _Extension.CABusinessProcess AND CABusinessLockReason = _Extension.CABusinessLockReason -- association [0..1]
-- UNION ALL with additional select branch(es): I_CABusinessPartnerLock
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- 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