P_AssetAssignment

DDL: P_ASSETASSIGNMENT SQL: PASSETASSGMT Type: view COMPOSITE Package: FINS_FAA_MD_BOPF

Asset Assignment

P_AssetAssignment is a Composite CDS View that provides data about "Asset Assignment" in SAP S/4HANA. It reads from 1 data source (I_FixedAssetAssgmt) and exposes 70 fields with key fields CompanyCode, MasterFixedAsset, FixedAsset, ValidityEndDate. It has 6 associations to related views. Part of development package FINS_FAA_MD_BOPF.

Data Sources (1)

SourceAliasJoin Type
I_FixedAssetAssgmt I_FixedAssetAssgmt from

Associations (6)

CardinalityTargetAliasCondition
[1..1] I_AssetTP _AssetTP $projection.CompanyCode = _AssetTP.CompanyCode and $projection.MasterFixedAsset = _AssetTP.MasterFixedAsset and $projection.FixedAsset = _AssetTP.FixedAsset
[0..1] I_Fund _Fund $projection.Fund = _Fund.Fund and $projection.FinancialManagementArea = _Fund.FinancialManagementArea
[0..*] I_FundsCenter _FundsCenter $projection.FundsCenter = _FundsCenter.FundsCenter and $projection.FinancialManagementArea = _FundsCenter.FinancialManagementArea and ( ( $projection.ValidityEndDate > _FundsCenter.ValidityStartDate and $projection.ValidityEndDate <= _FundsCenter.ValidityEndDate ) or( $projection.ValidityStartDate <= _FundsCenter.ValidityEndDate and $projection.ValidityStartDate >= _FundsCenter.ValidityStartDate ) or( $projection.ValidityEndDate >= _FundsCenter.ValidityEndDate and $projection.ValidityStartDate <= _FundsCenter.ValidityStartDate and _FundsCenter.ValidityStartDate <= $session.system_date and _FundsCenter.ValidityEndDate >= $session.system_date ) )
[0..1] I_WBSElementBasicData _WBSElementBasicData $projection.WBSElementInternalID = _WBSElementBasicData.WBSElementInternalID
[0..1] I_BudgetPeriod _BudgetPeriod $projection.BudgetPeriod = _BudgetPeriod.BudgetPeriod
[0..1] I_Grant _Grant $projection.GrantID = _Grant.GrantID

Annotations (9)

NameValueLevelField
AbapCatalog.sqlViewName PASSETASSGMT view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #CHECK view
VDM.private true view
VDM.viewType #COMPOSITE view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.usageType.serviceQuality #B view
ObjectModel.usageType.sizeCategory #XXL view

Fields (70)

