R_ServiceConfirmationTP

DDL: R_SERVICECONFIRMATIONTP Type: view_entity TRANSACTIONAL Package: CRMS4_SERVICE_CONFIRMATION_RAP

Service Confirmation - TP

R_ServiceConfirmationTP is a Transactional CDS View that provides data about "Service Confirmation - TP" in SAP S/4HANA. It reads from 1 data source (I_ServiceDocumentEnhcd) and exposes 84 fields with key field ServiceConfirmation. It has 15 associations to related views. Part of development package CRMS4_SERVICE_CONFIRMATION_RAP.

Data Sources (1)

SourceAliasJoin Type
I_ServiceDocumentEnhcd I_ServiceDocumentEnhcd from

Associations (15)

CardinalityTargetAliasCondition
[0..1] I_CustMgmtExtRefID _CustMgmtExtRef $projection.ServiceConfirmation = _CustMgmtExtRef.CustMgmtDocument and $projection.ServiceObjectType = _CustMgmtExtRef.CustMgmtObjectType and _CustMgmtExtRef.CustMgmtExtRefIDType = '0014'
[0..1] R_SrvcDocDocumentFlow _RefServiceOrder $projection.ServiceConfirmationUUID = _RefServiceOrder.ServiceDocumentUUID and _RefServiceOrder.PrdcssrSuccssrDocObjectType = 'BUS2000116' and _RefServiceOrder.ServiceObjectType = 'BUS2000117'
[0..1] I_StatusObjectUUIDStatus _SrvcConfStatus $projection.ServiceConfirmationUUID = _SrvcConfStatus.StatusObjectUUID and ( _SrvcConfStatus.StatusCode = 'I1002' or _SrvcConfStatus.StatusCode = 'I1003' or _SrvcConfStatus.StatusCode = 'I1005' ) and _SrvcConfStatus.StatusIsActive = 'X'
[0..1] I_StatusObjectUUIDStatus _StatusCancelled $projection.ServiceConfirmationUUID = _StatusCancelled.StatusObjectUUID and _StatusCancelled.StatusCode = 'I1096'
[0..1] E_ServiceDocument _Extension $projection.ServiceObjectType = _Extension.ServiceCategory and $projection.ServiceConfirmation = _Extension.ServiceOrder
[0..*] R_ServiceConfirmationItemTP _ServiceConfirmationItemTP
[0..*] R_SrvcConfPartnerTP _SrvcConfPartnerTP
[0..*] R_SrvcConfRefObjectTP _SrvcConfReferenceObjectTP
[0..*] R_SrvcConfFUPBillgDocTP _BillingDocumentFollowupTP
[0..*] R_SrvcConfFUPTimeSheetTP _TimeSheetFollowupTP
[0..*] R_SrvcConfPriceElementTP _SrvcConfPriceElementTP
[0..*] R_SrvcConfAppointmentTP _SrvcConfAppointmentTP
[0..*] R_SrvcConfDurationTP _SrvcConfDurationTP
[0..*] R_SrvcConfUserStatusTP _SrvcConfUserStatusTP
[0..*] R_SrvcConfLongTextTP _SrvcConfLongTextTP

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 Confirmation - TP view
ObjectModel.sapObjectNodeType.name ServiceConfirmation view
ObjectModel.representativeKey ServiceConfirmation view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #L view

Fields (84)

