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

C_SrvOrderItemListRptAndObjPg

DDL: C_SRVORDERITEMLISTRPTANDOBJPG SQL: CSRVORDERITEM Type: view CONSUMPTION

Service Order Item

C_SrvOrderItemListRptAndObjPg is a Consumption CDS View that provides data about "Service Order Item" in SAP S/4HANA. It reads from 1 data source (I_ServiceDocumentItemEnhcd) and exposes 101 fields with key fields ServiceDocument, ServiceDocumentItem, ServiceObjectType. It has 10 associations to related views.

Data Sources (1)

SourceAliasJoin Type
I_ServiceDocumentItemEnhcd I_ServiceDocumentItemEnhcd from

Associations (10)

CardinalityTargetAliasCondition
[0..1] P_ServiceDocumentRefObject _ServiceDocItemMainRefObj $projection.ServiceObjectType = _ServiceDocItemMainRefObj.ServiceObjectType and $projection.ServiceDocument = _ServiceDocItemMainRefObj.ServiceDocument and $projection.ServiceDocumentItem = _ServiceDocItemMainRefObj.ServiceDocumentItem
[0..*] C_SrvcDocItemTransHistory _ServiceDocItemTransHistory $projection.ServiceObjectType = _ServiceDocItemTransHistory.ServiceObjectType and $projection.ServiceDocument = _ServiceDocItemTransHistory.ServiceDocument and $projection.ServiceDocumentItem = _ServiceDocItemTransHistory.ServiceDocumentItem
[1..1] P_SelectProcurementStatus _SelectProcurementStatus $projection.ServiceDocumentItemUUID = _SelectProcurementStatus.StatusObjectUUID
[0..1] I_StatusCode _StatusCode $projection.StatusCode = _StatusCode.StatusCode and $projection.statusprofile = _StatusCode.StatusProfile
[1..*] C_SrvcOrderItmObjPgPricingDets _ServiceOrderItmPriceDets $projection.ServiceObjectType = _ServiceOrderItmPriceDets.ServiceObjectType and $projection.ServiceDocument = _ServiceOrderItmPriceDets.ServiceDocument and $projection.ServiceDocumentItem = _ServiceOrderItmPriceDets.ServiceDocumentItem
[0..1] E_ServiceDocumentItem _ServiceDocItemExt $projection.ServiceObjectType = _ServiceDocItemExt.ServiceCategory and $projection.ServiceDocument = _ServiceDocItemExt.ServiceOrderItem and $projection.ServiceDocumentItem = _ServiceDocItemExt.ServiceLineExternalID
[0..1] C_SrvcBillableItemVH _ServiceDocItemAcctgInd $projection.BillableControl = _ServiceDocItemAcctgInd.BillableControl
[0..*] C_SrvcDocItemPartner _PartiesInvolved $projection.ServiceObjectType = _PartiesInvolved.CustMgmtObjectType and $projection.ServiceDocument = _PartiesInvolved.CustMgmtDocument and $projection.ServiceDocumentItem = _PartiesInvolved.CustMgmtDocumentItem
[0..1] I_ServiceDocumentItem _ServiceDocumentItem $projection.ParentServiceDocumentItemUUID = _ServiceDocumentItem.ServiceDocumentItemUUID
[0..1] I_CustMgmtExtRefID _CustMgmtExtRef $projection.ServiceDocument = _CustMgmtExtRef.CustMgmtDocument and $projection.ServiceObjectType = _CustMgmtExtRef.CustMgmtObjectType and $projection.ServiceDocumentItem = _CustMgmtExtRef.CustMgmtDocumentItem and _CustMgmtExtRef.CustMgmtExtRefIDType = '0002'

Annotations (21)

NameValueLevelField
AbapCatalog.sqlViewName CSRVORDERITEM view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #CHECK view
EndUserText.label Service Order Item view
ClientHandling.algorithm #SESSION_VARIABLE view
Search.searchable true view
UI.headerInfo.typeName Service Order Item view
UI.headerInfo.typeNamePlural Service Order Items view
UI.headerInfo.title.type #STANDARD view
UI.headerInfo.title.label Item view
UI.headerInfo.title.value ServiceDocumentItem view
UI.headerInfo.description.type #STANDARD view
UI.headerInfo.description.value ServiceDocumentItemDescription view
ObjectModel.dataCategory #TEXT view
VDM.viewType #CONSUMPTION view
ObjectModel.representativeKey ServiceDocument view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #XL view
VDM.lifecycle.status #DEPRECATED view
VDM.lifecycle.successor C_SrvcOrdItemListRptAndObjPg view

