C_SrvcContrItmRelDueSituation
Situation Handling Service Contract Item
C_SrvcContrItmRelDueSituation is a Consumption CDS View that provides data about "Situation Handling Service Contract Item" in SAP S/4HANA. It reads from 1 data source (P_SrvcContrItmRelDueSituation) and exposes 38 fields with key fields ServiceObjectType, ServiceContract, ServiceContractItem. It has 1 association to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| P_SrvcContrItmRelDueSituation | P_SrvcContrItmRelDueSituation | from |
Associations (1)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1] | I_PersonWorkAgreement_1 | _ResponsibleEmployee | $projection.RespEmployeeBusinessPartnerId = _ResponsibleEmployee.Person |
Annotations (14)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | CSRVCONTRITMRELD | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| EndUserText.label | Situation Handling Service Contract Item | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| VDM.viewType | #CONSUMPTION | view | |
| VDM.lifecycle.contract.type | #PUBLIC_LOCAL_API | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| ObjectModel.representativeKey | ServiceContractItem | view | |
| ObjectModel.uniqueIdField | ServiceContractItemUUID | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| ObjectModel.usageType.sizeCategory | #XXL | view | |
| Metadata.ignorePropagatedAnnotations | true | view |
Fields (38)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | ServiceObjectType | ServiceObjectType | Object Type | |
| KEY | ServiceContract | ServiceDocument | Service Contract ID | |
| KEY | ServiceContractItem | ServiceDocumentItem | Service Contract Item | |
| ServiceContractItemUUID | ServiceDocumentItemUUID | |||
| ServiceDocumentItemIsReleased | ServiceDocumentItemIsReleased | |||
| TransactionCurrency | TransactionCurrency | Transaction Currency | ||
| ServiceDocumentItemNetAmount | ServiceDocumentItemNetAmount | Value of Service Contract Item | ||
| ServiceContractCombinedKey | ||||
| ServiceDocumentDescription | ServiceDocumentDescription | |||
| ServiceContractType | ServiceDocumentType | Transaction Type | ||
| ServiceContractItemStartDate | ServiceContractItemStartDate | Start Date | ||
| ServiceContractItemEndDate | ServiceContractItemEndDate | End Date | ||
| RespEmployeeBusinessPartnerId | ResponsibleEmployee | Employee Resp. | ||
| ResponsibleEmployeeUserID | ||||
| SalesOrganization | SalesOrganization | Sales Organization | ||
| DistributionChannel | DistributionChannel | RefDistCh-Cust/Mat. | ||
| Division | Division | Internal Division ID | ||
| SalesOffice | SalesOffice | Sales Office | ||
| SalesGroup | SalesGroup | Sales Group | ||
| SalesOrganizationOrgUnitID | SalesOrganizationOrgUnitID | |||
| SalesOfficeOrgUnitID | SalesOfficeOrgUnitID | |||
| SalesGroupOrgUnitID | SalesGroupOrgUnitID | |||
| ServiceOrganization | ServiceOrganization | |||
| _ServiceDocumentType | _ServiceDocumentType | |||
| _SalesOrganization | _SalesOrganization | |||
| _DistributionChannel | _DistributionChannel | |||
| _Division | _Division | |||
| _SalesOffice | _SalesOffice | |||
| _SalesGroup | _SalesGroup | |||
| _SalesOrganizationOrgUnit_2 | _SalesOrganizationOrgUnit_2 | |||
| _SalesOfficeOrgUnit_2 | _SalesOfficeOrgUnit_2 | |||
| _SalesGroupOrgUnit_2 | _SalesGroupOrgUnit_2 | |||
| _ServiceOrganizationOrgUnit_2 | _ServiceOrganizationOrgUnit_2 | |||
| _RespEmployee | _RespEmployee | |||
| _ServiceObjType | _ServiceObjType | |||
| _ServiceDocument | _ServiceDocument | |||
| _ResponsibleEmployee | _ResponsibleEmployee | |||
| _TransactionCurrency | _TransactionCurrency |
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_SrvcContrItmRelDueSituation.
-- 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: CSRVCONTRITMRELD
CREATE VIEW C_SrvcContrItmRelDueSituation AS
SELECT
ServiceObjectType,
ServiceDocument AS ServiceContract,
ServiceDocumentItem AS ServiceContractItem,
ServiceDocumentItemUUID AS ServiceContractItemUUID,
ServiceDocumentItemIsReleased,
TransactionCurrency,
ServiceDocumentItemNetAmount,
cast((concat(concat(ServiceDocument, '/'), ServiceDocumentItem)) as crms4_srvc_sitn_combnd_keys) AS ServiceContractCombinedKey,
ServiceDocumentDescription,
ServiceDocumentType AS ServiceContractType,
ServiceContractItemStartDate,
ServiceContractItemEndDate,
ResponsibleEmployee AS RespEmployeeBusinessPartnerId,
cast ( _ResponsibleEmployee._WorkforcePerson._BusinessUser.UserID as resp_empl_userid ) AS ResponsibleEmployeeUserID,
SalesOrganization,
DistributionChannel,
Division,
SalesOffice,
SalesGroup,
SalesOrganizationOrgUnitID,
SalesOfficeOrgUnitID,
SalesGroupOrgUnitID,
ServiceOrganization
FROM P_SrvcContrItmRelDueSituation
LEFT OUTER JOIN I_PersonWorkAgreement_1 AS _ResponsibleEmployee ON RespEmployeeBusinessPartnerId = _ResponsibleEmployee.Person -- 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