P_FixedAssetCountryData

DDL: P_FIXEDASSETCOUNTRYDATA Type: view BASIC

P_FixedAssetCountryData is a Basic CDS View in SAP S/4HANA. It reads from 4 data sources (anla, glo_faat_md, P_TF_AssetRedesignSwitchStatus, P_TF_AssetRedesignSwitchStatus) and exposes 89 fields with key fields CompanyCode, MasterFixedAsset, FixedAsset, Masterfixedasset, FixedAsset.

Data Sources (4)

SourceAliasJoin Type
anla anla from
glo_faat_md glo_faat_md union_all
P_TF_AssetRedesignSwitchStatus P_TF_AssetRedesignSwitchStatus inner
P_TF_AssetRedesignSwitchStatus P_TF_AssetRedesignSwitchStatus inner

Annotations (8)

NameValueLevelField
AbapCatalog.sqlViewName PFIASTCNTRYDATA view
AbapCatalog.preserveKey true view
AbapCatalog.compiler.compareFilter true view
VDM.viewType #BASIC view
VDM.private true view
ClientHandling.algorithm #SESSION_VARIABLE view
Metadata.ignorePropagatedAnnotations true view
AccessControl.authorizationCheck #NOT_REQUIRED view

Fields (89)

KeyFieldSource TableSource FieldDescription
KEY CompanyCode anla bukrs Value
KEY MasterFixedAsset anla anln1 Asset
KEY FixedAsset anla anln2 Sub-number
NationalClassification glofaaassetdata glo_natl_clfn_code Natl. Clfn. Code
TaxDepreciationGroup glofaaassetdata glo_tax_depr_grp Tax Depr. Group
Country t001 land1 Trip Ctry/Reg
RU_LongSerialNumber glofaaassetdata glo_rus_sernr RU Serial No.
RU_WorkwearMaterial glofaaassetdata glo_rus_matnr Material
RU_RetiredMasterFixedAsset No. Ret. Assset
RU_RetiredFixedAsset SubNo. Ret. Asset
RU_ProdTraceabilityStartDate glofaaassetdata glo_rus_trc_begd Traceability Start
RU_ProdTraceabilityEndDate glofaaassetdata glo_rus_trc_endd Traceability End
RU_AssetTNVED glofaaassetdata glo_rus_trc_tnved TNVED Code
RU_AssetTransportType glofaaassetdata glo_rus_ttx_type Transport Type
RU_VehicleIdNumber glofaaassetdata glo_rus_ttx_vin VIN
RU_ManufacturingDate glofaaassetdata glo_rus_ttx_mnfd Manufacturing Date
RU_VehicleEcologicalClass glofaaassetdata glo_rus_eco_cls Ecological Class
RU_PropertyAddress glofaaassetdata glo_rus_prt_addr RU Property Address
RU_PropertyOwnershipRegnDate glofaaassetdata glo_rus_ltx_owrd Registration Date
RU_PropertyOwnershipTermnDate glofaaassetdata glo_rus_ltx_owtd Termination Date
JP_Annex16AssetStructure glofaaassetdata glo_jp_ax16_strc Asset Struct.
JP_Annex16AssetItem glofaaassetdata glo_jp_ax16_item Asset Item
JP_Annex16LeasingAgrmtDate Lease Agre.Date
JP_PrptyTxRptCity Japan City Code
JP_PrptyTxRptClassfctnKey Japan Class. Key
JP_PrptyTxRptSpclDepr Spec.Depr. Code
JP_PrptyTxRptAddlDepr glofaaassetdata glo_jp_ptx_prdcd Additional Dep. Code
IN_AssetBlock glofaaassetdata glo_in_blk_key Block Key
IN_AssetPutToUseDate glofaaassetdata glo_in_ast_use Asset put to use
IN_AdditionalAssetBlock glofaaassetdata glo_in_adnlblk Addnl Blk Key
IN_AssetIsResearchAndDev glofaaassetdata glo_in_r_d_asset R & D Asset
IN_AssetIsPriorYear glofaaassetdata glo_in_prior_yr Prior year
PT_VehicleTypeByEnergy glofaaassetdata glo_pt_vehicletype Vehicle Type
PT_VehicleIsWithoutLimit glofaaassetdata glo_pt_isvehiclewolimit Veh. W/o. Limit
PT_BigRepairAssetLink glofaaassetdata glo_pt_repairassetlink Repair Link
PT_LandAssetLink glofaaassetdata glo_pt_landassetlink Land Link
PT_AssetReportFormCategory glofaaassetdata glo_pt_assetrepformcat Form Categ.
PT_AmortizedAssetIsReevaluated glofaaassetdata glo_pt_isamassetreval Amort. Reval.
IL_InvmtCtrInternalCode Internal code
IL_InvmtCtrApprovalDocNmbr Approval document #
IL_InvmtCtrApprovalVersion Approval version
IL_InvmtCtrBogusAssetNumber inv. asset #
IL_InvmtCtrAssetVersion Asset version
RS_GroupDeprExclusionYear Exclusion Year
comp_codeasCompanyCode
KEY Masterfixedasset glo_faat_md asset_no Asset
KEY FixedAsset glo_faat_md asset_subno Sub-number
NationalClassification glo_faat_md glo_natl_clfn_code Natl. Clfn. Code
TaxDepreciationGroup glo_faat_md glo_tax_depr_grp Tax Depr. Group
Country t001 land1 Trip Ctry/Reg
RU_LongSerialNumber glo_faat_md glo_rus_sernr RU Serial No.
RU_WorkwearMaterial glo_faat_md glo_rus_matnr Material
RU_RetiredMasterFixedAsset glo_faat_md glo_rus_ret_asset_num No. Ret. Assset
RU_RetiredFixedAsset glo_faat_md glo_rus_ret_asset_sub SubNo. Ret. Asset
RU_ProdTraceabilityStartDate glo_faat_md glo_rus_trc_begd Traceability Start
RU_ProdTraceabilityEndDate glo_faat_md glo_rus_trc_endd Traceability End
RU_AssetTNVED glo_faat_md glo_rus_trc_tnved TNVED Code
RU_AssetTransportType glo_faat_md glo_rus_ttx_type Transport Type
RU_VehicleIdNumber glo_faat_md glo_rus_ttx_vin VIN
RU_ManufacturingDate glo_faat_md glo_rus_ttx_mnfd Manufacturing Date
RU_VehicleEcologicalClass glo_faat_md glo_rus_eco_cls Ecological Class
RU_PropertyAddress glo_faat_md glo_rus_prt_addr RU Property Address
RU_PropertyOwnershipRegnDate glo_faat_md glo_rus_prt_owrd Registration Date
RU_PropertyOwnershipTermnDate glo_faat_md glo_rus_prt_owtd Termination Date
JP_Annex16AssetStructure glo_faat_md glo_jp_ax16_strc Asset Struct.
JP_Annex16AssetItem glo_faat_md glo_jp_ax16_item Asset Item
JP_Annex16LeasingAgrmtDate glo_faat_md glo_jp_ax16_lease_agreement_da Lease Agre.Date
JP_PrptyTxRptCity glo_faat_md glo_jp_ptx_city_code Japan City Code
JP_PrptyTxRptClassfctnKey glo_faat_md glo_jp_ptx_classification_key Japan Class. Key
JP_PrptyTxRptSpclDepr glo_faat_md glo_jp_ptx_special_dep_code Spec.Depr. Code
JP_PrptyTxRptAddlDepr glo_faat_md glo_jp_ptx_additional_depr_cod Additional Dep. Code
IN_AssetBlock glo_faat_md glo_in_blk_key Block Key
IN_AssetPutToUseDate glo_faat_md glo_in_ast_use Asset put to use
IN_AdditionalAssetBlock glo_faat_md glo_in_adnlblk Addnl Blk Key
IN_AssetIsResearchAndDev glo_faat_md glo_in_r_d_asset R & D Asset
IN_AssetIsPriorYear glo_faat_md glo_in_prior_yr Prior year
PT_VehicleTypeByEnergy glo_faat_md glo_pt_vehicletype Vehicle Type
PT_VehicleIsWithoutLimit glo_faat_md glo_pt_isvehiclewolimit Veh. W/o. Limit
PT_BigRepairAssetLink glo_faat_md glo_pt_repairassetlink Repair Link
PT_LandAssetLink glo_faat_md glo_pt_landassetlink Land Link
PT_AssetReportFormCategory glo_faat_md glo_pt_assetrepformcat Form Categ.
PT_AmortizedAssetIsReevaluated glo_faat_md glo_pt_isamassetreval Amort. Reval.
IL_InvmtCtrInternalCode glo_faat_md glo_il_internal_code Internal code
IL_InvmtCtrApprovalDocNmbr glo_faat_md glo_il_approval_number Approval document #
IL_InvmtCtrApprovalVersion glo_faat_md glo_il_approval_version Approval version
IL_InvmtCtrBogusAssetNumber glo_faat_md glo_il_bogus_anln1 inv. asset #
IL_InvmtCtrAssetVersion glo_faat_md glo_il_asset_version Asset version
RS_GroupDeprExclusionYear glo_faat_md glo_rs_exclusion_year Exclusion Year
RS_AssetLastInvoiceDate glo_faat_md glo_rs_last_invoice_date Last Invoice Date

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_FixedAssetCountryData.
-- 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_FixedAssetCountryData AS
SELECT
  anla.bukrs AS CompanyCode,
  anla.anln1 AS MasterFixedAsset,
  anla.anln2 AS FixedAsset,
  glofaaassetdata.glo_natl_clfn_code AS NationalClassification,
  glofaaassetdata.glo_tax_depr_grp AS TaxDepreciationGroup,
  t001.land1 AS Country,
  glofaaassetdata.glo_rus_sernr AS RU_LongSerialNumber,
  glofaaassetdata.glo_rus_matnr AS RU_WorkwearMaterial,
  cast('' as glo_ru_retired_asset_number) AS RU_RetiredMasterFixedAsset,
  cast('' as glo_ru_retired_asset_subnumber) AS RU_RetiredFixedAsset,
  glofaaassetdata.glo_rus_trc_begd AS RU_ProdTraceabilityStartDate,
  glofaaassetdata.glo_rus_trc_endd AS RU_ProdTraceabilityEndDate,
  glofaaassetdata.glo_rus_trc_tnved AS RU_AssetTNVED,
  glofaaassetdata.glo_rus_ttx_type AS RU_AssetTransportType,
  glofaaassetdata.glo_rus_ttx_vin AS RU_VehicleIdNumber,
  glofaaassetdata.glo_rus_ttx_mnfd AS RU_ManufacturingDate,
  glofaaassetdata.glo_rus_eco_cls AS RU_VehicleEcologicalClass,
  glofaaassetdata.glo_rus_prt_addr AS RU_PropertyAddress,
  glofaaassetdata.glo_rus_ltx_owrd AS RU_PropertyOwnershipRegnDate,
  glofaaassetdata.glo_rus_ltx_owtd AS RU_PropertyOwnershipTermnDate,
  glofaaassetdata.glo_jp_ax16_strc AS JP_Annex16AssetStructure,
  glofaaassetdata.glo_jp_ax16_item AS JP_Annex16AssetItem,
  cast(anla.lvdat as glo_anx16_lease_agreement_date) AS JP_Annex16LeasingAgrmtDate,
  cast(anla.gdlgrp as glo_jp_city_code) AS JP_PrptyTxRptCity,
  cast(anla.vmgli as glo_jp_ptx_classification_key) AS JP_PrptyTxRptClassfctnKey,
  cast(anla.grund as glo_jp_sdc) AS JP_PrptyTxRptSpclDepr,
  glofaaassetdata.glo_jp_ptx_prdcd AS JP_PrptyTxRptAddlDepr,
  glofaaassetdata.glo_in_blk_key AS IN_AssetBlock,
  glofaaassetdata.glo_in_ast_use AS IN_AssetPutToUseDate,
  glofaaassetdata.glo_in_adnlblk AS IN_AdditionalAssetBlock,
  glofaaassetdata.glo_in_r_d_asset AS IN_AssetIsResearchAndDev,
  glofaaassetdata.glo_in_prior_yr AS IN_AssetIsPriorYear,
  glofaaassetdata.glo_pt_vehicletype AS PT_VehicleTypeByEnergy,
  glofaaassetdata.glo_pt_isvehiclewolimit AS PT_VehicleIsWithoutLimit,
  glofaaassetdata.glo_pt_repairassetlink AS PT_BigRepairAssetLink,
  glofaaassetdata.glo_pt_landassetlink AS PT_LandAssetLink,
  glofaaassetdata.glo_pt_assetrepformcat AS PT_AssetReportFormCategory,
  glofaaassetdata.glo_pt_isamassetreval AS PT_AmortizedAssetIsReevaluated,
  cast(anla.internal_code as glo_il_internal_code) AS IL_InvmtCtrInternalCode,
  cast(anla.approval_number as glo_il_approval_number) AS IL_InvmtCtrApprovalDocNmbr,
  cast(anla.approval_version as glo_il_approval_version) AS IL_InvmtCtrApprovalVersion,
  cast(anla.bogus_anln1 as glo_il_bogus_anln1) AS IL_InvmtCtrBogusAssetNumber,
  cast(anla.asset_version as glo_il_asset_version) AS IL_InvmtCtrAssetVersion,
  cast('0000' as glo_rs_exclusion_year) AS RS_GroupDeprExclusionYear,
  cast('00000000' as glo_rs_last_invoice_date) as RS_AssetLastInvoiceDate AS comp_codeasCompanyCode,
  glo_faat_md.glo_rs_last_invoice_date AS RS_AssetLastInvoiceDate
FROM anla
INNER JOIN P_TF_AssetRedesignSwitchStatus ON /* join condition not captured in parsed metadata */
-- UNION ALL with additional select branch(es): glo_faat_md
;