A_LglCntntMDocStatus

DDL: A_LGLCNTNTMDOCSTATUS SQL: ALGLCNTDOCSTAT Type: view CONSUMPTION

Legal Document Status

A_LglCntntMDocStatus is a Consumption CDS View that provides data about "Legal Document Status" in SAP S/4HANA. It reads from 1 data source (I_LglCntntMDocStatus) and exposes 3 fields with key field InternalDocumentStatus. It has 1 association to related views.

Data Sources (1)

SourceAliasJoin Type
I_LglCntntMDocStatus LglCntntMDocStatus from

Associations (1)

CardinalityTargetAliasCondition
[0..*] A_LglCntntMDocStatusText _LglCntntMDocStatusText $projection.InternalDocumentStatus = _LglCntntMDocStatusText.InternalDocumentStatus

Annotations (14)

NameValueLevelField
AbapCatalog.sqlViewName ALGLCNTDOCSTAT view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #CHECK view
ClientHandling.algorithm #SESSION_VARIABLE view
EndUserText.label Legal Document Status view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.representativeKey InternalDocumentStatus view
ObjectModel.usageType.dataClass #CUSTOMIZING view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.sizeCategory #S view
Search.searchable true view
VDM.lifecycle.contract.type #PUBLIC_REMOTE_API view
VDM.viewType #CONSUMPTION view

Fields (3)

KeyFieldSource TableSource FieldDescription
KEY InternalDocumentStatus I_LglCntntMDocStatus InternalDocumentStatus Status
LglCntntMDocStatusName
_LglCntntMDocStatusText _LglCntntMDocStatusText

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 A_LglCntntMDocStatus.
-- 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: ALGLCNTDOCSTAT

CREATE VIEW A_LglCntntMDocStatus AS
SELECT
  LglCntntMDocStatus.InternalDocumentStatus AS InternalDocumentStatus,
  _LglCntntMDocStatusText[1:Language=$session.system_language].LglCntntMDocStatusName AS LglCntntMDocStatusName
FROM I_LglCntntMDocStatus AS LglCntntMDocStatus
LEFT OUTER JOIN A_LglCntntMDocStatusText AS _LglCntntMDocStatusText ON InternalDocumentStatus = _LglCntntMDocStatusText.InternalDocumentStatus  -- association [0..*]
;