I_PrftCtrToServiceDocumentItem

DDL: I_PRFTCTRTOSERVICEDOCUMENTITEM Type: view_entity BASIC

Assgmt of PrftCtr to Service Doc Item

I_PrftCtrToServiceDocumentItem is a Basic CDS View that provides data about "Assgmt of PrftCtr to Service Doc Item" in SAP S/4HANA. It reads from 2 data sources (crms4d_serv_i, finoc_rt_srv) and exposes 34 fields with key fields ServiceDocumentType, ServiceDocument, ServiceDocumentItem, ValidityStartDate. It has 13 associations to related views.

Data Sources (2)

SourceAliasJoin Type
crms4d_serv_i crm inner
finoc_rt_srv rt from

Associations (13)

CardinalityTargetAliasCondition
[1] I_OrglChangeReassignmentStatus _OrglChgReassignmentStatus $projection.OrglChangeReassignmentStatus = _OrglChgReassignmentStatus.OrglChangeReassignmentStatus
[0..1] I_ProfitCtrDerivationSrceType _ProfitCtrDerivationSrceType $projection.ProfitCenterDerivationSrceType = _ProfitCtrDerivationSrceType.ProfitCenterDerivationSrceType
[0..1] I_ServiceDocumentType _ServiceDocumentType $projection.ServiceDocumentType = _ServiceDocumentType.ServiceDocumentType
[0..1] I_ServiceDocument _ServiceDocument $projection.ServiceObjectType = _ServiceDocument.ServiceObjectType and $projection.ServiceDocument = _ServiceDocument.ServiceDocument
[0..1] I_ServiceDocumentItem _ServiceDocumentItem $projection.ServiceObjectType = _ServiceDocumentItem.ServiceObjectType and $projection.ServiceDocument = _ServiceDocumentItem.ServiceDocument and $projection.ServiceDocumentItem = _ServiceDocumentItem.ServiceDocumentItem
[1..1] I_CustMgmtBusObjType _ServiceObjType $projection.ServiceObjectType = _ServiceObjType.BusinessObjectType
[0..1] I_OrganizationalChange _OrglChange $projection.OrganizationalChange = _OrglChange.OrganizationalChange
[0..1] I_CompanyCode _CompanyCode $projection.CompanyCode = _CompanyCode.CompanyCode
[1] I_ControllingArea _ControllingArea $projection.ControllingArea = _ControllingArea.ControllingArea
[0..1] I_ProfitCenter _ProfitCtr $projection.ControllingArea = _ProfitCtr.ControllingArea and $projection.ProfitCenter = _ProfitCtr.ProfitCenter and $projection.ValidityStartDate >= _ProfitCtr.ValidityStartDate and $projection.ValidityStartDate <= _ProfitCtr.ValidityEndDate
[0..1] I_ProfitCenter _ProfitCenterBeforeOrglChange $projection.ControllingArea = _ProfitCenterBeforeOrglChange.ControllingArea and $projection.ProfitCenterBeforeOrglChange = _ProfitCenterBeforeOrglChange.ProfitCenter and $projection.ValidityStartDate >= _ProfitCenterBeforeOrglChange.ValidityStartDate and $projection.ValidityStartDate <= _ProfitCenterBeforeOrglChange.ValidityEndDate
[0..1] I_ProfitCenter _PrftCtrBfrOrglChgBfrEffctvDte $projection.ControllingArea = _PrftCtrBfrOrglChgBfrEffctvDte.ControllingArea and $projection.ProfitCenterBeforeOrglChange = _PrftCtrBfrOrglChgBfrEffctvDte.ProfitCenter and $projection.orglchglastdatebeforeeffdate >= _PrftCtrBfrOrglChgBfrEffctvDte.ValidityStartDate and $projection.orglchglastdatebeforeeffdate <= _PrftCtrBfrOrglChgBfrEffctvDte.ValidityEndDate
[0..1] I_ServiceDocumentType _SourceServiceDocumentType $projection.SourceServiceDocumentType = _SourceServiceDocumentType.ServiceDocumentType

Annotations (13)

