I_SubscrpnContrItemDistrSitn

DDL: I_SUBSCRPNCONTRITEMDISTRSITN Type: view_entity COMPOSITE

Subcription Contract Distribution Situation

I_SubscrpnContrItemDistrSitn is a Composite CDS View that provides data about "Subcription Contract Distribution Situation" in SAP S/4HANA. It reads from 1 data source (I_ServiceDocumentItemEnhcd) and exposes 30 fields with key fields ServiceObjectType, SubscriptionContract, SubscriptionContractItem.

Data Sources (1)

SourceAliasJoin Type
I_ServiceDocumentItemEnhcd SubscriptionContractItem from

Annotations (8)

NameValueLevelField
AccessControl.authorizationCheck #MANDATORY view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #XL view
VDM.viewType #COMPOSITE view
ObjectModel.uniqueIdField SubscriptionContractItemUUID view
EndUserText.label Subcription Contract Distribution Situation view
Metadata.ignorePropagatedAnnotations true view

Fields (30)

KeyFieldSource TableSource FieldDescription
KEY ServiceObjectType I_ServiceDocumentItemEnhcd ServiceObjectType Object Type
KEY SubscriptionContract I_ServiceDocumentItemEnhcd ServiceDocument Transaction ID
KEY SubscriptionContractItem I_ServiceDocumentItemEnhcd ServiceDocumentItem Service Document
ServiceDocumentType I_ServiceDocumentItemEnhcd ServiceDocumentType Transaction Type
ServiceDocItemCategory I_ServiceDocumentItemEnhcd ServiceDocItemCategory
Product I_ServiceDocumentItemEnhcd Product Product Sold
ResponsibleSalesOrganization I_ServiceDocumentItemEnhcd ResponsibleSalesOrganization
RespEmployeeBusinessPartnerId I_ServiceDocumentItemEnhcd ResponsibleEmployee Employee Resp.
ResponsibleEmployeeUserID RespEmployeeUser UserID User Name
SubscrpnDocItemStateSecsValue Seconds in current state
SubscriptionContractItemUUID I_ServiceDocumentItemEnhcd ServiceDocumentItemUUID
SubscrpnContrItmCharUUID I_ServiceDocumentItemEnhcd ServiceDocumentItemCharUUID
SubscrpnContrTimeSliceStatus I_ServiceDocumentItemEnhcd SubscrpnContrTimeSliceStatus
SubscrpnDocItemDistrStepType SubscrpnDocumentItemDistr SubscrpnDocItemDistrStepType
SubscrpnDocItemDistrStepCat SubscrpnDocumentItemDistr SubscrpnDocItemDistrStepCat
SubscrpnDocItemDistrStepSchema SubscrpnDocumentItemDistr SubscrpnDocItemDistrStepSchema
SubscrpnDocItemDistrStepState SubscrpnDocumentItemDistr SubscrpnDocItemDistrStepState
SubscrpnDocItemDistrStep SubscrpnDocumentItemDistr SubscrpnDocItemDistrStep
SbscrDocItemDistrStpExecDteTme SubscrpnDocumentItemDistr SbscrDocItemDistrStpExecDteTme
SalesOrganizationOrgUnitID I_ServiceDocumentItemEnhcd SalesOrganizationOrgUnitID
SalesOfficeOrgUnitID I_ServiceDocumentItemEnhcd SalesOfficeOrgUnitID
ServiceOrganization I_ServiceDocumentItemEnhcd ServiceOrganization
SalesGroupOrgUnitID I_ServiceDocumentItemEnhcd SalesGroupOrgUnitID
SalesOrganization I_ServiceDocumentItemEnhcd SalesOrganization Sales Organization
DistributionChannel I_ServiceDocumentItemEnhcd DistributionChannel RefDistCh-Cust/Mat.
Division I_ServiceDocumentItemEnhcd Division Internal Division ID
SalesOffice I_ServiceDocumentItemEnhcd SalesOffice Sales Office
SalesGroup I_ServiceDocumentItemEnhcd SalesGroup Sales Group
_RespEmployee I_ServiceDocumentItemEnhcd _RespEmployee
_ServiceDocument I_ServiceDocumentItemEnhcd _ServiceDocument

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_SubscrpnContrItemDistrSitn.
-- 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_SubscrpnContrItemDistrSitn AS
SELECT
  SubscriptionContractItem.ServiceObjectType AS ServiceObjectType,
  SubscriptionContractItem.ServiceDocument AS SubscriptionContract,
  SubscriptionContractItem.ServiceDocumentItem AS SubscriptionContractItem,
  SubscriptionContractItem.ServiceDocumentType AS ServiceDocumentType,
  SubscriptionContractItem.ServiceDocItemCategory AS ServiceDocItemCategory,
  SubscriptionContractItem.Product AS Product,
  SubscriptionContractItem.ResponsibleSalesOrganization AS ResponsibleSalesOrganization,
  SubscriptionContractItem.ResponsibleEmployee AS RespEmployeeBusinessPartnerId,
  RespEmployeeUser.UserID AS ResponsibleEmployeeUserID,
  tstmp_seconds_between( SubscrpnDocumentItemDistr.SbscrDocItemDistrStpExecDteTme, tstmp_current_utctimestamp() ,'NULL' ) AS SubscrpnDocItemStateSecsValue,
  SubscriptionContractItem.ServiceDocumentItemUUID AS SubscriptionContractItemUUID,
  SubscriptionContractItem.ServiceDocumentItemCharUUID AS SubscrpnContrItmCharUUID,
  SubscriptionContractItem.SubscrpnContrTimeSliceStatus AS SubscrpnContrTimeSliceStatus,
  SubscrpnDocumentItemDistr.SubscrpnDocItemDistrStepType AS SubscrpnDocItemDistrStepType,
  SubscrpnDocumentItemDistr.SubscrpnDocItemDistrStepCat AS SubscrpnDocItemDistrStepCat,
  SubscrpnDocumentItemDistr.SubscrpnDocItemDistrStepSchema AS SubscrpnDocItemDistrStepSchema,
  SubscrpnDocumentItemDistr.SubscrpnDocItemDistrStepState AS SubscrpnDocItemDistrStepState,
  SubscrpnDocumentItemDistr.SubscrpnDocItemDistrStep AS SubscrpnDocItemDistrStep,
  SubscrpnDocumentItemDistr.SbscrDocItemDistrStpExecDteTme AS SbscrDocItemDistrStpExecDteTme,
  SubscriptionContractItem.SalesOrganizationOrgUnitID AS SalesOrganizationOrgUnitID,
  SubscriptionContractItem.SalesOfficeOrgUnitID AS SalesOfficeOrgUnitID,
  SubscriptionContractItem.ServiceOrganization AS ServiceOrganization,
  SubscriptionContractItem.SalesGroupOrgUnitID AS SalesGroupOrgUnitID,
  SubscriptionContractItem.SalesOrganization AS SalesOrganization,
  SubscriptionContractItem.DistributionChannel AS DistributionChannel,
  SubscriptionContractItem.Division AS Division,
  SubscriptionContractItem.SalesOffice AS SalesOffice,
  SubscriptionContractItem.SalesGroup AS SalesGroup,
  SubscriptionContractItem._RespEmployee AS _RespEmployee,
  SubscriptionContractItem._ServiceDocument AS _ServiceDocument
FROM I_ServiceDocumentItemEnhcd AS SubscriptionContractItem
;