KeyFieldSource TableSource FieldDescription
KEY ServiceConfirmation ServiceDocument Transaction ID
ServiceConfirmationType ServiceDocumentType Transaction Type
ServiceConfirmationUUID ServiceDocumentUUID Object GUID
ServiceConfirmationDescription ServiceDocumentDescription
Language Language Report Text Language
ServiceDocCreationDateTime ServiceDocCreationDateTime
ServiceDocChangedDateTime ServiceDocChangedDateTime
ServiceDocumentCreatedByUser ServiceDocumentCreatedByUser
ServiceDocumentChangedByUser ServiceDocumentChangedByUser
ServiceObjectType ServiceObjectType Object Type
RequestedServiceStartDateTime RequestedServiceStartDateTime
RequestedServiceEndDateTime RequestedServiceEndDateTime
SoldToParty SoldToParty Sold-to Party
ShipToParty ShipToParty Ship-To Party (obsolete)
BillToParty BillToParty Inv. Recipient
PayerParty PayerParty Payer
ContactPersonBusinessPartnerId ContactPerson Contact Person Key
RespEmployeeBusinessPartnerId ResponsibleEmployee Employee Resp.
ServiceEmployee ServiceEmployee
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
ServiceConfirmationIsCanceled _StatusCancelled StatusIsActive
ServiceConfirmationStatus ServiceDocumentStatus
SrvcConfReldForBillingStatus ServiceDocIsReleasedForBilling
SrvcConfBillingStatus ServiceDocBillingStatus
ServiceConfirmationIsFinal ServiceConfirmationIsFinal
ServiceConfirmationHasError ServiceDocumentHasError
SrvcDocTransferStatus SrvcDocTransferStatus
SrvcDocRejectionStatus SrvcDocRejectionStatus
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
SrvcConfExtReference _CustMgmtExtRef CustMgmtExtRefID
ReferenceServiceOrder
ShippingCondition ShippingCondition Shipping Conditions
_ServiceDocumentType _ServiceDocumentType
_SoldToParty _SoldToParty
_ShipToParty _ShipToParty
_BillToParty _BillToParty
_PayerParty _PayerParty
_ContactPerson _ContactPerson
_RespEmployee _RespEmployee
_ServiceEmployee _ServiceEmployee
_SalesOrganization _SalesOrganization
_DistributionChannel _DistributionChannel
_Division _Division
_SalesOffice _SalesOffice
_SalesGroup _SalesGroup
_SalesOrganizationOrgUnit _SalesOrganizationOrgUnit
_SalesOfficeOrgUnit _SalesOfficeOrgUnit
_SalesGroupOrgUnit _SalesGroupOrgUnit
_ServiceOrganizationOrgUnit _ServiceOrganizationOrgUnit
_SalesOrganizationOrgUnit_2 _SalesOrganizationOrgUnit_2
_SalesOfficeOrgUnit_2 _SalesOfficeOrgUnit_2
_SalesGroupOrgUnit_2 _SalesGroupOrgUnit_2
_ServiceOrganizationOrgUnit_2 _ServiceOrganizationOrgUnit_2
_ServiceDocumentPriority _ServiceDocumentPriority
_TransactionCurrency _TransactionCurrency
_ServiceObjType _ServiceObjType
_ServiceConfirmationItemTP _ServiceConfirmationItemTP
_SrvcConfReferenceObjectTP _SrvcConfReferenceObjectTP
_SrvcConfPriceElementTP _SrvcConfPriceElementTP
_SrvcConfPartnerTP _SrvcConfPartnerTP
_BillingDocumentFollowupTP _BillingDocumentFollowupTP
_TimeSheetFollowupTP _TimeSheetFollowupTP
_SrvcConfAppointmentTP _SrvcConfAppointmentTP
_SrvcConfDurationTP _SrvcConfDurationTP
_SrvcConfUserStatusTP _SrvcConfUserStatusTP
_SrvcConfLongTextTP _SrvcConfLongTextTP
_StatusCancelled _StatusCancelled

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_ServiceConfirmationTP.
-- 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_ServiceConfirmationTP AS
SELECT
  ServiceDocument AS ServiceConfirmation,
  ServiceDocumentType AS ServiceConfirmationType,
  ServiceDocumentUUID AS ServiceConfirmationUUID,
  ServiceDocumentDescription AS ServiceConfirmationDescription,
  Language,
  ServiceDocCreationDateTime,
  ServiceDocChangedDateTime,
  ServiceDocumentCreatedByUser,
  ServiceDocumentChangedByUser,
  ServiceObjectType,
  RequestedServiceStartDateTime,
  RequestedServiceEndDateTime,
  SoldToParty,
  ShipToParty,
  BillToParty,
  PayerParty,
  ContactPerson AS ContactPersonBusinessPartnerId,
  ResponsibleEmployee AS RespEmployeeBusinessPartnerId,
  ServiceEmployee,
  SalesOrganization,
  DistributionChannel,
  Division,
  SalesOffice,
  SalesGroup,
  SalesOrganizationOrgUnitID,
  SalesOfficeOrgUnitID,
  SalesGroupOrgUnitID,
  ServiceOrganization,
  RespyMgmtServiceTeam,
  _ServiceTeamHeader.RespyMgmtGlobalTeamID AS RespyMgmtGlobalTeamID,
  _StatusCancelled.StatusIsActive AS ServiceConfirmationIsCanceled,
  ServiceDocumentStatus AS ServiceConfirmationStatus,
  ServiceDocIsReleasedForBilling AS SrvcConfReldForBillingStatus,
  ServiceDocBillingStatus AS SrvcConfBillingStatus,
  ServiceConfirmationIsFinal,
  ServiceDocumentHasError AS ServiceConfirmationHasError,
  SrvcDocTransferStatus,
  SrvcDocRejectionStatus,
  ServiceDocumentPriority,
  TransactionCurrency,
  ServiceDocGrossAmount,
  ServiceDocNetAmount,
  ServiceDocTaxAmount,
  PricingDocument,
  PurchaseOrderByCustomer,
  CustomerPurchaseOrderDate,
  _CustMgmtExtRef.CustMgmtExtRefID AS SrvcConfExtReference,
  cast( _RefServiceOrder.CustMgmtPrdcssrTransactionKey as crmt_object_id_db ) AS ReferenceServiceOrder,
  ShippingCondition
