P_OrglChangeReportPOItoFA

DDL: P_ORGLCHANGEREPORTPOITOFA Type: view_entity CONSUMPTION

Purchase Order Item to Root FixedAsset

P_OrglChangeReportPOItoFA is a Consumption CDS View that provides data about "Purchase Order Item to Root FixedAsset" in SAP S/4HANA. It reads from 1 data source (I_ProfitCenterToPurOrderItem) and exposes 52 fields with key fields OrganizationalChange, PurchasingDocument, PurchasingDocumentItem, AccountAssignmentNumber, ValidityStartDate. It has 4 associations to related views.

Data Sources (1)

SourceAliasJoin Type
I_ProfitCenterToPurOrderItem _ProfitCenterToPurOrderItem from

Associations (4)

CardinalityTargetAliasCondition
[1] I_ProfitCenterToFixedAsset _RootProfitCenterToFixedAsset _RootProfitCenterToFixedAsset.OrganizationalChange = $projection.OrganizationalChange and _RootProfitCenterToFixedAsset.ValidityStartDate = $projection.ValidityStartDate
[0..*] I_OrglChgReassignmentStsText _OrglChgReassignmentStsText $projection.OrglChangeReassignmentStatus = _OrglChgReassignmentStsText.OrglChangeReassignmentStatus
[1] I_PurchasingDocument _PurchasingDocument $projection.PurchasingDocument = _PurchasingDocument.PurchasingDocument
[1] I_PurchasingDocumentItem _PurchasingDocumentItem $projection.PurchasingDocument = _PurchasingDocumentItem.PurchasingDocument and $projection.PurchasingDocumentItem = _PurchasingDocumentItem.PurchasingDocumentItem

Annotations (7)

NameValueLevelField
AccessControl.authorizationCheck #NOT_REQUIRED view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #MASTER view
VDM.private true view
VDM.viewType #CONSUMPTION view
EndUserText.label Purchase Order Item to Root FixedAsset view

Fields (52)

KeyFieldSource TableSource FieldDescription
KEY OrganizationalChange OrganizationalChange Organizational Change
KEY PurchasingDocument PurchasingDocument Purchasing Document
KEY PurchasingDocumentItem PurchasingDocumentItem Purchasing Doc. Item
KEY AccountAssignmentNumber AccountAssignmentNumber Account Assgmt No.
KEY ValidityStartDate ValidityStartDate Validity Start Date
SourceMasterFixedAsset SourceMasterFixedAsset
DependentObjectID
OrglChgRptDependentObjectType
OrglChgRptRootObjectType ProfitCenterDerivationSrceType Profit Center Source
RootObjectID
ValidityEndDate ValidityEndDate ValidTo
Segment _ProfitCtr Segment Segment number
SegmentName
SegmentBeforeOrglChange _PrftCtrBfrOrglChgBfrEffctvDte Segment Segment number
SegmentBeforeOrglChangeName
ControllingArea ControllingArea Controlling Area
ControllingAreaName _ControllingArea ControllingAreaName Long Text
CompanyCode CompanyCode Receiver Company Code
CompanyCodeName _CompanyCode CompanyCodeName Company Name
ProfitCenterBeforeOrglChange ProfitCenterBeforeOrglChange Old Profit Center
ProfitCenterBfrOrglChangeName
ProfitCenter ProfitCenter Profit Center
ProfitCenterName
OrglChangeReassignmentStatus OrglChangeReassignmentStatus Status
OrglChgReassignmentStatusName
ProfitCenterDerivationSrceType ProfitCenterDerivationSrceType Profit Center Source
MasterFixedAsset SourceMasterFixedAsset
MasterFixedAssetDescription
FixedAsset SourceFixedAsset
FixedAssetDescription
Product SourceProduct Source Product
Plant SourcePlant Source Plant
RootMasterFixedAsset _RootProfitCenterToFixedAsset MasterFixedAsset Fixed Asset
RootFixedAsset _RootProfitCenterToFixedAsset FixedAsset Sub-number
RootValidityStartDate _RootProfitCenterToFixedAsset ValidityStartDate Validity Start Date
RootValidityEndDate _RootProfitCenterToFixedAsset ValidityEndDate ValidTo
RootControllingArea _RootProfitCenterToFixedAsset ControllingArea Controlling Area
RootCompanyCode _RootProfitCenterToFixedAsset CompanyCode Receiver Company Code
RootProfitCenterBeforeOrglChng _RootProfitCenterToFixedAsset ProfitCenterBeforeOrglChange Old Profit Center
RootProfitCenter _RootProfitCenterToFixedAsset ProfitCenter Profit Center
RootOrganizationalChange _RootProfitCenterToFixedAsset OrganizationalChange Organizational Change
RootOrglChangeReassignmentSts _RootProfitCenterToFixedAsset OrglChangeReassignmentStatus Status
RootProfitCenterDrvtnSrceTp _RootProfitCenterToFixedAsset ProfitCenterDerivationSrceType Profit Center Source
_CompanyCode _CompanyCode
_ControllingArea _ControllingArea
_OrglChange _OrglChange
_OrglChgReassignmentStatus _OrglChgReassignmentStatus
_ProfitCenterBeforeOrglChange _ProfitCenterBeforeOrglChange
_ProfitCtr _ProfitCtr
OrglChangeEffectiveDate I_ProfitCenterToPurOrderItem OrglChangeEffectiveDate Effective Date
OrglChgLastDateBeforeEffDate I_ProfitCenterToPurOrderItem OrglChgLastDateBeforeEffDate
_ProfitCtrDerivationSrceType _ProfitCtrDerivationSrceType

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 P_OrglChangeReportPOItoFA.
-- 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 P_OrglChangeReportPOItoFA AS
SELECT
  OrganizationalChange,
  PurchasingDocument,
  PurchasingDocumentItem,
  AccountAssignmentNumber,
  ValidityStartDate,
  SourceMasterFixedAsset,
  cast( concat( PurchasingDocument , concat( '/', PurchasingDocumentItem)) as finoc_object_id ) AS DependentObjectID,
  cast( 'PO' as finoc_dependent_object_type ) AS OrglChgRptDependentObjectType,
  ProfitCenterDerivationSrceType AS OrglChgRptRootObjectType,
  cast ( concat( SourceMasterFixedAsset , concat( '/', SourceFixedAsset)) as finoc_object_id ) AS RootObjectID,
  ValidityEndDate,
  _ProfitCtr.Segment AS Segment,
  _ProfitCtr._Segment._Text[1:Language=$session.system_language].SegmentName AS SegmentName,
  _PrftCtrBfrOrglChgBfrEffctvDte.Segment AS SegmentBeforeOrglChange,
  _PrftCtrBfrOrglChgBfrEffctvDte._Segment._Text[1:Language=$session.system_language].SegmentName AS SegmentBeforeOrglChangeName,
  ControllingArea,
  _ControllingArea.ControllingAreaName AS ControllingAreaName,
  CompanyCode,
  _CompanyCode.CompanyCodeName AS CompanyCodeName,
  ProfitCenterBeforeOrglChange,
  _ProfitCenterBeforeOrglChange._Text[1:Language=$session.system_language].ProfitCenterName AS ProfitCenterBfrOrglChangeName,
  ProfitCenter,
  _ProfitCtr._Text[1:Language=$session.system_language].ProfitCenterName AS ProfitCenterName,
  OrglChangeReassignmentStatus,
  _OrglChgReassignmentStsText[1:Language=$session.system_language].OrglChgReassignmentStatusName AS OrglChgReassignmentStatusName,
  ProfitCenterDerivationSrceType,
  SourceMasterFixedAsset AS MasterFixedAsset,
  _RootProfitCenterToFixedAsset._MasterFixedAsset.MasterFixedAssetDescription AS MasterFixedAssetDescription,
  SourceFixedAsset AS FixedAsset,
  _RootProfitCenterToFixedAsset._FixedAsset.FixedAssetDescription AS FixedAssetDescription,
  SourceProduct AS Product,
  SourcePlant AS Plant,
  _RootProfitCenterToFixedAsset.MasterFixedAsset AS RootMasterFixedAsset,
  _RootProfitCenterToFixedAsset.FixedAsset AS RootFixedAsset,
  _RootProfitCenterToFixedAsset.ValidityStartDate AS RootValidityStartDate,
  _RootProfitCenterToFixedAsset.ValidityEndDate AS RootValidityEndDate,
  _RootProfitCenterToFixedAsset.ControllingArea AS RootControllingArea,
  _RootProfitCenterToFixedAsset.CompanyCode AS RootCompanyCode,
  _RootProfitCenterToFixedAsset.ProfitCenterBeforeOrglChange AS RootProfitCenterBeforeOrglChng,
  _RootProfitCenterToFixedAsset.ProfitCenter AS RootProfitCenter,
  _RootProfitCenterToFixedAsset.OrganizationalChange AS RootOrganizationalChange,
  _RootProfitCenterToFixedAsset.OrglChangeReassignmentStatus AS RootOrglChangeReassignmentSts,
  _RootProfitCenterToFixedAsset.ProfitCenterDerivationSrceType AS RootProfitCenterDrvtnSrceTp,
  _ProfitCenterToPurOrderItem.OrglChangeEffectiveDate AS OrglChangeEffectiveDate,
  _ProfitCenterToPurOrderItem.OrglChgLastDateBeforeEffDate AS OrglChgLastDateBeforeEffDate
FROM I_ProfitCenterToPurOrderItem AS _ProfitCenterToPurOrderItem
LEFT OUTER JOIN I_ProfitCenterToFixedAsset AS _RootProfitCenterToFixedAsset ON _RootProfitCenterToFixedAsset.OrganizationalChange = OrganizationalChange AND _RootProfitCenterToFixedAsset.ValidityStartDate = ValidityStartDate  -- association [1]
LEFT OUTER JOIN I_OrglChgReassignmentStsText AS _OrglChgReassignmentStsText ON OrglChangeReassignmentStatus = _OrglChgReassignmentStsText.OrglChangeReassignmentStatus  -- association [0..*]
LEFT OUTER JOIN I_PurchasingDocument AS _PurchasingDocument ON PurchasingDocument = _PurchasingDocument.PurchasingDocument  -- association [1]
LEFT OUTER JOIN I_PurchasingDocumentItem AS _PurchasingDocumentItem ON PurchasingDocument = _PurchasingDocumentItem.PurchasingDocument AND PurchasingDocumentItem = _PurchasingDocumentItem.PurchasingDocumentItem  -- association [1]
;