Fields (101)

KeyFieldSource TableSource FieldDescription
KEY ServiceDocument ServiceDocument Transaction ID
KEY ServiceDocumentItem ServiceDocumentItem Item Number
KEY ServiceObjectType ServiceObjectType Item Category
ServiceDocumentItemUUID ServiceDocumentItemUUID
CustMgmtParentItemProduct _ServiceDocumentItem OriginallyRequestedProduct Higher-Level Product ID
CustMgmtParentItemProductName _ServiceDocumentItem ServiceDocumentItemDescription Higher-Level Product
OriginallyRequestedProduct OriginallyRequestedProduct Product ID
ServiceDocItemQuantityUnit ServiceDocItemQuantityUnit Unit
ServiceDocumentItemDescription ServiceDocumentItemDescription Product
ServiceDocItemCategory ServiceDocItemCategory Item Category
ServiceDocItemGrossAmount ServiceDocItemGrossAmount Gross Value
ServiceDocumentItemQuantity ServiceDocumentItemQuantity Quantity
TransactionCurrency TransactionCurrency Transaction Currency
ActualServiceDuration ActualServiceDuration Actual Duration
ActualServiceDurationUnit ActualServiceDurationUnit Unit
UxFcActualServiceDuration
ServiceDocumentItemStatus ServiceDocumentItemStatus Status
ServiceDocumentUUID ServiceDocumentUUID Object GUID
ServiceDocumentDescription ServiceDocumentDescription
ServiceDocumentItemObjectType ServiceDocumentItemObjectType
ParentServiceDocumentItemUUID ParentServiceDocumentItemUUID
PurchaseOrderByCustomer PurchaseOrderByCustomer External Reference
ServiceDocumentItemPriority ServiceDocumentItemPriority
ServiceDocumentType ServiceDocumentType Transaction Type
PostingDate PostingDate Posting Date for GR
SoldToPartyCountry SoldToPartyCountry
SoldToPartyRegion SoldToPartyRegion
ServiceTeam ServiceTeam
SoldToParty SoldToParty Sold-to Party
ServiceEmployee ServiceEmployee
StatusCode _SelectProcurementStatus SrvcDocItemProcmtStatus Procurement Status
TimeSheetOvertimeCategory TimeSheetOvertimeCategory Overtime Category
CustMgmtExtRefID _CustMgmtExtRef CustMgmtExtRefID External Transaction Item Number
UxFcTimeSheetOvertimeCategory
TechObjIsEquipOrFuncnlLoc _ServiceDocItemMainRefObj TechObjIsEquipOrFuncnlLoc Equipment/Functional Location
Equipment _ServiceDocItemMainRefObj Equipment Equipment check
EquipmentName
FunctionalLocation _ServiceDocItemMainRefObj FunctionalLocation Object ID
FunctionalLocationName
ResponsibleEmployee ResponsibleEmployee Employee Resp.
ContactPerson ContactPerson Contact Person Key
RequestedServiceStartDateTime RequestedServiceStartDateTime
RequestedServiceEndDateTime RequestedServiceEndDateTime
ServiceDocumentItemHasError ServiceDocumentItemHasError
ServiceDocItemBillingStatus ServiceDocItemBillingStatus
SrvcDocItmIsReleasedForBilling SrvcDocItmIsReleasedForBilling
ServiceOrganization ServiceOrganization
ResponsibleServiceOrganization ResponsibleServiceOrganization
ServiceDocItemCreationDateTime ServiceDocItemCreationDateTime
ServiceDocItemChangedDateTime ServiceDocItemChangedDateTime
ServiceDocItemCreatedByUser ServiceDocItemCreatedByUser
ServiceDocItemChangedByUser ServiceDocItemChangedByUser
BillableControl BillableControl Billable Control
PaymentTerms PaymentTerms Pyt Terms
PayerParty PayerParty Payer
BillToParty BillToParty Inv. Recipient
ServiceOrderNoteText _ServiceDocItemNote ServiceOrderNoteText Notes
MaterialComponentIsSparePart
Customer Payer
StatusProfile _SelectProcurementStatus StatusProfile Status Profile
ServiceDocItemRejectionReason ServiceDocItemRejectionReason
SalesOrganization SalesOrganization Sales Organization
DistributionChannel DistributionChannel RefDistCh-Cust/Mat.
Division Division Internal Division ID
SalesOffice SalesOffice Sales Office
SalesGroup SalesGroup Sales Group
SalesOrganizationOrgUnitID SalesOrganizationOrgUnitID
SalesOfficeOrgUnitID SalesOfficeOrgUnitID
SalesGroupOrgUnitID SalesGroupOrgUnitID
_SalesOrganizationOrgUnit _SalesOrganizationOrgUnit
_SalesOrganizationOrgUnit_2 _SalesOrganizationOrgUnit_2
_SalesOfficeOrgUnit _SalesOfficeOrgUnit
_SalesOfficeOrgUnit_2 _SalesOfficeOrgUnit_2
_SalesGroupOrgUnit _SalesGroupOrgUnit
_SalesGroupOrgUnit_2 _SalesGroupOrgUnit_2
_ServiceOrganizationOrgUnit _ServiceOrganizationOrgUnit
_ServiceOrganizationOrgUnit_2 _ServiceOrganizationOrgUnit_2
_ContactPerson _ContactPerson
_RespEmployee _RespEmployee
_ServiceDocItemBillingStatus _ServiceDocItemBillingStatus
_ServiceDocItemCategory _ServiceDocItemCategory
_ServiceDocItemHasError _ServiceDocItemHasError
_ServiceDocItemPriority _ServiceDocItemPriority
_ServiceDocItemStatus _ServiceDocItemStatus
_SrvcDocItmLifecycleStatus _SrvcDocItmLifecycleStatus
_ServiceDocumentType _ServiceDocumentType
_ServiceEmployee _ServiceEmployee
_ServiceTeam _ServiceTeam
_SoldToParty _SoldToParty
_SrvcDocItemIsRelForBillgSts _SrvcDocItemIsRelForBillgSts
_PayerParty _PayerParty
_BillToParty _BillToParty
_PaymentTerms _PaymentTerms
_ServiceDocItemNote _ServiceDocItemNote
_StatusCode _StatusCode
_ServiceDocItemTransHistory _ServiceDocItemTransHistory
_ServiceOrderItmPriceDets _ServiceOrderItmPriceDets
_ServiceDocOvertimeCat _ServiceDocOvertimeCat
_ServiceDocItemAcctgInd _ServiceDocItemAcctgInd
_PartiesInvolved _PartiesInvolved
_ServiceDocumentItem _ServiceDocumentItem

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_SrvOrderItemListRptAndObjPg.
-- 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: CSRVORDERITEM

