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

R_ServiceDocumentTP

DDL: R_SERVICEDOCUMENTTP Type: view TRANSACTIONAL

Transaction Processing: Service Header

R_ServiceDocumentTP is a Transactional CDS View that provides data about "Transaction Processing: Service Header" in SAP S/4HANA. It reads from 1 data source (I_ServiceDocumentEnhcd) and exposes 84 fields with key fields ServiceObjectType, ServiceDocument. It has 11 associations to related views.

Data Sources (1)

SourceAliasJoin Type
I_ServiceDocumentEnhcd I_ServiceDocumentEnhcd from

Associations (11)

CardinalityTargetAliasCondition
[0..*] I_ServiceDocumentSuccessor _ServiceDocumentSuccessor $projection.ServiceDocumentUUID = _ServiceDocumentSuccessor.ServiceDocumentUUID and $projection.ServiceObjectType = _ServiceDocumentSuccessor.ServiceObjectType
[1] I_BusinessPartner _ServiceDocCreatedBy $projection.ServiceDocumentCreatedByUser = _ServiceDocCreatedBy.BusinessPartner
[1] I_BusinessPartner _ServiceDocChangedBy $projection.ServiceDocumentChangedByUser = _ServiceDocChangedBy.BusinessPartner
[0..1] I_SrvcMgmtBPQuickView_2 _SrvcDocBPSoldToParty $projection.SoldToParty = _SrvcDocBPSoldToParty.BusinessPartner
[0..1] I_SrvcMgmtBPQuickView_2 _SrvcDocBPContactCard $projection.ContactPerson = _SrvcDocBPContactCard.BusinessPartner
[0..1] I_SrvcMgmtBPQuickView_2 _SrvcDocBPRespEmployee $projection.ResponsibleEmployee = _SrvcDocBPRespEmployee.BusinessPartner
[1] I_SrvcDocErrorStatusVH _ServiceDocHasError $projection.ServiceDocumentHasError = _ServiceDocHasError.ServiceDocumentHasError
[0..1] E_ServiceDocument _ServiceDocumentExt $projection.ServiceObjectType = _ServiceDocumentExt.ServiceCategory and $projection.ServiceDocument = _ServiceDocumentExt.ServiceOrder
[0..1] I_StatusObjectUUIDStatus _SrvcDocSystemStatus $projection.ServiceDocumentUUID = _SrvcDocSystemStatus.StatusObjectUUID and ( _SrvcDocSystemStatus.StatusCode = 'I1002' or _SrvcDocSystemStatus.StatusCode = 'I1003' or _SrvcDocSystemStatus.StatusCode = 'I1004' or _SrvcDocSystemStatus.StatusCode = 'I1005' ) and _SrvcDocSystemStatus.StatusIsActive = 'X'
[0..1] I_CustMgmtLifecycleUserStsText _CustMgmtLifecycleUserStsText $projection.ServiceDocumentStatus = _CustMgmtLifecycleUserStsText.CustMgmtLifecycleUserStatus and _CustMgmtLifecycleUserStsText.Language = $session.system_language
[0..*] R_ServiceDocumentItemTP _ServiceDocumentItemTP

Annotations (14)

NameValueLevelField
AbapCatalog.sqlViewName RSRVCDOCUMENTTP view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
EndUserText.label Transaction Processing: Service Header view
VDM.viewType #TRANSACTIONAL view
VDM.lifecycle.contract.type #SAP_INTERNAL_API view
VDM.lifecycle.status #DEPRECATED view
AccessControl.authorizationCheck #CHECK view
Metadata.ignorePropagatedAnnotations true view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.representativeKey ServiceDocument view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #XXL view
ObjectModel.usageType.dataClass #MIXED view

Fields (84)