KeyFieldSource TableSource FieldDescription
KEY CompanyCode I_FixedAssetAssgmt CompanyCode Receiver Company Code
KEY MasterFixedAsset I_FixedAssetAssgmt MasterFixedAsset Fixed Asset
KEY FixedAsset I_FixedAssetAssgmt FixedAsset Sub-number
KEY ValidityEndDate I_FixedAssetAssgmt ValidityEndDate ValidTo
ValidityStartDate I_FixedAssetAssgmt ValidityStartDate Validity Start Date
ControllingArea I_FixedAssetAssgmt ControllingArea Controlling Area
FinancialManagementArea
BusinessArea I_FixedAssetAssgmt BusinessArea Business Area
BusinessAreaName
CostCenter I_FixedAssetAssgmt CostCenter Cost Center
CostCenterName
CostCtrActivityType I_FixedAssetAssgmt CostCtrActivityType Activity Type
CostCtrActivityTypeName
InternalOrder I_FixedAssetAssgmt InternalOrder Order
InternalOrderDescription
Fund I_FixedAssetAssgmt Fund Sender Fund
FundName
GrantID I_FixedAssetAssgmt GrantID Sender Grant
GrantName
FunctionalArea I_FixedAssetAssgmt FunctionalArea Sendr Fctl Area
FunctionalAreaName
FundsCenter I_FixedAssetAssgmt FundsCenter Funds Center
FundsCenterName
WBSElementInternalID
WBSElementExternalID
WBSElementDescription
TaxJurisdiction I_FixedAssetAssgmt TaxJurisdiction Tax Jurisdiction
RealEstateObject I_FixedAssetAssgmt RealEstateObject Real Estate Key
Segment I_FixedAssetAssgmt Segment Segment number
SegmentName
ProfitCenter I_FixedAssetAssgmt ProfitCenter Profit Center
ProfitCenterName
BudgetPeriod I_FixedAssetAssgmt BudgetPeriod Budget Period
ResponsibleCostCenter I_FixedAssetAssgmt ResponsibleCostCenter Responsible Cost Center
ResponsibleCostCenterName
Room I_FixedAssetAssgmt Room Room Number
Plant I_FixedAssetAssgmt Plant Valuation Area
PlantName
AssetLocation I_FixedAssetAssgmt AssetLocation Location
AssetLocationName
VehicleLicensePlateNumber I_FixedAssetAssgmt VehicleLicensePlateNumber License Plate Number
PersonnelNumber I_FixedAssetAssgmt PersonnelNumber Personnel No.
BusinessPlace I_FixedAssetAssgmt BusinessPlace Business place
ReferenceDocumentType I_FixedAssetAssgmt ReferenceDocumentType Reference Document Type
LogicalSystem I_FixedAssetAssgmt LogicalSystem Logical System
ReferenceDocumentContext I_FixedAssetAssgmt ReferenceDocumentContext Reference Document Context
ReferenceDocument I_FixedAssetAssgmt ReferenceDocument Reference Document
LongText
AssetAuthorizationContext I_FixedAssetAssgmt AssetAuthorizationContext
_AssetTP _AssetTP
_FixedAsset _FixedAsset
_Grant _Grant
_Fund _Fund
_FundsCenter _FundsCenter
_WBSElementBasicData _WBSElementBasicData
_BudgetPeriod _BudgetPeriod
_MasterFixedAsset _MasterFixedAsset
_CompanyCode I_FixedAssetAssgmt _CompanyCode
_CostCenter I_FixedAssetAssgmt _CostCenter
_ResponsibleCostCenter I_FixedAssetAssgmt _ResponsibleCostCenter
_CostCenterActivityType I_FixedAssetAssgmt _CostCenterActivityType
_Plant I_FixedAssetAssgmt _Plant
_BusinessArea I_FixedAssetAssgmt _BusinessArea
_InternalOrder I_FixedAssetAssgmt _InternalOrder
_ProfitCenter I_FixedAssetAssgmt _ProfitCenter
_Segment I_FixedAssetAssgmt _Segment
_FunctionalArea I_FixedAssetAssgmt _FunctionalArea
_ControllingArea I_FixedAssetAssgmt _ControllingArea
_AssetLocation I_FixedAssetAssgmt _AssetLocation
_Employment I_FixedAssetAssgmt _Employment

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_AssetAssignment.
-- 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: PASSETASSGMT

