C_UpcgSrvcContrItemQuery

DDL: C_UPCGSRVCCONTRITEMQUERY Type: view CONSUMPTION Package: CRMS4_ANALYTICS_SERVICE_CONTR

Upcoming Service Contract Item - Query

C_UpcgSrvcContrItemQuery (Consumption)

Package: Explore, extend and adapt the SAP S/4HANA Cloud Public Edition with built-in and side-by-side extension capabilities.

Sales

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. Part of development package CRMS4_ANALYTICS_SERVICE_CONTR.

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 service 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 The following business catalog needs to be assigned to a user to be able to use this CDS view: Service - Service Management Analytics ( SAP_S4CRM_BC_SRV_ANA_PC ) Users who want to use this CDS view must have a role that includes authorization based on the business catalog listed above.

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 →

SAP API Hub

CategoryConsumption
StateC1
Line of BusinessSales
Application ComponentCRM-S4-ANA-CDS-2CL
CapabilitiesAnalytical Query
Extensible (Key User)No
Extensible (Developer)No
Release State (Key User)Released
Release State (Developer)Not Released
PackageSales for SAP S/4HANA Cloud Public Edition

Documentation

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 Shortened Item Number in Document
ServiceDocument ServiceDocument Service Transaction
ServiceContractType ServiceContractType Business Transaction Type
ServiceContractDescription ServiceContractDescription Service Contract Description
ServiceContractItemProduct ServiceContractItemProduct Product
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 Created On
PostingDate PostingDate Posting Date for a Business Transaction
ServiceContractItemStatus ServiceContractItemStatus Item Life Cycle Status
ServiceContractItemCanclnParty ServiceContractItemCanclnParty Cancellation Party
ServiceContractItmCanclnReason ServiceContractItmCanclnReason CRM Service : Reason for Cancellation
ProfitCenter ProfitCenter Profit Center
ControllingArea ControllingArea Controlling Area
PurchaseOrderByCustomer PurchaseOrderByCustomer Sold-To Party's External Reference Number
SoldToParty SoldToParty Sold-to Party
RespEmployeeBusinessPartnerId RespEmployeeBusinessPartnerId Employee Responsible
RefBusinessSolutionOrder RefBusinessSolutionOrder Reference Solution Order ID
SoldToPartyCountry SoldToPartyCountry Country/Region
SoldToPartyRegion SoldToPartyRegion Region (State, Province, County)
SalesOrganization SalesOrganization Sales Organization
DistributionChannel DistributionChannel Distribution Channel
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
;