P_ASSETCOMPANYCODE

CDS View

P_ASSETCOMPANYCODE is a CDS View in S/4HANA. 1 CDS views read from this table.

CDS Views using this table (1)

ViewTypeJoinVDMDescription
I_CompanyCodeAsset view from BASIC Company Code in Asset Accounting
@AbapCatalog: { sqlViewName: 'PASSETCOMPCODE', 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_AssetCompanyCode
  as select from t093c
    inner join   P_TF_AssetRedesignSwitchStatus( P_SAPClient : $session.client ) on P_TF_AssetRedesignSwitchStatus.IsActive = ''
{
  key bukrs as CompanyCode,
  
      afapl as ChartOfDepreciation
}

union all select from faat_cmp
  inner join          P_TF_AssetRedesignSwitchStatus( P_SAPClient : $session.client ) on P_TF_AssetRedesignSwitchStatus.IsActive = 'X'
{
  key comp_code         as CompanyCode,
  
      /* Chart of depreciation cannot be derived from company code any longer */
      cast('' as afapl) as ChartOfDepreciation
}
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"FAAT_CMP",
"T093C"
],
"ASSOCIATED":
[],
"BASE":
[],
"ANNO_REF":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/