CREATE VIEW P_AssetAssignment AS
SELECT
  I_FixedAssetAssgmt.CompanyCode AS CompanyCode,
  I_FixedAssetAssgmt.MasterFixedAsset AS MasterFixedAsset,
  I_FixedAssetAssgmt.FixedAsset AS FixedAsset,
  I_FixedAssetAssgmt.ValidityEndDate AS ValidityEndDate,
  I_FixedAssetAssgmt.ValidityStartDate AS ValidityStartDate,
  I_FixedAssetAssgmt.ControllingArea AS ControllingArea,
  I_FixedAssetAssgmt._CompanyCode.FinancialManagementArea AS FinancialManagementArea,
  I_FixedAssetAssgmt.BusinessArea AS BusinessArea,
  cast (cast (''as abap.char(30))as farp_gtext preserving type) AS BusinessAreaName,
  I_FixedAssetAssgmt.CostCenter AS CostCenter,
  cast (cast (''as abap.char(20))as fis_kostl_name preserving type) AS CostCenterName,
  I_FixedAssetAssgmt.CostCtrActivityType AS CostCtrActivityType,
  cast (cast (''as abap.char(20))as ktext preserving type) AS CostCtrActivityTypeName,
  I_FixedAssetAssgmt.InternalOrder AS InternalOrder,
  cast (cast (''as abap.char(40))as fis_internalorder_text preserving type) AS InternalOrderDescription,
  I_FixedAssetAssgmt.Fund AS Fund,
  cast (cast (''as abap.char(20))as fmis_fund_name preserving type) AS FundName,
  I_FixedAssetAssgmt.GrantID AS GrantID,
  cast (cast (''as abap.char(20))as gm_short_description preserving type) AS GrantName,
  I_FixedAssetAssgmt.FunctionalArea AS FunctionalArea,
  cast (cast (''as abap.char(25))as fkbtx preserving type) AS FunctionalAreaName,
  I_FixedAssetAssgmt.FundsCenter AS FundsCenter,
  cast (cast (''as abap.char(20))as fmis_fc_name preserving type) AS FundsCenterName,
  cast (I_FixedAssetAssgmt.WBSElementInternalID as ps_s4_pspnr preserving type ) AS WBSElementInternalID,
  cast (cast('' as abap.char(24)) as ps_posid_edit preserving type) AS WBSElementExternalID,
  cast (cast (''as abap.char(40))as ps_s4_post1 preserving type) AS WBSElementDescription,
  I_FixedAssetAssgmt.TaxJurisdiction AS TaxJurisdiction,
  I_FixedAssetAssgmt.RealEstateObject AS RealEstateObject,
  I_FixedAssetAssgmt.Segment AS Segment,
  cast (cast (''as abap.char(50))as fis_segment_name preserving type) AS SegmentName,
  I_FixedAssetAssgmt.ProfitCenter AS ProfitCenter,
  cast (cast (''as abap.char(20))as fis_prctr_shorttext preserving type) AS ProfitCenterName,
  I_FixedAssetAssgmt.BudgetPeriod AS BudgetPeriod,
  I_FixedAssetAssgmt.ResponsibleCostCenter AS ResponsibleCostCenter,
  cast (cast (''as abap.char(20))as fis_kostl_name preserving type) AS ResponsibleCostCenterName,
  I_FixedAssetAssgmt.Room AS Room,
  I_FixedAssetAssgmt.Plant AS Plant,
  cast (cast (''as abap.char(30))as werks_name preserving type) AS PlantName,
  I_FixedAssetAssgmt.AssetLocation AS AssetLocation,
  cast (cast (''as abap.char(40))as locationname preserving type) AS AssetLocationName,
  I_FixedAssetAssgmt.VehicleLicensePlateNumber AS VehicleLicensePlateNumber,
  I_FixedAssetAssgmt.PersonnelNumber AS PersonnelNumber,
  I_FixedAssetAssgmt.BusinessPlace AS BusinessPlace,
  I_FixedAssetAssgmt.ReferenceDocumentType AS ReferenceDocumentType,
  I_FixedAssetAssgmt.LogicalSystem AS LogicalSystem,
  I_FixedAssetAssgmt.ReferenceDocumentContext AS ReferenceDocumentContext,
  I_FixedAssetAssgmt.ReferenceDocument AS ReferenceDocument,
  cast ('' as abap.char(512) ) AS LongText,
  I_FixedAssetAssgmt.AssetAuthorizationContext AS AssetAuthorizationContext,
  I_FixedAssetAssgmt._CompanyCode AS _CompanyCode,
  I_FixedAssetAssgmt._CostCenter AS _CostCenter,
  I_FixedAssetAssgmt._ResponsibleCostCenter AS _ResponsibleCostCenter,
  I_FixedAssetAssgmt._CostCenterActivityType AS _CostCenterActivityType,
  I_FixedAssetAssgmt._Plant AS _Plant,
  I_FixedAssetAssgmt._BusinessArea AS _BusinessArea,
  I_FixedAssetAssgmt._InternalOrder AS _InternalOrder,
  I_FixedAssetAssgmt._ProfitCenter AS _ProfitCenter,
  I_FixedAssetAssgmt._Segment AS _Segment,
  I_FixedAssetAssgmt._FunctionalArea AS _FunctionalArea,
  I_FixedAssetAssgmt._ControllingArea AS _ControllingArea,
  I_FixedAssetAssgmt._AssetLocation AS _AssetLocation,
  I_FixedAssetAssgmt._Employment AS _Employment
FROM I_FixedAssetAssgmt
LEFT OUTER JOIN I_AssetTP AS _AssetTP ON CompanyCode = _AssetTP.CompanyCode AND MasterFixedAsset = _AssetTP.MasterFixedAsset AND FixedAsset = _AssetTP.FixedAsset  -- association [1..1]
LEFT OUTER JOIN I_Fund AS _Fund ON Fund = _Fund.Fund AND FinancialManagementArea = _Fund.FinancialManagementArea  -- association [0..1]
LEFT OUTER JOIN I_FundsCenter AS _FundsCenter ON FundsCenter = _FundsCenter.FundsCenter AND FinancialManagementArea = _FundsCenter.FinancialManagementArea AND ( ( ValidityEndDate > _FundsCenter.ValidityStartDate AND ValidityEndDate <= _FundsCenter.ValidityEndDate ) OR( ValidityStartDate <= _FundsCenter.ValidityEndDate AND ValidityStartDate >= _FundsCenter.ValidityStartDate ) OR( ValidityEndDate >= _FundsCenter.ValidityEndDate AND ValidityStartDate <= _FundsCenter.ValidityStartDate AND _FundsCenter.ValidityStartDate <= $session.system_date AND _FundsCenter.ValidityEndDate >= $session.system_date ) )  -- association [0..*]
LEFT OUTER JOIN I_WBSElementBasicData AS _WBSElementBasicData ON WBSElementInternalID = _WBSElementBasicData.WBSElementInternalID  -- association [0..1]
LEFT OUTER JOIN I_BudgetPeriod AS _BudgetPeriod ON BudgetPeriod = _BudgetPeriod.BudgetPeriod  -- association [0..1]
LEFT OUTER JOIN I_Grant AS _Grant ON GrantID = _Grant.GrantID  -- association [0..1]
;