P_CnsldtnSegment

DDL: P_CNSLDTNSEGMENT SQL: PCSSEGMENT Type: view COMPOSITE

P_CnsldtnSegment is a Composite CDS View in SAP S/4HANA. It reads from 2 data sources (I_CnsldtnAddlMD, I_Segment) and exposes 4 fields with key field Segment.

Data Sources (2)

SourceAliasJoin Type
I_CnsldtnAddlMD I_CnsldtnAddlMD union_all
I_Segment I_Segment from

Annotations (9)

NameValueLevelField
AbapCatalog.sqlViewName PCSSEGMENT view
AccessControl.authorizationCheck #NOT_REQUIRED view
ClientHandling.algorithm #SESSION_VARIABLE view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.usageType.dataClass #MASTER view
ObjectModel.usageType.serviceQuality #B view
ObjectModel.usageType.sizeCategory #S view
VDM.viewType #COMPOSITE view
VDM.private true view

Fields (4)

KeyFieldSource TableSource FieldDescription
KEY Segment Segment Segment number
AdditionalMasterDataSource
AdditionalMasterDataSource
CnsldtnIsAdditionalMasterData

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_CnsldtnSegment.
-- 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: PCSSEGMENT

CREATE VIEW P_CnsldtnSegment AS
SELECT
  Segment,
  cast ( 'ACCTG' as fincs_masterdatasource ) AS AdditionalMasterDataSource,
  cast ( 'X' as fincs_isadditionalmasterdata preserving type ) AS CnsldtnIsAdditionalMasterData
FROM I_Segment
-- UNION ALL with additional select branch(es): I_CnsldtnAddlMD
;