KeyFieldSource TableSource FieldDescription
KEY ServiceObjectType ServiceObjectType Object Type
KEY ServiceDocument ServiceDocument Transaction ID
ServiceDocumentUUID ServiceDocumentUUID Object GUID
ServiceDocumentCharUUID ServiceDocumentCharUUID
ServiceDocumentDescription ServiceDocumentDescription
ServiceDocumentType ServiceDocumentType Transaction Type
ServiceDocumentStatus ServiceDocumentStatus
ServiceDocumentPriority ServiceDocumentPriority
ResponsibleEmployee ResponsibleEmployee Employee Resp.
SoldToParty SoldToParty Sold-to Party
ContactPerson ContactPerson Contact Person Key
ServiceDocumentHasError ServiceDocumentHasError
TransactionCurrency TransactionCurrency Transaction Currency
ServiceDocNetAmount ServiceDocNetAmount
ServiceDocGrossAmount ServiceDocGrossAmount
ServiceDocumentCreationDate ServiceDocumentCreationDate
ServiceDocumentChangedDate ServiceDocumentChangedDate
PostingDate PostingDate Posting Date for GR
ServiceDocumentCreatedByUser ServiceDocumentCreatedByUser
ServiceDocumentChangedByUser ServiceDocumentChangedByUser
ServiceDocumentIsQuotation ServiceDocumentIsQuotation
SrvcDocIsMaintServiceOrder SrvcDocIsMaintServiceOrder
SalesOrganization SalesOrganization Sales Organization
SalesOffice SalesOffice Sales Office
SalesGroup SalesGroup Sales Group
DistributionChannel DistributionChannel RefDistCh-Cust/Mat.
Division Division Internal Division ID
RequestedServiceStartDate RequestedServiceStartDate
RequestedServiceEndDate RequestedServiceEndDate
BillToParty BillToParty Inv. Recipient
ShipToParty ShipToParty Ship-To Party (obsolete)
PayerParty PayerParty Payer
SoldToPartyCountry SoldToPartyCountry
SoldToPartyRegion SoldToPartyRegion
ServiceDocBillingStatus ServiceDocBillingStatus
ServiceDocIsReleasedForBilling ServiceDocIsReleasedForBilling
ServiceDocumentIsRejected ServiceDocumentIsRejected
ServiceDocumentIsReleased ServiceDocumentIsReleased
MaintSrvcOrdExecutionStatus MaintSrvcOrdExecutionStatus
ServiceTeam ServiceTeam
SalesOfficeOrgUnitID SalesOfficeOrgUnitID
SalesOrganizationOrgUnitID SalesOrganizationOrgUnitID
SalesGroupOrgUnitID SalesGroupOrgUnitID
ServiceOrganization ServiceOrganization
PurchaseOrderByCustomer PurchaseOrderByCustomer Purchase Order Number
SystemStatus _SrvcDocSystemStatus StatusCode Statuscode
_ServiceDocumentItemTP _ServiceDocumentItemTP
_ServiceObjType _ServiceObjType
_ServiceDocumentPriority _ServiceDocumentPriority
_ServiceDocumentStatus _ServiceDocumentStatus
_SrvcDocIsRelForBillgSts _SrvcDocIsRelForBillgSts
_ServiceDocBillingStatus _ServiceDocBillingStatus
_RespEmployee _RespEmployee
_SoldToParty _SoldToParty
_ContactPerson _ContactPerson
_ServiceDocumentType _ServiceDocumentType
_SalesOrganization _SalesOrganization
_SalesOffice _SalesOffice
_SalesGroup _SalesGroup
_DistributionChannel _DistributionChannel
_Division _Division
_ServiceDocumentSuccessor _ServiceDocumentSuccessor
_TransactionCurrency _TransactionCurrency
_ServiceDocCreatedBy _ServiceDocCreatedBy
_ServiceDocChangedBy _ServiceDocChangedBy
_SrvcDocBPSoldToParty _SrvcDocBPSoldToParty
_SrvcDocBPContactCard _SrvcDocBPContactCard
_SrvcDocBPRespEmployee _SrvcDocBPRespEmployee
_ServiceDocHasError _ServiceDocHasError
_SalesOrganizationOrgUnit _SalesOrganizationOrgUnit
_SalesOfficeOrgUnit _SalesOfficeOrgUnit
_SalesGroupOrgUnit _SalesGroupOrgUnit
_ServiceOrganizationOrgUnit _ServiceOrganizationOrgUnit
_SalesOrganizationOrgUnit_2 _SalesOrganizationOrgUnit_2
_SalesOfficeOrgUnit_2 _SalesOfficeOrgUnit_2
_SalesGroupOrgUnit_2 _SalesGroupOrgUnit_2
_ServiceOrganizationOrgUnit_2 _ServiceOrganizationOrgUnit_2
_BillToParty _BillToParty
_ShipToParty _ShipToParty
_PayerParty _PayerParty
_SoldToPartyCountry _SoldToPartyCountry
_SoldToPartyRegion _SoldToPartyRegion
_ServiceTeam _ServiceTeam
_SrvcDocSystemStatus _SrvcDocSystemStatus

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_ServiceDocumentTP.
-- 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_ServiceDocumentTP AS
SELECT
  ServiceObjectType,
  ServiceDocument,
  ServiceDocumentUUID,
  ServiceDocumentCharUUID,
  ServiceDocumentDescription,
  ServiceDocumentType,
  ServiceDocumentStatus,
  ServiceDocumentPriority,
  ResponsibleEmployee,
  SoldToParty,
  ContactPerson,
  ServiceDocumentHasError,
  TransactionCurrency,
  ServiceDocNetAmount,
  ServiceDocGrossAmount,
  ServiceDocumentCreationDate,
  ServiceDocumentChangedDate,
  PostingDate,
  ServiceDocumentCreatedByUser,
  ServiceDocumentChangedByUser,
  ServiceDocumentIsQuotation,
  SrvcDocIsMaintServiceOrder,
  SalesOrganization,
  SalesOffice,
  SalesGroup,
  DistributionChannel,
  Division,
  RequestedServiceStartDate,
  RequestedServiceEndDate,
  BillToParty,
  ShipToParty,
  PayerParty,
  SoldToPartyCountry,
  SoldToPartyRegion,
  ServiceDocBillingStatus,
  ServiceDocIsReleasedForBilling,
  ServiceDocumentIsRejected,
  ServiceDocumentIsReleased,
  MaintSrvcOrdExecutionStatus,
  ServiceTeam,
  SalesOfficeOrgUnitID,
  SalesOrganizationOrgUnitID,
  SalesGroupOrgUnitID,
  ServiceOrganization,
  PurchaseOrderByCustomer,
  _SrvcDocSystemStatus.StatusCode AS SystemStatus
