I_SubscriptionOrder
Subscription Order
I_SubscriptionOrder is a Composite CDS View that provides data about "Subscription Order" in SAP S/4HANA. It reads from 1 data source (I_ServiceDocumentEnhcd) and exposes 59 fields with key field SubscriptionOrder. It has 10 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_ServiceDocumentEnhcd | I_ServiceDocumentEnhcd | from |
Associations (10)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_StatusObjectUUIDStatus | _SrvcOrdStatus | $projection.SubscriptionOrderUUID = _SrvcOrdStatus.StatusObjectUUID and ( _SrvcOrdStatus.StatusCode = 'I1002' or _SrvcOrdStatus.StatusCode = 'I1003' or _SrvcOrdStatus.StatusCode = 'I1004' or _SrvcOrdStatus.StatusCode = 'I1005' ) and _SrvcOrdStatus.StatusIsActive = 'X' |
| [0..*] | I_SubscriptionOrderItem | _SubscriptionOrderItem | $projection.SubscriptionOrder = _SubscriptionOrderItem.SubscriptionOrder |
| [0..*] | I_SubscriptionOrderPartner | _SubscriptionOrderPartner | $projection.SubscriptionOrder = _SubscriptionOrderPartner.SubscriptionOrder |
| [0..*] | I_SubscriptionOrderUserStatus | _SubscriptionOrderUserStatus | $projection.SubscriptionOrder = _SubscriptionOrderUserStatus.SubscriptionOrder |
| [0..1] | I_SubscrpnOrdExternalReference | _ExternalReference | $projection.SubscriptionOrder = _ExternalReference.SubscriptionOrder |
| [0..*] | I_SubscrpnOrdFUPSubscrpnContr | _FollowUpContract | $projection.SubscriptionOrder = _FollowUpContract.SubscriptionOrder |
| [0..*] | I_SubscrpnOrdFUPSalesOrder | _FollowUpSalesOrder | $projection.SubscriptionOrder = _FollowUpSalesOrder.SubscriptionOrder |
| [0..*] | I_ChgOrdPrdcssrBusSolnQtan | _PredecessorQuotation | $projection.SubscriptionOrder = _PredecessorQuotation.SubscriptionOrder |
| [0..*] | I_ChgOrdPrdcssrSubscrpnContr | _PredecessorContract | $projection.SubscriptionOrder = _PredecessorContract.SubscriptionOrder |
| [0..*] | I_WBSElementBasicData | _WBSElement | $projection.WBSElementExternalID = _WBSElement.WBSElementExternalID |
Annotations (8)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #CHECK | view | |
| VDM.viewType | #COMPOSITE | view | |
| VDM.lifecycle.contract.type | #SAP_INTERNAL_API | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| EndUserText.label | Subscription Order | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #L | view |
Fields (59)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | SubscriptionOrder | ServiceDocument | Transaction ID | |
| ServiceObjectType | ServiceObjectType | Object Type | ||
| ServiceDocumentType | ServiceDocumentType | Transaction Type | ||
| SubscriptionOrderUUID | ServiceDocumentUUID | Object GUID | ||
| SubscriptionOrderDescription | ServiceDocumentDescription | |||
| CreationDateTime | ServiceDocCreationDateTime | |||
| LastChangeDateTime | ServiceDocChangedDateTime | |||
| CreatedByUser | ServiceDocumentCreatedByUser | |||
| LastChangedByUser | ServiceDocumentChangedByUser | |||
| PricingDocument | PricingDocument | Document Condition | ||
| PricingProcedure | PricingProcedure | Procedure | ||
| PurchaseOrderByCustomer | PurchaseOrderByCustomer | Purchase Order Number | ||
| CustomerPurchaseOrderDate | CustomerPurchaseOrderDate | Purchase Order Date | ||
| SubscrpnOrdIsOpen | ServiceDocumentIsOpen | |||
| SubscrpnOrdHasError | ServiceDocumentHasError | |||
| SrvcDocRejectionStatus | SrvcDocRejectionStatus | |||
| SubsOrdGTSEmbargoStatus | SrvcDocGTSEmbargoStatus | |||
| SubsOrdGTSScreeningStatus | SrvcDocGTSScreeningStatus | |||
| SubsOrdGTSLglControlStatus | SrvcDocGTSLglControlStatus | |||
| SoldToParty | SoldToParty | Sold-to Party | ||
| ShipToParty | ShipToParty | Ship-To Party (obsolete) | ||
| BillToParty | BillToParty | Inv. Recipient | ||
| PayerParty | PayerParty | Payer | ||
| ContactPerson | Contact Person Key | |||
| PersonResponsible | Employee Resp. | |||
| RequestedServiceStartDateTime | RequestedServiceStartDateTime | |||
| 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 | |||
| PaymentTerms | PaymentTerms | Pyt Terms | ||
| TransactionCurrency | TransactionCurrency | Transaction Currency | ||
| _SubscriptionOrderItem | _SubscriptionOrderItem | |||
| _SubscriptionOrderPartner | _SubscriptionOrderPartner | |||
| _SubscriptionOrderUserStatus | _SubscriptionOrderUserStatus | |||
| _ExternalReference | _ExternalReference | |||
| _FollowUpContract | _FollowUpContract | |||
| _FollowUpSalesOrder | _FollowUpSalesOrder | |||
| _PredecessorQuotation | _PredecessorQuotation | |||
| _PredecessorContract | _PredecessorContract | |||
| _SalesOrganization | _SalesOrganization | |||
| _DistributionChannel | _DistributionChannel | |||
| _Division | _Division | |||
| _SalesOffice | _SalesOffice | |||
| _SalesGroup | _SalesGroup | |||
| _SalesOrganizationOrgUnit_2 | _SalesOrganizationOrgUnit_2 | |||
| _SalesOfficeOrgUnit_2 | _SalesOfficeOrgUnit_2 | |||
| _SalesGroupOrgUnit_2 | _SalesGroupOrgUnit_2 | |||
| _ServiceOrganizationOrgUnit_2 | _ServiceOrganizationOrgUnit_2 | |||
| _TransactionCurrency | _TransactionCurrency | |||
| _PaymentTerms | _PaymentTerms | |||
| _ServiceObjType | _ServiceObjType | |||
| _ServiceDocumentType | _ServiceDocumentType | |||
| _WBSElement | _WBSElement |
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 I_SubscriptionOrder.
-- 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 I_SubscriptionOrder AS
SELECT
ServiceDocument AS SubscriptionOrder,
ServiceObjectType,
ServiceDocumentType,
ServiceDocumentUUID AS SubscriptionOrderUUID,
ServiceDocumentDescription AS SubscriptionOrderDescription,
ServiceDocCreationDateTime AS CreationDateTime,
ServiceDocChangedDateTime AS LastChangeDateTime,
ServiceDocumentCreatedByUser AS CreatedByUser,
ServiceDocumentChangedByUser AS LastChangedByUser,
PricingDocument,
PricingProcedure,
PurchaseOrderByCustomer,
CustomerPurchaseOrderDate,
ServiceDocumentIsOpen AS SubscrpnOrdIsOpen,
ServiceDocumentHasError AS SubscrpnOrdHasError,
SrvcDocRejectionStatus,
SrvcDocGTSEmbargoStatus AS SubsOrdGTSEmbargoStatus,
SrvcDocGTSScreeningStatus AS SubsOrdGTSScreeningStatus,
SrvcDocGTSLglControlStatus AS SubsOrdGTSLglControlStatus,
SoldToParty,
ShipToParty,
BillToParty,
PayerParty,
cast( ContactPerson as abap.numc( 10 )) AS ContactPerson,
cast( ResponsibleEmployee as abap.char( 12 )) AS PersonResponsible,
RequestedServiceStartDateTime,
SalesOrganization,
DistributionChannel,
Division,
SalesOffice,
SalesGroup,
SalesOrganizationOrgUnitID,
SalesOfficeOrgUnitID,
SalesGroupOrgUnitID,
ServiceOrganization,
PaymentTerms,
TransactionCurrency
FROM I_ServiceDocumentEnhcd
LEFT OUTER JOIN I_StatusObjectUUIDStatus AS _SrvcOrdStatus ON SubscriptionOrderUUID = _SrvcOrdStatus.StatusObjectUUID AND ( _SrvcOrdStatus.StatusCode = 'I1002' OR _SrvcOrdStatus.StatusCode = 'I1003' OR _SrvcOrdStatus.StatusCode = 'I1004' OR _SrvcOrdStatus.StatusCode = 'I1005' ) AND _SrvcOrdStatus.StatusIsActive = 'X' -- association [0..1]
LEFT OUTER JOIN I_SubscriptionOrderItem AS _SubscriptionOrderItem ON SubscriptionOrder = _SubscriptionOrderItem.SubscriptionOrder -- association [0..*]
LEFT OUTER JOIN I_SubscriptionOrderPartner AS _SubscriptionOrderPartner ON SubscriptionOrder = _SubscriptionOrderPartner.SubscriptionOrder -- association [0..*]
LEFT OUTER JOIN I_SubscriptionOrderUserStatus AS _SubscriptionOrderUserStatus ON SubscriptionOrder = _SubscriptionOrderUserStatus.SubscriptionOrder -- association [0..*]
LEFT OUTER JOIN I_SubscrpnOrdExternalReference AS _ExternalReference ON SubscriptionOrder = _ExternalReference.SubscriptionOrder -- association [0..1]
LEFT OUTER JOIN I_SubscrpnOrdFUPSubscrpnContr AS _FollowUpContract ON SubscriptionOrder = _FollowUpContract.SubscriptionOrder -- association [0..*]
LEFT OUTER JOIN I_SubscrpnOrdFUPSalesOrder AS _FollowUpSalesOrder ON SubscriptionOrder = _FollowUpSalesOrder.SubscriptionOrder -- association [0..*]
LEFT OUTER JOIN I_ChgOrdPrdcssrBusSolnQtan AS _PredecessorQuotation ON SubscriptionOrder = _PredecessorQuotation.SubscriptionOrder -- association [0..*]
LEFT OUTER JOIN I_ChgOrdPrdcssrSubscrpnContr AS _PredecessorContract ON SubscriptionOrder = _PredecessorContract.SubscriptionOrder -- association [0..*]
LEFT OUTER JOIN I_WBSElementBasicData AS _WBSElement ON WBSElementExternalID = _WBSElement.WBSElementExternalID -- 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