A_SvTrMtAgrItmReltdSbscrContr

DDL: A_SVTRMTAGRITMRELTDSBSCRCONTR Type: view_entity CONSUMPTION

Item Related Subscription Contract

A_SvTrMtAgrItmReltdSbscrContr is a Consumption CDS View that provides data about "Item Related Subscription Contract" in SAP S/4HANA. It reads from 1 data source (I_ServiceDocumentItemEnhcd) and exposes 12 fields with key fields SubscriptionContract, SubscriptionContractItem. It has 2 associations to related views. It is exposed through 1 OData service (API_SRVCTRANSMASTERAGRMT).

Data Sources (1)

SourceAliasJoin Type
I_ServiceDocumentItemEnhcd I_ServiceDocumentItemEnhcd from

Associations (2)

CardinalityTargetAliasCondition
[1..1] A_SrvcTransMasterAgreementItem _MasterAgreementItem $projection.CustMgmtMasterAgreement = _MasterAgreementItem.SrvcTransMstrAgrmtID and $projection.CustMgmtMstrAgrmtItem = _MasterAgreementItem.SrvcTransMstrAgrmtItem
[1..1] A_SrvcTransMasterAgreement _MasterAgreement $projection.CustMgmtMasterAgreement = _MasterAgreement.SrvcTransMstrAgrmtID

Annotations (9)

NameValueLevelField
EndUserText.label Item Related Subscription Contract view
AccessControl.authorizationCheck #CHECK view
Metadata.ignorePropagatedAnnotations true view
OData.entityType.name MasterAgreementItemRelatedSubscriptionContract_Type view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #L view
VDM.viewType #CONSUMPTION view
VDM.lifecycle.contract.type #PUBLIC_REMOTE_API view

OData Services (1)

ServiceBindingVersionContractRelease
API_SRVCTRANSMASTERAGRMT API_SRVCTRANSMASTERAGRMT V4 C2 C1

Fields (12)

KeyFieldSource TableSource FieldDescription
KEY SubscriptionContract ServiceDocument Transaction ID
KEY SubscriptionContractItem ServiceDocumentItem Service Document
ServiceObjectType ServiceObjectType Object Type
SubscriptionContractExternalID SubscriptionContract Transaction ID
SoldToParty SoldToParty Sold-to Party
Product Product Product Sold
ServiceContrItemStartDateTime ServiceContrItemStartDateTime
ServiceContrItemEndDateTime ServiceContrItemEndDateTime
CustMgmtMasterAgreement CustMgmtMasterAgreement
CustMgmtMstrAgrmtItem CustMgmtMstrAgrmtItem
_MasterAgreementItem _MasterAgreementItem
_MasterAgreement _MasterAgreement

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_SvTrMtAgrItmReltdSbscrContr.
-- 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_SvTrMtAgrItmReltdSbscrContr AS
SELECT
  ServiceDocument AS SubscriptionContract,
  ServiceDocumentItem AS SubscriptionContractItem,
  ServiceObjectType,
  SubscriptionContract AS SubscriptionContractExternalID,
  SoldToParty,
  Product,
  ServiceContrItemStartDateTime,
  ServiceContrItemEndDateTime,
  CustMgmtMasterAgreement,
  CustMgmtMstrAgrmtItem
FROM I_ServiceDocumentItemEnhcd
LEFT OUTER JOIN A_SrvcTransMasterAgreementItem AS _MasterAgreementItem ON CustMgmtMasterAgreement = _MasterAgreementItem.SrvcTransMstrAgrmtID AND CustMgmtMstrAgrmtItem = _MasterAgreementItem.SrvcTransMstrAgrmtItem  -- association [1..1]
LEFT OUTER JOIN A_SrvcTransMasterAgreement AS _MasterAgreement ON CustMgmtMasterAgreement = _MasterAgreement.SrvcTransMstrAgrmtID  -- association [1..1]
;