FAA_ASSETS4

DDL: FAA_ASSETS4 SQL: FAAVASSETS4 Type: view

Unit Test View for Asset

FAA_ASSETS4 is a CDS View that provides data about "Unit Test View for Asset" in SAP S/4HANA. It reads from 3 data sources (faat_md, faat_md_root, t001) and exposes 18 fields with key fields companycode, fixedasset.

Data Sources (3)

SourceAliasJoin Type
faat_md main left_outer
faat_md_root root from
t001 t001 left_outer

Annotations (9)

NameValueLevelField
AbapCatalog.sqlViewName FAAVASSETS4 view
ClientHandling.algorithm #SESSION_VARIABLE view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #NOT_REQUIRED view
EndUserText.label Unit Test View for Asset view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.sizeCategory #XXL view
ObjectModel.usageType.dataClass #MASTER view

Fields (18)

KeyFieldSource TableSource FieldDescription
KEY companycode faat_md_root comp_code Procuring Comp. Cde
KEY fixedasset faat_md_root asset_subno Sub-number
assetclass faat_md asset_class Asset Class
quantity 0
baseunit faat_md base_unit Material Base Unit
inventory faat_md inventory_number Inventory No.
currency t001 waers Transaction Currency
hashistory faat_md_root is_historical_managed Manage Historically
areasizeunit faat_md surface_area_unit Area Unit
supplier faat_md supplier_no Vendor
CreationDate
isgroupasset
ismainasset faat_md_root is_main_asset Main Asset
municipality faat_md land_municipality Municipality
landplot faat_md land_plot_number Plot No.
areasize faat_md surface_area Area
leasetype faat_md lease_type Type
legacyasset faat_md legacy_asset_no Legacy Main No.

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_ASSETS4.
-- 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: FAAVASSETS4

CREATE VIEW FAA_ASSETS4 AS
SELECT
  root.comp_code AS companycode,
  root.asset_subno AS fixedasset,
  main.asset_class AS assetclass,
  0 AS quantity,
  main.base_unit AS baseunit,
  main.inventory_number AS inventory,
  t001.waers AS currency,
  root.is_historical_managed AS hashistory,
  main.surface_area_unit AS areasizeunit,
  main.supplier_no AS supplier,
  cast( cast(substring( cast(main.creation_datetime as abap.char(30)) , 1 , 8) as abap.dats(8)) as erdat ) AS CreationDate,
  '' AS isgroupasset,
  root.is_main_asset AS ismainasset,
  main.land_municipality AS municipality,
  main.land_plot_number AS landplot,
  main.surface_area AS areasize,
  main.lease_type AS leasetype,
  main.legacy_asset_no AS legacyasset
FROM faat_md_root AS root
LEFT OUTER JOIN faat_md AS main ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN t001 ON /* join condition not captured in parsed metadata */
;