C_Customer360ServiceContract
Service contracts for customer 360
C_Customer360ServiceContract is a Consumption CDS View that provides data about "Service contracts for customer 360" in SAP S/4HANA. It reads from 2 data sources (I_Customer360BusDocSetting, I_ServiceDocumentEnhcd) and exposes 55 fields with key field ServiceContract. It has 7 associations to related views.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| I_Customer360BusDocSetting | Customer360BusDocSetting | inner |
| I_ServiceDocumentEnhcd | ServiceContract | from |
Associations (7)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_CustMgmtLifecycleUserStsText | _CustMgmtLifecycleUserStsText | $projection.ServiceContractStatus = _CustMgmtLifecycleUserStsText.CustMgmtLifecycleUserStatus and _CustMgmtLifecycleUserStsText.Language = $session.system_language |
| [1] | I_ServiceDocumentStatusText | _ServiceDocumentStatusText | $projection.ServiceContractStatus = _ServiceDocumentStatusText.ServiceDocumentStatus and _ServiceDocumentStatusText.Language = $session.system_language |
| [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] | C_SrvcMgmtRespEmplQuickVw | _ResponsibleEmployeeQuickView | $projection.RespEmployeeBusinessPartnerId = _ResponsibleEmployeeQuickView.BusinessPartner |
| [0..1] | I_BusinessSolutionOrderStdVH | _SolutionOrderVH | $projection.RefBusinessSolutionOrder = _SolutionOrderVH.BusinessSolutionOrder |
Annotations (9)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #MANDATORY | view | |
| EndUserText.label | Service contracts for customer 360 | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| Search.searchable | true | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #XXL | view | |
| VDM.viewType | #CONSUMPTION | view | |
| Metadata.allowExtensions | true | view |
Fields (55)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | ServiceContract | I_ServiceDocumentEnhcd | ServiceDocument | Transaction ID |
| SoldToParty | I_ServiceDocumentEnhcd | SoldToParty | Sold-to Party | |
| ServiceContractHasError | I_ServiceDocumentEnhcd | ServiceDocumentHasError | ||
| ServiceDocumentHasErrorName | ||||
| ServiceContractStatus | I_ServiceDocumentEnhcd | ServiceDocumentStatus | ||
| clientNULLasServiceContractStartDate | Contract Start | |||
| clientNULLasServiceContractEndDate | Contract End | |||
| PurchaseOrderByCustomer | I_ServiceDocumentEnhcd | PurchaseOrderByCustomer | External Reference | |
| ServiceContractNetAmount | I_ServiceDocumentEnhcd | ServiceDocNetAmount | ||
| TransactionCurrency | I_ServiceDocumentEnhcd | TransactionCurrency | Transaction Currency | |
| ServiceContractCanclnSts | I_ServiceDocumentEnhcd | ServiceContractCanclnSts | Cancellation Status | |
| ServiceContractCanclnStsName | ||||
| ShipToParty | I_ServiceDocumentEnhcd | ShipToParty | Ship-To Party (obsolete) | |
| BillToParty | I_ServiceDocumentEnhcd | BillToParty | Inv. Recipient | |
| PayerParty | I_ServiceDocumentEnhcd | PayerParty | Payer | |
| ServiceDocBillingStatus | I_ServiceDocumentEnhcd | ServiceDocBillingStatus | ||
| ServiceDocBillingStatusName | ||||
| SrvcContrCreditStatus | I_ServiceDocumentEnhcd | SrvcDocCreditStatus | Credit Status | |
| SrvcDocCreditStatusText | ||||
| ServiceContractDescription | I_ServiceDocumentEnhcd | ServiceDocumentDescription | Description | |
| SalesOrganization | I_ServiceDocumentEnhcd | SalesOrganization | Sales Organization | |
| SalesOrganizationName | ||||
| SalesOffice | I_ServiceDocumentEnhcd | SalesOffice | Sales Office | |
| SalesOfficeName | ||||
| SalesGroup | I_ServiceDocumentEnhcd | SalesGroup | Sales Group | |
| SalesGroupName | ||||
| DistributionChannel | I_ServiceDocumentEnhcd | DistributionChannel | Distribution Channel | |
| DistributionChannelName | ||||
| Division | I_ServiceDocumentEnhcd | Division | Division | |
| DivisionName | ||||
| clientNULLasSrvcContrEarliestStartDate | Earliest Start | |||
| clientNULLasSrvcContrLatestEndDate | Latest End | |||
| RespEmployeeBusinessPartnerId | I_ServiceDocumentEnhcd | ResponsibleEmployee | Employee Responsible | |
| ServiceContractGrossAmount | I_ServiceDocumentEnhcd | ServiceDocGrossAmount | ||
| PostingDate | I_ServiceDocumentEnhcd | PostingDate | Posting Date for GR | |
| ResponsibleEmployeeName | _ResponsibleEmployeeQuickView | BusinessPartnerName | Extracted Customer Name | |
| RefBusinessSolutionOrder | I_ServiceDocumentEnhcd | RefBusinessSolutionOrder | Solution Order | |
| BusSolnOrdDescription | _SolutionOrderVH | BusSolnOrdDescription | ||
| ServiceDocumentType | I_ServiceDocumentEnhcd | ServiceDocumentType | Transaction Type | |
| ServiceDocumentTypeName | ||||
| ServiceDocumentTemplateType | I_ServiceDocumentEnhcd | ServiceDocumentTemplateType | ||
| BillToPartyName | _BillToParty | BusinessPartnerName | Extracted Customer Name | |
| ShipToPartyName | _ShipToParty | BusinessPartnerName | Extracted Customer Name | |
| PayerPartyName | _PayerParty | BusinessPartnerName | Extracted Customer Name | |
| _ServiceDocHasError | I_ServiceDocumentEnhcd | _ServiceDocHasError | ||
| _SalesOrganization | I_ServiceDocumentEnhcd | _SalesOrganization | ||
| _ResponsibleEmployeeQuickView | _ResponsibleEmployeeQuickView | |||
| _PayerParty | _PayerParty | |||
| _BillToParty | _BillToParty | |||
| _ShipToParty | _ShipToParty | |||
| SalesOrganizationOrgUnitID | I_ServiceDocumentEnhcd | SalesOrganizationOrgUnitID | ||
| SalesOfficeOrgUnitID | I_ServiceDocumentEnhcd | SalesOfficeOrgUnitID | ||
| SalesGroupOrgUnitID | I_ServiceDocumentEnhcd | SalesGroupOrgUnitID | ||
| ServiceOrganization | I_ServiceDocumentEnhcd | ServiceOrganization | ||
| ServiceObjectType | I_ServiceDocumentEnhcd | ServiceObjectType | Object Type |
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_Customer360ServiceContract.
-- 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 C_Customer360ServiceContract AS
SELECT
ServiceContract.ServiceDocument AS ServiceContract,
ServiceContract.SoldToParty AS SoldToParty,
ServiceContract.ServiceDocumentHasError AS ServiceContractHasError,
ServiceContract._ServiceDocHasError._ServiceDocHasErrorText[1:Language = $session.system_language].ServiceDocumentHasErrorName AS ServiceDocumentHasErrorName,
ServiceContract.ServiceDocumentStatus AS ServiceContractStatus,
tstmp_to_dats( ServiceContract.ServiceContractStartDateTime, abap_system_timezone( $session.client,'NULL' ), $session.client, 'NULL' ) as ServiceContractStartDate AS clientNULLasServiceContractStartDate,
tstmp_to_dats( ServiceContract.ServiceContractEndDateTime, abap_system_timezone( $session.client,'NULL' ), $session.client, 'NULL' ) as ServiceContractEndDate AS clientNULLasServiceContractEndDate,
ServiceContract.PurchaseOrderByCustomer AS PurchaseOrderByCustomer,
ServiceContract.ServiceDocNetAmount AS ServiceContractNetAmount,
ServiceContract.TransactionCurrency AS TransactionCurrency,
ServiceContract.ServiceContractCanclnSts AS ServiceContractCanclnSts,
ServiceContract._ServiceContractCanclnSts._ServiceContractCanclnStsTxt[1:Language = $session.system_language].ServiceContractCanclnStsName AS ServiceContractCanclnStsName,
ServiceContract.ShipToParty AS ShipToParty,
ServiceContract.BillToParty AS BillToParty,
ServiceContract.PayerParty AS PayerParty,
ServiceContract.ServiceDocBillingStatus AS ServiceDocBillingStatus,
ServiceContract._ServiceDocBillingStatus._ServiceDocBillingStatusText[1:Language = $session.system_language].ServiceDocBillingStatusName AS ServiceDocBillingStatusName,
ServiceContract.SrvcDocCreditStatus AS SrvcContrCreditStatus,
ServiceContract._SrvcDocCreditStatus._SrvcDocCreditStatusText[1:Language = $session.system_language].SrvcDocCreditStatusText AS SrvcDocCreditStatusText,
ServiceContract.ServiceDocumentDescription AS ServiceContractDescription,
ServiceContract.SalesOrganization AS SalesOrganization,
ServiceContract._SalesOrganization._Text[1:Language = $session.system_language].SalesOrganizationName AS SalesOrganizationName,
ServiceContract.SalesOffice AS SalesOffice,
ServiceContract._SalesOffice._Text[1:Language = $session.system_language].SalesOfficeName AS SalesOfficeName,
ServiceContract.SalesGroup AS SalesGroup,
ServiceContract._SalesGroup._Text[1:Language = $session.system_language].SalesGroupName AS SalesGroupName,
ServiceContract.DistributionChannel AS DistributionChannel,
ServiceContract._DistributionChannel._Text[1:Language = $session.system_language].DistributionChannelName AS DistributionChannelName,
ServiceContract.Division AS Division,
ServiceContract._Division._Text[1:Language = $session.system_language].DivisionName AS DivisionName,
tstmp_to_dats( ServiceContract.SrvcContrEarliestStartDateTime, abap_system_timezone( $session.client,'NULL' ), $session.client, 'NULL' ) as SrvcContrEarliestStartDate AS clientNULLasSrvcContrEarliestStartDate,
tstmp_to_dats( ServiceContract.SrvcContrLatestEndDateTime, abap_system_timezone( $session.client,'NULL' ), $session.client, 'NULL' ) as SrvcContrLatestEndDate AS clientNULLasSrvcContrLatestEndDate,
ServiceContract.ResponsibleEmployee AS RespEmployeeBusinessPartnerId,
ServiceContract.ServiceDocGrossAmount AS ServiceContractGrossAmount,
ServiceContract.PostingDate AS PostingDate,
_ResponsibleEmployeeQuickView.BusinessPartnerName AS ResponsibleEmployeeName,
ServiceContract.RefBusinessSolutionOrder AS RefBusinessSolutionOrder,
_SolutionOrderVH.BusSolnOrdDescription AS BusSolnOrdDescription,
ServiceContract.ServiceDocumentType AS ServiceDocumentType,
ServiceContract._ServiceDocumentType._ServiceDocumentTypeText[1:Language = $session.system_language].ServiceDocumentTypeName AS ServiceDocumentTypeName,
ServiceContract.ServiceDocumentTemplateType AS ServiceDocumentTemplateType,
_BillToParty.BusinessPartnerName AS BillToPartyName,
_ShipToParty.BusinessPartnerName AS ShipToPartyName,
_PayerParty.BusinessPartnerName AS PayerPartyName,
ServiceContract._ServiceDocHasError AS _ServiceDocHasError,
ServiceContract._SalesOrganization AS _SalesOrganization,
ServiceContract.SalesOrganizationOrgUnitID AS SalesOrganizationOrgUnitID,
ServiceContract.SalesOfficeOrgUnitID AS SalesOfficeOrgUnitID,
ServiceContract.SalesGroupOrgUnitID AS SalesGroupOrgUnitID,
ServiceContract.ServiceOrganization AS ServiceOrganization,
ServiceContract.ServiceObjectType AS ServiceObjectType
FROM I_ServiceDocumentEnhcd AS ServiceContract
INNER JOIN I_Customer360BusDocSetting AS Customer360BusDocSetting ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_CustMgmtLifecycleUserStsText AS _CustMgmtLifecycleUserStsText ON ServiceContractStatus = _CustMgmtLifecycleUserStsText.CustMgmtLifecycleUserStatus AND _CustMgmtLifecycleUserStsText.Language = $session.system_language -- 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 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 C_SrvcMgmtRespEmplQuickVw AS _ResponsibleEmployeeQuickView ON RespEmployeeBusinessPartnerId = _ResponsibleEmployeeQuickView.BusinessPartner -- association [0..1]
LEFT OUTER JOIN I_BusinessSolutionOrderStdVH AS _SolutionOrderVH ON RefBusinessSolutionOrder = _SolutionOrderVH.BusinessSolutionOrder -- 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