I_ServiceOrderEnhcd
Get all basic data for Service Order
I_ServiceOrderEnhcd is a Composite CDS View that provides data about "Get all basic data for Service Order" in SAP S/4HANA. It reads from 1 data source (I_ServiceDocumentEnhcd) and exposes 152 fields with key field ServiceOrder. It has 25 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_ServiceDocumentEnhcd | I_ServiceDocumentEnhcd | from |
Associations (25)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | C_ServiceDocumentSoldToPartyVH | _SoldToParty | $projection.SoldToParty = _SoldToParty.BusinessPartner |
| [1..*] | C_ServiceDocObjPgNotes | _ServiceDocumentNotes | $projection.ServiceObjectType = _ServiceDocumentNotes.ServiceObjectType and $projection.ServiceOrder = _ServiceDocumentNotes.ServiceDocument |
| [1..*] | C_SrvcOrdFUPSrvcConfTransHist | _SrvcOrdFUPSrvcConfTransHist | $projection.ServiceOrder = _SrvcOrdFUPSrvcConfTransHist.ServiceOrder and $projection.ServiceObjectType = _SrvcOrdFUPSrvcConfTransHist.ServiceObjectType |
| [1..*] | C_SrvcDocDocumentFlow | _SrvcDocDocumentFlow | $projection.ServiceOrder = _SrvcDocDocumentFlow.ServiceOrder |
| [1..*] | C_ServiceDocObjPgErrorLog | _ServiceDocumentErrorLog | $projection.ServiceObjectType = _ServiceDocumentErrorLog.ServiceObjectType and $projection.ServiceOrder = _ServiceDocumentErrorLog.ServiceDocument |
| [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 |
| [0..1] | I_CustMgmtExtRefID | _CustMgmtExtRef | $projection.ServiceOrder = _CustMgmtExtRef.CustMgmtDocument and $projection.ServiceObjectType = _CustMgmtExtRef.CustMgmtObjectType and _CustMgmtExtRef.CustMgmtExtRefIDSequenceNumber = '000001' and _CustMgmtExtRef.CustMgmtExtRefIDType = '0001' |
| [1..1] | C_ServiceOrderTypeVH | _ServiceOrderType | $projection.ServiceDocumentType = _ServiceOrderType.ServiceOrderType |
| [1..1] | C_SrvcMgmtCntctPersnQuickVw | _SrvcDocBPContactCard | $projection.ContactPerson = _SrvcDocBPContactCard.BusinessPartner and $projection.SoldToParty = _SrvcDocBPContactCard.SoldToParty |
| [0..1] | C_SrvcMgmtSoldToPartyQuickVw | _SrvcDocBPSoldToParty | $projection.SoldToParty = _SrvcDocBPSoldToParty.BusinessPartner and $projection.customer = _SrvcDocBPSoldToParty.Customer |
| [0..1] | C_SrvcMgmtSoldToPartyQuickVw | _SrvcDocBPBillToParty | $projection.BillToParty = _SrvcDocBPBillToParty.BusinessPartner |
| [0..1] | C_SrvcMgmtSoldToPartyQuickVw | _SrvcDocBPShipToParty | $projection.ShipToParty = _SrvcDocBPShipToParty.BusinessPartner |
| [0..1] | C_SrvcMgmtSoldToPartyQuickVw | _SrvcDocBPPayerParty | $projection.PayerParty = _SrvcDocBPPayerParty.BusinessPartner |
| [0..1] | I_BusinessSolutionOrderStdVH | _SolutionOrderVH | $projection.RefBusinessSolutionOrder = _SolutionOrderVH.BusinessSolutionOrder |
| [0..1] | I_SrvcOrdRefMaintenancePlan | _RefMaintenancePlan | $projection.ServiceDocumentUUID = _RefMaintenancePlan.ServiceDocumentUUID and $projection.ServiceObjectType = _RefMaintenancePlan.ServiceObjectType |
| [0..1] | I_SrvcOrdRefMaintenanceItem | _RefMaintenanceItem | $projection.ServiceDocumentUUID = _RefMaintenanceItem.ServiceDocumentUUID and $projection.ServiceObjectType = _RefMaintenanceItem.ServiceObjectType |
| [0..*] | C_SrvcDocChangeDocument | _ChangeDocument | $projection.ServiceOrderUUID = _ChangeDocument.ChangeDocObject |
| [1..*] | I_CustomerSEPAMandate | _CustomerSEPAMandate | $projection.SEPAMandate = _CustomerSEPAMandate.SEPAMandate and _CustomerSEPAMandate.SEPAMandateVersion = '0000' |
| [0..1] | I_SrvcDocBslnPlannedCost | _SrvcDocBslnPlannedCost | _SrvcDocBslnPlannedCost.ServiceDocument = $projection.ServiceOrder and _SrvcDocBslnPlannedCost.ServiceDocumentType = $projection.ServiceDocumentType |
| [1..1] | I_SEPAMandateStatus | _SEPAMandateStatus | $projection.SEPAMandateStatus = _SEPAMandateStatus.SEPAMandateStatus |
| [0..1] | I_SrvcDocBslnPlannedRevenue | _SrvcDocBslnPlannedRevenue | _SrvcDocBslnPlannedRevenue.ServiceDocument = $projection.ServiceOrder and _SrvcDocBslnPlannedRevenue.ServiceDocumentType = $projection.ServiceDocumentType |
| [0..1] | I_SrvcDocContnsPlannedCost | _SrvcDocContinuousPlannedCost | _SrvcDocContinuousPlannedCost.ServiceDocument = $projection.ServiceOrder and _SrvcDocContinuousPlannedCost.ServiceDocumentType = $projection.ServiceDocumentType |
| [0..1] | I_SrvcDocContnsPlannedRevenue | _SrvcDocContinuousPlannedRevn | _SrvcDocContinuousPlannedRevn.ServiceDocument = $projection.ServiceOrder and _SrvcDocContinuousPlannedRevn.ServiceDocumentType = $projection.ServiceDocumentType |
| [0..1] | I_WBSElementBasicData | _WBSElement | _WBSElement.WBSElementInternalID = $projection.WBSElementInternalID |
Annotations (12)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | ISRVENHCD | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| EndUserText.label | Get all basic data for Service Order | view | |
| Search.searchable | true | view | |
| VDM.viewType | #COMPOSITE | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| ObjectModel.representativeKey | ServiceOrder | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #XXL | view |
Fields (152)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | ServiceOrder | ServiceDocument | Transaction ID | |
| ServiceDocumentType | ServiceDocumentType | Transaction Type | ||
| ServiceObjectType | ServiceObjectType | Object Type | ||
| ServiceOrderDescription | ServiceDocumentDescription | |||
| SoldToParty | SoldToParty | Sold-to Party | ||
| ShipToParty | ShipToParty | Ship-To Party (obsolete) | ||
| BillToParty | BillToParty | Inv. Recipient | ||
| PayerParty | PayerParty | Payer | ||
| ServiceOrderPriority | ServiceDocumentPriority | |||
| PostingDate | PostingDate | Posting Date for GR | ||
| ServiceDocumentHasError | ServiceDocumentHasError | |||
| ServiceDocGrossAmount | ServiceDocGrossAmount | |||
| ServiceDocNetAmount | ServiceDocNetAmount | |||
| ServiceDocTaxAmount | ServiceDocTaxAmount | |||
| TransactionCurrency | TransactionCurrency | Transaction Currency | ||
| SrvcDocBslnCostPostgStatus | SrvcDocBslnCostPostgStatus | |||
| SrvcDocContinuousCostStatus | SrvcDocContinuousCostStatus | |||
| SrvcDocTransferStatus | SrvcDocTransferStatus | |||
| SrvcDocExecutionStatus | SrvcDocExecutionStatus | |||
| ServiceOrderStatus | ServiceDocumentStatus | |||
| EquipmentName | ||||
| FunctionalLocationName | ||||
| ReferenceProductendasReferenceProduct | ||||
| ProductName | ||||
| WBSElementInternalID | WBSElementInternalID | WBS Internal ID | ||
| PaymentTerms | PaymentTerms | Pyt Terms | ||
| PaymentMethod | PaymentMethod | Pymt Meth. | ||
| SEPAMandate | SEPAMandate | SEPA Mandate | ||
| SrvcSEPAMandateRelevance | SrvcSEPAMandateRelevance | |||
| BusinessActivityCategory | BusinessActivityCategory | |||
| clientNULLasRequestedServiceStartDate | ||||
| clientNULLasRequestedServiceEndDate | ||||
| RequestedServiceStartDateTime | RequestedServiceStartDateTime | |||
| RequestedServiceEndDateTime | RequestedServiceEndDateTime | |||
| ResponsibleEmployee | ResponsibleEmployee | Employee Resp. | ||
| ServiceTeam | ServiceTeam | |||
| SoldToPartyCountry | SoldToPartyCountry | |||
| ServiceDocumentIsRejected | ServiceDocumentIsRejected | |||
| SoldToPartyRegion | SoldToPartyRegion | |||
| PurchaseOrderByCustomer | PurchaseOrderByCustomer | Purchase Order Number | ||
| ServiceEmployee | ServiceEmployee | |||
| ContactPerson | ContactPerson | Contact Person Key | ||
| ServiceDocumentUUID | ServiceDocumentUUID | Object GUID | ||
| ServiceOrderUUID | ServiceDocumentCharUUID | |||
| ServiceDocumentIsQuotation | ServiceDocumentIsQuotation | |||
| RefInHouseRepairIsExisting | RefInHouseRepairIsExisting | |||
| ServiceDocumentIsReleased | ServiceDocumentIsReleased | |||
| ServiceDocumentIsOpen | ServiceDocumentIsOpen | |||
| ServiceDocBillingStatusName | ||||
| ServiceDocIsRelForBillCritlty | ||||
| ServiceDocOvrlBillgBlkSts | ||||
| ServiceDocOvrlBillgBlkStsName | ||||
| SrvcDocOvrlBillgBlkStsCritlty | ||||
| ServiceDocOvrlBillingSts | ||||
| ServiceDocOvrlBillingStsName | ||||
| ServiceDocOvrlBillingStsCritl | ||||
| PriceIsFixed | ||||
| OverallCompletionPercent | ||||
| SrvcConfGrossAmount | ||||
| ServiceDocDuration | ||||
| ActualDurationInHours | ||||
| ServiceConfIsFinalEnabled | ||||
| IsBillingRelevant | ||||
| ServiceConfirmationIsCanceled | ||||
| ServiceConfirmationIsCompleted | ||||
| ServiceOrderIsEditable | ||||
| 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 | |||
| ServiceOrganization | ServiceOrganization | |||
| RefBusinessSolutionOrder | RefBusinessSolutionOrder | |||
| ServiceDocumentTemplateType | ServiceDocumentTemplateType | |||
| SrvcOrdCreditStatus | SrvcDocCreditStatus | |||
| _SalesOrganizationOrgUnit | _SalesOrganizationOrgUnit | |||
| _SalesOrganizationOrgUnit_2 | _SalesOrganizationOrgUnit_2 | |||
| _SalesOfficeOrgUnit | _SalesOfficeOrgUnit | |||
| _SalesOfficeOrgUnit_2 | _SalesOfficeOrgUnit_2 | |||
| _SalesGroupOrgUnit | _SalesGroupOrgUnit | |||
| _SalesGroupOrgUnit_2 | _SalesGroupOrgUnit_2 | |||
| _ServiceOrganizationOrgUnit | _ServiceOrganizationOrgUnit | |||
| _ServiceOrganizationOrgUnit_2 | _ServiceOrganizationOrgUnit_2 | |||
| _PaymentTerms | _PaymentTerms | |||
| _PaymentMethod | _PaymentMethod | |||
| _SrvcSEPAMandateRelevance | _SrvcSEPAMandateRelevance | |||
| _SoldToParty | _SoldToParty | |||
| _ShipToParty | _ShipToParty | |||
| _BillToParty | _BillToParty | |||
| _PayerParty | _PayerParty | |||
| _RespEmployee | _RespEmployee | |||
| _ServiceTeam | _ServiceTeam | |||
| _ServiceTeamHeader | _ServiceTeamHeader | |||
| _ServiceEmployee | _ServiceEmployee | |||
| _ContactPerson | _ContactPerson | |||
| _ServiceDocumentType | _ServiceDocumentType | |||
| _ServiceDocumentPriority | _ServiceDocumentPriority | |||
| _ServiceDocumentStatus | _ServiceDocumentStatus | |||
| _SrvcDocLifecycleStatus | _SrvcDocLifecycleStatus | |||
| _ServiceDocHasError | _ServiceDocHasError | |||
| _ActivityCategory | _ActivityCategory | |||
| _ServiceDocRefObj | _ServiceDocRefObj | |||
| _ServiceOrderType | _ServiceOrderType | |||
| _SrvcOrdFUPSrvcConfTransHist | _SrvcOrdFUPSrvcConfTransHist | |||
| _SrvcDocDocumentFlow | _SrvcDocDocumentFlow | |||
| _ServiceDocumentErrorLog | _ServiceDocumentErrorLog | |||
| _SalesOrganization | _SalesOrganization | |||
| _SalesOffice | _SalesOffice | |||
| _SalesGroup | _SalesGroup | |||
| _Division | _Division | |||
| _DistributionChannel | _DistributionChannel | |||
| _ServiceDocumentNotes | _ServiceDocumentNotes | |||
| _PartiesInvolved | _PartiesInvolved | |||
| _ServiceOrderPriceDets | _ServiceOrderPriceDets | |||
| _CustMgmtExtRef | _CustMgmtExtRef | |||
| _SolutionOrderVH | _SolutionOrderVH | |||
| _SrvcDocBPContactCard | _SrvcDocBPContactCard | |||
| _SrvcDocBPSoldToParty | _SrvcDocBPSoldToParty | |||
| _SrvcDocBPBillToParty | _SrvcDocBPBillToParty | |||
| _SrvcDocBPShipToParty | _SrvcDocBPShipToParty | |||
| _SrvcDocBPPayerParty | _SrvcDocBPPayerParty | |||
| _ChangeDocument | _ChangeDocument | |||
| _SrvcDocCreditStatus | _SrvcDocCreditStatus | |||
| _SrvcDocBslnCostPostgStatus | _SrvcDocBslnCostPostgStatus | |||
| _SrvcDocContinuousCostStatus | _SrvcDocContinuousCostStatus | |||
| _SrvcDocTransferStatus | _SrvcDocTransferStatus | |||
| _SrvcDocExecutionStatus | _SrvcDocExecutionStatus | |||
| _SrvcDocIsQuotation | _SrvcDocIsQuotation | |||
| _SEPAMandateStatus | _SEPAMandateStatus | |||
| _CustomerSEPAMandate | _CustomerSEPAMandate | |||
| RespyMgmtServiceTeam | I_ServiceDocumentEnhcd | RespyMgmtServiceTeam | ||
| CustMgmtExtRefID | _CustMgmtExtRef | CustMgmtExtRefID | ||
| SEPAMandateCreditor | _CustomerSEPAMandate | SEPAMandateCreditor | Creditor ID | |
| SEPAMandateApplication | _CustomerSEPAMandate | SEPAMandateApplication | ||
| SEPAMandateStatus | _CustomerSEPAMandate | SEPAMandateStatus | ||
| MaintenanceItem | _RefMaintenanceItem | MaintenanceItem | MaintItem | |
| MaintenanceItemDescription | _RefMaintenanceItem | MaintenanceItemDescription | MaintItem text | |
| MaintenancePlan | _RefMaintenancePlan | MaintenancePlan | MaintenancePlan | |
| MaintenancePlanDesc | _RefMaintenancePlan | MaintenancePlanDesc | ||
| Equipment | _ServiceDocRefObj | Equipment | Equipment check | |
| FunctionalLocation | _ServiceDocRefObj | FunctionalLocation | Object ID | |
| ProductID | _ServiceDocRefObj | ProductID | Product ID | |
| Customer | _SoldToPartyToCustomer | Customer | Sold-to Party | |
| SrvcDocBslnPlndCostAmount | _SrvcDocBslnPlannedCost | SrvcDocBslnPlndCostAmount | ||
| SrvcDocBslnPlndRevenueAmount | _SrvcDocBslnPlannedRevenue | SrvcDocBslnPlndRevenueAmount | ||
| SrvcDocContnsPlndCostAmount | _SrvcDocContinuousPlannedCost | SrvcDocContnsPlndCostAmount | ||
| SrvcDocContnsPlndRevnAmount | _SrvcDocContinuousPlannedRevn | SrvcDocContnsPlndRevnAmount | ||
| WBSElementExternalID | _WBSElement | WBSElementExternalID | WBS Element External ID | |
| WBSDescription | _WBSElement | WBSDescription | WBS Element Name |
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_ServiceOrderEnhcd.
-- 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: ISRVENHCD
CREATE VIEW I_ServiceOrderEnhcd AS
SELECT
ServiceDocument AS ServiceOrder,
ServiceDocumentType,
ServiceObjectType,
ServiceDocumentDescription AS ServiceOrderDescription,
SoldToParty,
ShipToParty,
BillToParty,
PayerParty,
ServiceDocumentPriority AS ServiceOrderPriority,
PostingDate,
ServiceDocumentHasError,
ServiceDocGrossAmount,
ServiceDocNetAmount,
ServiceDocTaxAmount,
TransactionCurrency,
SrvcDocBslnCostPostgStatus,
SrvcDocContinuousCostStatus,
SrvcDocTransferStatus,
SrvcDocExecutionStatus,
ServiceDocumentStatus AS ServiceOrderStatus,
_ServiceDocRefObj._Equipment._EquipmentText[1: Language=$session.system_language].EquipmentName AS EquipmentName,
_ServiceDocRefObj._FunctionalLocation._FunctionalLocationText[1: Language=$session.system_language].FunctionalLocationName AS FunctionalLocationName,
case _ServiceDocRefObj.ReferenceProduct when '' then _ServiceDocRefObj._Equipment.Material else _ServiceDocRefObj.ReferenceProduct end as ReferenceProduct AS ReferenceProductendasReferenceProduct,
_ServiceDocRefObj._Product._Text[1: Language=$session.system_language].ProductName AS ProductName,
WBSElementInternalID,
PaymentTerms,
PaymentMethod,
SEPAMandate,
SrvcSEPAMandateRelevance,
BusinessActivityCategory,
tstmp_to_dats( RequestedServiceStartDateTime, abap_user_timezone($session.user, $session.client,'NULL' ), $session.client, 'NULL' ) as RequestedServiceStartDate AS clientNULLasRequestedServiceStartDate,
tstmp_to_dats( RequestedServiceEndDateTime, abap_user_timezone($session.user, $session.client,'NULL' ), $session.client, 'NULL' ) as RequestedServiceEndDate AS clientNULLasRequestedServiceEndDate,
RequestedServiceStartDateTime,
RequestedServiceEndDateTime,
ResponsibleEmployee,
ServiceTeam,
SoldToPartyCountry,
ServiceDocumentIsRejected,
SoldToPartyRegion,
PurchaseOrderByCustomer,
ServiceEmployee,
ContactPerson,
ServiceDocumentUUID,
ServiceDocumentCharUUID AS ServiceOrderUUID,
ServiceDocumentIsQuotation,
RefInHouseRepairIsExisting,
ServiceDocumentIsReleased,
ServiceDocumentIsOpen,
cast( '' as abap.char( 40 )) AS ServiceDocBillingStatusName,
cast(3 as abap.int4) AS ServiceDocIsRelForBillCritlty,
cast( '' as abap.char( 1 )) AS ServiceDocOvrlBillgBlkSts,
cast( '' as abap.char( 40 )) AS ServiceDocOvrlBillgBlkStsName,
cast(3 as abap.int4) AS SrvcDocOvrlBillgBlkStsCritlty,
cast( '' as abap.char( 1 )) AS ServiceDocOvrlBillingSts,
cast( '' as abap.char( 40 )) AS ServiceDocOvrlBillingStsName,
cast(3 as abap.int4) AS ServiceDocOvrlBillingStsCritl,
cast( '' as crmt_boolean ) AS PriceIsFixed,
cast(0 as abap.int4) AS OverallCompletionPercent,
cast(0 as crmt_gross_value) AS SrvcConfGrossAmount,
cast( 1 as abap.dec(13,3)) AS ServiceDocDuration,
cast( 1 as abap.dec(13,3)) AS ActualDurationInHours,
cast( '' as crmt_boolean ) AS ServiceConfIsFinalEnabled,
cast( '' as crmt_boolean ) AS IsBillingRelevant,
cast( '' as crmt_boolean ) AS ServiceConfirmationIsCanceled,
cast( '' as crmt_boolean ) AS ServiceConfirmationIsCompleted,
cast( '' as crmt_boolean ) AS ServiceOrderIsEditable,
SalesOrganization,
DistributionChannel,
Division,
SalesOffice,
SalesGroup,
SalesOrganizationOrgUnitID,
SalesOfficeOrgUnitID,
SalesGroupOrgUnitID,
ServiceOrganization,
RefBusinessSolutionOrder,
ServiceDocumentTemplateType,
SrvcDocCreditStatus AS SrvcOrdCreditStatus,
I_ServiceDocumentEnhcd.RespyMgmtServiceTeam AS RespyMgmtServiceTeam,
_CustMgmtExtRef.CustMgmtExtRefID AS CustMgmtExtRefID,
_CustomerSEPAMandate.SEPAMandateCreditor AS SEPAMandateCreditor,
_CustomerSEPAMandate.SEPAMandateApplication AS SEPAMandateApplication,
_CustomerSEPAMandate.SEPAMandateStatus AS SEPAMandateStatus,
_RefMaintenanceItem.MaintenanceItem AS MaintenanceItem,
_RefMaintenanceItem.MaintenanceItemDescription AS MaintenanceItemDescription,
_RefMaintenancePlan.MaintenancePlan AS MaintenancePlan,
_RefMaintenancePlan.MaintenancePlanDesc AS MaintenancePlanDesc,
_ServiceDocRefObj.Equipment AS Equipment,
_ServiceDocRefObj.FunctionalLocation AS FunctionalLocation,
_ServiceDocRefObj.ProductID AS ProductID,
_SoldToPartyToCustomer.Customer AS Customer,
_SrvcDocBslnPlannedCost.SrvcDocBslnPlndCostAmount AS SrvcDocBslnPlndCostAmount,
_SrvcDocBslnPlannedRevenue.SrvcDocBslnPlndRevenueAmount AS SrvcDocBslnPlndRevenueAmount,
_SrvcDocContinuousPlannedCost.SrvcDocContnsPlndCostAmount AS SrvcDocContnsPlndCostAmount,
_SrvcDocContinuousPlannedRevn.SrvcDocContnsPlndRevnAmount AS SrvcDocContnsPlndRevnAmount,
_WBSElement.WBSElementExternalID AS WBSElementExternalID,
_WBSElement.WBSDescription AS WBSDescription
FROM I_ServiceDocumentEnhcd
LEFT OUTER JOIN C_ServiceDocumentSoldToPartyVH AS _SoldToParty ON SoldToParty = _SoldToParty.BusinessPartner -- association [0..1]
LEFT OUTER JOIN C_ServiceDocObjPgNotes AS _ServiceDocumentNotes ON ServiceObjectType = _ServiceDocumentNotes.ServiceObjectType AND ServiceOrder = _ServiceDocumentNotes.ServiceDocument -- association [1..*]
LEFT OUTER JOIN C_SrvcOrdFUPSrvcConfTransHist AS _SrvcOrdFUPSrvcConfTransHist ON ServiceOrder = _SrvcOrdFUPSrvcConfTransHist.ServiceOrder AND ServiceObjectType = _SrvcOrdFUPSrvcConfTransHist.ServiceObjectType -- association [1..*]
LEFT OUTER JOIN C_SrvcDocDocumentFlow AS _SrvcDocDocumentFlow ON ServiceOrder = _SrvcDocDocumentFlow.ServiceOrder -- association [1..*]
LEFT OUTER JOIN C_ServiceDocObjPgErrorLog AS _ServiceDocumentErrorLog ON ServiceObjectType = _ServiceDocumentErrorLog.ServiceObjectType AND ServiceOrder = _ServiceDocumentErrorLog.ServiceDocument -- 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 I_CustMgmtExtRefID AS _CustMgmtExtRef ON ServiceOrder = _CustMgmtExtRef.CustMgmtDocument AND ServiceObjectType = _CustMgmtExtRef.CustMgmtObjectType AND _CustMgmtExtRef.CustMgmtExtRefIDSequenceNumber = '000001' AND _CustMgmtExtRef.CustMgmtExtRefIDType = '0001' -- association [0..1]
LEFT OUTER JOIN C_ServiceOrderTypeVH AS _ServiceOrderType ON ServiceDocumentType = _ServiceOrderType.ServiceOrderType -- association [1..1]
LEFT OUTER JOIN C_SrvcMgmtCntctPersnQuickVw AS _SrvcDocBPContactCard ON ContactPerson = _SrvcDocBPContactCard.BusinessPartner AND SoldToParty = _SrvcDocBPContactCard.SoldToParty -- association [1..1]
LEFT OUTER JOIN C_SrvcMgmtSoldToPartyQuickVw AS _SrvcDocBPSoldToParty ON SoldToParty = _SrvcDocBPSoldToParty.BusinessPartner AND customer = _SrvcDocBPSoldToParty.Customer -- association [0..1]
LEFT OUTER JOIN C_SrvcMgmtSoldToPartyQuickVw AS _SrvcDocBPBillToParty ON BillToParty = _SrvcDocBPBillToParty.BusinessPartner -- association [0..1]
LEFT OUTER JOIN C_SrvcMgmtSoldToPartyQuickVw AS _SrvcDocBPShipToParty ON ShipToParty = _SrvcDocBPShipToParty.BusinessPartner -- association [0..1]
LEFT OUTER JOIN C_SrvcMgmtSoldToPartyQuickVw AS _SrvcDocBPPayerParty ON PayerParty = _SrvcDocBPPayerParty.BusinessPartner -- association [0..1]
LEFT OUTER JOIN I_BusinessSolutionOrderStdVH AS _SolutionOrderVH ON RefBusinessSolutionOrder = _SolutionOrderVH.BusinessSolutionOrder -- association [0..1]
LEFT OUTER JOIN I_SrvcOrdRefMaintenancePlan AS _RefMaintenancePlan ON ServiceDocumentUUID = _RefMaintenancePlan.ServiceDocumentUUID AND ServiceObjectType = _RefMaintenancePlan.ServiceObjectType -- association [0..1]
LEFT OUTER JOIN I_SrvcOrdRefMaintenanceItem AS _RefMaintenanceItem ON ServiceDocumentUUID = _RefMaintenanceItem.ServiceDocumentUUID AND ServiceObjectType = _RefMaintenanceItem.ServiceObjectType -- association [0..1]
LEFT OUTER JOIN C_SrvcDocChangeDocument AS _ChangeDocument ON ServiceOrderUUID = _ChangeDocument.ChangeDocObject -- association [0..*]
LEFT OUTER JOIN I_CustomerSEPAMandate AS _CustomerSEPAMandate ON SEPAMandate = _CustomerSEPAMandate.SEPAMandate AND _CustomerSEPAMandate.SEPAMandateVersion = '0000' -- association [1..*]
LEFT OUTER JOIN I_SrvcDocBslnPlannedCost AS _SrvcDocBslnPlannedCost ON _SrvcDocBslnPlannedCost.ServiceDocument = ServiceOrder AND _SrvcDocBslnPlannedCost.ServiceDocumentType = ServiceDocumentType -- association [0..1]
LEFT OUTER JOIN I_SEPAMandateStatus AS _SEPAMandateStatus ON SEPAMandateStatus = _SEPAMandateStatus.SEPAMandateStatus -- association [1..1]
LEFT OUTER JOIN I_SrvcDocBslnPlannedRevenue AS _SrvcDocBslnPlannedRevenue ON _SrvcDocBslnPlannedRevenue.ServiceDocument = ServiceOrder AND _SrvcDocBslnPlannedRevenue.ServiceDocumentType = ServiceDocumentType -- association [0..1]
LEFT OUTER JOIN I_SrvcDocContnsPlannedCost AS _SrvcDocContinuousPlannedCost ON _SrvcDocContinuousPlannedCost.ServiceDocument = ServiceOrder AND _SrvcDocContinuousPlannedCost.ServiceDocumentType = ServiceDocumentType -- association [0..1]
LEFT OUTER JOIN I_SrvcDocContnsPlannedRevenue AS _SrvcDocContinuousPlannedRevn ON _SrvcDocContinuousPlannedRevn.ServiceDocument = ServiceOrder AND _SrvcDocContinuousPlannedRevn.ServiceDocumentType = ServiceDocumentType -- association [0..1]
LEFT OUTER JOIN I_WBSElementBasicData AS _WBSElement ON _WBSElement.WBSElementInternalID = WBSElementInternalID -- association [0..1]
;
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