P_AssetClass

DDL: P_ASSETCLASS Type: view BASIC

P_AssetClass is a Basic CDS View in SAP S/4HANA. It reads from 4 data sources (anka, faac_acls0, P_TF_AssetRedesignSwitchStatus, P_TF_AssetRedesignSwitchStatus) and exposes 35 fields with key field AssetClass.

Data Sources (4)

SourceAliasJoin Type
anka anka from
faac_acls0 faac_acls0 union_all
P_TF_AssetRedesignSwitchStatus P_TF_AssetRedesignSwitchStatus inner
P_TF_AssetRedesignSwitchStatus P_TF_AssetRedesignSwitchStatus inner

Annotations (8)

NameValueLevelField
AbapCatalog.sqlViewName PFIASSETCL 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 (35)

KeyFieldSource TableSource FieldDescription
KEY AssetClass anlkl
AssetAccountDetermination ktogr
BusinessArea gsber
Plant werks
CostCenter kostl
FixedAssetFinDataCmpltns aneqs
AssetCountryOfOrigin land1
Supplier lifnr
FixedAssetGroup anlue
FixedAssetPropertyType eigkz
PropertyClass vmgli
InvestmentSupportMeasure invsl
Group1AssetEvaluationKey ord41
Group2AssetEvaluationKey ord42
Group3AssetEvaluationKey ord43
Group4AssetEvaluationKey ord44
InvestmentReason izwek
IsActiveXkeyasset_classasAssetClass
AssetAccountDetermination gl_account_det
BusinessArea
Plant
CostCenter
FixedAssetFinDataCmpltns
AssetCountryOfOrigin
Supplier
FixedAssetGroup
FixedAssetPropertyType
PropertyClass
InvestmentSupportMeasure
Group1AssetEvaluationKey
Group2AssetEvaluationKey
Group3AssetEvaluationKey
Group4AssetEvaluationKey
InvestmentReason
AssetAuthorizationContext
@AbapCatalog: { sqlViewName: 'PFIASSETCL', preserveKey: true, compiler.compareFilter: true }
@VDM.viewType: #BASIC
@VDM.private:true
@ClientHandling.algorithm: #SESSION_VARIABLE
@Metadata.ignorePropagatedAnnotations: true
@AccessControl.authorizationCheck: #NOT_REQUIRED

define view P_AssetClass
  as select from anka
    inner join   P_TF_AssetRedesignSwitchStatus( P_SAPClient : $session.client ) on P_TF_AssetRedesignSwitchStatus.IsActive = ''
{
  key anlkl                            as AssetClass,
  
      ktogr                            as AssetAccountDetermination,
      gsber                            as BusinessArea,
      werks                            as Plant,
      kostl                            as CostCenter,
      aneqs                            as FixedAssetFinDataCmpltns,
      land1                            as AssetCountryOfOrigin,
      lifnr                            as Supplier,
      anlue                            as FixedAssetGroup,
      eigkz                            as FixedAssetPropertyType,
      vmgli                            as PropertyClass,
      invsl                            as InvestmentSupportMeasure,
      ord41                            as Group1AssetEvaluationKey,
      ord42                            as Group2AssetEvaluationKey,
      ord43                            as Group3AssetEvaluationKey,
      ord44                            as Group4AssetEvaluationKey,
      izwek                            as InvestmentReason,
      cast('CLASSIC' as faa_authcntxt) as AssetAuthorizationContext
}

union all select from faac_acls0
  inner join          P_TF_AssetRedesignSwitchStatus( P_SAPClient : $session.client ) on P_TF_AssetRedesignSwitchStatus.IsActive = 'X'
{
  key asset_class                  as AssetClass,
  
      gl_account_det               as AssetAccountDetermination,
      cast('' as gsber)            as BusinessArea,
      cast('' as werks_d)          as Plant,
      cast('' as kostl)            as CostCenter,
      cast('' as aneqs)            as FixedAssetFinDataCmpltns,
      cast('' as am_land1)         as AssetCountryOfOrigin,
      cast('' as am_lifnr)         as Supplier,
      cast('' as anlue)            as FixedAssetGroup,
      cast('' as eigkz)            as FixedAssetPropertyType,
      cast('' as vmgli)            as PropertyClass,
      cast('' as invsl)            as InvestmentSupportMeasure,
      cast('' as ord41)            as Group1AssetEvaluationKey,
      cast('' as ord42)            as Group2AssetEvaluationKey,
      cast('' as ord43)            as Group3AssetEvaluationKey,
      cast('' as ord44)            as Group4AssetEvaluationKey,
      cast('' as izwek)            as InvestmentReason,
      cast('NEW' as faa_authcntxt) as AssetAuthorizationContext
}
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"ANKA",
"FAAC_ACLS0"
],
"ASSOCIATED":
[],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/