P_FixedAssetPlanValue

DDL: P_FIXEDASSETPLANVALUE Type: view BASIC Package: FINS_FIS_AA_MD

P_FixedAssetPlanValue

P_FixedAssetPlanValue is a Basic CDS View that provides data about "P_FixedAssetPlanValue" in SAP S/4HANA. It reads from 2 data sources (faat_plan_values, P_ACDOCP_COM) and exposes 71 fields with key fields CompanyCode, MasterFixedAsset, FixedAsset, FiscalYear, AssetDepreciationArea. Part of development package FINS_FIS_AA_MD.

Data Sources (2)

SourceAliasJoin Type
faat_plan_values Plan from
P_ACDOCP_COM Plan union_all

Annotations (11)

NameValueLevelField
AbapCatalog.sqlViewName PFASSETPLAN view
AbapCatalog.preserveKey true view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #NOT_REQUIRED view
VDM.private true view
VDM.viewType #BASIC view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #XXL view
ObjectModel.usageType.dataClass #MIXED view
ClientHandling.algorithm #SESSION_VARIABLE view
Metadata.ignorePropagatedAnnotations true view

Fields (71)

KeyFieldSource TableSource FieldDescription
KEY CompanyCode P_ACDOCP_COM bukrs
KEY MasterFixedAsset P_ACDOCP_COM anln1
KEY FixedAsset P_ACDOCP_COM anln2
KEY FiscalYear P_ACDOCP_COM gjahr
KEY AssetDepreciationArea P_ACDOCP_COM afabe
KEY FiscalPeriod P_ACDOCP_COM poper
KEY SubLedgerAcctLineItemType
LedgerFiscalYear P_ACDOCP_COM gjahr
PlannedValueIsInclusive
Ledger P_ACDOCP_COM rldnr
AssetAcctTransClassfctn P_ACDOCP_COM movcat
GroupMasterFixedAsset P_ACDOCP_COM anlgr
GroupFixedAsset P_ACDOCP_COM anlgr2
FinancialAccountType
JointVentureCostRecoveryCode P_ACDOCP_COM recid
DepreciationIsDue P_ACDOCP_COM xpost
CompanyCodeCurrency P_ACDOCP_COM rhcur
AmountInCompanyCodeCurrency P_ACDOCP_COM hsl
GlobalCurrency P_ACDOCP_COM rkcur
AmountInGlobalCurrency P_ACDOCP_COM ksl
FreeDefinedCurrency1 P_ACDOCP_COM rocur
AmountInFreeDefinedCurrency1 P_ACDOCP_COM osl
FreeDefinedCurrency2 P_ACDOCP_COM rvcur
AmountInFreeDefinedCurrency2 P_ACDOCP_COM vsl
FreeDefinedCurrency3 P_ACDOCP_COM rbcur
AmountInFreeDefinedCurrency3 P_ACDOCP_COM bsl
FreeDefinedCurrency4 P_ACDOCP_COM rccur
AmountInFreeDefinedCurrency4 P_ACDOCP_COM csl
FreeDefinedCurrency5 P_ACDOCP_COM rdcur
AmountInFreeDefinedCurrency5 P_ACDOCP_COM dsl
FreeDefinedCurrency6 P_ACDOCP_COM recur
AmountInFreeDefinedCurrency6 P_ACDOCP_COM esl
FreeDefinedCurrency7 P_ACDOCP_COM rfcur
AmountInFreeDefinedCurrency7 P_ACDOCP_COM fsl
FreeDefinedCurrency8 P_ACDOCP_COM rgcur
rbukrsasCompanyCode
KEY MasterFixedAsset P_ACDOCP_COM anln1
KEY FixedAsset P_ACDOCP_COM anln2
KEY FiscalYear P_ACDOCP_COM gjahr
KEY AssetDepreciationArea P_ACDOCP_COM afabe
KEY FiscalPeriod P_ACDOCP_COM poper
KEY SubLedgerAcctLineItemType
LedgerFiscalYear P_ACDOCP_COM ryear
PlannedValueIsInclusive
Ledger P_ACDOCP_COM rldnr
AssetAcctTransClassfctn P_ACDOCP_COM movcat
GroupMasterFixedAsset
GroupFixedAsset
FinancialAccountType
JointVentureCostRecoveryCode
DepreciationIsDue
CompanyCodeCurrency P_ACDOCP_COM rhcur
AmountInCompanyCodeCurrency P_ACDOCP_COM hsl
GlobalCurrency P_ACDOCP_COM rkcur
AmountInGlobalCurrency P_ACDOCP_COM ksl
FreeDefinedCurrency1 P_ACDOCP_COM rocur
AmountInFreeDefinedCurrency1 P_ACDOCP_COM osl
FreeDefinedCurrency2 P_ACDOCP_COM rvcur
AmountInFreeDefinedCurrency2 P_ACDOCP_COM vsl
FreeDefinedCurrency3 P_ACDOCP_COM rbcur
AmountInFreeDefinedCurrency3 P_ACDOCP_COM bsl
FreeDefinedCurrency4 P_ACDOCP_COM rccur
AmountInFreeDefinedCurrency4 P_ACDOCP_COM csl
FreeDefinedCurrency5 P_ACDOCP_COM rdcur
AmountInFreeDefinedCurrency5 P_ACDOCP_COM dsl
FreeDefinedCurrency6 P_ACDOCP_COM recur
AmountInFreeDefinedCurrency6 P_ACDOCP_COM esl
FreeDefinedCurrency7 P_ACDOCP_COM rfcur
AmountInFreeDefinedCurrency7 P_ACDOCP_COM fsl
FreeDefinedCurrency8 P_ACDOCP_COM rgcur
AmountInFreeDefinedCurrency8 P_ACDOCP_COM gsl
@AbapCatalog: { sqlViewName: 'PFASSETPLAN',
                preserveKey:true,
                compiler.compareFilter: true}
