FAA_ES_ASSET_MD

DDL: FAA_ES_ASSET_MD SQL: FAAESMD Type: view Package: FINS_FAA_MD_COMMON

Fixed Asset Master Data for Enterprise Search

FAA_ES_ASSET_MD is a CDS View that provides data about "Fixed Asset Master Data for Enterprise Search" in SAP S/4HANA. It reads from 2 data sources (faat_md, faat_md_root) and exposes 50 fields with key fields CompanyCode, MasterFixedAsset, FixedAsset. It has 9 associations to related views. Part of development package FINS_FAA_MD_COMMON.

Data Sources (2)

SourceAliasJoin Type
faat_md main left_outer
faat_md_root root from

Associations (9)

CardinalityTargetAliasCondition
[0..1] faac_acls0 _AssetClass $projection.AssetClass = _AssetClass.asset_class
[0..1] faac_acls0_t _AssetClassText $projection.AssetClass = _AssetClassText.asset_class and _AssetClassText.language = $session.system_language
[0..1] I_CompanyCode _CompanyCode $projection.CompanyCode = _CompanyCode.CompanyCode
[0..*] FAA_ES_ASSET_MD_TDD _TO_FAAT_MD_TDD $projection.CompanyCode = _TO_FAAT_MD_TDD.CompanyCode and $projection.MasterFixedAsset = _TO_FAAT_MD_TDD.MasterFixedAsset and $projection.FixedAsset = _TO_FAAT_MD_TDD.FixedAsset
[0..1] faac_acctdet0 _AssetAccountDetermination $projection.assetaccountdetermination = _AssetAccountDetermination.gl_account_det
[0..1] faac_acctdet0_t _AssetAccountDeterminationText $projection.assetaccountdetermination = _AssetAccountDeterminationText.gl_account_det and _AssetAccountDeterminationText.language = $session.system_language
[1..1] I_User _LastChangedByUserName $projection.LastChangedByUser = _LastChangedByUserName.UserID
[1..1] I_User _CreatedByUserName $projection.CreatedByUser = _CreatedByUserName.UserID
[1..1] E_FixedAsset _Extension $projection.MasterFixedAsset = _Extension.MasterFixedAsset and $projection.FixedAsset = _Extension.FixedAsset and $projection.CompanyCode = _Extension.CompanyCode

Annotations (8)

NameValueLevelField
AbapCatalog.sqlViewName FAAESMD view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
ClientHandling.algorithm #SESSION_VARIABLE view
AccessControl.authorizationCheck #NOT_REQUIRED view
ObjectModel.usageType.serviceQuality #P view
ObjectModel.usageType.sizeCategory #L view
EndUserText.label Fixed Asset Master Data for Enterprise Search view

Fields (50)

KeyFieldSource TableSource FieldDescription
KEY CompanyCode faat_md_root comp_code Procuring Comp. Cde
KEY MasterFixedAsset faat_md_root asset_no Asset
KEY FixedAsset faat_md_root asset_subno Sub-number
CompanyCodeName _CompanyCode CompanyCodeName Company Name
MasterFixedAssetDescription faat_md description Well Code Des.
FixedAssetDescription faat_md description Well Code Des.
AssetAdditionalDescription faat_md add_description Description (2)
AssetClass faat_md asset_class Asset Class
AssetClassName _AssetClassText description_short Short Text
CreatedByUser faat_md creation_user User
CreatedByUserName _CreatedByUserName UserDescription Full Name
CreationDateTime faat_md creation_datetime Time Stamp
LastChangedByUser faat_md lastchange_user Last Changed By
LastChangedByUserName _LastChangedByUserName UserDescription Full Name
LastChangeDateTime faat_md lastchange_datetime Time Stamp
AssetManufacturerName faat_md manufacturer Manufacturer
InvestmentOrder faat_md investment_io_origin Inv. Order
AssetTypeName faat_md asset_type_name Type Name
InventoryNote faat_md inventory_note Inventory Note
Inventory faat_md inventory_number Inventory No.
AssetSerialNumber faat_md serial_number Serial Number of Proposal Descriptions
ControllingArea _TO_FAAT_MD_TDD ControllingArea Controlling Area
ValidityEndDate _TO_FAAT_MD_TDD ValidityEndDate ValidTo
CostCenter _TO_FAAT_MD_TDD CostCenter Cost Center
CostCenterName
AssetAccountDeterminationDesc _AssetAccountDeterminationText description_short Short Text
AssetLocation _TO_FAAT_MD_TDD AssetLocation Location
AssetLocationName
BusinessArea _TO_FAAT_MD_TDD BusinessArea Business Area
BusinessAreaName
Plant _TO_FAAT_MD_TDD Plant Valuation Area
PlantName
supplier faat_md supplier_no Vendor
PersonnelNumber _TO_FAAT_MD_TDD PersonnelNumber Personnel No.
VehicleLicensePlateNumber _TO_FAAT_MD_TDD vehiclelicenseplatenumber
BudgetPeriod _TO_FAAT_MD_TDD budgetperiod Budget Period
Fund _TO_FAAT_MD_TDD Fund Sender Fund
FunctionalArea _TO_FAAT_MD_TDD functionalarea Sendr Fctl Area
GrantID _TO_FAAT_MD_TDD grantid Sender Grant
ProfitCenter _TO_FAAT_MD_TDD ProfitCenter Profit Center
InternalOrder _TO_FAAT_MD_TDD internalorder Order
ResponsibleCostCenter _TO_FAAT_MD_TDD responsiblecostcenter Responsible Cost Center
_CompanyCode _CompanyCode
_AssetClass _AssetClass
_AssetClassText _AssetClassText
_TO_FAAT_MD_TDD _TO_FAAT_MD_TDD
_CostCenter _TO_FAAT_MD_TDD _CostCenter
_ProfitCenter _TO_FAAT_MD_TDD _ProfitCenter
_BusinessArea _TO_FAAT_MD_TDD _BusinessArea
_Plant _TO_FAAT_MD_TDD _Plant

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 FAA_ES_ASSET_MD.
-- 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: FAAESMD

