P_RU_ServiceContract

DDL: P_RU_SERVICECONTRACT SQL: PRUSRVCNTRCT Type: view TRANSACTIONAL

P_RU_ServiceContract is a Transactional CDS View in SAP S/4HANA. It reads from 1 data source (I_ServiceDocumentEnhcd) and exposes 8 fields.

Data Sources (1)

SourceAliasJoin Type
I_ServiceDocumentEnhcd ServiceDocument from

Annotations (7)

NameValueLevelField
VDM.private true view
VDM.viewType #TRANSACTIONAL view
AbapCatalog.sqlViewName PRUSRVCNTRCT view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #CHECK view
ClientHandling.algorithm #SESSION_VARIABLE view

Fields (8)

KeyFieldSource TableSource FieldDescription
CompanyCode _SalesOrganization CompanyCode Receiver Company Code
ServiceContract ServiceDocument Transaction ID
PurchaseOrderByCustomer PurchaseOrderByCustomer Purchase Order Number
ServiceContractDescription ServiceDocumentDescription
ServiceContractStartDate ServiceContractStartDate
ServiceContractEndDate ServiceContractEndDate
SoldToParty SoldToParty Sold-to Party
ServiceContractCreatedByUser ServiceDocumentCreatedByUser

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_RU_ServiceContract.
-- 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: PRUSRVCNTRCT

CREATE VIEW P_RU_ServiceContract AS
SELECT
  _SalesOrganization.CompanyCode AS CompanyCode,
  ServiceDocument AS ServiceContract,
  PurchaseOrderByCustomer,
  ServiceDocumentDescription AS ServiceContractDescription,
  ServiceContractStartDate,
  ServiceContractEndDate,
  SoldToParty,
  ServiceDocumentCreatedByUser AS ServiceContractCreatedByUser
FROM I_ServiceDocumentEnhcd AS ServiceDocument
;