NameValueLevelField
EndUserText.label Assgmt of PrftCtr to Service Doc Item view
VDM.viewType #BASIC view
AccessControl.authorizationCheck #MANDATORY view
AccessControl.personalData.blocking #NOT_REQUIRED view
ObjectModel.representativeKey ServiceDocumentItem view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #XL view
Analytics.internalName #LOCAL view
Analytics.technicalName IFINOCRTSRV view
ObjectModel.modelingPattern #ANALYTICAL_DIMENSION view
Metadata.allowExtensions true view

Fields (34)

KeyFieldSource TableSource FieldDescription
KEY ServiceDocumentType finoc_rt_srv service_doc_type Transaction Type
KEY ServiceDocument finoc_rt_srv service_doc_id Transaction ID
KEY ServiceDocumentItem finoc_rt_srv service_doc_item_id Service Doc. Item
KEY ValidityStartDate finoc_rt_srv valid_from Validity Start Time
ValidityEndDate finoc_rt_srv valid_to Validity End Time
ControllingArea finoc_rt_srv kokrs Org. Value
CompanyCode finoc_rt_srv bukrs Value
ProfitCenterBeforeOrglChange finoc_rt_srv prctr_old Old Profit Center
ProfitCenter finoc_rt_srv prctr Profit Centers
OrganizationalChange finoc_rt_srv orgl_change Organizational Change
OrglChangeReassignmentStatus finoc_rt_srv reassgmt_status Status
ProfitCenterDerivationSrceType finoc_rt_srv prctr_drvtn_source_type Profit Center Source
SourceServiceDocumentType finoc_rt_srv srce_service_doc_type
SourceServiceDocument finoc_rt_srv srce_service_doc_id
SourceServiceDocumentItem finoc_rt_srv srce_service_doc_item_id
ServiceObjectType finoc_rt_srv object_type Type
RASndgCompDocumentItem
_OrglChgReassignmentStatus _OrglChgReassignmentStatus
_ProfitCtrDerivationSrceType _ProfitCtrDerivationSrceType
_ServiceDocumentType _ServiceDocumentType
_ServiceDocument _ServiceDocument
_ServiceDocumentItem _ServiceDocumentItem
_ServiceObjType _ServiceObjType
_SourceServiceDocumentType _SourceServiceDocumentType
_OrglChange _OrglChange
OrglChangeEffectiveDate _OrglChange OrglChangeEffectiveDate Effective Date
OrglChgLastDateBeforeEffDate _OrglChange OrglChgLastDateBeforeEffDate
_CompanyCode _CompanyCode
_ControllingArea _ControllingArea
_ProfitCtr _ProfitCtr
_ProfitCenterBeforeOrglChange _ProfitCenterBeforeOrglChange
_PrftCtrBfrOrglChgBfrEffctvDte _PrftCtrBfrOrglChgBfrEffctvDte
SegmentBeforeOrglChange _ProfitCenterBeforeOrglChange Segment Segment number
Segment _ProfitCtr Segment Segment number

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 I_PrftCtrToServiceDocumentItem.
-- 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.

CREATE VIEW I_PrftCtrToServiceDocumentItem AS
SELECT
  rt.service_doc_type AS ServiceDocumentType,
  rt.service_doc_id AS ServiceDocument,
  rt.service_doc_item_id AS ServiceDocumentItem,
  rt.valid_from AS ValidityStartDate,
  rt.valid_to AS ValidityEndDate,
  rt.kokrs AS ControllingArea,
  rt.bukrs AS CompanyCode,
  rt.prctr_old AS ProfitCenterBeforeOrglChange,
  rt.prctr AS ProfitCenter,
  rt.orgl_change AS OrganizationalChange,
  rt.reassgmt_status AS OrglChangeReassignmentStatus,
  rt.prctr_drvtn_source_type AS ProfitCenterDerivationSrceType,
  rt.srce_service_doc_type AS SourceServiceDocumentType,
  rt.srce_service_doc_id AS SourceServiceDocument,
  rt.srce_service_doc_item_id AS SourceServiceDocumentItem,
  rt.object_type AS ServiceObjectType,
  cast(rpad(crm.item_guid_char, 35, ' ') as farr_rai_srcid preserving type ) AS RASndgCompDocumentItem,
  _OrglChange.OrglChangeEffectiveDate AS OrglChangeEffectiveDate,
  _OrglChange.OrglChgLastDateBeforeEffDate AS OrglChgLastDateBeforeEffDate,
  _ProfitCenterBeforeOrglChange.Segment AS SegmentBeforeOrglChange,
  _ProfitCtr.Segment AS Segment
