C_UpcgSrvcContrItemQuery

DDL: C_UPCGSRVCCONTRITEMQUERY Type: view CONSUMPTION

Upcoming Service Contract Item - Query

C_UpcgSrvcContrItemQuery is a Consumption CDS View that provides data about "Upcoming Service Contract Item - Query" in SAP S/4HANA. It reads from 1 data source (I_UpcgSrvcContrItemCube) and exposes 36 fields with key fields ServiceContract, ServiceContractItem.

SAP Help Documentation

CategoryService Monitoring and Analytics
Data CategoryConsumption
StatusItem Life Cycle Status
Corresponding DataSource2CCUPCGCITEMQRY
Purpose
This CDS view belongs to Service Contracts Dashboard app and can be used both as an embedded and standalone edition. This CDS view is used to define the service contract KPIs such as net value/number of service contract items, expiring service contract items (in next 6 months) and expired/canceled service contract items (in last 6 months). The Upcoming Service Contract Item - Cube ( I_UpcgSrvcContrItemCube ) view is used to consume the KPIs defined in this query view. This CDS view provides the data to answer the following business questions: What is the total net value of the service contracts for a particular time period (month, quarter and year) in the system? How many service contract items are active for a particular time period in the system? How many service contract items will be expiring in next 6 months? What is the total value of these expiring contract items? Who are my top performing customers in terms of service contract value and their top selling products? To help you decide which CDS view to use for your purposes, SAP has introduced the annotation ObjectModel.supportedCapabilities that indicates the most appropriate use cases for each CDS view. To find out what use cases are best supported by this CDS view, access the entry of the CDS view in the View Browser app and find the values for this annotation under the Annotation tab. For more information, see Supported Capabilities for CDS Views .

Prerequisites
Authorizations Users who want to use this CDS view need to access it via another CDS view (privileged mode). The query is built on top of the cube view Upcoming Service Contract Item - Cube ( I_UpcgSrvcContrItemCube ).

Structure
Parameters The parameters of the CDS view are as follows: P_DisplayCurrency used to specify the target currency for currency conversion. Fields Used for Filtering Important fields in this view include the following: Field Name Description Measure or Attribute ServiceContractItemNetAmount Net Value of Service Contract Items Measure NmbrOfServiceContractItems No. of Service Contract Items Measure ExprgSrvcContrItemNetAmount Net Value of Expiring Service Contract Items (in next 6 months) Measure CancldSrvcContrItemNetAmount Net Value of Canceled Service Contract Items Measure ServiceContract Service Contract Attribute ServiceContractItemStatus Item Life Cycle Status Attribute SoldToParty Sold-To Party Attribute SrvcContrStartYear Calendar Start Year Attribute

View on SAP Help Portal →

Data Sources (1)

SourceAliasJoin Type
I_UpcgSrvcContrItemCube I_UpcgSrvcContrItemCube from

Parameters (1)

NameTypeDefault
P_DisplayCurrency vdm_v_display_currency

Annotations (16)

NameValueLevelField
EndUserText.label Upcoming Service Contract Item - Query view
ClientHandling.algorithm #SESSION_VARIABLE view
VDM.viewType #CONSUMPTION view
VDM.lifecycle.contract.type #PUBLIC_LOCAL_API view
AccessControl.authorizationCheck #PRIVILEGED_ONLY view
AbapCatalog.sqlViewName CUPCGCITEMQRY view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #XXL view
ObjectModel.modelingPattern #ANALYTICAL_QUERY view
Metadata.ignorePropagatedAnnotations true view
Analytics.query true view
OData.publish true view
Analytics.settings.olapPushdown #OFF view

Fields (36)

KeyFieldSource TableSource FieldDescription
KEY ServiceContract ServiceContract Service Contract
KEY ServiceContractItem ServiceContractItem Service Contract Item
ServiceDocument ServiceDocument Service Transaction
ServiceContractType ServiceContractType
ServiceContractDescription ServiceContractDescription Service Contract Description
ServiceContractItemProduct ServiceContractItemProduct
ServiceContractItemStartDate ServiceContractItemStartDate Service Contract Item Start Date
ServiceContractItemEndDate ServiceContractItemEndDate Service Contract Item End Date
SrvcContrStartMonth SrvcContrStartMonth Calendar Month (Start)
SrvcContrStartQuarter SrvcContrStartQuarter Calendar Quarter (Start)
SrvcContrStartYear SrvcContrStartYear Calendar Year (Start)
SrvcContrEndMonth SrvcContrEndMonth Calendar Month (End)
SrvcContrEndQuarter SrvcContrEndQuarter Calendar Quarter (End)
SrvcContrEndYear SrvcContrEndYear Calendar Year (End)
ServiceDocItemCreationDate ServiceDocItemCreationDate
PostingDate PostingDate Posting Date
ServiceContractItemStatus ServiceContractItemStatus Item Life Cycle Status
ServiceContractItemCanclnParty ServiceContractItemCanclnParty Cancellation Party
ServiceContractItmCanclnReason ServiceContractItmCanclnReason Cancellation Reason
ProfitCenter ProfitCenter Profit Center
ControllingArea ControllingArea Controlling Area
PurchaseOrderByCustomer PurchaseOrderByCustomer Purchase Order Number
SoldToParty SoldToParty Sold-to Party
RespEmployeeBusinessPartnerId RespEmployeeBusinessPartnerId
RefBusinessSolutionOrder RefBusinessSolutionOrder Solution Order
SoldToPartyCountry SoldToPartyCountry
SoldToPartyRegion SoldToPartyRegion
SalesOrganization SalesOrganization Sales Organization
DistributionChannel DistributionChannel RefDistCh-Cust/Mat.
Division Division Internal Division ID
SalesOffice SalesOffice Sales Office
SalesGroup SalesGroup Sales Group
DisplayCurrency
NmbrOfServiceContractItems NmbrOfServiceContractItems No. of Service Contract Items
NrOfExprgServiceContractItems NrOfExprgServiceContractItems No. of Expiring Service Contract Items in Next 6 Months
NrOfCancldServiceContractItems NrOfCancldServiceContractItems No. of Canceled Service Contract Items

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_UpcgSrvcContrItemQuery.
-- 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.
-- Parameters: P_DisplayCurrency : vdm_v_display_currency

CREATE VIEW C_UpcgSrvcContrItemQuery AS
SELECT
  ServiceContract,
  ServiceContractItem,
  ServiceDocument,
  ServiceContractType,
  ServiceContractDescription,
  ServiceContractItemProduct,
  ServiceContractItemStartDate,
  ServiceContractItemEndDate,
  SrvcContrStartMonth,
  SrvcContrStartQuarter,
  SrvcContrStartYear,
  SrvcContrEndMonth,
  SrvcContrEndQuarter,
  SrvcContrEndYear,
  ServiceDocItemCreationDate,
  PostingDate,
  ServiceContractItemStatus,
  ServiceContractItemCanclnParty,
  ServiceContractItmCanclnReason,
  ProfitCenter,
  ControllingArea,
  PurchaseOrderByCustomer,
  SoldToParty,
  RespEmployeeBusinessPartnerId,
  RefBusinessSolutionOrder,
  SoldToPartyCountry,
  SoldToPartyRegion,
  SalesOrganization,
  DistributionChannel,
  Division,
  SalesOffice,
  SalesGroup,
  $parameters.P_DisplayCurrency AS DisplayCurrency,
  NmbrOfServiceContractItems,
  NrOfExprgServiceContractItems,
  NrOfCancldServiceContractItems
FROM I_UpcgSrvcContrItemCube
;