R_ServiceOrderTP

DDL: R_SERVICEORDERTP Type: view_entity TRANSACTIONAL Package: CRMS4_SERVICE_ORDER_RAP

Service Order - TP

R_ServiceOrderTP is a Transactional CDS View that provides data about "Service Order - TP" in SAP S/4HANA. It reads from 1 data source (I_ServiceDocumentEnhcd) and exposes 101 fields with key field ServiceOrder. It has 25 associations to related views. Part of development package CRMS4_SERVICE_ORDER_RAP.

Data Sources (1)

SourceAliasJoin Type
I_ServiceDocumentEnhcd I_ServiceDocumentEnhcd from

Associations (25)

CardinalityTargetAliasCondition
[0..1] I_CustMgmtExtRefID _CustMgmtExtRef $projection.ServiceOrder = _CustMgmtExtRef.CustMgmtDocument and $projection.ServiceObjectType = _CustMgmtExtRef.CustMgmtObjectType and _CustMgmtExtRef.CustMgmtExtRefIDType = '0001'
[0..*] I_ServiceDocumentSuccessor _Confirmation $projection.ServiceOrderUUID = _Confirmation.ServiceDocumentUUID and _Confirmation.ServiceDocSuccessorBusObjType = 'BUS2000117'
[0..1] P_SrvcPrdcssrSrvcContr _RefServiceContract $projection.ServiceOrderUUID = _RefServiceContract.ServiceDocumentUUID and _RefServiceContract.NumberOfOccurrences = 1
[0..1] R_SrvcDocDocumentFlow _RefServiceTemplate $projection.ServiceOrderUUID = _RefServiceTemplate.ServiceDocumentUUID and _RefServiceTemplate.PrdcssrSuccssrDocObjectType = 'BUS2000116' and _RefServiceTemplate.ServiceObjectType = 'BUS2000116' and _RefServiceTemplate.ServiceDocumentTemplateType is not initial
[0..1] I_RespyMgmtTeamHeaderDetail _ServiceTeamHeader $projection.RespyMgmtServiceTeam = _ServiceTeamHeader.RespyMgmtTeamID
[0..1] I_StatusObjectUUIDStatus _SrvcOrdStatus $projection.ServiceOrderUUID = _SrvcOrdStatus.StatusObjectUUID and ( _SrvcOrdStatus.StatusCode = 'I1002' or _SrvcOrdStatus.StatusCode = 'I1003' or _SrvcOrdStatus.StatusCode = 'I1004' or _SrvcOrdStatus.StatusCode = 'I1005' ) and _SrvcOrdStatus.StatusIsActive = 'X'
[0..1] I_SrvcOrdRefFSMServiceCall _SrvcOrdRefFSMServiceCall $projection.ServiceOrderUUID = _SrvcOrdRefFSMServiceCall.ServiceDocumentUUID and _SrvcOrdRefFSMServiceCall.PrdcssrSuccssrDocObjectType = 'FSMCALL'
[0..1] E_ServiceDocument _Extension $projection.ServiceObjectType = _Extension.ServiceCategory and $projection.ServiceOrder = _Extension.ServiceOrder
[0..1] I_WBSElementBasicData _WBSElement _WBSElement.WBSElementInternalID = I_ServiceDocumentEnhcd.WBSElementInternalID
[0..1] P_SrvcDocWithSglPrdcssrQtan _SinglePredecessorQtan $projection.ServiceOrderUUID = _SinglePredecessorQtan.ServiceDocumentUUID and $projection.ServiceOrder = _SinglePredecessorQtan.ServiceDocument
[0..*] R_ServiceOrderItemTP _ServiceOrderItemTP
[0..*] R_SrvcOrdPartnerTP _SrvcOrdPartnerTP
[0..*] R_SrvcOrdReferenceObjectTP _SrvcOrdReferenceObjectTP
[0..*] R_SrvcOrdPriceElementTP _SrvcOrdPriceElementTP
[0..*] R_SrvcOrdUserStatusTP _SrvcOrdUserStatusTP
[0..*] R_SrvcOrdFUPSrvcConfTP _SrvcOrdFUPSrvcConfTP
[0..*] R_SrvcOrdFUPBillgDocTP _SrvcOrdFUPBillgDocTP
[0..*] R_SrvcOrdFUPPurchaseOrderTP _SrvcOrdFUPPurchaseOrderTP
[0..*] R_SrvcOrdFUPPurReqnTP _SrvcOrdFUPPurReqnTP
[0..*] R_SrvcOrdFUPSrvcEntrSheetTP _SrvcOrdFUPSrvcEntrSheetTP
[0..*] R_SrvcOrdFUPSuplrInvcTP _SrvcOrdFUPSuplrInvcTP
[0..*] R_SrvcOrdAppointmentTP _SrvcOrdAppointmentTP
[0..*] R_SrvcOrdDurationTP _SrvcOrdDurationTP
[0..*] R_SrvcOrdFUPMaintOrdTP _SrvcOrdFUPMaintOrdTP
[0..*] R_SrvcOrdLongTextTP _SrvcOrdLongTextTP

