I_AssetClassByCompanyCode
Asset Class related to Company Code
I_AssetClassByCompanyCode is a Composite CDS View that provides data about "Asset Class related to Company Code" in SAP S/4HANA. It reads from 1 data source (P_AssetClassByCompanyCode) and exposes 17 fields with key fields CompanyCode, AssetClass. It has 4 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| P_AssetClassByCompanyCode | P_AssetClassByCompanyCode | from |
Associations (4)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_AssetClass | _AssetClass | $projection.AssetClass = _AssetClass.AssetClass |
| [1..1] | I_CompanyCode | _CompanyCode | $projection.CompanyCode = _CompanyCode.CompanyCode |
| [0..*] | I_AssetClassText | _Text | $projection.AssetClass = _Text.AssetClass |
| [0..1] | I_Language | _Language | $projection.language = _Language.Language |
Annotations (12)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | ICOMPCODEASSETCL | view | |
| AbapCatalog.preserveKey | true | view | |
| EndUserText.label | Asset Class related to Company Code | view | |
| VDM.viewType | #COMPOSITE | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| ObjectModel.representativeKey | AssetClass | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #S | view | |
| ObjectModel.usageType.dataClass | #CUSTOMIZING | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| Metadata.allowExtensions | true | view | |
| Search.searchable | true | view |
Fields (17)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CompanyCode | CompanyCode | ||
| KEY | AssetClass | AssetClass | ||
| FixedAssetGroup | FixedAssetGroup | |||
| AssetScreenLayout | AssetScreenLayout | |||
| AssetClassDownPaymentIsAllowed | AssetClassDownPaymentIsAllowed | |||
| AssetClassIsBlocked | AssetClassIsBlocked | |||
| InventoryIsCounted | InventoryIsCounted | |||
| FixedAssetPropertyType | FixedAssetPropertyType | |||
| PropertyClass | PropertyClass | |||
| AreaSizeUnit | AreaSizeUnit | |||
| AssetClassName | ||||
| Language | ||||
| AssetAuthorizationContext | AssetAuthorizationContext | |||
| _CompanyCode | _CompanyCode | |||
| _AssetClass | _AssetClass | |||
| _Text | _Text | |||
| _Language | _Language |
@AbapCatalog: {sqlViewName: 'ICOMPCODEASSETCL', preserveKey: true}
@EndUserText.label: 'Asset Class related to Company Code'
@VDM.viewType: #COMPOSITE
@AccessControl.authorizationCheck: #CHECK
@ObjectModel: { representativeKey: 'AssetClass',
usageType.serviceQuality: #C,
usageType.sizeCategory: #S,
usageType.dataClass: #CUSTOMIZING }
@ClientHandling.algorithm: #SESSION_VARIABLE
@Metadata.allowExtensions: true
@Search.searchable: true
define view I_AssetClassByCompanyCode
as select from P_AssetClassByCompanyCode
association [0..1] to I_AssetClass as _AssetClass on $projection.AssetClass = _AssetClass.AssetClass
association [1..1] to I_CompanyCode as _CompanyCode on $projection.CompanyCode = _CompanyCode.CompanyCode
association [0..*] to I_AssetClassText as _Text on $projection.AssetClass = _Text.AssetClass
association [0..1] to I_Language as _Language on $projection.language = _Language.Language
{
@ObjectModel.foreignKey.association: '_CompanyCode'
@Consumption.valueHelpDefinition: [ { entity: { name: 'I_CompanyCodeStdVH', element: 'CompanyCode' } } ]
key CompanyCode,
@Search.defaultSearchElement: true
@Search.fuzzinessThreshold: 0.8
@Search.ranking: #HIGH
key AssetClass,
FixedAssetGroup, //Not supported with inactive BF
AssetScreenLayout, //Not supported with inactive BF
AssetClassDownPaymentIsAllowed, //Not supported with inactive BF
AssetClassIsBlocked, //Not supported with inactive BF
InventoryIsCounted, //Not supported with inactive BF
FixedAssetPropertyType, //Not supported with inactive BF
PropertyClass, //Not supported with inactive BF
AreaSizeUnit, //Not supported with inactive BF
@Semantics.text
_AssetClass._Text[1:Language = $session.system_language].AssetClassName,
@ObjectModel.foreignKey.association: '_Language'
@Consumption: {filter.hidden: true, hidden: true}
_AssetClass._Text[1:Language = $session.system_language].Language,
@Consumption.hidden: true
AssetAuthorizationContext, //Needed for DCL
_CompanyCode,
_AssetClass,
_Text,
_Language
}
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_ASSETCLASS",
"I_ASSETCLASSTEXT",
"P_ASSETCLASSBYCOMPANYCODE"
],
"ASSOCIATED":
[
"I_ASSETCLASS",
"I_ASSETCLASSTEXT",
"I_COMPANYCODE",
"I_LANGUAGE"
],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/
Learn More
- What Is a CDS View in SAP S/4HANA?
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- CDS View Annotations — A Complete Guide
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA