P_JP_FixedAsset

DDL: P_JP_FIXEDASSET SQL: PJPFIXASSET Type: view COMPOSITE

P_JP_FixedAsset is a Composite CDS View in SAP S/4HANA. It has 5 associations to related views.

Parameters (4)

NameTypeDefault
p_switchstatus char03
p_ledger fins_ledger
p_validfrom bdatu
p_DepArea afabe_d

Associations (5)

CardinalityTargetAliasCondition
[0..1] I_AssetValuationForLedger AVL MAIN.CompanyCode = AVL.CompanyCode and MAIN.MasterFixedAsset = AVL.MasterFixedAsset and MAIN.FixedAsset = AVL.FixedAsset and AVL.Ledger = :p_ledger and AVL.AssetRealDepreciationArea = :p_DepArea and AVL.ValidityEndDate >= :p_validfrom and AVL.ValidityStartDate <= :p_validfrom
[0..1] I_FixedAssetForLedger LDG MAIN.CompanyCode = LDG.CompanyCode and MAIN.MasterFixedAsset = LDG.MasterFixedAsset and MAIN.FixedAsset = LDG.FixedAsset and LDG.Ledger = :p_ledger
[1..1] I_FixedAssetCountryData CountryData MAIN.CompanyCode = CountryData.CompanyCode and MAIN.MasterFixedAsset = CountryData.MasterFixedAsset and MAIN.FixedAsset = CountryData.FixedAsset
[0..1] I_FixedAssetAssgmt _FixedAssetAssgmt MAIN.CompanyCode = _FixedAssetAssgmt.CompanyCode and MAIN.MasterFixedAsset = _FixedAssetAssgmt.MasterFixedAsset and MAIN.FixedAsset = _FixedAssetAssgmt.FixedAsset and _FixedAssetAssgmt.ValidityStartDate <= :p_validfrom and _FixedAssetAssgmt.ValidityEndDate >= :p_validfrom
[0..1] P_JP_AssetQuantity QTY MAIN.CompanyCode = QTY.CompanyCode and MAIN.MasterFixedAsset = QTY.MasterFixedAsset and MAIN.FixedAsset = QTY.FixedAsset and QTY.Ledger = :p_ledger

Annotations (10)

NameValueLevelField
AbapCatalog.sqlViewName PJPFIXASSET view
VDM.viewType #COMPOSITE view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
VDM.private true view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.usageType.sizeCategory #S view
ClientHandling.algorithm #SESSION_VARIABLE view
AccessControl.authorizationCheck #NOT_REQUIRED view

Fields (23)

KeyFieldSource TableSource FieldDescription
KEY CompanyCode MAIN CompanyCode Receiver Company Code
KEY MasterFixedAsset MasterFixedAsset Fixed Asset
KEY FixedAsset FixedAsset Sub-number
AssetClass AssetClass Asset Class
FixedAssetDescription FixedAssetDescription Description
AssetAccountDetermination AssetAccountDetermination Account Determ.
AssetStatusAtPurchase AssetStatusAtPurchase
IsLineItemSettled MAIN IsLineItemSettled
QuantityendasQuantity
BaseUnit BaseUnit Unit of Measure
BusinessArea _FixedAssetAssgmt BusinessArea Business Area
CostCenter _FixedAssetAssgmt CostCenter Cost Center
Plant _FixedAssetAssgmt Plant Valuation Area
AssetCapitalizationDate LDG AssetCapitalizationDate Asset Capitalization
AssetDeactivationDate LDG AssetDeactivationDate
AcquisitionValueDate LDG AcquisitionValueDate
ValidityStartDate AVL ValidityStartDate Validity Start Date
ValidityEndDate AVL ValidityEndDate ValidTo
DepreciationStartDate AVL DepreciationStartDate
AssetRealDepreciationArea AVL AssetRealDepreciationArea
DepreciationKey AVL DepreciationKey
PlannedUsefulLifeInYears AVL PlannedUsefulLifeInYears Planned Use Life Yr.
PlannedUsefulLifeInPeriods AVL PlannedUsefulLifeInPeriods

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_JP_FixedAsset.
-- 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: PJPFIXASSET
-- Parameters: p_switchstatus : char03, p_ledger : fins_ledger, p_validfrom : bdatu, p_DepArea : afabe_d

