Deprecated PUBLIC_LOCAL_API
This CDS view is deprecated in S/4HANA. Use I_ServiceOrderCube_2 instead. View all deprecated CDS views →

I_ServiceOrderCube

DDL: I_SERVICEORDERCUBE Type: view COMPOSITE

Service Order - Cube

I_ServiceOrderCube (Composite)

Package: Explore, extend and adapt the SAP S/4HANA Cloud Private Edition with built-in and side-by-side extension capabilities.

Sales

I_ServiceOrderCube is a Composite CDS View (Cube) that provides data about "Service Order - Cube" in SAP S/4HANA. It reads from 1 data source (I_ServiceDocumentEnhcd) and exposes 37 fields with key fields ServiceObjectType, ServiceOrder. It has 3 associations to related views.

SAP API Hub

StateDeprecated
Line of BusinessSales
Application ComponentCRM-S4-ANA-CDS
PackageSales for SAP S/4HANA Cloud Private Edition

Documentation

Data Sources (1)

SourceAliasJoin Type
I_ServiceDocumentEnhcd I_ServiceDocumentEnhcd from

Associations (3)

CardinalityTargetAliasCondition
[0..1] P_SrvcOrdDistinctConfExist _SrvcOrdItmConfExist $projection.ServiceObjectType = _SrvcOrdItmConfExist.ServiceObjectType and $projection.ServiceOrder = _SrvcOrdItmConfExist.ServiceOrder
[1..1] I_SrvcOrdConfStatus _SrvcOrdConfStatus $projection.SrvcOrdHasConfdItem = _SrvcOrdConfStatus.SrvcOrdHasConfdItem
[0..1] E_ServiceDocument _ServiceDocumentExt $projection.ServiceObjectType = _ServiceDocumentExt.ServiceCategory and $projection.ServiceOrder = _ServiceDocumentExt.ServiceOrder

Annotations (17)

NameValueLevelField
EndUserText.label Service Order - Cube view
ClientHandling.algorithm #SESSION_VARIABLE view
AbapCatalog.sqlViewName ISERVORDCUBE view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
VDM.viewType #COMPOSITE view
VDM.lifecycle.contract.type #PUBLIC_LOCAL_API view
VDM.lifecycle.status #DEPRECATED view
VDM.lifecycle.successor I_ServiceOrderCube_2 view
AccessControl.authorizationCheck #CHECK view
ObjectModel.representativeKey ServiceOrder view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #XXL view
Analytics.dataCategory #CUBE view
Metadata.allowExtensions true view
Metadata.ignorePropagatedAnnotations true view

Fields (37)

KeyFieldSource TableSource FieldDescription
KEY ServiceObjectType ServiceObjectType Business Trans. Cat.
KEY ServiceOrder ServiceDocument Transaction ID
ServiceOrderDescription ServiceDocumentDescription Transaction Description
ServiceOrderStatus ServiceDocumentStatus Life Cycle Status
ServiceDocumentType ServiceDocumentType Business Transaction Type
SoldToParty SoldToParty Sold-to Party
RequestedServiceEndDate RequestedServiceEndDate Requested End Date of Service
ServiceDocumentPriority ServiceDocumentPriority Activity Priority
ServiceDocumentHasError ServiceDocumentHasError Error Status
ServiceDocNetAmount ServiceDocNetAmount Total Net Value of Document in Document Currency
TransactionCurrency TransactionCurrency Transaction Currency
SalesOrganizationOrgUnitID SalesOrganizationOrgUnitID Sales Organization ID
SalesOfficeOrgUnitID SalesOfficeOrgUnitID Sales Office
SalesGroupOrgUnitID SalesGroupOrgUnitID Sales Group
SalesOrganization SalesOrganization Sales Organization
DistributionChannel DistributionChannel Distribution Channel
Division Division Internal Division ID
SalesOffice SalesOffice Sales Office
SalesGroup SalesGroup Sales Group
int4asNmbrOfIncompleteServiceOrders
int4endasNumberOfOverdueServiceOrders
_ServiceObjType _ServiceObjType
_ServiceDocumentStatus _ServiceDocumentStatus
_ServiceDocumentType _ServiceDocumentType
_ServiceDocumentPriority _ServiceDocumentPriority
_SoldToParty _SoldToParty
_ServiceDocHasError _ServiceDocHasError
_SrvcOrdConfStatus _SrvcOrdConfStatus
_SalesOrganizationOrgUnit _SalesOrganizationOrgUnit
_SalesOfficeOrgUnit _SalesOfficeOrgUnit
_SalesGroupOrgUnit _SalesGroupOrgUnit
_SalesOrganization _SalesOrganization
_SalesOffice _SalesOffice
_SalesGroup _SalesGroup
_DistributionChannel _DistributionChannel
_Division _Division
_TransactionCurrency _TransactionCurrency

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_ServiceOrderCube.
-- 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_ServiceOrderCube AS
SELECT
  ServiceObjectType,
  ServiceDocument AS ServiceOrder,
  ServiceDocumentDescription AS ServiceOrderDescription,
  ServiceDocumentStatus AS ServiceOrderStatus,
  ServiceDocumentType,
  SoldToParty,
  RequestedServiceEndDate,
  ServiceDocumentPriority,
  ServiceDocumentHasError,
  ServiceDocNetAmount,
  TransactionCurrency,
  SalesOrganizationOrgUnitID,
  SalesOfficeOrgUnitID,
  SalesGroupOrgUnitID,
  SalesOrganization,
  DistributionChannel,
  Division,
  SalesOffice,
  SalesGroup,
  cast( case when ServiceDocumentStatus = 'A' then cast (1 as abap.int4) when ServiceDocumentStatus = 'B' then cast (1 as abap.int4) when ServiceDocumentStatus = 'D' then cast (1 as abap.int4) end as abap.int4 ) as NmbrOfIncompleteServiceOrders AS int4asNmbrOfIncompleteServiceOrders,
  case when RequestedServiceEndDate < $session.system_date and ( ServiceDocumentStatus = 'A' or ServiceDocumentStatus = 'B' or ServiceDocumentStatus = 'D' ) then cast (1 as abap.int4) end as NumberOfOverdueServiceOrders AS int4endasNumberOfOverdueServiceOrders
FROM I_ServiceDocumentEnhcd
LEFT OUTER JOIN P_SrvcOrdDistinctConfExist AS _SrvcOrdItmConfExist ON ServiceObjectType = _SrvcOrdItmConfExist.ServiceObjectType AND ServiceOrder = _SrvcOrdItmConfExist.ServiceOrder  -- association [0..1]
LEFT OUTER JOIN I_SrvcOrdConfStatus AS _SrvcOrdConfStatus ON SrvcOrdHasConfdItem = _SrvcOrdConfStatus.SrvcOrdHasConfdItem  -- association [1..1]
LEFT OUTER JOIN E_ServiceDocument AS _ServiceDocumentExt ON ServiceObjectType = _ServiceDocumentExt.ServiceCategory AND ServiceOrder = _ServiceDocumentExt.ServiceOrder  -- association [0..1]
;