FROM I_ServiceDocumentEnhcd
LEFT OUTER JOIN I_ServiceDocumentSuccessor AS _ServiceDocumentSuccessor ON ServiceDocumentUUID = _ServiceDocumentSuccessor.ServiceDocumentUUID AND ServiceObjectType = _ServiceDocumentSuccessor.ServiceObjectType  -- association [0..*]
LEFT OUTER JOIN I_BusinessPartner AS _ServiceDocCreatedBy ON ServiceDocumentCreatedByUser = _ServiceDocCreatedBy.BusinessPartner  -- association [1]
LEFT OUTER JOIN I_BusinessPartner AS _ServiceDocChangedBy ON ServiceDocumentChangedByUser = _ServiceDocChangedBy.BusinessPartner  -- association [1]
LEFT OUTER JOIN I_SrvcMgmtBPQuickView_2 AS _SrvcDocBPSoldToParty ON SoldToParty = _SrvcDocBPSoldToParty.BusinessPartner  -- association [0..1]
LEFT OUTER JOIN I_SrvcMgmtBPQuickView_2 AS _SrvcDocBPContactCard ON ContactPerson = _SrvcDocBPContactCard.BusinessPartner  -- association [0..1]
LEFT OUTER JOIN I_SrvcMgmtBPQuickView_2 AS _SrvcDocBPRespEmployee ON ResponsibleEmployee = _SrvcDocBPRespEmployee.BusinessPartner  -- association [0..1]
LEFT OUTER JOIN I_SrvcDocErrorStatusVH AS _ServiceDocHasError ON ServiceDocumentHasError = _ServiceDocHasError.ServiceDocumentHasError  -- association [1]
LEFT OUTER JOIN E_ServiceDocument AS _ServiceDocumentExt ON ServiceObjectType = _ServiceDocumentExt.ServiceCategory AND ServiceDocument = _ServiceDocumentExt.ServiceOrder  -- association [0..1]
LEFT OUTER JOIN I_StatusObjectUUIDStatus AS _SrvcDocSystemStatus ON ServiceDocumentUUID = _SrvcDocSystemStatus.StatusObjectUUID AND ( _SrvcDocSystemStatus.StatusCode = 'I1002' OR _SrvcDocSystemStatus.StatusCode = 'I1003' OR _SrvcDocSystemStatus.StatusCode = 'I1004' OR _SrvcDocSystemStatus.StatusCode = 'I1005' ) AND _SrvcDocSystemStatus.StatusIsActive = 'X'  -- association [0..1]
LEFT OUTER JOIN I_CustMgmtLifecycleUserStsText AS _CustMgmtLifecycleUserStsText ON ServiceDocumentStatus = _CustMgmtLifecycleUserStsText.CustMgmtLifecycleUserStatus AND _CustMgmtLifecycleUserStsText.Language = $session.system_language  -- association [0..1]
LEFT OUTER JOIN R_ServiceDocumentItemTP AS _ServiceDocumentItemTP ON /* condition not available in parsed metadata */  -- association [0..*]
;