Annotations (10)

NameValueLevelField
AccessControl.authorizationCheck #CHECK view
VDM.viewType #TRANSACTIONAL view
VDM.lifecycle.contract.type #SAP_INTERNAL_API view
Metadata.ignorePropagatedAnnotations true view
EndUserText.label Service Order - TP view
ObjectModel.sapObjectNodeType.name ServiceOrder view
ObjectModel.representativeKey ServiceOrder view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #L view

Fields (101)

KeyFieldSource TableSource FieldDescription
KEY ServiceOrder ServiceDocument Transaction ID
ServiceObjectType ServiceObjectType Object Type
ServiceOrderType ServiceDocumentType Transaction Type
ServiceOrderUUID ServiceDocumentUUID Object GUID
ServiceOrderDescription ServiceDocumentDescription
Language Language Report Text Language
PostingDate PostingDate Posting Date for GR
ServiceDocCreationDateTime ServiceDocCreationDateTime
ServiceDocChangedDateTime ServiceDocChangedDateTime
ServiceDocumentCreatedByUser ServiceDocumentCreatedByUser
ServiceDocumentChangedByUser ServiceDocumentChangedByUser
SoldToParty SoldToParty Sold-to Party
ShipToParty ShipToParty Ship-To Party (obsolete)
BillToParty BillToParty Inv. Recipient
PayerParty PayerParty Payer
PaymentTerms PaymentTerms Pyt Terms
PaymentMethod PaymentMethod Pymt Meth.
SEPAMandate SEPAMandate SEPA Mandate
SrvcSEPAMandateRelevance SrvcSEPAMandateRelevance
ContactPersonBusinessPartnerId ContactPerson Contact Person Key
RespEmployeeBusinessPartnerId ResponsibleEmployee Employee Resp.
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
RespyMgmtServiceTeam RespyMgmtServiceTeam
RespyMgmtGlobalTeamID _ServiceTeamHeader RespyMgmtGlobalTeamID
ServiceOrderIsRejected ServiceDocumentIsRejected
ServiceOrderStatus ServiceDocumentStatus
SrvcOrdReldForBillingStatus ServiceDocIsReleasedForBilling
SrvcOrdBillingStatus ServiceDocBillingStatus
ServiceOrderHasError ServiceDocumentHasError
SrvcDocTransferStatus SrvcDocTransferStatus
SrvcOrdExecutionStatus SrvcDocExecutionStatus
SrvcDocRejectionStatus SrvcDocRejectionStatus
SrvcOrdCreditStatus SrvcDocCreditStatus
RequestedServiceStartDateTime RequestedServiceStartDateTime
RequestedServiceEndDateTime RequestedServiceEndDateTime
ErlstRequestedDeliveryDateTime ErlstRequestedDeliveryDateTime
ServiceDocumentPriority ServiceDocumentPriority
TransactionCurrency TransactionCurrency Transaction Currency
ServiceDocGrossAmount ServiceDocGrossAmount
ServiceDocNetAmount ServiceDocNetAmount
ServiceDocTaxAmount ServiceDocTaxAmount
PricingDocument PricingDocument Document Condition
PurchaseOrderByCustomer PurchaseOrderByCustomer Purchase Order Number
CustomerPurchaseOrderDate CustomerPurchaseOrderDate Purchase Order Date
ServiceOrderRejectionReason ServiceDocumentRejectionReason
SrvcOrdExtReference _CustMgmtExtRef CustMgmtExtRefID
ReferenceServiceContract _RefServiceContract ServiceContract Transaction ID
RefServiceOrderTemplate
ReferenceServiceQtan
ShippingCondition ShippingCondition Shipping Conditions
WBSElementExternalID _WBSElement WBSElementExternalID WBS Element External ID
FSMServiceCall _SrvcOrdRefFSMServiceCall FSMServiceCall
_ServiceObjType _ServiceObjType
_ServiceDocumentType _ServiceDocumentType
_SoldToParty _SoldToParty
_ShipToParty _ShipToParty
_BillToParty _BillToParty
_PayerParty _PayerParty
_ContactPerson _ContactPerson
_PaymentTerms _PaymentTerms
_PaymentMethod _PaymentMethod
_SrvcSEPAMandateRelevance _SrvcSEPAMandateRelevance
_RespEmployee _RespEmployee
_SalesOrganization _SalesOrganization
_DistributionChannel _DistributionChannel
_Division _Division
_SalesOffice _SalesOffice
_SalesGroup _SalesGroup
_SalesOrganizationOrgUnit_2 _SalesOrganizationOrgUnit_2
_SalesOfficeOrgUnit_2 _SalesOfficeOrgUnit_2
_SalesGroupOrgUnit_2 _SalesGroupOrgUnit_2
_ServiceOrganizationOrgUnit_2 _ServiceOrganizationOrgUnit_2
_ServiceTeamHeader _ServiceTeamHeader
_ServiceDocumentPriority _ServiceDocumentPriority
_TransactionCurrency _TransactionCurrency
_SrvcDocumentRejectionReason _SrvcDocumentRejectionReason
_Confirmation _Confirmation
_ServiceOrderItemTP _ServiceOrderItemTP
_SrvcOrdPartnerTP _SrvcOrdPartnerTP
_SrvcOrdReferenceObjectTP _SrvcOrdReferenceObjectTP
_SrvcOrdPriceElementTP _SrvcOrdPriceElementTP
_SrvcOrdUserStatusTP _SrvcOrdUserStatusTP
_SrvcOrdStatus _SrvcOrdStatus
_SrvcOrdFUPSrvcConfTP _SrvcOrdFUPSrvcConfTP
_SrvcOrdFUPBillgDocTP _SrvcOrdFUPBillgDocTP
_SrvcOrdFUPPurchaseOrderTP _SrvcOrdFUPPurchaseOrderTP
_SrvcOrdFUPPurReqnTP _SrvcOrdFUPPurReqnTP
_SrvcOrdFUPSrvcEntrSheetTP _SrvcOrdFUPSrvcEntrSheetTP
_SrvcOrdFUPSuplrInvcTP _SrvcOrdFUPSuplrInvcTP
_SrvcOrdFUPMaintOrdTP _SrvcOrdFUPMaintOrdTP
_SrvcOrdAppointmentTP _SrvcOrdAppointmentTP
_SrvcOrdDurationTP _SrvcOrdDurationTP
_SrvcOrdLongTextTP _SrvcOrdLongTextTP

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 R_ServiceOrderTP.
-- 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 R_ServiceOrderTP AS
SELECT
  ServiceDocument AS ServiceOrder,
  ServiceObjectType,
  ServiceDocumentType AS ServiceOrderType,
  ServiceDocumentUUID AS ServiceOrderUUID,
  ServiceDocumentDescription AS ServiceOrderDescription,
  Language,
  PostingDate,
  ServiceDocCreationDateTime,
  ServiceDocChangedDateTime,
  ServiceDocumentCreatedByUser,
  ServiceDocumentChangedByUser,
  SoldToParty,
  ShipToParty,
  BillToParty,
  PayerParty,
  PaymentTerms,
  PaymentMethod,
  SEPAMandate,
  SrvcSEPAMandateRelevance,
  ContactPerson AS ContactPersonBusinessPartnerId,
  ResponsibleEmployee AS RespEmployeeBusinessPartnerId,
  SalesOrganization,
  DistributionChannel,
  Division,
  SalesOffice,
  SalesGroup,
  SalesOrganizationOrgUnitID,
  SalesOfficeOrgUnitID,
  SalesGroupOrgUnitID,
  ServiceOrganization,
  RespyMgmtServiceTeam,
  _ServiceTeamHeader.RespyMgmtGlobalTeamID AS RespyMgmtGlobalTeamID,
  ServiceDocumentIsRejected AS ServiceOrderIsRejected,
  ServiceDocumentStatus AS ServiceOrderStatus,
  ServiceDocIsReleasedForBilling AS SrvcOrdReldForBillingStatus,
  ServiceDocBillingStatus AS SrvcOrdBillingStatus,
  ServiceDocumentHasError AS ServiceOrderHasError,
  SrvcDocTransferStatus,
  SrvcDocExecutionStatus AS SrvcOrdExecutionStatus,
  SrvcDocRejectionStatus,
  SrvcDocCreditStatus AS SrvcOrdCreditStatus,
  RequestedServiceStartDateTime,
  RequestedServiceEndDateTime,
  ErlstRequestedDeliveryDateTime,
  ServiceDocumentPriority,
  TransactionCurrency,
  ServiceDocGrossAmount,
  ServiceDocNetAmount,
  ServiceDocTaxAmount,
  PricingDocument,
  PurchaseOrderByCustomer,
  CustomerPurchaseOrderDate,
  ServiceDocumentRejectionReason AS ServiceOrderRejectionReason,
  _CustMgmtExtRef.CustMgmtExtRefID AS SrvcOrdExtReference,
  _RefServiceContract.ServiceContract AS ReferenceServiceContract,
  cast( _RefServiceTemplate.CustMgmtPrdcssrTransactionKey as crmt_object_id_db ) AS RefServiceOrderTemplate,
  cast( _SinglePredecessorQtan.ReferenceServiceQtan as crms4_reference_document_id_co ) AS ReferenceServiceQtan,
  ShippingCondition,
  _WBSElement.WBSElementExternalID AS WBSElementExternalID,
  _SrvcOrdRefFSMServiceCall.FSMServiceCall AS FSMServiceCall
