P_SrvcOrdRefServiceContract

DDL: P_SRVCORDREFSERVICECONTRACT SQL: PSRVCORDREFCONTR Type: view COMPOSITE

P_SrvcOrdRefServiceContract is a Composite CDS View in SAP S/4HANA. It reads from 1 data source (I_ServiceDocumentPredecessor) and exposes 5 fields with key fields ServiceOrder, ReferenceServiceContract. It has 1 association to related views.

Data Sources (1)

SourceAliasJoin Type
I_ServiceDocumentPredecessor I_ServiceDocumentPredecessor from

Associations (1)

CardinalityTargetAliasCondition
[0..1] I_ServiceDocumentEnhcd _ServiceOrder $projection.ServiceOrderUUID = _ServiceOrder.ServiceDocumentUUID

Annotations (10)

NameValueLevelField
AbapCatalog.sqlViewName PSRVCORDREFCONTR view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #CHECK view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.usageType.serviceQuality #B view
ObjectModel.usageType.sizeCategory #XL view
VDM.viewType #COMPOSITE view
VDM.private true view

Fields (5)

KeyFieldSource TableSource FieldDescription
KEY ServiceOrder _ServiceOrder ServiceDocument Transaction ID
KEY ReferenceServiceContract _ServiceDoc ServiceDocument Transaction ID
ServiceOrderUUID ServiceDocumentUUID Object GUID
ServiceObjectType ServiceObjectType Object Type
ServiceDocumentIsQuotation _ServiceOrder ServiceDocumentIsQuotation

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 P_SrvcOrdRefServiceContract.
-- 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: PSRVCORDREFCONTR

CREATE VIEW P_SrvcOrdRefServiceContract AS
SELECT
  _ServiceOrder.ServiceDocument AS ServiceOrder,
  _ServiceDoc.ServiceDocument AS ReferenceServiceContract,
  ServiceDocumentUUID AS ServiceOrderUUID,
  ServiceObjectType,
  _ServiceOrder.ServiceDocumentIsQuotation AS ServiceDocumentIsQuotation
FROM I_ServiceDocumentPredecessor
LEFT OUTER JOIN I_ServiceDocumentEnhcd AS _ServiceOrder ON ServiceOrderUUID = _ServiceOrder.ServiceDocumentUUID  -- association [0..1]
;