FROM finoc_rt_srv AS rt
INNER JOIN crms4d_serv_i AS crm ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_OrglChangeReassignmentStatus AS _OrglChgReassignmentStatus ON OrglChangeReassignmentStatus = _OrglChgReassignmentStatus.OrglChangeReassignmentStatus  -- association [1]
LEFT OUTER JOIN I_ProfitCtrDerivationSrceType AS _ProfitCtrDerivationSrceType ON ProfitCenterDerivationSrceType = _ProfitCtrDerivationSrceType.ProfitCenterDerivationSrceType  -- association [0..1]
LEFT OUTER JOIN I_ServiceDocumentType AS _ServiceDocumentType ON ServiceDocumentType = _ServiceDocumentType.ServiceDocumentType  -- association [0..1]
LEFT OUTER JOIN I_ServiceDocument AS _ServiceDocument ON ServiceObjectType = _ServiceDocument.ServiceObjectType AND ServiceDocument = _ServiceDocument.ServiceDocument  -- association [0..1]
LEFT OUTER JOIN I_ServiceDocumentItem AS _ServiceDocumentItem ON ServiceObjectType = _ServiceDocumentItem.ServiceObjectType AND ServiceDocument = _ServiceDocumentItem.ServiceDocument AND ServiceDocumentItem = _ServiceDocumentItem.ServiceDocumentItem  -- association [0..1]
LEFT OUTER JOIN I_CustMgmtBusObjType AS _ServiceObjType ON ServiceObjectType = _ServiceObjType.BusinessObjectType  -- association [1..1]
LEFT OUTER JOIN I_OrganizationalChange AS _OrglChange ON OrganizationalChange = _OrglChange.OrganizationalChange  -- association [0..1]
LEFT OUTER JOIN I_CompanyCode AS _CompanyCode ON CompanyCode = _CompanyCode.CompanyCode  -- association [0..1]
LEFT OUTER JOIN I_ControllingArea AS _ControllingArea ON ControllingArea = _ControllingArea.ControllingArea  -- association [1]
LEFT OUTER JOIN I_ProfitCenter AS _ProfitCtr ON ControllingArea = _ProfitCtr.ControllingArea AND ProfitCenter = _ProfitCtr.ProfitCenter AND ValidityStartDate >= _ProfitCtr.ValidityStartDate AND ValidityStartDate <= _ProfitCtr.ValidityEndDate  -- association [0..1]
LEFT OUTER JOIN I_ProfitCenter AS _ProfitCenterBeforeOrglChange ON ControllingArea = _ProfitCenterBeforeOrglChange.ControllingArea AND ProfitCenterBeforeOrglChange = _ProfitCenterBeforeOrglChange.ProfitCenter AND ValidityStartDate >= _ProfitCenterBeforeOrglChange.ValidityStartDate AND ValidityStartDate <= _ProfitCenterBeforeOrglChange.ValidityEndDate  -- association [0..1]
LEFT OUTER JOIN I_ProfitCenter AS _PrftCtrBfrOrglChgBfrEffctvDte ON ControllingArea = _PrftCtrBfrOrglChgBfrEffctvDte.ControllingArea AND ProfitCenterBeforeOrglChange = _PrftCtrBfrOrglChgBfrEffctvDte.ProfitCenter AND orglchglastdatebeforeeffdate >= _PrftCtrBfrOrglChgBfrEffctvDte.ValidityStartDate AND orglchglastdatebeforeeffdate <= _PrftCtrBfrOrglChgBfrEffctvDte.ValidityEndDate  -- association [0..1]
LEFT OUTER JOIN I_ServiceDocumentType AS _SourceServiceDocumentType ON SourceServiceDocumentType = _SourceServiceDocumentType.ServiceDocumentType  -- association [0..1]
;