CREATE VIEW FAA_ES_ASSET_MD AS
SELECT
  root.comp_code AS CompanyCode,
  root.asset_no AS MasterFixedAsset,
  root.asset_subno AS FixedAsset,
  _CompanyCode.CompanyCodeName AS CompanyCodeName,
  main.description AS MasterFixedAssetDescription,
  main.description AS FixedAssetDescription,
  main.add_description AS AssetAdditionalDescription,
  main.asset_class AS AssetClass,
  _AssetClassText.description_short AS AssetClassName,
  main.creation_user AS CreatedByUser,
  _CreatedByUserName.UserDescription AS CreatedByUserName,
  main.creation_datetime AS CreationDateTime,
  main.lastchange_user AS LastChangedByUser,
  _LastChangedByUserName.UserDescription AS LastChangedByUserName,
  main.lastchange_datetime AS LastChangeDateTime,
  main.manufacturer AS AssetManufacturerName,
  main.investment_io_origin AS InvestmentOrder,
  main.asset_type_name AS AssetTypeName,
  main.inventory_note AS InventoryNote,
  main.inventory_number AS Inventory,
  main.serial_number AS AssetSerialNumber,
  _TO_FAAT_MD_TDD.ControllingArea AS ControllingArea,
  _TO_FAAT_MD_TDD.ValidityEndDate AS ValidityEndDate,
  _TO_FAAT_MD_TDD.CostCenter AS CostCenter,
  _TO_FAAT_MD_TDD._TO_CSKT[ 1: spras = $session.system_language ].ktext AS CostCenterName,
  _AssetAccountDeterminationText.description_short AS AssetAccountDeterminationDesc,
  _TO_FAAT_MD_TDD.AssetLocation AS AssetLocation,
  _TO_FAAT_MD_TDD._AssetLocation.LocationName AS AssetLocationName,
  _TO_FAAT_MD_TDD.BusinessArea AS BusinessArea,
  _TO_FAAT_MD_TDD._TO_TGSBT[ 1: spras = $session.system_language ].gtext AS BusinessAreaName,
  _TO_FAAT_MD_TDD.Plant AS Plant,
  _TO_FAAT_MD_TDD._TO_T001W.name1 AS PlantName,
  main.supplier_no AS supplier,
  _TO_FAAT_MD_TDD.PersonnelNumber AS PersonnelNumber,
  _TO_FAAT_MD_TDD.vehiclelicenseplatenumber AS VehicleLicensePlateNumber,
  _TO_FAAT_MD_TDD.budgetperiod AS BudgetPeriod,
  _TO_FAAT_MD_TDD.Fund AS Fund,
  _TO_FAAT_MD_TDD.functionalarea AS FunctionalArea,
  _TO_FAAT_MD_TDD.grantid AS GrantID,
  _TO_FAAT_MD_TDD.ProfitCenter AS ProfitCenter,
  _TO_FAAT_MD_TDD.internalorder AS InternalOrder,
  _TO_FAAT_MD_TDD.responsiblecostcenter AS ResponsibleCostCenter,
  _TO_FAAT_MD_TDD._CostCenter AS _CostCenter,
  _TO_FAAT_MD_TDD._ProfitCenter AS _ProfitCenter,
  _TO_FAAT_MD_TDD._BusinessArea AS _BusinessArea,
  _TO_FAAT_MD_TDD._Plant AS _Plant
FROM faat_md_root AS root
LEFT OUTER JOIN faat_md AS main ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN faac_acls0 AS _AssetClass ON AssetClass = _AssetClass.asset_class  -- association [0..1]
LEFT OUTER JOIN faac_acls0_t AS _AssetClassText ON AssetClass = _AssetClassText.asset_class AND _AssetClassText.language = $session.system_language  -- association [0..1]
LEFT OUTER JOIN I_CompanyCode AS _CompanyCode ON CompanyCode = _CompanyCode.CompanyCode  -- association [0..1]
LEFT OUTER JOIN FAA_ES_ASSET_MD_TDD AS _TO_FAAT_MD_TDD ON CompanyCode = _TO_FAAT_MD_TDD.CompanyCode AND MasterFixedAsset = _TO_FAAT_MD_TDD.MasterFixedAsset AND FixedAsset = _TO_FAAT_MD_TDD.FixedAsset  -- association [0..*]
LEFT OUTER JOIN faac_acctdet0 AS _AssetAccountDetermination ON assetaccountdetermination = _AssetAccountDetermination.gl_account_det  -- association [0..1]
LEFT OUTER JOIN faac_acctdet0_t AS _AssetAccountDeterminationText ON assetaccountdetermination = _AssetAccountDeterminationText.gl_account_det AND _AssetAccountDeterminationText.language = $session.system_language  -- association [0..1]
LEFT OUTER JOIN I_User AS _LastChangedByUserName ON LastChangedByUser = _LastChangedByUserName.UserID  -- association [1..1]
LEFT OUTER JOIN I_User AS _CreatedByUserName ON CreatedByUser = _CreatedByUserName.UserID  -- association [1..1]
LEFT OUTER JOIN E_FixedAsset AS _Extension ON MasterFixedAsset = _Extension.MasterFixedAsset AND FixedAsset = _Extension.FixedAsset AND CompanyCode = _Extension.CompanyCode  -- association [1..1]
;