P_DistinctAllocPostingType

DDL: P_DISTINCTALLOCPOSTINGTYPE SQL: ALOPOSTYPDIST Type: view CONSUMPTION

P_DistinctAllocPostingType is a Consumption CDS View in SAP S/4HANA. It reads from 1 data source (C_AllocationContextVH) and exposes 2 fields with key field AllocationPostingType. It has 1 association to related views.

Data Sources (1)

SourceAliasJoin Type
C_AllocationContextVH _AllocContext inner

Associations (1)

CardinalityTargetAliasCondition
[1..1] I_AllocationPostingType _AllocPostingType _AllocPostingType.AllocationPostingType = _DistinctValues.AllocationPostingType

Annotations (7)

NameValueLevelField
AbapCatalog.sqlViewName ALOPOSTYPDIST view
AbapCatalog.compiler.compareFilter true view
ClientHandling.algorithm #SESSION_VARIABLE view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #CHECK view
VDM.viewType #CONSUMPTION view
VDM.private true view

Fields (2)

KeyFieldSource TableSource FieldDescription
KEY AllocationPostingType _AllocPostingType AllocationPostingType Posting Type
AllocationPostingTypeText

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 P_DistinctAllocPostingType.
-- 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: ALOPOSTYPDIST

CREATE VIEW P_DistinctAllocPostingType AS
SELECT
  _AllocPostingType.AllocationPostingType AS AllocationPostingType,
  _AllocPostingType._Text[1:Language = $session.system_language].AllocationPostingTypeText AS AllocationPostingTypeText
INNER JOIN C_AllocationContextVH AS _AllocContext ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_AllocationPostingType AS _AllocPostingType ON _AllocPostingType.AllocationPostingType = _DistinctValues.AllocationPostingType  -- association [1..1]
;