A_SubscriptionContract

DDL: A_SUBSCRIPTIONCONTRACT Type: view_entity CONSUMPTION

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)

SourceAliasJoin Type
I_ServiceDocumentEnhcd I_ServiceDocumentEnhcd from

Associations (7)

CardinalityTargetAliasCondition
[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)

NameValueLevelField
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)

KeyFieldSource TableSource FieldDescription
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..*]
;