I_ServiceOrderCube
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
| State | Deprecated |
|---|---|
| Line of Business | Sales |
| Application Component | CRM-S4-ANA-CDS |
| Package | Sales for SAP S/4HANA Cloud Private Edition |
Documentation
- Analytics with CDS Views — Build Analytics for S/4HANA Cloud Private Edition ABAP CDS views replicated to SAP Cloud Platform
- CDS Views on SAP Business Accelerator Hub — Explore SAP S/4HANA Cloud Private Edition Private Edition CDS Views on SAP Business Accelerator Hub
- Create CDS View as API — Create CDS views in SAP S/4HANA Cloud Private Edition and consume them as APIs
- Custom CDS Views — Access data using a Custom Core Data Service view (Custom CDS view)
- Key User Extensibility Tools — The Key User Extensibility Tools of S/4HANA
- SAP Extensibility Explorer for SAP S/4HANA Cloud Private Edition — Explore SAP S/4HANA Cloud Private Edition Extensibility options by leveraging the sample scenarios from SAP
- SAP S/4HANA Extensibility — SAP S/4HANA Extensibility Tutorial
- VDM View Types — The Virtual Data Model in SAP S/4HANA Cloud Private Edition
- View Browser — Search, browse and tag CDS Views
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_ServiceDocumentEnhcd | I_ServiceDocumentEnhcd | from |
Associations (3)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [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)
| Name | Value | Level | Field |
|---|---|---|---|
| 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)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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]
;
Learn More
- S/4HANA CDS View Deprecation: What You Need to Know
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA