P_Cbase

DDL: P_CBASE SQL: PCBASE Type: view CONSUMPTION

P_Cbase is a Consumption CDS View in SAP S/4HANA. It reads from 1 data source (P_Ibin) and exposes 9 fields with key field InstalledBaseComponentRecordNo. It has 2 associations to related views.

Data Sources (1)

SourceAliasJoin Type
P_Ibin P_Ibin from

Associations (2)

CardinalityTargetAliasCondition
[1..1] P_Ibinown _ConfigurationOwnrInstance $projection.ConfigurationNumber = _ConfigurationOwnrInstance.instance
[1..*] P_Ibinobs _ConfigurationObjInstance $projection.ConfigurationNumber = _ConfigurationObjInstance.instance

Annotations (6)

NameValueLevelField
AbapCatalog.sqlViewName PCBASE view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #NOT_REQUIRED view
ClientHandling.algorithm #SESSION_VARIABLE view
VDM.viewType #CONSUMPTION view
VDM.private true view

Fields (9)

KeyFieldSource TableSource FieldDescription
KEY InstalledBaseComponentRecordNo in_recno Record number
ConfigurationNumber instance TaskCount
ConfigurationStatus cstatus ATINSTATUS
LastChangeDate LastChangeDate Time Stamp
ConfigurationProfileNumber ConfigurationProfileNumber
InstalledBaseCompObsvrType _ConfigurationObjInstance inttyp Internal Type
InstalledBaseCompObsvrObjKey _ConfigurationObjInstance objkey Push Object Key
InstalledBaseCompOwnrType _ConfigurationOwnrInstance inttyp Internal Type
InstalledBaseCompOwnrObjKey _ConfigurationOwnrInstance objkey Push Object Key

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_Cbase.
-- 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: PCBASE

CREATE VIEW P_Cbase AS
SELECT
  in_recno AS InstalledBaseComponentRecordNo,
  instance AS ConfigurationNumber,
  cstatus AS ConfigurationStatus,
  LastChangeDate,
  ConfigurationProfileNumber,
  _ConfigurationObjInstance.inttyp AS InstalledBaseCompObsvrType,
  _ConfigurationObjInstance.objkey AS InstalledBaseCompObsvrObjKey,
  _ConfigurationOwnrInstance.inttyp AS InstalledBaseCompOwnrType,
  _ConfigurationOwnrInstance.objkey AS InstalledBaseCompOwnrObjKey
FROM P_Ibin
LEFT OUTER JOIN P_Ibinown AS _ConfigurationOwnrInstance ON ConfigurationNumber = _ConfigurationOwnrInstance.instance  -- association [1..1]
LEFT OUTER JOIN P_Ibinobs AS _ConfigurationObjInstance ON ConfigurationNumber = _ConfigurationObjInstance.instance  -- association [1..*]
;