CREATE VIEW P_JP_FixedAsset AS
SELECT
  MAIN.CompanyCode AS CompanyCode,
  MasterFixedAsset,
  FixedAsset,
  AssetClass,
  FixedAssetDescription,
  AssetAccountDetermination,
  AssetStatusAtPurchase,
  MAIN.IsLineItemSettled AS IsLineItemSettled,
  case :p_switchstatus when 'OFF' then Quantity else QTY.Quantity end as Quantity AS QuantityendasQuantity,
  BaseUnit,
  _FixedAssetAssgmt.BusinessArea AS BusinessArea,
  _FixedAssetAssgmt.CostCenter AS CostCenter,
  _FixedAssetAssgmt.Plant AS Plant,
  LDG.AssetCapitalizationDate AS AssetCapitalizationDate,
  LDG.AssetDeactivationDate AS AssetDeactivationDate,
  LDG.AcquisitionValueDate AS AcquisitionValueDate,
  AVL.ValidityStartDate AS ValidityStartDate,
  AVL.ValidityEndDate AS ValidityEndDate,
  AVL.DepreciationStartDate AS DepreciationStartDate,
  AVL.AssetRealDepreciationArea AS AssetRealDepreciationArea,
  AVL.DepreciationKey AS DepreciationKey,
  AVL.PlannedUsefulLifeInYears AS PlannedUsefulLifeInYears,
  AVL.PlannedUsefulLifeInPeriods AS PlannedUsefulLifeInPeriods
LEFT OUTER JOIN I_AssetValuationForLedger AS AVL ON MAIN.CompanyCode = AVL.CompanyCode AND MAIN.MasterFixedAsset = AVL.MasterFixedAsset AND MAIN.FixedAsset = AVL.FixedAsset AND AVL.Ledger = :p_ledger AND AVL.AssetRealDepreciationArea = :p_DepArea AND AVL.ValidityEndDate >= :p_validfrom AND AVL.ValidityStartDate <= :p_validfrom  -- association [0..1]
LEFT OUTER JOIN I_FixedAssetForLedger AS LDG ON MAIN.CompanyCode = LDG.CompanyCode AND MAIN.MasterFixedAsset = LDG.MasterFixedAsset AND MAIN.FixedAsset = LDG.FixedAsset AND LDG.Ledger = :p_ledger  -- association [0..1]
LEFT OUTER JOIN I_FixedAssetCountryData AS CountryData ON MAIN.CompanyCode = CountryData.CompanyCode AND MAIN.MasterFixedAsset = CountryData.MasterFixedAsset AND MAIN.FixedAsset = CountryData.FixedAsset  -- association [1..1]
LEFT OUTER JOIN I_FixedAssetAssgmt AS _FixedAssetAssgmt ON MAIN.CompanyCode = _FixedAssetAssgmt.CompanyCode AND MAIN.MasterFixedAsset = _FixedAssetAssgmt.MasterFixedAsset AND MAIN.FixedAsset = _FixedAssetAssgmt.FixedAsset AND _FixedAssetAssgmt.ValidityStartDate <= :p_validfrom AND _FixedAssetAssgmt.ValidityEndDate >= :p_validfrom  -- association [0..1]
LEFT OUTER JOIN P_JP_AssetQuantity AS QTY ON MAIN.CompanyCode = QTY.CompanyCode AND MAIN.MasterFixedAsset = QTY.MasterFixedAsset AND MAIN.FixedAsset = QTY.FixedAsset AND QTY.Ledger = :p_ledger  -- association [0..1]
;