FROM I_ServiceDocumentEnhcd
LEFT OUTER JOIN I_CustMgmtExtRefID AS _CustMgmtExtRef ON ServiceConfirmation = _CustMgmtExtRef.CustMgmtDocument AND ServiceObjectType = _CustMgmtExtRef.CustMgmtObjectType AND _CustMgmtExtRef.CustMgmtExtRefIDType = '0014'  -- association [0..1]
LEFT OUTER JOIN R_SrvcDocDocumentFlow AS _RefServiceOrder ON ServiceConfirmationUUID = _RefServiceOrder.ServiceDocumentUUID AND _RefServiceOrder.PrdcssrSuccssrDocObjectType = 'BUS2000116' AND _RefServiceOrder.ServiceObjectType = 'BUS2000117'  -- association [0..1]
LEFT OUTER JOIN I_StatusObjectUUIDStatus AS _SrvcConfStatus ON ServiceConfirmationUUID = _SrvcConfStatus.StatusObjectUUID AND ( _SrvcConfStatus.StatusCode = 'I1002' OR _SrvcConfStatus.StatusCode = 'I1003' OR _SrvcConfStatus.StatusCode = 'I1005' ) AND _SrvcConfStatus.StatusIsActive = 'X'  -- association [0..1]
LEFT OUTER JOIN I_StatusObjectUUIDStatus AS _StatusCancelled ON ServiceConfirmationUUID = _StatusCancelled.StatusObjectUUID AND _StatusCancelled.StatusCode = 'I1096'  -- association [0..1]
LEFT OUTER JOIN E_ServiceDocument AS _Extension ON ServiceObjectType = _Extension.ServiceCategory AND ServiceConfirmation = _Extension.ServiceOrder  -- association [0..1]
LEFT OUTER JOIN R_ServiceConfirmationItemTP AS _ServiceConfirmationItemTP ON /* condition not available in parsed metadata */  -- association [0..*]
LEFT OUTER JOIN R_SrvcConfPartnerTP AS _SrvcConfPartnerTP ON /* condition not available in parsed metadata */  -- association [0..*]
LEFT OUTER JOIN R_SrvcConfRefObjectTP AS _SrvcConfReferenceObjectTP ON /* condition not available in parsed metadata */  -- association [0..*]
LEFT OUTER JOIN R_SrvcConfFUPBillgDocTP AS _BillingDocumentFollowupTP ON /* condition not available in parsed metadata */  -- association [0..*]
LEFT OUTER JOIN R_SrvcConfFUPTimeSheetTP AS _TimeSheetFollowupTP ON /* condition not available in parsed metadata */  -- association [0..*]
LEFT OUTER JOIN R_SrvcConfPriceElementTP AS _SrvcConfPriceElementTP ON /* condition not available in parsed metadata */  -- association [0..*]
LEFT OUTER JOIN R_SrvcConfAppointmentTP AS _SrvcConfAppointmentTP ON /* condition not available in parsed metadata */  -- association [0..*]
LEFT OUTER JOIN R_SrvcConfDurationTP AS _SrvcConfDurationTP ON /* condition not available in parsed metadata */  -- association [0..*]
LEFT OUTER JOIN R_SrvcConfUserStatusTP AS _SrvcConfUserStatusTP ON /* condition not available in parsed metadata */  -- association [0..*]
LEFT OUTER JOIN R_SrvcConfLongTextTP AS _SrvcConfLongTextTP ON /* condition not available in parsed metadata */  -- association [0..*]
;