C_SrvcContrItmListRptAndObjPg
Service Contract Item
C_SrvcContrItmListRptAndObjPg is a Consumption CDS View that provides data about "Service Contract Item" in SAP S/4HANA. It reads from 1 data source (I_ServiceDocumentItemEnhcd) and exposes 62 fields with key fields ServiceObjectType, ServiceContract, ServiceDocumentType, ServiceContractItem. It has 5 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_ServiceDocumentItemEnhcd | ServiceContractItem | from |
Associations (5)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | E_ServiceDocumentItem | _ServiceDocItemExt | $projection.ServiceObjectType = _ServiceDocItemExt.ServiceCategory and $projection.ServiceContract = _ServiceDocItemExt.ServiceOrderItem and $projection.ServiceContractItem = _ServiceDocItemExt.ServiceLineExternalID |
| [1..*] | C_SrvcContrItmObjPgSettlmtPerd | _SrvcContrItmSettlmtPerds | $projection.ServiceObjectType = _SrvcContrItmSettlmtPerds.ServiceObjectType and $projection.ServiceContract = _SrvcContrItmSettlmtPerds.ServiceDocument and $projection.ServiceContractItem = _SrvcContrItmSettlmtPerds.ServiceDocumentItem |
| [1..*] | C_SrvcContrItmObjPgObjList | _SrvcContrItemObjects | $projection.ServiceObjectType = _SrvcContrItemObjects.ServiceContractType and $projection.ServiceContract = _SrvcContrItemObjects.ServiceContract and $projection.ServiceContractItem = _SrvcContrItemObjects.ServiceContractItem |
| [1..*] | C_SrvcContrItmObjPgProdList | _SrvcContrItemProducts | $projection.ServiceObjectType = _SrvcContrItemProducts.ServiceContractType and $projection.ServiceContract = _SrvcContrItemProducts.ServiceContract and $projection.ServiceContractItem = _SrvcContrItemProducts.ServiceContractItem |
| [1..*] | C_SrvcContrItmObjPgPrcDets | _SrvcContrItemPriceDts | $projection.ServiceObjectType = _SrvcContrItemPriceDts.ServiceContractType and $projection.ServiceContract = _SrvcContrItemPriceDts.ServiceContract and $projection.ServiceContractItem = _SrvcContrItemPriceDts.ServiceContractItem |
Annotations (17)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | CSRVCONTRACTITEM | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| EndUserText.label | Service Contract Item | view | |
| Search.searchable | true | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| VDM.viewType | #CONSUMPTION | view | |
| UI.headerInfo.typeName | Service Contract Item | view | |
| UI.headerInfo.typeNamePlural | Service Contract Items | view | |
| UI.headerInfo.title.type | #STANDARD | view | |
| UI.headerInfo.title.value | ServiceContractItem | view | |
| UI.headerInfo.description.type | #STANDARD | view | |
| UI.headerInfo.description.value | ServiceContractItemDescription | view | |
| ObjectModel.representativeKey | ServiceContractItem | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #XL | view |
Fields (62)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | ServiceObjectType | I_ServiceDocumentItemEnhcd | ServiceObjectType | Object Type |
| KEY | ServiceContract | I_ServiceDocumentItemEnhcd | ServiceDocument | Transaction ID |
| KEY | ServiceDocumentType | I_ServiceDocumentItemEnhcd | ServiceDocumentType | Transaction Type |
| KEY | ServiceContractItem | I_ServiceDocumentItemEnhcd | ServiceDocumentItem | Item Number |
| ServiceContractItemStatus | I_ServiceDocumentItemEnhcd | ServiceDocumentItemStatus | Life Cycle Status | |
| OriginallyRequestedProduct | I_ServiceDocumentItemEnhcd | OriginallyRequestedProduct | Product ID | |
| ServiceContractItemDescription | ServiceDocumentItemDescription | Product | ||
| clientNULLasServiceContractItemStartDate | Contract Start | |||
| clientNULLasServiceContractItemEndDate | Contract End | |||
| ServiceContractItemNetAmount | I_ServiceDocumentItemEnhcd | ServiceDocumentItemNetAmount | Net Value | |
| ServiceContractItemGrossAmount | I_ServiceDocumentItemEnhcd | ServiceDocItemGrossAmount | Gross Value | |
| TransactionCurrency | I_ServiceDocumentItemEnhcd | TransactionCurrency | Transaction Currency | |
| ServiceContractItemQuantity | I_ServiceDocumentItemEnhcd | ServiceDocumentItemQuantity | Quantity | |
| ServiceContractItemHasError | I_ServiceDocumentItemEnhcd | ServiceDocumentItemHasError | Error Status | |
| ServiceContrItemQuantityUnit | I_ServiceDocumentItemEnhcd | ServiceDocItemQuantityUnit | Unit | |
| ServiceContractItemCategory | I_ServiceDocumentItemEnhcd | ServiceDocItemCategory | Item Category | |
| ServiceContrItemBillingStatus | I_ServiceDocumentItemEnhcd | ServiceDocItemBillingStatus | ||
| ParentServiceDocumentItemUUID | ParentServiceDocumentItemUUID | |||
| SettlementPeriodRuleUUID | SettlementPeriodRuleUUID | |||
| BillingPlanBillingDateRuleUUID | BillingPlanBillingDateRuleUUID | |||
| BillingPlanBillingDateRuleName | Billing Date | |||
| SettlementPeriodRuleName | Billing Period | |||
| SrvcContrItemRnwlDuration | SrvcContrItemRnwlDuration | Auto Renewal Starts | ||
| SrvcContrItemRnwlDurationUnit | SrvcContrItemRnwlDurationUnit | |||
| SrvcContrItemExtensionDuration | SrvcContrItemExtensionDuration | New Period Extends for | ||
| SrvcContrItemExtnDurationUnit | SrvcContrItemExtnDurationUnit | |||
| ResponsibleEmployee | ResponsibleEmployee | Employee Resp. | ||
| SalesOrganization | SalesOrganization | Sales Organization | ||
| SalesOffice | SalesOffice | Sales Office | ||
| SalesGroup | SalesGroup | Sales Group | ||
| DistributionChannel | DistributionChannel | RefDistCh-Cust/Mat. | ||
| Division | Division | Internal Division ID | ||
| SalesOrganizationOrgUnitID | SalesOrganizationOrgUnitID | |||
| SalesOfficeOrgUnitID | SalesOfficeOrgUnitID | |||
| SalesGroupOrgUnitID | SalesGroupOrgUnitID | |||
| ServiceOrganization | ServiceOrganization | |||
| _ParentServiceDocItem | _ParentServiceDocItem | |||
| _SrvcContrItemObjects | _SrvcContrItemObjects | |||
| _SrvcContrItemProducts | _SrvcContrItemProducts | |||
| _ServiceDocItemCategory | _ServiceDocItemCategory | |||
| _ServiceDocItemStatus | _ServiceDocItemStatus | |||
| _SrvcDocItmLifecycleStatus | _SrvcDocItmLifecycleStatus | |||
| _ServiceDocItemHasError | _ServiceDocItemHasError | |||
| _ServiceDocItemBillingStatus | _ServiceDocItemBillingStatus | |||
| _SrvcContrItemPriceDts | _SrvcContrItemPriceDts | |||
| _SrvcContrItmSettlmtPerds | _SrvcContrItmSettlmtPerds | |||
| _SrvcContrItemRnwlDurationUnit | _SrvcContrItemRnwlDurationUnit | |||
| _SrvcContrItemExtnDurationUnit | _SrvcContrItemExtnDurationUnit | |||
| _RespEmployee | _RespEmployee | |||
| _SalesOrganization | _SalesOrganization | |||
| _SalesOffice | _SalesOffice | |||
| _SalesGroup | _SalesGroup | |||
| _Division | _Division | |||
| _DistributionChannel | _DistributionChannel | |||
| _SalesOrganizationOrgUnit | _SalesOrganizationOrgUnit | |||
| _SalesOfficeOrgUnit | _SalesOfficeOrgUnit | |||
| _SalesGroupOrgUnit | _SalesGroupOrgUnit | |||
| _ServiceOrganizationOrgUnit | _ServiceOrganizationOrgUnit | |||
| _SalesOrganizationOrgUnit_2 | _SalesOrganizationOrgUnit_2 | |||
| _SalesOfficeOrgUnit_2 | _SalesOfficeOrgUnit_2 | |||
| _SalesGroupOrgUnit_2 | _SalesGroupOrgUnit_2 | |||
| _ServiceOrganizationOrgUnit_2 | _ServiceOrganizationOrgUnit_2 |
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_SrvcContrItmListRptAndObjPg.
-- 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: CSRVCONTRACTITEM
CREATE VIEW C_SrvcContrItmListRptAndObjPg AS
SELECT
ServiceContractItem.ServiceObjectType AS ServiceObjectType,
ServiceContractItem.ServiceDocument AS ServiceContract,
ServiceContractItem.ServiceDocumentType AS ServiceDocumentType,
ServiceContractItem.ServiceDocumentItem AS ServiceContractItem,
ServiceContractItem.ServiceDocumentItemStatus AS ServiceContractItemStatus,
ServiceContractItem.OriginallyRequestedProduct AS OriginallyRequestedProduct,
ServiceDocumentItemDescription AS ServiceContractItemDescription,
tstmp_to_dats( ServiceContrItemStartDateTime, abap_system_timezone( $session.client,'NULL' ), $session.client, 'NULL' ) as ServiceContractItemStartDate AS clientNULLasServiceContractItemStartDate,
tstmp_to_dats( ServiceContrItemEndDateTime, abap_system_timezone( $session.client,'NULL' ), $session.client, 'NULL' ) as ServiceContractItemEndDate AS clientNULLasServiceContractItemEndDate,
ServiceContractItem.ServiceDocumentItemNetAmount AS ServiceContractItemNetAmount,
ServiceContractItem.ServiceDocItemGrossAmount AS ServiceContractItemGrossAmount,
ServiceContractItem.TransactionCurrency AS TransactionCurrency,
ServiceContractItem.ServiceDocumentItemQuantity AS ServiceContractItemQuantity,
ServiceContractItem.ServiceDocumentItemHasError AS ServiceContractItemHasError,
ServiceContractItem.ServiceDocItemQuantityUnit AS ServiceContrItemQuantityUnit,
ServiceContractItem.ServiceDocItemCategory AS ServiceContractItemCategory,
ServiceContractItem.ServiceDocItemBillingStatus AS ServiceContrItemBillingStatus,
ParentServiceDocumentItemUUID,
SettlementPeriodRuleUUID,
BillingPlanBillingDateRuleUUID,
cast( '' as abap.char(50)) AS BillingPlanBillingDateRuleName,
cast( '' as abap.char(50)) AS SettlementPeriodRuleName,
SrvcContrItemRnwlDuration,
SrvcContrItemRnwlDurationUnit,
SrvcContrItemExtensionDuration,
SrvcContrItemExtnDurationUnit,
ResponsibleEmployee,
SalesOrganization,
SalesOffice,
SalesGroup,
DistributionChannel,
Division,
SalesOrganizationOrgUnitID,
SalesOfficeOrgUnitID,
SalesGroupOrgUnitID,
ServiceOrganization
FROM I_ServiceDocumentItemEnhcd AS ServiceContractItem
LEFT OUTER JOIN E_ServiceDocumentItem AS _ServiceDocItemExt ON ServiceObjectType = _ServiceDocItemExt.ServiceCategory AND ServiceContract = _ServiceDocItemExt.ServiceOrderItem AND ServiceContractItem = _ServiceDocItemExt.ServiceLineExternalID -- association [0..1]
LEFT OUTER JOIN C_SrvcContrItmObjPgSettlmtPerd AS _SrvcContrItmSettlmtPerds ON ServiceObjectType = _SrvcContrItmSettlmtPerds.ServiceObjectType AND ServiceContract = _SrvcContrItmSettlmtPerds.ServiceDocument AND ServiceContractItem = _SrvcContrItmSettlmtPerds.ServiceDocumentItem -- association [1..*]
LEFT OUTER JOIN C_SrvcContrItmObjPgObjList AS _SrvcContrItemObjects ON ServiceObjectType = _SrvcContrItemObjects.ServiceContractType AND ServiceContract = _SrvcContrItemObjects.ServiceContract AND ServiceContractItem = _SrvcContrItemObjects.ServiceContractItem -- association [1..*]
LEFT OUTER JOIN C_SrvcContrItmObjPgProdList AS _SrvcContrItemProducts ON ServiceObjectType = _SrvcContrItemProducts.ServiceContractType AND ServiceContract = _SrvcContrItemProducts.ServiceContract AND ServiceContractItem = _SrvcContrItemProducts.ServiceContractItem -- association [1..*]
LEFT OUTER JOIN C_SrvcContrItmObjPgPrcDets AS _SrvcContrItemPriceDts ON ServiceObjectType = _SrvcContrItemPriceDts.ServiceContractType AND ServiceContract = _SrvcContrItemPriceDts.ServiceContract AND ServiceContractItem = _SrvcContrItemPriceDts.ServiceContractItem -- association [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