C_SrvcOrderListRptAndObjPg
Service Order
C_SrvcOrderListRptAndObjPg is a Consumption CDS View that provides data about "Service Order" in SAP S/4HANA. It reads from 1 data source (I_ServiceDocumentEnhcd) and exposes 97 fields with key field ServiceOrder. It has 16 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_ServiceDocumentEnhcd | _ServiceOrder | from |
Associations (16)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | C_ServiceDocumentSoldToPartyVH | _SoldToParty | $projection.SoldToParty = _SoldToParty.BusinessPartner |
| [0..1] | C_SrvcDocBusinessPartnerVH | _ServiceTeam | $projection.ServiceTeam = _ServiceTeam.BusinessPartner |
| [0..1] | C_SrvcDocBusinessPartnerVH | _RespEmployee | $projection.ResponsibleEmployee = _RespEmployee.BusinessPartner |
| [1..*] | C_SrvOrderItemListRptAndObjPg | _SrvOrderItemListRptAndObjPg | $projection.ServiceOrder = _SrvOrderItemListRptAndObjPg.ServiceDocument |
| [1..*] | C_ServiceDocObjPgNotes | _ServiceDocumentNotes | $projection.ServiceObjectType = _ServiceDocumentNotes.ServiceObjectType and $projection.ServiceOrder = _ServiceDocumentNotes.ServiceDocument |
| [1..*] | C_SrvcDocObjPgTransHistory | _ServiceDocumentTransHistory | $projection.ServiceObjectType = _ServiceDocumentTransHistory.ServiceObjectType and $projection.ServiceOrder = _ServiceDocumentTransHistory.ServiceDocument |
| [1..*] | C_ServiceDocObjPgErrorLog | _ServiceDocumentErrorLog | $projection.ServiceObjectType = _ServiceDocumentErrorLog.ServiceObjectType and $projection.ServiceOrder = _ServiceDocumentErrorLog.ServiceDocument |
| [0..1] | E_ServiceDocument | _ServiceDocumentExt | $projection.ServiceObjectType = _ServiceDocumentExt.ServiceCategory |
| [1..*] | C_ServiceOrderProductVH | _ConfirmationItem | $projection.ServiceOrder = _ConfirmationItem.ServiceDocument |
| [1..*] | C_SrvcDocProductVH | _Product | $projection.ReferenceProduct = _Product.Product |
| [1..*] | C_SrvcDocItemUnitOfMeasureVH | _Unit | $projection.ReferenceProduct = _Unit.Product |
| [0..*] | C_ServiceDocumentPartner | _PartiesInvolved | $projection.ServiceObjectType = _PartiesInvolved.CustMgmtObjectType and $projection.ServiceOrder = _PartiesInvolved.CustMgmtDocument and _PartiesInvolved.CustMgmtDocumentItem = '000000' |
| [1..*] | C_SrvcOrderObjPgPricingDets | _ServiceOrderPriceDets | $projection.ServiceObjectType = _ServiceOrderPriceDets.ServiceObjectType and $projection.ServiceOrder = _ServiceOrderPriceDets.ServiceDocument |
| [1..*] | C_SrvcOrderSoldToPartyVH | _ServiceOrderSoldToParty | $projection.SoldToParty = _ServiceOrderSoldToParty.BusinessPartner |
| [0..1] | I_CustMgmtExtRefID | _CustMgmtExtRef | $projection.ServiceOrder = _CustMgmtExtRef.CustMgmtDocument and $projection.ServiceObjectType = _CustMgmtExtRef.CustMgmtObjectType and _CustMgmtExtRef.CustMgmtExtRefIDType = '0001' |
| [1..*] | C_SrvcDocDateInformation | _SrvcDateInfo | ( $projection.ServiceOrder = _SrvcDateInfo.ServiceDocument and $projection.ServiceObjectType = _SrvcDateInfo.ServiceObjectType and _SrvcDateInfo.ServiceDocumentItem = '000000' ) or ( $projection.ServiceDocumentUUID = _SrvcDateInfo.SrvcMgmtObjectUUID ) |
Annotations (22)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | CSRVCORDERLIST | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| EndUserText.label | Service Order | view | |
| Search.searchable | true | view | |
| ObjectModel.compositionRoot | true | view | |
| UI.headerInfo.typeName | Service Order | view | |
| UI.headerInfo.typeNamePlural | Service Orders | view | |
| UI.headerInfo.title.type | #STANDARD | view | |
| UI.headerInfo.title.value | ServiceOrder | view | |
| UI.headerInfo.description.type | #STANDARD | view | |
| UI.headerInfo.description.value | ServiceOrderDescription | view | |
| VDM.viewType | #CONSUMPTION | view | |
| ObjectModel.representativeKey | ServiceOrder | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| UI.lineItem.criticality | ServiceOrdErrorStsCriticality | view | |
| Consumption.semanticObject | ServiceOrder | view | |
| VDM.lifecycle.status | #DEPRECATED | view | |
| VDM.lifecycle.successor | C_SrvcOrdDocListRptAndObjPg | view |
Fields (97)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| ServiceDocDuration | ||||
| EquipmentName | ||||
| FunctionalLocationName | ||||
| ReferenceProduct | Reference Product | |||
| ProductName | ||||
| clientNULLasRequestedServiceStartDate | Requested Start | |||
| clientNULLasRequestedServiceEndDate | Requested End | |||
| ServiceOrderUUID | ||||
| ServiceDocBillingStatusName | Billing Status | |||
| ServiceDocIsRelForBillCritlty | ||||
| ServiceDocOvrlBillgBlkStsName | Billing Block | |||
| SrvcDocOvrlBillgBlkStsCritlty | ||||
| ServiceDocOvrlBillingStsName | Invoice Status | |||
| ServiceDocOvrlBillgBlkSts | ||||
| ServiceDocOvrlBillingStsCritl | ||||
| ServiceDocOvrlBillingSts | ||||
| PriceIsFixed | ||||
| NumberOfItems | ||||
| NumberOfCompletedItems | ||||
| SalesOrganization | SalesOrganization | Sales Organization | ||
| DistributionChannel | DistributionChannel | Distribution Channel | ||
| Division | Division | Division | ||
| SalesOffice | SalesOffice | Sales Office | ||
| SalesGroup | SalesGroup | Sales Group | ||
| _SoldToParty | _SoldToParty | |||
| _RespEmployee | _RespEmployee | |||
| _ServiceTeam | _ServiceTeam | |||
| _ServiceEmployee | _ServiceEmployee | |||
| _ContactPerson | _ContactPerson | |||
| _ServiceDocumentType | _ServiceDocumentType | |||
| _ServiceDocumentPriority | _ServiceDocumentPriority | |||
| _ServiceDocumentStatus | _ServiceDocumentStatus | |||
| _SrvcDocLifecycleStatus | _SrvcDocLifecycleStatus | |||
| _ServiceDocHasError | _ServiceDocHasError | |||
| _ActivityCategory | _ActivityCategory | |||
| _ServiceDocRefObj | _ServiceDocRefObj | |||
| _ServiceDocumentNotes | _ServiceDocumentNotes | |||
| _Product | _Product | |||
| _ConfirmationItem | _ConfirmationItem | |||
| _Unit | _Unit | |||
| _SrvOrderItemListRptAndObjPg | _SrvOrderItemListRptAndObjPg | |||
| _ServiceDocumentTransHistory | _ServiceDocumentTransHistory | |||
| _ServiceDocumentErrorLog | _ServiceDocumentErrorLog | |||
| _SalesOrganization | _SalesOrganization | |||
| _SalesOffice | _SalesOffice | |||
| _SalesGroup | _SalesGroup | |||
| _Division | _Division | |||
| _DistributionChannel | _DistributionChannel | |||
| SalesOrganizationOrgUnitID | SalesOrganizationOrgUnitID | |||
| SalesOfficeOrgUnitID | SalesOfficeOrgUnitID | |||
| SalesGroupOrgUnitID | SalesGroupOrgUnitID | |||
| ServiceOrganization | ServiceOrganization | |||
| _SalesOrganizationOrgUnit | _SalesOrganizationOrgUnit | |||
| _SalesOrganizationOrgUnit_2 | _SalesOrganizationOrgUnit_2 | |||
| _SalesOfficeOrgUnit | _SalesOfficeOrgUnit | |||
| _SalesOfficeOrgUnit_2 | _SalesOfficeOrgUnit_2 | |||
| _SalesGroupOrgUnit | _SalesGroupOrgUnit | |||
| _SalesGroupOrgUnit_2 | _SalesGroupOrgUnit_2 | |||
| _ServiceOrganizationOrgUnit | _ServiceOrganizationOrgUnit | |||
| _ServiceOrganizationOrgUnit_2 | _ServiceOrganizationOrgUnit_2 | |||
| _SrvcDateInfo | _SrvcDateInfo | |||
| _PartiesInvolved | _PartiesInvolved | |||
| _ServiceOrderPriceDets | _ServiceOrderPriceDets | |||
| _ServiceOrderSoldToParty | _ServiceOrderSoldToParty | |||
| KEY | ServiceOrder | I_ServiceDocumentEnhcd | ServiceDocument | ID |
| ServiceDocumentType | I_ServiceDocumentEnhcd | ServiceDocumentType | Service Order Type | |
| ServiceObjectType | I_ServiceDocumentEnhcd | ServiceObjectType | Object Type | |
| ServiceOrderDescription | I_ServiceDocumentEnhcd | ServiceDocumentDescription | Description | |
| SoldToParty | I_ServiceDocumentEnhcd | SoldToParty | Sold-To Party | |
| ServiceOrderPriority | I_ServiceDocumentEnhcd | ServiceDocumentPriority | Priority | |
| PostingDate | I_ServiceDocumentEnhcd | PostingDate | Posting Date for GR | |
| ServiceDocumentHasError | I_ServiceDocumentEnhcd | ServiceDocumentHasError | Error Status | |
| ServiceDocGrossAmount | I_ServiceDocumentEnhcd | ServiceDocGrossAmount | ||
| ServiceDocNetAmount | I_ServiceDocumentEnhcd | ServiceDocNetAmount | Net Value | |
| TransactionCurrency | I_ServiceDocumentEnhcd | TransactionCurrency | Transaction Currency | |
| ServiceOrderStatus | I_ServiceDocumentEnhcd | ServiceDocumentStatus | Life Cycle Status | |
| BusinessActivityCategory | I_ServiceDocumentEnhcd | BusinessActivityCategory | ||
| ResponsibleEmployee | I_ServiceDocumentEnhcd | ResponsibleEmployee | Employee Responsible | |
| ServiceTeam | I_ServiceDocumentEnhcd | ServiceTeam | Service Team | |
| SoldToPartyCountry | I_ServiceDocumentEnhcd | SoldToPartyCountry | ||
| SoldToPartyRegion | I_ServiceDocumentEnhcd | SoldToPartyRegion | ||
| PurchaseOrderByCustomer | I_ServiceDocumentEnhcd | PurchaseOrderByCustomer | External Reference Number | |
| ServiceEmployee | I_ServiceDocumentEnhcd | ServiceEmployee | ||
| ContactPerson | I_ServiceDocumentEnhcd | ContactPerson | Contact Person Key | |
| ServiceDocumentUUID | I_ServiceDocumentEnhcd | ServiceDocumentUUID | Object GUID | |
| CustMgmtExtRefID | _CustMgmtExtRef | CustMgmtExtRefID | External Transaction Number | |
| Equipment | _ServiceDocRefObj | Equipment | Equipment ID | |
| FunctionalLocation | _ServiceDocRefObj | FunctionalLocation | Functional Location | |
| ProductID | _ServiceDocRefObj | ProductID | Product ID | |
| ServiceOrderNoteText | _ServiceDocumentNotes | ServiceDocNoteText | Note | |
| BusinessPartnerName | _SoldToParty | BusinessPartnerName | Extracted Customer Name | |
| FirstName | _SoldToParty | FirstName | First Name | |
| LastName | _SoldToParty | LastName | Last Name | |
| GroupBusinessPartnerName1 | _SoldToParty | GroupBusinessPartnerName1 | Name 1 | |
| GroupBusinessPartnerName2 | _SoldToParty | GroupBusinessPartnerName2 | Name 2 | |
| OrganizationBPName1 | _SoldToParty | OrganizationBPName1 | Name 1 | |
| OrganizationBPName2 | _SoldToParty | OrganizationBPName2 | Name 2 |
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_SrvcOrderListRptAndObjPg.
-- 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.
-- SQL view name: CSRVCORDERLIST
CREATE VIEW C_SrvcOrderListRptAndObjPg AS
SELECT
cast( 1 as abap.dec(13,3)) AS ServiceDocDuration,
_ServiceDocRefObj._Equipment._EquipmentText[1: Language=$session.system_language].EquipmentName AS EquipmentName,
_ServiceDocRefObj._FunctionalLocation._FunctionalLocationText[1: Language=$session.system_language].FunctionalLocationName AS FunctionalLocationName,
_ServiceDocRefObj._Equipment.Material AS ReferenceProduct,
_ServiceDocRefObj._Product._Text[1: Language=$session.system_language].ProductName AS ProductName,
tstmp_to_dats( RequestedServiceStartDateTime, abap_system_timezone( $session.client,'NULL' ), $session.client, 'NULL' ) as RequestedServiceStartDate AS clientNULLasRequestedServiceStartDate,
tstmp_to_dats( RequestedServiceEndDateTime, abap_system_timezone( $session.client,'NULL' ), $session.client, 'NULL' ) as RequestedServiceEndDate AS clientNULLasRequestedServiceEndDate,
bintohex( ServiceDocumentUUID ) AS ServiceOrderUUID,
cast( '' as abap.char( 40 )) AS ServiceDocBillingStatusName,
cast(3 as abap.int4) AS ServiceDocIsRelForBillCritlty,
cast( '' as abap.char( 40 )) AS ServiceDocOvrlBillgBlkStsName,
cast(3 as abap.int4) AS SrvcDocOvrlBillgBlkStsCritlty,
cast( '' as abap.char( 40 )) AS ServiceDocOvrlBillingStsName,
cast( '' as abap.char( 1 )) AS ServiceDocOvrlBillgBlkSts,
cast(3 as abap.int4) AS ServiceDocOvrlBillingStsCritl,
cast( '' as abap.char( 1 )) AS ServiceDocOvrlBillingSts,
cast( '' as crmt_boolean ) AS PriceIsFixed,
cast(0 as abap.int4) AS NumberOfItems,
cast(0 as abap.int4) AS NumberOfCompletedItems,
SalesOrganization,
DistributionChannel,
Division,
SalesOffice,
SalesGroup,
SalesOrganizationOrgUnitID,
SalesOfficeOrgUnitID,
SalesGroupOrgUnitID,
ServiceOrganization,
_ServiceOrder.ServiceDocument AS ServiceOrder,
_ServiceOrder.ServiceDocumentType AS ServiceDocumentType,
_ServiceOrder.ServiceObjectType AS ServiceObjectType,
_ServiceOrder.ServiceDocumentDescription AS ServiceOrderDescription,
_ServiceOrder.SoldToParty AS SoldToParty,
_ServiceOrder.ServiceDocumentPriority AS ServiceOrderPriority,
_ServiceOrder.PostingDate AS PostingDate,
_ServiceOrder.ServiceDocumentHasError AS ServiceDocumentHasError,
_ServiceOrder.ServiceDocGrossAmount AS ServiceDocGrossAmount,
_ServiceOrder.ServiceDocNetAmount AS ServiceDocNetAmount,
_ServiceOrder.TransactionCurrency AS TransactionCurrency,
_ServiceOrder.ServiceDocumentStatus AS ServiceOrderStatus,
_ServiceOrder.BusinessActivityCategory AS BusinessActivityCategory,
_ServiceOrder.ResponsibleEmployee AS ResponsibleEmployee,
_ServiceOrder.ServiceTeam AS ServiceTeam,
_ServiceOrder.SoldToPartyCountry AS SoldToPartyCountry,
_ServiceOrder.SoldToPartyRegion AS SoldToPartyRegion,
_ServiceOrder.PurchaseOrderByCustomer AS PurchaseOrderByCustomer,
_ServiceOrder.ServiceEmployee AS ServiceEmployee,
_ServiceOrder.ContactPerson AS ContactPerson,
_ServiceOrder.ServiceDocumentUUID AS ServiceDocumentUUID,
_CustMgmtExtRef.CustMgmtExtRefID AS CustMgmtExtRefID,
_ServiceDocRefObj.Equipment AS Equipment,
_ServiceDocRefObj.FunctionalLocation AS FunctionalLocation,
_ServiceDocRefObj.ProductID AS ProductID,
_ServiceDocumentNotes.ServiceDocNoteText AS ServiceOrderNoteText,
_SoldToParty.BusinessPartnerName AS BusinessPartnerName,
_SoldToParty.FirstName AS FirstName,
_SoldToParty.LastName AS LastName,
_SoldToParty.GroupBusinessPartnerName1 AS GroupBusinessPartnerName1,
_SoldToParty.GroupBusinessPartnerName2 AS GroupBusinessPartnerName2,
_SoldToParty.OrganizationBPName1 AS OrganizationBPName1,
_SoldToParty.OrganizationBPName2 AS OrganizationBPName2
FROM I_ServiceDocumentEnhcd AS _ServiceOrder
LEFT OUTER JOIN C_ServiceDocumentSoldToPartyVH AS _SoldToParty ON SoldToParty = _SoldToParty.BusinessPartner -- association [0..1]
LEFT OUTER JOIN C_SrvcDocBusinessPartnerVH AS _ServiceTeam ON ServiceTeam = _ServiceTeam.BusinessPartner -- association [0..1]
LEFT OUTER JOIN C_SrvcDocBusinessPartnerVH AS _RespEmployee ON ResponsibleEmployee = _RespEmployee.BusinessPartner -- association [0..1]
LEFT OUTER JOIN C_SrvOrderItemListRptAndObjPg AS _SrvOrderItemListRptAndObjPg ON ServiceOrder = _SrvOrderItemListRptAndObjPg.ServiceDocument -- association [1..*]
LEFT OUTER JOIN C_ServiceDocObjPgNotes AS _ServiceDocumentNotes ON ServiceObjectType = _ServiceDocumentNotes.ServiceObjectType AND ServiceOrder = _ServiceDocumentNotes.ServiceDocument -- association [1..*]
LEFT OUTER JOIN C_SrvcDocObjPgTransHistory AS _ServiceDocumentTransHistory ON ServiceObjectType = _ServiceDocumentTransHistory.ServiceObjectType AND ServiceOrder = _ServiceDocumentTransHistory.ServiceDocument -- association [1..*]
LEFT OUTER JOIN C_ServiceDocObjPgErrorLog AS _ServiceDocumentErrorLog ON ServiceObjectType = _ServiceDocumentErrorLog.ServiceObjectType AND ServiceOrder = _ServiceDocumentErrorLog.ServiceDocument -- association [1..*]
LEFT OUTER JOIN E_ServiceDocument AS _ServiceDocumentExt ON ServiceObjectType = _ServiceDocumentExt.ServiceCategory -- association [0..1]
LEFT OUTER JOIN C_ServiceOrderProductVH AS _ConfirmationItem ON ServiceOrder = _ConfirmationItem.ServiceDocument -- association [1..*]
LEFT OUTER JOIN C_SrvcDocProductVH AS _Product ON ReferenceProduct = _Product.Product -- association [1..*]
LEFT OUTER JOIN C_SrvcDocItemUnitOfMeasureVH AS _Unit ON ReferenceProduct = _Unit.Product -- association [1..*]
LEFT OUTER JOIN C_ServiceDocumentPartner AS _PartiesInvolved ON ServiceObjectType = _PartiesInvolved.CustMgmtObjectType AND ServiceOrder = _PartiesInvolved.CustMgmtDocument AND _PartiesInvolved.CustMgmtDocumentItem = '000000' -- association [0..*]
LEFT OUTER JOIN C_SrvcOrderObjPgPricingDets AS _ServiceOrderPriceDets ON ServiceObjectType = _ServiceOrderPriceDets.ServiceObjectType AND ServiceOrder = _ServiceOrderPriceDets.ServiceDocument -- association [1..*]
LEFT OUTER JOIN C_SrvcOrderSoldToPartyVH AS _ServiceOrderSoldToParty ON SoldToParty = _ServiceOrderSoldToParty.BusinessPartner -- association [1..*]
LEFT OUTER JOIN I_CustMgmtExtRefID AS _CustMgmtExtRef ON ServiceOrder = _CustMgmtExtRef.CustMgmtDocument AND ServiceObjectType = _CustMgmtExtRef.CustMgmtObjectType AND _CustMgmtExtRef.CustMgmtExtRefIDType = '0001' -- association [0..1]
LEFT OUTER JOIN C_SrvcDocDateInformation AS _SrvcDateInfo ON ( ServiceOrder = _SrvcDateInfo.ServiceDocument AND ServiceObjectType = _SrvcDateInfo.ServiceObjectType AND _SrvcDateInfo.ServiceDocumentItem = '000000' ) OR ( ServiceDocumentUUID = _SrvcDateInfo.SrvcMgmtObjectUUID ) -- association [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