C_SubscrpnContrHierNode
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)
| Source | Alias | Join Type |
|---|---|---|
| I_SubscrpnContrHierNodeRltn | I_SubscrpnContrHierNodeRltn | from |
Associations (2)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [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)
| Name | Value | Level | Field |
|---|---|---|---|
| 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)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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]
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA