C_SrvcContrItmRelDueSituation

DDL: C_SRVCCONTRITMRELDUESITUATION SQL: CSRVCONTRITMRELD Type: view CONSUMPTION

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)

SourceAliasJoin Type
P_SrvcContrItmRelDueSituation P_SrvcContrItmRelDueSituation from

Associations (1)

CardinalityTargetAliasCondition
[1] I_PersonWorkAgreement_1 _ResponsibleEmployee $projection.RespEmployeeBusinessPartnerId = _ResponsibleEmployee.Person

Annotations (14)

NameValueLevelField
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)

KeyFieldSource TableSource FieldDescription
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]
;