CREATE VIEW C_SrvOrderItemListRptAndObjPg AS
SELECT
  ServiceDocument,
  ServiceDocumentItem,
  ServiceObjectType,
  ServiceDocumentItemUUID,
  _ServiceDocumentItem.OriginallyRequestedProduct AS CustMgmtParentItemProduct,
  _ServiceDocumentItem.ServiceDocumentItemDescription AS CustMgmtParentItemProductName,
  OriginallyRequestedProduct,
  ServiceDocItemQuantityUnit,
  ServiceDocumentItemDescription,
  ServiceDocItemCategory,
  ServiceDocItemGrossAmount,
  ServiceDocumentItemQuantity,
  TransactionCurrency,
  ActualServiceDuration,
  ActualServiceDurationUnit,
  cast(3 as abap.int4) AS UxFcActualServiceDuration,
  ServiceDocumentItemStatus,
  ServiceDocumentUUID,
  ServiceDocumentDescription,
  ServiceDocumentItemObjectType,
  ParentServiceDocumentItemUUID,
  PurchaseOrderByCustomer,
  ServiceDocumentItemPriority,
  ServiceDocumentType,
  PostingDate,
  SoldToPartyCountry,
  SoldToPartyRegion,
  ServiceTeam,
  SoldToParty,
  ServiceEmployee,
  _SelectProcurementStatus.SrvcDocItemProcmtStatus AS StatusCode,
  TimeSheetOvertimeCategory,
  _CustMgmtExtRef.CustMgmtExtRefID AS CustMgmtExtRefID,
  cast(3 as abap.int4) AS UxFcTimeSheetOvertimeCategory,
  _ServiceDocItemMainRefObj.TechObjIsEquipOrFuncnlLoc AS TechObjIsEquipOrFuncnlLoc,
  _ServiceDocItemMainRefObj.Equipment AS Equipment,
  _ServiceDocItemMainRefObj._Equipment._EquipmentText[1: Language=$session.system_language].EquipmentName AS EquipmentName,
  _ServiceDocItemMainRefObj.FunctionalLocation AS FunctionalLocation,
  _ServiceDocItemMainRefObj._FunctionalLocation._FunctionalLocationText[1:Language = $session.system_language].FunctionalLocationName AS FunctionalLocationName,
  ResponsibleEmployee,
  ContactPerson,
  RequestedServiceStartDateTime,
  RequestedServiceEndDateTime,
  ServiceDocumentItemHasError,
  ServiceDocItemBillingStatus,
  SrvcDocItmIsReleasedForBilling,
  ServiceOrganization,
  ResponsibleServiceOrganization,
  ServiceDocItemCreationDateTime,
  ServiceDocItemChangedDateTime,
  ServiceDocItemCreatedByUser,
  ServiceDocItemChangedByUser,
  BillableControl,
  PaymentTerms,
  PayerParty,
  BillToParty,
  _ServiceDocItemNote.ServiceOrderNoteText AS ServiceOrderNoteText,
  cast( '' as crmt_boolean ) AS MaterialComponentIsSparePart,
  cast (PayerParty as char10) AS Customer,
  _SelectProcurementStatus.StatusProfile AS StatusProfile,
  ServiceDocItemRejectionReason,
  SalesOrganization,
  DistributionChannel,
  Division,
  SalesOffice,
  SalesGroup,
  SalesOrganizationOrgUnitID,
  SalesOfficeOrgUnitID,
  SalesGroupOrgUnitID