FROM I_ServiceDocumentEnhcd
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 I_ServiceDocumentSuccessor AS _Confirmation ON ServiceOrderUUID = _Confirmation.ServiceDocumentUUID AND _Confirmation.ServiceDocSuccessorBusObjType = 'BUS2000117'  -- association [0..*]
LEFT OUTER JOIN P_SrvcPrdcssrSrvcContr AS _RefServiceContract ON ServiceOrderUUID = _RefServiceContract.ServiceDocumentUUID AND _RefServiceContract.NumberOfOccurrences = 1  -- association [0..1]
LEFT OUTER JOIN R_SrvcDocDocumentFlow AS _RefServiceTemplate ON ServiceOrderUUID = _RefServiceTemplate.ServiceDocumentUUID AND _RefServiceTemplate.PrdcssrSuccssrDocObjectType = 'BUS2000116' AND _RefServiceTemplate.ServiceObjectType = 'BUS2000116' AND _RefServiceTemplate.ServiceDocumentTemplateType is not initial  -- association [0..1]
LEFT OUTER JOIN I_RespyMgmtTeamHeaderDetail AS _ServiceTeamHeader ON RespyMgmtServiceTeam = _ServiceTeamHeader.RespyMgmtTeamID  -- association [0..1]
LEFT OUTER JOIN I_StatusObjectUUIDStatus AS _SrvcOrdStatus ON ServiceOrderUUID = _SrvcOrdStatus.StatusObjectUUID AND ( _SrvcOrdStatus.StatusCode = 'I1002' OR _SrvcOrdStatus.StatusCode = 'I1003' OR _SrvcOrdStatus.StatusCode = 'I1004' OR _SrvcOrdStatus.StatusCode = 'I1005' ) AND _SrvcOrdStatus.StatusIsActive = 'X'  -- association [0..1]
LEFT OUTER JOIN I_SrvcOrdRefFSMServiceCall AS _SrvcOrdRefFSMServiceCall ON ServiceOrderUUID = _SrvcOrdRefFSMServiceCall.ServiceDocumentUUID AND _SrvcOrdRefFSMServiceCall.PrdcssrSuccssrDocObjectType = 'FSMCALL'  -- association [0..1]
LEFT OUTER JOIN E_ServiceDocument AS _Extension ON ServiceObjectType = _Extension.ServiceCategory AND ServiceOrder = _Extension.ServiceOrder  -- association [0..1]
LEFT OUTER JOIN I_WBSElementBasicData AS _WBSElement ON _WBSElement.WBSElementInternalID = I_ServiceDocumentEnhcd.WBSElementInternalID  -- association [0..1]
LEFT OUTER JOIN P_SrvcDocWithSglPrdcssrQtan AS _SinglePredecessorQtan ON ServiceOrderUUID = _SinglePredecessorQtan.ServiceDocumentUUID AND ServiceOrder = _SinglePredecessorQtan.ServiceDocument  -- association [0..1]
LEFT OUTER JOIN R_ServiceOrderItemTP AS _ServiceOrderItemTP ON /* condition not available in parsed metadata */  -- association [0..*]
LEFT OUTER JOIN R_SrvcOrdPartnerTP AS _SrvcOrdPartnerTP ON /* condition not available in parsed metadata */  -- association [0..*]
LEFT OUTER JOIN R_SrvcOrdReferenceObjectTP AS _SrvcOrdReferenceObjectTP ON /* condition not available in parsed metadata */  -- association [0..*]
LEFT OUTER JOIN R_SrvcOrdPriceElementTP AS _SrvcOrdPriceElementTP ON /* condition not available in parsed metadata */  -- association [0..*]
LEFT OUTER JOIN R_SrvcOrdUserStatusTP AS _SrvcOrdUserStatusTP ON /* condition not available in parsed metadata */  -- association [0..*]
LEFT OUTER JOIN R_SrvcOrdFUPSrvcConfTP AS _SrvcOrdFUPSrvcConfTP ON /* condition not available in parsed metadata */  -- association [0..*]
LEFT OUTER JOIN R_SrvcOrdFUPBillgDocTP AS _SrvcOrdFUPBillgDocTP ON /* condition not available in parsed metadata */  -- association [0..*]
LEFT OUTER JOIN R_SrvcOrdFUPPurchaseOrderTP AS _SrvcOrdFUPPurchaseOrderTP ON /* condition not available in parsed metadata */  -- association [0..*]
LEFT OUTER JOIN R_SrvcOrdFUPPurReqnTP AS _SrvcOrdFUPPurReqnTP ON /* condition not available in parsed metadata */  -- association [0..*]
LEFT OUTER JOIN R_SrvcOrdFUPSrvcEntrSheetTP AS _SrvcOrdFUPSrvcEntrSheetTP ON /* condition not available in parsed metadata */  -- association [0..*]
LEFT OUTER JOIN R_SrvcOrdFUPSuplrInvcTP AS _SrvcOrdFUPSuplrInvcTP ON /* condition not available in parsed metadata */  -- association [0..*]
LEFT OUTER JOIN R_SrvcOrdAppointmentTP AS _SrvcOrdAppointmentTP ON /* condition not available in parsed metadata */  -- association [0..*]
LEFT OUTER JOIN R_SrvcOrdDurationTP AS _SrvcOrdDurationTP ON /* condition not available in parsed metadata */  -- association [0..*]
LEFT OUTER JOIN R_SrvcOrdFUPMaintOrdTP AS _SrvcOrdFUPMaintOrdTP ON /* condition not available in parsed metadata */  -- association [0..*]
LEFT OUTER JOIN R_SrvcOrdLongTextTP AS _SrvcOrdLongTextTP ON /* condition not available in parsed metadata */  -- association [0..*]
;