A_SubscriptionContract
Subscription Contract Header
A_SubscriptionContract is a Consumption CDS View that provides data about "Subscription Contract Header" in SAP S/4HANA. It reads from 1 data source (I_ServiceDocumentEnhcd) and exposes 31 fields with key field SubscriptionContract. It has 7 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_ServiceDocumentEnhcd | I_ServiceDocumentEnhcd | from |
Associations (7)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..*] | A_SubscriptionContractItem | _Item | $projection.SubscriptionContract = _Item.SubscriptionContract |
| [0..*] | A_SubscriptionContractText | _Text | $projection.SubscriptionContract = _Text.SubscriptionContract |
| [0..1] | E_ServiceDocument | _Extension | _Extension.ServiceCategory = 'BUS2000266' and $projection.SubscriptionContract = _Extension.ServiceOrder |
| [0..*] | A_SbscrContrPrdcssrBusSolnQtn | _PredecessorSolutionQuotation | $projection.SubscriptionContract = _PredecessorSolutionQuotation.SubscriptionContract |
| [0..*] | A_SbscrContrPrdcssrSubscrpnOrd | _PredecessorSubscriptionOrder | $projection.SubscriptionContract = _PredecessorSubscriptionOrder.SubscriptionContract |
| [0..*] | A_SbscrContrFUPSubscrpnOrd | _FollowUpSubscriptionOrder | $projection.SubscriptionContract = _FollowUpSubscriptionOrder.SubscriptionContract |
| [0..*] | A_SubscriptionContractPartner | _SubscriptionContractPartner | $projection.SubscriptionContract = _SubscriptionContractPartner.SubscriptionContract |
Annotations (9)
| Name | Value | Level | Field |
|---|---|---|---|
| EndUserText.label | Subscription Contract Header | view | |
| VDM.viewType | #CONSUMPTION | view | |
| VDM.lifecycle.contract.type | #PUBLIC_REMOTE_API | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| ObjectModel.representativeKey | SubscriptionContract | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| Metadata.ignorePropagatedAnnotations | true | view |
Fields (31)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | SubscriptionContract | ServiceDocument | Transaction ID | |
| SubscriptionContractType | ServiceDocumentType | Transaction Type | ||
| SubscrpnContractDescription | ServiceDocumentDescription | |||
| SubscriptionContractUUID | ServiceDocumentUUID | Object GUID | ||
| Language | Language | Report Text Language | ||
| SbsConGTSEmbargoStatus | SrvcDocGTSEmbargoStatus | |||
| SbsConGTSScreeningStatus | SrvcDocGTSScreeningStatus | |||
| SbsConGTSLglControlStatus | SrvcDocGTSLglControlStatus | |||
| SalesOrganization | SalesOrganization | Sales Organization | ||
| DistributionChannel | DistributionChannel | RefDistCh-Cust/Mat. | ||
| Division | Division | Internal Division ID | ||
| SalesOffice | SalesOffice | Sales Office | ||
| SalesGroup | SalesGroup | Sales Group | ||
| SoldToParty | SoldToParty | Sold-to Party | ||
| ShipToParty | ShipToParty | Ship-To Party (obsolete) | ||
| BillToParty | BillToParty | Inv. Recipient | ||
| PayerParty | PayerParty | Payer | ||
| PersonResponsible | Employee Resp. | |||
| ContactPerson | Contact Person Key | |||
| CreatedByUser | ServiceDocumentCreatedByUser | |||
| CreationDateTime | ServiceDocCreationDateTime | |||
| LastChangedByUser | ServiceDocumentChangedByUser | |||
| LastChangeDateTime | ServiceDocChangedDateTime | |||
| PurchaseOrderByCustomer | PurchaseOrderByCustomer | Purchase Order Number | ||
| CustomerPurchaseOrderDate | CustomerPurchaseOrderDate | Purchase Order Date | ||
| _Item | _Item | |||
| _Text | _Text | |||
| _PredecessorSolutionQuotation | _PredecessorSolutionQuotation | |||
| _PredecessorSubscriptionOrder | _PredecessorSubscriptionOrder | |||
| _FollowUpSubscriptionOrder | _FollowUpSubscriptionOrder | |||
| _SubscriptionContractPartner | _SubscriptionContractPartner |
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 A_SubscriptionContract.
-- 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 A_SubscriptionContract AS
SELECT
ServiceDocument AS SubscriptionContract,
ServiceDocumentType AS SubscriptionContractType,
ServiceDocumentDescription AS SubscrpnContractDescription,
ServiceDocumentUUID AS SubscriptionContractUUID,
Language,
SrvcDocGTSEmbargoStatus AS SbsConGTSEmbargoStatus,
SrvcDocGTSScreeningStatus AS SbsConGTSScreeningStatus,
SrvcDocGTSLglControlStatus AS SbsConGTSLglControlStatus,
SalesOrganization,
DistributionChannel,
Division,
SalesOffice,
SalesGroup,
SoldToParty,
ShipToParty,
BillToParty,
PayerParty,
cast( ResponsibleEmployee as abap.char( 12 )) AS PersonResponsible,
cast( ContactPerson as abap.numc( 10 )) AS ContactPerson,
ServiceDocumentCreatedByUser AS CreatedByUser,
ServiceDocCreationDateTime AS CreationDateTime,
ServiceDocumentChangedByUser AS LastChangedByUser,
ServiceDocChangedDateTime AS LastChangeDateTime,
PurchaseOrderByCustomer,
CustomerPurchaseOrderDate
FROM I_ServiceDocumentEnhcd
LEFT OUTER JOIN A_SubscriptionContractItem AS _Item ON SubscriptionContract = _Item.SubscriptionContract -- association [0..*]
LEFT OUTER JOIN A_SubscriptionContractText AS _Text ON SubscriptionContract = _Text.SubscriptionContract -- association [0..*]
LEFT OUTER JOIN E_ServiceDocument AS _Extension ON _Extension.ServiceCategory = 'BUS2000266' AND SubscriptionContract = _Extension.ServiceOrder -- association [0..1]
LEFT OUTER JOIN A_SbscrContrPrdcssrBusSolnQtn AS _PredecessorSolutionQuotation ON SubscriptionContract = _PredecessorSolutionQuotation.SubscriptionContract -- association [0..*]
LEFT OUTER JOIN A_SbscrContrPrdcssrSubscrpnOrd AS _PredecessorSubscriptionOrder ON SubscriptionContract = _PredecessorSubscriptionOrder.SubscriptionContract -- association [0..*]
LEFT OUTER JOIN A_SbscrContrFUPSubscrpnOrd AS _FollowUpSubscriptionOrder ON SubscriptionContract = _FollowUpSubscriptionOrder.SubscriptionContract -- association [0..*]
LEFT OUTER JOIN A_SubscriptionContractPartner AS _SubscriptionContractPartner ON SubscriptionContract = _SubscriptionContractPartner.SubscriptionContract -- association [0..*]
;
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