I_SubscriptionContract

DDL: I_SUBSCRIPTIONCONTRACT Type: view_entity COMPOSITE

Subscription Contract

I_SubscriptionContract is a Composite CDS View that provides data about "Subscription Contract" in SAP S/4HANA. It reads from 1 data source (I_ServiceDocumentEnhcd) and exposes 56 fields with key field SubscriptionContract. It has 3 associations to related views.

Data Sources (1)

SourceAliasJoin Type
I_ServiceDocumentEnhcd I_ServiceDocumentEnhcd from

Associations (3)

CardinalityTargetAliasCondition
[0..*] I_SubscriptionContractItem _Item $projection.SubscriptionContract = _Item.SubscriptionContract
[0..1] I_ServiceDocumentStatus _SubscriptionContractStatus $projection.SubscriptionContractStatus = _SubscriptionContractStatus.ServiceDocumentStatus
[0..1] E_ServiceDocument _Extension _Extension.ServiceCategory = 'BUS2000266' and $projection.SubscriptionContract = _Extension.ServiceOrder

Annotations (10)

NameValueLevelField
EndUserText.label Subscription Contract view
VDM.viewType #COMPOSITE view
VDM.lifecycle.contract.type #SAP_INTERNAL_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
ObjectModel.sapObjectNodeType.name SubscriptionContract view
Metadata.ignorePropagatedAnnotations true view

Fields (56)

KeyFieldSource TableSource FieldDescription
KEY SubscriptionContract ServiceDocument Transaction ID
SubscriptionContractType ServiceDocumentType Transaction Type
SubscrpnContractDescription ServiceDocumentDescription
SubscriptionContractUUID ServiceDocumentUUID Object GUID
ServiceObjectType ServiceObjectType Object Type
ServiceDocumentType ServiceDocumentType Transaction Type
Language Language Report Text Language
SubscriptionContractPostingDte PostingDate Posting Date for GR
SubscriptionContractStatus ServiceDocumentStatus
SbsConGTSEmbargoStatus SrvcDocGTSEmbargoStatus
SbsConGTSScreeningStatus SrvcDocGTSScreeningStatus
SbsConGTSLglControlStatus SrvcDocGTSLglControlStatus
SubscriptionContractHasError ServiceDocumentHasError
PricingDocument PricingDocument Document Condition
PricingProcedure PricingProcedure Procedure
SalesOrganization SalesOrganization Sales Organization
SalesOffice SalesOffice Sales Office
SalesGroup SalesGroup Sales Group
SalesOrganizationOrgUnitID SalesOrganizationOrgUnitID
SalesOfficeOrgUnitID SalesOfficeOrgUnitID
SalesGroupOrgUnitID SalesGroupOrgUnitID
DistributionChannel DistributionChannel RefDistCh-Cust/Mat.
Division Division Internal Division ID
ServiceOrganization ServiceOrganization
SoldToParty SoldToParty Sold-to Party
ShipToParty ShipToParty Ship-To Party (obsolete)
BillToParty BillToParty Inv. Recipient
PayerParty PayerParty Payer
ContactPersonBusinessPartnerId ContactPerson Contact Person Key
RespEmployeeBusinessPartnerId ResponsibleEmployee Employee Resp.
PurchaseOrderByCustomer PurchaseOrderByCustomer Purchase Order Number
CreatedByUser ServiceDocumentCreatedByUser
CreationDateTime ServiceDocCreationDateTime
LastChangedByUser ServiceDocumentChangedByUser
LastChangeDateTime ServiceDocChangedDateTime
_ServiceObjType _ServiceObjType
_SoldToParty _SoldToParty
_ShipToParty _ShipToParty
_BillToParty _BillToParty
_PayerParty _PayerParty
_SalesOrganization _SalesOrganization
_SalesOffice _SalesOffice
_SalesGroup _SalesGroup
_SalesOrganizationOrgUnit_2 _SalesOrganizationOrgUnit_2
_SalesOfficeOrgUnit_2 _SalesOfficeOrgUnit_2
_SalesGroupOrgUnit_2 _SalesGroupOrgUnit_2
_DistributionChannel _DistributionChannel
_Division _Division
_ServiceOrganizationOrgUnit_2 _ServiceOrganizationOrgUnit_2
_ContactPerson _ContactPerson
_RespEmployee _RespEmployee
_SubscriptionContractStatus _SubscriptionContractStatus
_SrvcDocGTSLglControlStatus _SrvcDocGTSLglControlStatus
_SrvcDocGTSScreeningStatus _SrvcDocGTSScreeningStatus
_SrvcDocGTSEmbargoStatus _SrvcDocGTSEmbargoStatus
_Item _Item

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_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 I_SubscriptionContract AS
SELECT
  ServiceDocument AS SubscriptionContract,
  ServiceDocumentType AS SubscriptionContractType,
  ServiceDocumentDescription AS SubscrpnContractDescription,
  ServiceDocumentUUID AS SubscriptionContractUUID,
  ServiceObjectType,
  ServiceDocumentType,
  Language,
  PostingDate AS SubscriptionContractPostingDte,
  ServiceDocumentStatus AS SubscriptionContractStatus,
  SrvcDocGTSEmbargoStatus AS SbsConGTSEmbargoStatus,
  SrvcDocGTSScreeningStatus AS SbsConGTSScreeningStatus,
  SrvcDocGTSLglControlStatus AS SbsConGTSLglControlStatus,
  ServiceDocumentHasError AS SubscriptionContractHasError,
  PricingDocument,
  PricingProcedure,
  SalesOrganization,
  SalesOffice,
  SalesGroup,
  SalesOrganizationOrgUnitID,
  SalesOfficeOrgUnitID,
  SalesGroupOrgUnitID,
  DistributionChannel,
  Division,
  ServiceOrganization,
  SoldToParty,
  ShipToParty,
  BillToParty,
  PayerParty,
  ContactPerson AS ContactPersonBusinessPartnerId,
  ResponsibleEmployee AS RespEmployeeBusinessPartnerId,
  PurchaseOrderByCustomer,
  ServiceDocumentCreatedByUser AS CreatedByUser,
  ServiceDocCreationDateTime AS CreationDateTime,
  ServiceDocumentChangedByUser AS LastChangedByUser,
  ServiceDocChangedDateTime AS LastChangeDateTime
FROM I_ServiceDocumentEnhcd
LEFT OUTER JOIN I_SubscriptionContractItem AS _Item ON SubscriptionContract = _Item.SubscriptionContract  -- association [0..*]
LEFT OUTER JOIN I_ServiceDocumentStatus AS _SubscriptionContractStatus ON SubscriptionContractStatus = _SubscriptionContractStatus.ServiceDocumentStatus  -- association [0..1]
LEFT OUTER JOIN E_ServiceDocument AS _Extension ON _Extension.ServiceCategory = 'BUS2000266' AND SubscriptionContract = _Extension.ServiceOrder  -- association [0..1]
;