C_ServiceOrderItemQuery
Service Order Item - Query
C_ServiceOrderItemQuery is a Consumption CDS View that provides data about "Service Order Item - Query" in SAP S/4HANA. It reads from 1 data source (I_SrvcOrdItmWthSrvcContrCube) and exposes 44 fields with key fields ServiceObjectType, ServiceOrder, ServiceDocumentItem. Part of development package CRMS4_ANALYTICS.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_SrvcOrdItmWthSrvcContrCube | I_SrvcOrdItmWthSrvcContrCube | from |
Parameters (1)
| Name | Type | Default |
|---|---|---|
| P_DisplayCurrency | vdm_v_display_currency |
Annotations (15)
| Name | Value | Level | Field |
|---|---|---|---|
| EndUserText.label | Service Order Item - Query | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| VDM.viewType | #CONSUMPTION | view | |
| VDM.lifecycle.contract.type | #PUBLIC_LOCAL_API | view | |
| AccessControl.authorizationCheck | #PRIVILEGED_ONLY | view | |
| AbapCatalog.sqlViewName | CSRVCORDITMQ | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| ObjectModel.usageType.sizeCategory | #XXL | view | |
| ObjectModel.modelingPattern | #ANALYTICAL_QUERY | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| Analytics.query | true | view | |
| OData.publish | true | view |
Fields (44)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | ServiceObjectType | ServiceObjectType | Object Type | |
| KEY | ServiceOrder | ServiceOrder | Transaction ID | |
| KEY | ServiceDocumentItem | ServiceDocumentItem | Service Document | |
| ServiceOrderItemProduct | ServiceOrderItemProduct | |||
| ServiceOrderItemStatus | ServiceOrderItemStatus | |||
| ServiceDocumentItemIsOpen | ServiceDocumentItemIsOpen | |||
| ServiceOrderItemQuantity | ServiceOrderItemQuantity | |||
| ServiceOrderItemQuantityUnit | ServiceOrderItemQuantityUnit | |||
| ServiceContract | ServiceContract | Transaction ID | ||
| ServiceContractItem | ServiceContractItem | Item Number in Doc. | ||
| ServiceContractItemProduct | ServiceContractItemProduct | |||
| ServiceContrItemBillingStatus | ServiceContrItemBillingStatus | |||
| ServiceContractItemStartDate | ServiceContractItemStartDate | |||
| ServiceContractItemEndDate | ServiceContractItemEndDate | |||
| ProfitCenter | ProfitCenter | Profit Center | ||
| ControllingArea | ControllingArea | Controlling Area | ||
| PurchaseOrderByCustomer | PurchaseOrderByCustomer | Purchase Order Number | ||
| NmbrOfFUPServiceOrderItems | NmbrOfFUPServiceOrderItems | |||
| NrOfSrvcOrdItmsWthoutContrRef | NrOfSrvcOrdItmsWthoutContrRef | |||
| DisplayCurrency | ||||
| ServiceContractItemIsActive | ServiceContractItemIsActive | |||
| Equipment | Equipment | Equipment check | ||
| FunctionalLocation | FunctionalLocation | Object ID | ||
| ServiceReferenceObjectType | ServiceReferenceObjectType | |||
| EquipmentCategory | EquipmentCategory | EquipCategory | ||
| FunctionalLocationCategory | FunctionalLocationCategory | FunctLocCat. | ||
| TechnicalObjectType | TechnicalObjectType | Text object | ||
| Material | Material | Vehicle Model | ||
| SrvcOrdCreationQuarter | SrvcOrdCreationQuarter | |||
| SrvcOrdCreationMonth | SrvcOrdCreationMonth | |||
| SrvcOrdCreationYear | SrvcOrdCreationYear | |||
| CreationDateYearQuarter | CreationDateYearQuarter | |||
| CreationDateYearMonth | CreationDateYearMonth | |||
| RefBusinessSolutionOrder | RefBusinessSolutionOrder | |||
| SoldToParty | SoldToParty | Sold-to Party | ||
| SoldToPartyCountry | SoldToPartyCountry | |||
| SoldToPartyRegion | SoldToPartyRegion | |||
| Industry | Industry | Industry Sector | ||
| SalesOrganization | SalesOrganization | Sales Organization | ||
| SalesOffice | SalesOffice | Sales Office | ||
| SalesGroup | SalesGroup | Sales Group | ||
| DistributionChannel | DistributionChannel | RefDistCh-Cust/Mat. | ||
| Division | Division | Internal Division ID | ||
| RespEmployeeBusinessPartnerId | RespEmployeeBusinessPartnerId |
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 C_ServiceOrderItemQuery.
-- 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.
-- Parameters: P_DisplayCurrency : vdm_v_display_currency
CREATE VIEW C_ServiceOrderItemQuery AS
SELECT
ServiceObjectType,
ServiceOrder,
ServiceDocumentItem,
ServiceOrderItemProduct,
ServiceOrderItemStatus,
ServiceDocumentItemIsOpen,
ServiceOrderItemQuantity,
ServiceOrderItemQuantityUnit,
ServiceContract,
ServiceContractItem,
ServiceContractItemProduct,
ServiceContrItemBillingStatus,
ServiceContractItemStartDate,
ServiceContractItemEndDate,
ProfitCenter,
ControllingArea,
PurchaseOrderByCustomer,
NmbrOfFUPServiceOrderItems,
NrOfSrvcOrdItmsWthoutContrRef,
$parameters.P_DisplayCurrency AS DisplayCurrency,
ServiceContractItemIsActive,
Equipment,
FunctionalLocation,
ServiceReferenceObjectType,
EquipmentCategory,
FunctionalLocationCategory,
TechnicalObjectType,
Material,
SrvcOrdCreationQuarter,
SrvcOrdCreationMonth,
SrvcOrdCreationYear,
CreationDateYearQuarter,
CreationDateYearMonth,
RefBusinessSolutionOrder,
SoldToParty,
SoldToPartyCountry,
SoldToPartyRegion,
Industry,
SalesOrganization,
SalesOffice,
SalesGroup,
DistributionChannel,
Division,
RespEmployeeBusinessPartnerId
FROM I_SrvcOrdItmWthSrvcContrCube
;
Learn More
- 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
- S/4HANA CDS View Deprecation: What You Need to Know
- 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