C_SubscrpnContrHierNode

DDL: C_SUBSCRPNCONTRHIERNODE Type: view_entity CONSUMPTION

Subscription Contract Hierarchy

C_SubscrpnContrHierNode is a Consumption CDS View that provides data about "Subscription Contract Hierarchy" in SAP S/4HANA. It reads from 1 data source (I_SubscrpnContrHierNodeRltn) and exposes 51 fields with key fields SubscriptionContract, SubscriptionContractExternalID, SubscriptionContractItem. It has 2 associations to related views.

Data Sources (1)

SourceAliasJoin Type
I_SubscrpnContrHierNodeRltn I_SubscrpnContrHierNodeRltn from

Associations (2)

CardinalityTargetAliasCondition
[1..1] C_SubscriptionContractTP _Header $projection.SubscriptionContract = _Header.SubscriptionContract
[0..1] C_SubscrpnContrHierNode _ParentNode $projection.SubscriptionContract = _ParentNode.SubscriptionContract and $projection.SubscriptionContractExternalID = _ParentNode.SubscriptionContractExternalID and $projection.SubscrpnContrItmParItm = _ParentNode.SubscriptionContractItem

Annotations (9)

NameValueLevelField
AccessControl.authorizationCheck #MANDATORY view
EndUserText.label Subscription Contract Hierarchy view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
VDM.viewType #CONSUMPTION view
Metadata.allowExtensions true view
ObjectModel.query.implementedBy ABAP:CL_CRMS4_SOM_DYN_HIER_QUERY view

Fields (51)

KeyFieldSource TableSource FieldDescription
KEY SubscriptionContract SubscriptionContract Transaction ID
KEY SubscriptionContractExternalID SubscriptionContractExternalID Contract Number
KEY SubscriptionContractItem SubscriptionContractItem Item Number in Doc.
SubscrpnContrItmCharUUID SubscrpnContrItmCharUUID
SubscrpnContrItmHierNdeDesc SubscrpnContrItmHierNdeDesc
TransactionCurrency TransactionCurrency Transaction Currency
Product Product Product Sold
ProductName ProductName Description
SubscrpnContrItmNetAmount SubscrpnContrItmNetAmount
SubscrpnContrItmGrossAmount SubscrpnContrItmGrossAmount
Quantity Quantity Value
QuantityUnit QuantityUnit Unit of measure
SubscrpnContrItmStartDateTime SubscrpnContrItmStartDateTime
SubscrpnContrItmEndDateTime SubscrpnContrItmEndDateTime
SbscrContrTimeSliceStrtDteTme SbscrContrTimeSliceStrtDteTme
SbscrContrTimeSliceEndDteTme SbscrContrTimeSliceEndDteTme
SubscrpnContractItemIsRejected SubscrpnContractItemIsRejected
SubscrpnContractItemIsActive SubscrpnContractItemIsActive
SbscrContrItmActvCritlty SbscrContrItmActvCritlty
SubscrpnContrItmIsWithdrawn SubscrpnContrItmIsWithdrawn
SubscrpnContrItmIsCancelled SubscrpnContrItmIsCancelled
SubscrpnContrItmHasError SubscrpnContrItmHasError
SbscrContrItmCancldCritlty SbscrContrItmCancldCritlty
SubscrpnContrItmErrCritlty SubscrpnContrItmErrCritlty
SubscrpnContrItmWthdrwnCritlty SubscrpnContrItmWthdrwnCritlty
SitnNumberOfInstances SitnNumberOfInstances
RespEmployeeBusinessPartnerId RespEmployeeBusinessPartnerId
ServiceObjectType ServiceObjectType Object Type
ServiceDocumentItemObjectType ServiceDocumentItemObjectType
ServiceDocumentType ServiceDocumentType Transaction Type
SalesOrganization SalesOrganization Sales Organization
DistributionChannel DistributionChannel RefDistCh-Cust/Mat.
Division Division Internal Division ID
SalesOffice SalesOffice Sales Office
SalesGroup SalesGroup Sales Group
SalesOrganizationOrgUnitID SalesOrganizationOrgUnitID
SalesOfficeOrgUnitID SalesOfficeOrgUnitID
SalesGroupOrgUnitID SalesGroupOrgUnitID
ServiceOrganization ServiceOrganization
SbscrContrStateType
SubscrpnContrItmParItm SubscrpnContrItmParItm
SbscrContrStateTypeCritically SbscrContrStateTypeCritically
SbscrContrStateTypeText
HierarchyNode
HierarchyParentNode
HierarchyDistanceFromRoot
HierarchyDescendantCount
HierarchyDrillState
HierarchyNodeOrdinalNumber
_Header _Header
_ParentNode _ParentNode

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_SubscrpnContrHierNode.
-- 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.

CREATE VIEW C_SubscrpnContrHierNode AS
SELECT
  SubscriptionContract,
  SubscriptionContractExternalID,
  SubscriptionContractItem,
  SubscrpnContrItmCharUUID,
  SubscrpnContrItmHierNdeDesc,
  TransactionCurrency,
  Product,
  ProductName,
  SubscrpnContrItmNetAmount,
  SubscrpnContrItmGrossAmount,
  Quantity,
  QuantityUnit,
  SubscrpnContrItmStartDateTime,
  SubscrpnContrItmEndDateTime,
  SbscrContrTimeSliceStrtDteTme,
  SbscrContrTimeSliceEndDteTme,
  SubscrpnContractItemIsRejected,
  SubscrpnContractItemIsActive,
  SbscrContrItmActvCritlty,
  SubscrpnContrItmIsWithdrawn,
  SubscrpnContrItmIsCancelled,
  SubscrpnContrItmHasError,
  SbscrContrItmCancldCritlty,
  SubscrpnContrItmErrCritlty,
  SubscrpnContrItmWthdrwnCritlty,
  SitnNumberOfInstances,
  RespEmployeeBusinessPartnerId,
  ServiceObjectType,
  ServiceDocumentItemObjectType,
  ServiceDocumentType,
  SalesOrganization,
  DistributionChannel,
  Division,
  SalesOffice,
  SalesGroup,
  SalesOrganizationOrgUnitID,
  SalesOfficeOrgUnitID,
  SalesGroupOrgUnitID,
  ServiceOrganization,
  cast('' as abap.char(1)) AS SbscrContrStateType,
  SubscrpnContrItmParItm,
  SbscrContrStateTypeCritically,
  cast('' as abap.char(60)) AS SbscrContrStateTypeText,
  cast('' as abap.char(1333)) AS HierarchyNode,
  cast('' as abap.char(1333)) AS HierarchyParentNode,
  cast(0 as abap.int4) AS HierarchyDistanceFromRoot,
  cast(0 as abap.int4) AS HierarchyDescendantCount,
  cast(0 as abap.char(22)) AS HierarchyDrillState,
  cast(0 as abap.int4) AS HierarchyNodeOrdinalNumber
FROM I_SubscrpnContrHierNodeRltn
LEFT OUTER JOIN C_SubscriptionContractTP AS _Header ON SubscriptionContract = _Header.SubscriptionContract  -- association [1..1]
LEFT OUTER JOIN C_SubscrpnContrHierNode AS _ParentNode ON SubscriptionContract = _ParentNode.SubscriptionContract AND SubscriptionContractExternalID = _ParentNode.SubscriptionContractExternalID AND SubscrpnContrItmParItm = _ParentNode.SubscriptionContractItem  -- association [0..1]
;