FROM I_ServiceDocumentItemEnhcd
LEFT OUTER JOIN P_ServiceDocumentRefObject AS _ServiceDocItemMainRefObj ON ServiceObjectType = _ServiceDocItemMainRefObj.ServiceObjectType AND ServiceDocument = _ServiceDocItemMainRefObj.ServiceDocument AND ServiceDocumentItem = _ServiceDocItemMainRefObj.ServiceDocumentItem  -- association [0..1]
LEFT OUTER JOIN C_SrvcDocItemTransHistory AS _ServiceDocItemTransHistory ON ServiceObjectType = _ServiceDocItemTransHistory.ServiceObjectType AND ServiceDocument = _ServiceDocItemTransHistory.ServiceDocument AND ServiceDocumentItem = _ServiceDocItemTransHistory.ServiceDocumentItem  -- association [0..*]
LEFT OUTER JOIN P_SelectProcurementStatus AS _SelectProcurementStatus ON ServiceDocumentItemUUID = _SelectProcurementStatus.StatusObjectUUID  -- association [1..1]
LEFT OUTER JOIN I_StatusCode AS _StatusCode ON StatusCode = _StatusCode.StatusCode AND statusprofile = _StatusCode.StatusProfile  -- association [0..1]
LEFT OUTER JOIN C_SrvcOrderItmObjPgPricingDets AS _ServiceOrderItmPriceDets ON ServiceObjectType = _ServiceOrderItmPriceDets.ServiceObjectType AND ServiceDocument = _ServiceOrderItmPriceDets.ServiceDocument AND ServiceDocumentItem = _ServiceOrderItmPriceDets.ServiceDocumentItem  -- association [1..*]
LEFT OUTER JOIN E_ServiceDocumentItem AS _ServiceDocItemExt ON ServiceObjectType = _ServiceDocItemExt.ServiceCategory AND ServiceDocument = _ServiceDocItemExt.ServiceOrderItem AND ServiceDocumentItem = _ServiceDocItemExt.ServiceLineExternalID  -- association [0..1]
LEFT OUTER JOIN C_SrvcBillableItemVH AS _ServiceDocItemAcctgInd ON BillableControl = _ServiceDocItemAcctgInd.BillableControl  -- association [0..1]
LEFT OUTER JOIN C_SrvcDocItemPartner AS _PartiesInvolved ON ServiceObjectType = _PartiesInvolved.CustMgmtObjectType AND ServiceDocument = _PartiesInvolved.CustMgmtDocument AND ServiceDocumentItem = _PartiesInvolved.CustMgmtDocumentItem  -- association [0..*]
LEFT OUTER JOIN I_ServiceDocumentItem AS _ServiceDocumentItem ON ParentServiceDocumentItemUUID = _ServiceDocumentItem.ServiceDocumentItemUUID  -- association [0..1]
LEFT OUTER JOIN I_CustMgmtExtRefID AS _CustMgmtExtRef ON ServiceDocument = _CustMgmtExtRef.CustMgmtDocument AND ServiceObjectType = _CustMgmtExtRef.CustMgmtObjectType AND ServiceDocumentItem = _CustMgmtExtRef.CustMgmtDocumentItem AND _CustMgmtExtRef.CustMgmtExtRefIDType = '0002'  -- association [0..1]
;