@AccessControl.authorizationCheck: #NOT_REQUIRED
@VDM.private: true
@VDM.viewType: #BASIC
@ObjectModel: { usageType.serviceQuality: #C,
                usageType.sizeCategory: #XXL,
                usageType.dataClass: #MIXED }
@ClientHandling.algorithm: #SESSION_VARIABLE
@Metadata.ignorePropagatedAnnotations: true

define view P_FixedAssetPlanValue
  as select  from faat_plan_values as Plan
{
  key Plan.bukrs                                              as CompanyCode,
  key Plan.anln1                                              as MasterFixedAsset,
  key Plan.anln2                                              as FixedAsset,
  key Plan.gjahr                                              as FiscalYear,
  key Plan.afabe                                              as AssetDepreciationArea,
  key Plan.poper                                              as FiscalPeriod,
  key cast(Plan.slalittype as fis_slalittype preserving type) as SubLedgerAcctLineItemType,

      @Semantics.fiscal.year: true
      Plan.gjahr                                              as LedgerFiscalYear,
      cast('2' as faa_use_val_ty)                             as PlannedValueIsInclusive,
      Plan.rldnr                                              as Ledger,
      Plan.movcat                                             as AssetAcctTransClassfctn,
      Plan.anlgr                                              as GroupMasterFixedAsset,
      Plan.anlgr2                                             as GroupFixedAsset,
      cast('A' as fis_koart)                                  as FinancialAccountType,
      Plan.recid                                              as JointVentureCostRecoveryCode,
      Plan.xpost                                              as DepreciationIsDue,

      Plan.rhcur                                              as CompanyCodeCurrency,
      Plan.hsl                                                as AmountInCompanyCodeCurrency,

      Plan.rkcur                                              as GlobalCurrency,
      Plan.ksl                                                as AmountInGlobalCurrency,

      Plan.rocur                                              as FreeDefinedCurrency1,
      Plan.osl                                                as AmountInFreeDefinedCurrency1,

      Plan.rvcur                                              as FreeDefinedCurrency2,
      Plan.vsl                                                as AmountInFreeDefinedCurrency2,

      Plan.rbcur                                              as FreeDefinedCurrency3,
      Plan.bsl                                                as AmountInFreeDefinedCurrency3,

      Plan.rccur                                              as FreeDefinedCurrency4,
      Plan.csl                                                as AmountInFreeDefinedCurrency4,

      Plan.rdcur                                              as FreeDefinedCurrency5,
      Plan.dsl                                                as AmountInFreeDefinedCurrency5,

      Plan.recur                                              as FreeDefinedCurrency6,
      Plan.esl                                                as AmountInFreeDefinedCurrency6,

      Plan.rfcur                                              as FreeDefinedCurrency7,
      Plan.fsl                                                as AmountInFreeDefinedCurrency7,

      Plan.rgcur                                              as FreeDefinedCurrency8,
      Plan.gsl                                                as AmountInFreeDefinedCurrency8

}
where
  Plan.movcat <> '00'

union all select from P_ACDOCP_COM as Plan
{
  key Plan.rbukrs                                             as CompanyCode,
  key Plan.anln1                                              as MasterFixedAsset,
  key Plan.anln2                                              as FixedAsset,
  key Plan.gjahr                                              as FiscalYear,
  key Plan.afabe                                              as AssetDepreciationArea,
  key Plan.poper                                              as FiscalPeriod,
  key cast(Plan.slalittype as fis_slalittype preserving type) as SubLedgerAcctLineItemType,

      @Semantics.fiscal.year: true
      Plan.ryear                                              as LedgerFiscalYear,
      cast('2' as faa_use_val_ty)                             as PlannedValueIsInclusive,
      Plan.rldnr                                              as Ledger,
      Plan.movcat                                             as AssetAcctTransClassfctn,
      cast('' as anlgr)                                       as GroupMasterFixedAsset,
      cast('' as anlgr2)                                      as GroupFixedAsset,
      cast('A' as fis_koart)                                  as FinancialAccountType,
      cast('' as jv_recind)                                   as JointVentureCostRecoveryCode,
      cast('' as faa_xpost)                                   as DepreciationIsDue,

      Plan.rhcur                                              as CompanyCodeCurrency,
      Plan.hsl                                                as AmountInCompanyCodeCurrency,

      Plan.rkcur                                              as GlobalCurrency,
      Plan.ksl                                                as AmountInGlobalCurrency,

      Plan.rocur                                              as FreeDefinedCurrency1,
      Plan.osl                                                as AmountInFreeDefinedCurrency1,

      Plan.rvcur                                              as FreeDefinedCurrency2,
      Plan.vsl                                                as AmountInFreeDefinedCurrency2,

      Plan.rbcur                                              as FreeDefinedCurrency3,
      Plan.bsl                                                as AmountInFreeDefinedCurrency3,

      Plan.rccur                                              as FreeDefinedCurrency4,
      Plan.csl                                                as AmountInFreeDefinedCurrency4,

      Plan.rdcur                                              as FreeDefinedCurrency5,
      Plan.dsl                                                as AmountInFreeDefinedCurrency5,

      Plan.recur                                              as FreeDefinedCurrency6,
      Plan.esl                                                as AmountInFreeDefinedCurrency6,

      Plan.rfcur                                              as FreeDefinedCurrency7,
      Plan.fsl                                                as AmountInFreeDefinedCurrency7,

      Plan.rgcur                                              as FreeDefinedCurrency8,
      Plan.gsl                                                as AmountInFreeDefinedCurrency8
}
where
  Plan.category = 'PFXDASSET'