C_SrvcContrListRptAndObjPg
Service Contract
C_SrvcContrListRptAndObjPg is a Consumption CDS View that provides data about "Service Contract" in SAP S/4HANA. It reads from 1 data source (I_ServiceDocumentEnhcd) and exposes 90 fields with key field ServiceContract. It has 17 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_ServiceDocumentEnhcd | ServiceContract | from |
Associations (17)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_SitnInstceIndicator | _SitnInstceIndicator | _SitnInstceIndicator.SitnInstceAnchorObjectKey = $projection.ServiceDocumentCharUUID and _SitnInstceIndicator.SitnDefAnchorObject = 'ServiceContractUUID' |
| [0..1] | C_ServiceDocumentSoldToPartyVH | _SoldToParty | $projection.SoldToParty = _SoldToParty.BusinessPartner |
| [0..1] | C_ServiceDocumentShipToPartyVH | _ShipToParty | $projection.ShipToParty = _ShipToParty.BusinessPartner |
| [0..1] | C_ServiceDocumentShipToPartyVH | _BillToParty | $projection.BillToParty = _BillToParty.BusinessPartner |
| [0..1] | C_ServiceDocumentPayerVH | _PayerParty | $projection.PayerParty = _PayerParty.BusinessPartner |
| [0..1] | I_ServiceContractTypeVH | _ServiceContractTypeVH | $projection.ServiceDocumentType = _ServiceContractTypeVH.ServiceContractType |
| [0..1] | I_SrvcDocBillingStatusVH | _SrvcDocBillingStatusVH | $projection.ServiceDocBillingStatus = _SrvcDocBillingStatusVH.ServiceDocBillingStatus |
| [1..*] | C_SrvcContrItmListRptAndObjPg | _ServiceContractItem | $projection.ServiceObjectType = _ServiceContractItem.ServiceObjectType and $projection.ServiceContract = _ServiceContractItem.ServiceContract |
| [1..*] | C_SrvcDocObjPgTransHistory | _ServiceDocumentTransHistory | $projection.ServiceObjectType = _ServiceDocumentTransHistory.ServiceObjectType and $projection.ServiceContract = _ServiceDocumentTransHistory.ServiceDocument |
| [1..*] | C_ServiceDocObjPgErrorLog | _ServiceDocumentErrorLog | $projection.ServiceObjectType = _ServiceDocumentErrorLog.ServiceObjectType and $projection.ServiceContract = _ServiceDocumentErrorLog.ServiceDocument |
| [0..1] | E_ServiceDocument | _ServiceDocumentExt | $projection.ServiceObjectType = _ServiceDocumentExt.ServiceCategory and $projection.ServiceContract = _ServiceDocumentExt.ServiceOrder |
| [1] | I_ServiceDocumentStatusText | _ServiceDocumentStatusText | $projection.ServiceContractStatus = _ServiceDocumentStatusText.ServiceDocumentStatus and _ServiceDocumentStatusText.Language = $session.system_language |
| [0..1] | I_ServiceContractStdVH | _ServiceContractVH | $projection.ServiceContract = _ServiceContractVH.ServiceDocument and $projection.ServiceObjectType = _ServiceContractVH.ServiceObjectType and $projection.ServiceDocumentType = _ServiceContractVH.ServiceDocumentType |
| [0..1] | I_BusinessSolutionOrderStdVH | _SolutionOrderVH | $projection.RefBusinessSolutionOrder = _SolutionOrderVH.BusinessSolutionOrder |
| [0..1] | I_CustMgmtLifecycleUserStsText | _CustMgmtLifecycleUserStsText | $projection.ServiceContractStatus = _CustMgmtLifecycleUserStsText.CustMgmtLifecycleUserStatus and _CustMgmtLifecycleUserStsText.Language = $session.system_language |
| [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] | C_SrvcMgmtRespEmplQuickVw | _ResponsibleEmployeeQuickView | $projection.RespEmployeeBusinessPartnerId = _ResponsibleEmployeeQuickView.BusinessPartner |
Annotations (19)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | CSRVCCONTRLIST | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| EndUserText.label | Service Contract | view | |
| Search.searchable | true | view | |
| UI.headerInfo.typeName | Service Contract | view | |
| UI.headerInfo.typeNamePlural | Service Contracts | view | |
| UI.headerInfo.title.type | #STANDARD | view | |
| UI.headerInfo.title.value | ServiceContract | view | |
| UI.headerInfo.description.type | #STANDARD | view | |
| UI.headerInfo.description.value | ServiceContractDescription | view | |
| VDM.viewType | #CONSUMPTION | view | |
| ObjectModel.representativeKey | ServiceContract | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| UI.lineItem.criticality | SrvcContrErrStsCriticality | view | |
| Consumption.semanticObject | ServiceContract | view |
Fields (90)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | ServiceContract | I_ServiceDocumentEnhcd | ServiceDocument | Service Contract |
| ServiceDocumentCharUUID | I_ServiceDocumentEnhcd | ServiceDocumentCharUUID | ||
| SitnNumberOfInstances | _SitnInstceIndicator | SitnNumberOfInstances | ||
| ServiceContractHasError | I_ServiceDocumentEnhcd | ServiceDocumentHasError | Error Status | |
| ServiceContractStatus | I_ServiceDocumentEnhcd | ServiceDocumentStatus | Life Cycle Status | |
| SrvcContrCreditStatus | SrvcDocCreditStatus | Credit Status | ||
| SrvcDocGTSEmbargoStatus | SrvcDocGTSEmbargoStatus | Embargo Status | ||
| SrvcDocGTSScreeningStatus | SrvcDocGTSScreeningStatus | Screening Status | ||
| SrvcDocGTSLglControlStatus | SrvcDocGTSLglControlStatus | Legal Control Status | ||
| SoldToParty | I_ServiceDocumentEnhcd | SoldToParty | Sold-To Party | |
| ShipToParty | I_ServiceDocumentEnhcd | ShipToParty | Ship-To Party | |
| BillToParty | I_ServiceDocumentEnhcd | BillToParty | Bill-To Party | |
| PayerParty | I_ServiceDocumentEnhcd | PayerParty | Payer | |
| SoldToPartyName | _SoldToParty | BusinessPartnerName | Sold-To Party | |
| FirstName | _SoldToParty | FirstName | First Name | |
| LastName | _SoldToParty | LastName | Last Name | |
| GroupBusinessPartnerName1 | _SoldToParty | GroupBusinessPartnerName1 | Name 1 | |
| GroupBusinessPartnerName2 | _SoldToParty | GroupBusinessPartnerName2 | Name 2 | |
| OrganizationBPName1 | _SoldToParty | OrganizationBPName1 | Name 1 | |
| OrganizationBPName2 | _SoldToParty | OrganizationBPName2 | Name 2 | |
| ServiceContractDescription | I_ServiceDocumentEnhcd | ServiceDocumentDescription | Description | |
| clientNULLasServiceContractStartDate | Contract Start | |||
| clientNULLasServiceContractEndDate | Contract End | |||
| PostingDate | I_ServiceDocumentEnhcd | PostingDate | Posting Date | |
| clientNULLasSrvcContrEarliestStartDate | Earliest Start | |||
| clientNULLasSrvcContrLatestEndDate | Latest End | |||
| PurchaseOrderByCustomer | I_ServiceDocumentEnhcd | PurchaseOrderByCustomer | External Reference | |
| ServiceContractNetAmount | I_ServiceDocumentEnhcd | ServiceDocNetAmount | Net Value | |
| ServiceContractCanclnSts | I_ServiceDocumentEnhcd | ServiceContractCanclnSts | Cancellation Status | |
| TransactionCurrency | I_ServiceDocumentEnhcd | TransactionCurrency | Transaction Currency | |
| ServiceDocumentUUID | ServiceDocumentUUID | Object GUID | ||
| ServiceContractUUID | ||||
| ServiceContractGrossAmount | I_ServiceDocumentEnhcd | ServiceDocGrossAmount | Gross Value | |
| ServiceObjectType | I_ServiceDocumentEnhcd | ServiceObjectType | Object Type | |
| ServiceDocumentType | I_ServiceDocumentEnhcd | ServiceDocumentType | Transaction Type | |
| ServiceDocBillingStatus | I_ServiceDocumentEnhcd | ServiceDocBillingStatus | ||
| _SrvcDocBillingStatusVH | _SrvcDocBillingStatusVH | |||
| SalesOrganization | SalesOrganization | Sales Organization | ||
| SalesOffice | SalesOffice | Sales Office | ||
| SalesGroup | SalesGroup | Sales Group | ||
| DistributionChannel | DistributionChannel | Distribution Channel | ||
| Division | Division | Division | ||
| SalesOrganizationOrgUnitID | SalesOrganizationOrgUnitID | |||
| SalesOfficeOrgUnitID | SalesOfficeOrgUnitID | |||
| SalesGroupOrgUnitID | SalesGroupOrgUnitID | |||
| ServiceOrganization | ServiceOrganization | |||
| ResponsibleEmployee | ResponsibleEmployee | Responsible Employee (Deprecated) | ||
| RespEmployeeBusinessPartnerId | ResponsibleEmployee | Employee Responsible | ||
| ResponsibleEmployeeName | _ResponsibleEmployeeQuickView | BusinessPartnerName | Extracted Customer Name | |
| RefBusinessSolutionOrder | RefBusinessSolutionOrder | Solution Order | ||
| BusSolnOrdDescription | _SolutionOrderVH | BusSolnOrdDescription | ||
| SystemStatus | _SrvcDocSystemStatus | StatusCode | Statuscode | |
| _SoldToParty | _SoldToParty | |||
| _ShipToParty | _ShipToParty | |||
| _BillToParty | _BillToParty | |||
| _PayerParty | _PayerParty | |||
| _ServiceContractTypeVH | _ServiceContractTypeVH | |||
| _SrvcDocCreditStatus | _SrvcDocCreditStatus | |||
| _SrvcDocGTSEmbargoStatus | _SrvcDocGTSEmbargoStatus | |||
| _SrvcDocGTSScreeningStatus | _SrvcDocGTSScreeningStatus | |||
| _SrvcDocGTSLglControlStatus | _SrvcDocGTSLglControlStatus | |||
| _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 | |||
| _RespEmployee | _RespEmployee | |||
| _ResponsibleEmployeeQuickView | _ResponsibleEmployeeQuickView | |||
| _ServiceDocumentStatus | _ServiceDocumentStatus | |||
| _SrvcDocLifecycleStatus | _SrvcDocLifecycleStatus | |||
| _ServiceDocumentStatusText | _ServiceDocumentStatusText | |||
| _ServiceDocHasError | _ServiceDocHasError | |||
| _ServiceContractCanclnSts | _ServiceContractCanclnSts | |||
| _ServiceContractItem | _ServiceContractItem | |||
| _ServiceDocumentTransHistory | _ServiceDocumentTransHistory | |||
| _ServiceDocumentErrorLog | _ServiceDocumentErrorLog | |||
| _SrvcDocBPSoldToParty | _SrvcDocBPSoldToParty | |||
| _ServiceContractVH | _ServiceContractVH | |||
| _SolutionOrderVH | _SolutionOrderVH | |||
| _SitnInstceIndicator | _SitnInstceIndicator | |||
| _CustMgmtLifecycleUserStsText | _CustMgmtLifecycleUserStsText | |||
| _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 C_SrvcContrListRptAndObjPg.
-- 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: CSRVCCONTRLIST
CREATE VIEW C_SrvcContrListRptAndObjPg AS
SELECT
ServiceContract.ServiceDocument AS ServiceContract,
ServiceContract.ServiceDocumentCharUUID AS ServiceDocumentCharUUID,
_SitnInstceIndicator.SitnNumberOfInstances AS SitnNumberOfInstances,
ServiceContract.ServiceDocumentHasError AS ServiceContractHasError,
ServiceContract.ServiceDocumentStatus AS ServiceContractStatus,
SrvcDocCreditStatus AS SrvcContrCreditStatus,
SrvcDocGTSEmbargoStatus,
SrvcDocGTSScreeningStatus,
SrvcDocGTSLglControlStatus,
ServiceContract.SoldToParty AS SoldToParty,
ServiceContract.ShipToParty AS ShipToParty,
ServiceContract.BillToParty AS BillToParty,
ServiceContract.PayerParty AS PayerParty,
_SoldToParty.BusinessPartnerName AS SoldToPartyName,
_SoldToParty.FirstName AS FirstName,
_SoldToParty.LastName AS LastName,
_SoldToParty.GroupBusinessPartnerName1 AS GroupBusinessPartnerName1,
_SoldToParty.GroupBusinessPartnerName2 AS GroupBusinessPartnerName2,
_SoldToParty.OrganizationBPName1 AS OrganizationBPName1,
_SoldToParty.OrganizationBPName2 AS OrganizationBPName2,
ServiceContract.ServiceDocumentDescription AS ServiceContractDescription,
tstmp_to_dats( ServiceContractStartDateTime, abap_system_timezone( $session.client,'NULL' ), $session.client, 'NULL' ) as ServiceContractStartDate AS clientNULLasServiceContractStartDate,
tstmp_to_dats( ServiceContractEndDateTime, abap_system_timezone( $session.client,'NULL' ), $session.client, 'NULL' ) as ServiceContractEndDate AS clientNULLasServiceContractEndDate,
ServiceContract.PostingDate AS PostingDate,
tstmp_to_dats( SrvcContrEarliestStartDateTime, abap_system_timezone( $session.client,'NULL' ), $session.client, 'NULL' ) as SrvcContrEarliestStartDate AS clientNULLasSrvcContrEarliestStartDate,
tstmp_to_dats( SrvcContrLatestEndDateTime, abap_system_timezone( $session.client,'NULL' ), $session.client, 'NULL' ) as SrvcContrLatestEndDate AS clientNULLasSrvcContrLatestEndDate,
ServiceContract.PurchaseOrderByCustomer AS PurchaseOrderByCustomer,
ServiceContract.ServiceDocNetAmount AS ServiceContractNetAmount,
ServiceContract.ServiceContractCanclnSts AS ServiceContractCanclnSts,
ServiceContract.TransactionCurrency AS TransactionCurrency,
ServiceDocumentUUID,
cast(bintohex( ServiceDocumentUUID ) as abap.sstring(32)) AS ServiceContractUUID,
ServiceContract.ServiceDocGrossAmount AS ServiceContractGrossAmount,
ServiceContract.ServiceObjectType AS ServiceObjectType,
ServiceContract.ServiceDocumentType AS ServiceDocumentType,
ServiceContract.ServiceDocBillingStatus AS ServiceDocBillingStatus,
SalesOrganization,
SalesOffice,
SalesGroup,
DistributionChannel,
Division,
SalesOrganizationOrgUnitID,
SalesOfficeOrgUnitID,
SalesGroupOrgUnitID,
ServiceOrganization,
ResponsibleEmployee,
ResponsibleEmployee AS RespEmployeeBusinessPartnerId,
_ResponsibleEmployeeQuickView.BusinessPartnerName AS ResponsibleEmployeeName,
RefBusinessSolutionOrder,
_SolutionOrderVH.BusSolnOrdDescription AS BusSolnOrdDescription,
_SrvcDocSystemStatus.StatusCode AS SystemStatus
FROM I_ServiceDocumentEnhcd AS ServiceContract
LEFT OUTER JOIN I_SitnInstceIndicator AS _SitnInstceIndicator ON _SitnInstceIndicator.SitnInstceAnchorObjectKey = ServiceDocumentCharUUID AND _SitnInstceIndicator.SitnDefAnchorObject = 'ServiceContractUUID' -- association [0..1]
LEFT OUTER JOIN C_ServiceDocumentSoldToPartyVH AS _SoldToParty ON SoldToParty = _SoldToParty.BusinessPartner -- association [0..1]
LEFT OUTER JOIN C_ServiceDocumentShipToPartyVH AS _ShipToParty ON ShipToParty = _ShipToParty.BusinessPartner -- association [0..1]
LEFT OUTER JOIN C_ServiceDocumentShipToPartyVH AS _BillToParty ON BillToParty = _BillToParty.BusinessPartner -- association [0..1]
LEFT OUTER JOIN C_ServiceDocumentPayerVH AS _PayerParty ON PayerParty = _PayerParty.BusinessPartner -- association [0..1]
LEFT OUTER JOIN I_ServiceContractTypeVH AS _ServiceContractTypeVH ON ServiceDocumentType = _ServiceContractTypeVH.ServiceContractType -- association [0..1]
LEFT OUTER JOIN I_SrvcDocBillingStatusVH AS _SrvcDocBillingStatusVH ON ServiceDocBillingStatus = _SrvcDocBillingStatusVH.ServiceDocBillingStatus -- association [0..1]
LEFT OUTER JOIN C_SrvcContrItmListRptAndObjPg AS _ServiceContractItem ON ServiceObjectType = _ServiceContractItem.ServiceObjectType AND ServiceContract = _ServiceContractItem.ServiceContract -- association [1..*]
LEFT OUTER JOIN C_SrvcDocObjPgTransHistory AS _ServiceDocumentTransHistory ON ServiceObjectType = _ServiceDocumentTransHistory.ServiceObjectType AND ServiceContract = _ServiceDocumentTransHistory.ServiceDocument -- association [1..*]
LEFT OUTER JOIN C_ServiceDocObjPgErrorLog AS _ServiceDocumentErrorLog ON ServiceObjectType = _ServiceDocumentErrorLog.ServiceObjectType AND ServiceContract = _ServiceDocumentErrorLog.ServiceDocument -- association [1..*]
LEFT OUTER JOIN E_ServiceDocument AS _ServiceDocumentExt ON ServiceObjectType = _ServiceDocumentExt.ServiceCategory AND ServiceContract = _ServiceDocumentExt.ServiceOrder -- association [0..1]
LEFT OUTER JOIN I_ServiceDocumentStatusText AS _ServiceDocumentStatusText ON ServiceContractStatus = _ServiceDocumentStatusText.ServiceDocumentStatus AND _ServiceDocumentStatusText.Language = $session.system_language -- association [1]
LEFT OUTER JOIN I_ServiceContractStdVH AS _ServiceContractVH ON ServiceContract = _ServiceContractVH.ServiceDocument AND ServiceObjectType = _ServiceContractVH.ServiceObjectType AND ServiceDocumentType = _ServiceContractVH.ServiceDocumentType -- association [0..1]
LEFT OUTER JOIN I_BusinessSolutionOrderStdVH AS _SolutionOrderVH ON RefBusinessSolutionOrder = _SolutionOrderVH.BusinessSolutionOrder -- association [0..1]
LEFT OUTER JOIN I_CustMgmtLifecycleUserStsText AS _CustMgmtLifecycleUserStsText ON ServiceContractStatus = _CustMgmtLifecycleUserStsText.CustMgmtLifecycleUserStatus AND _CustMgmtLifecycleUserStsText.Language = $session.system_language -- 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 C_SrvcMgmtRespEmplQuickVw AS _ResponsibleEmployeeQuickView ON RespEmployeeBusinessPartnerId = _ResponsibleEmployeeQuickView.BusinessPartner -- association [0..1]
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA