P_AssetAssignment
P_AssetAssignment is a Composite CDS View in SAP S/4HANA. It reads from 1 data source (I_FixedAssetAssgmt) and exposes 70 fields with key fields CompanyCode, MasterFixedAsset, FixedAsset, ValidityEndDate. It has 6 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_FixedAssetAssgmt | I_FixedAssetAssgmt | from |
Associations (6)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | I_AssetTP | _AssetTP | $projection.CompanyCode = _AssetTP.CompanyCode and $projection.MasterFixedAsset = _AssetTP.MasterFixedAsset and $projection.FixedAsset = _AssetTP.FixedAsset |
| [0..1] | I_Fund | _Fund | $projection.Fund = _Fund.Fund and $projection.FinancialManagementArea = _Fund.FinancialManagementArea |
| [0..*] | I_FundsCenter | _FundsCenter | $projection.FundsCenter = _FundsCenter.FundsCenter and $projection.FinancialManagementArea = _FundsCenter.FinancialManagementArea and ( ( $projection.ValidityEndDate > _FundsCenter.ValidityStartDate and $projection.ValidityEndDate <= _FundsCenter.ValidityEndDate ) or( $projection.ValidityStartDate <= _FundsCenter.ValidityEndDate and $projection.ValidityStartDate >= _FundsCenter.ValidityStartDate ) or( $projection.ValidityEndDate >= _FundsCenter.ValidityEndDate and $projection.ValidityStartDate <= _FundsCenter.ValidityStartDate and _FundsCenter.ValidityStartDate <= $session.system_date and _FundsCenter.ValidityEndDate >= $session.system_date ) ) |
| [0..1] | I_WBSElementBasicData | _WBSElementBasicData | $projection.WBSElementInternalID = _WBSElementBasicData.WBSElementInternalID |
| [0..1] | I_BudgetPeriod | _BudgetPeriod | $projection.BudgetPeriod = _BudgetPeriod.BudgetPeriod |
| [0..1] | I_Grant | _Grant | $projection.GrantID = _Grant.GrantID |
Annotations (9)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PASSETASSGMT | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| VDM.private | true | view | |
| VDM.viewType | #COMPOSITE | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| ObjectModel.usageType.serviceQuality | #B | view | |
| ObjectModel.usageType.sizeCategory | #XXL | view |
Fields (70)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CompanyCode | I_FixedAssetAssgmt | CompanyCode | |
| KEY | MasterFixedAsset | I_FixedAssetAssgmt | MasterFixedAsset | |
| KEY | FixedAsset | I_FixedAssetAssgmt | FixedAsset | |
| KEY | ValidityEndDate | I_FixedAssetAssgmt | ValidityEndDate | |
| ValidityStartDate | I_FixedAssetAssgmt | ValidityStartDate | ||
| ControllingArea | I_FixedAssetAssgmt | ControllingArea | ||
| FinancialManagementArea | ||||
| BusinessArea | I_FixedAssetAssgmt | BusinessArea | ||
| BusinessAreaName | ||||
| CostCenter | I_FixedAssetAssgmt | CostCenter | ||
| CostCenterName | ||||
| CostCtrActivityType | I_FixedAssetAssgmt | CostCtrActivityType | ||
| CostCtrActivityTypeName | ||||
| InternalOrder | I_FixedAssetAssgmt | InternalOrder | ||
| InternalOrderDescription | ||||
| Fund | I_FixedAssetAssgmt | Fund | ||
| FundName | ||||
| GrantID | I_FixedAssetAssgmt | GrantID | ||
| GrantName | ||||
| FunctionalArea | I_FixedAssetAssgmt | FunctionalArea | ||
| FunctionalAreaName | ||||
| FundsCenter | I_FixedAssetAssgmt | FundsCenter | ||
| FundsCenterName | ||||
| WBSElementInternalID | I_FixedAssetAssgmt | WBSElementInternalID | ||
| WBSElementExternalID | ||||
| WBSElementDescription | ||||
| TaxJurisdiction | I_FixedAssetAssgmt | TaxJurisdiction | ||
| RealEstateObject | I_FixedAssetAssgmt | RealEstateObject | ||
| Segment | I_FixedAssetAssgmt | Segment | ||
| SegmentName | ||||
| ProfitCenter | I_FixedAssetAssgmt | ProfitCenter | ||
| ProfitCenterName | ||||
| BudgetPeriod | I_FixedAssetAssgmt | BudgetPeriod | ||
| ResponsibleCostCenter | I_FixedAssetAssgmt | ResponsibleCostCenter | ||
| ResponsibleCostCenterName | ||||
| Room | I_FixedAssetAssgmt | Room | ||
| Plant | I_FixedAssetAssgmt | Plant | ||
| PlantName | ||||
| AssetLocation | I_FixedAssetAssgmt | AssetLocation | ||
| AssetLocationName | ||||
| VehicleLicensePlateNumber | I_FixedAssetAssgmt | VehicleLicensePlateNumber | ||
| PersonnelNumber | I_FixedAssetAssgmt | PersonnelNumber | ||
| BusinessPlace | I_FixedAssetAssgmt | BusinessPlace | ||
| ReferenceDocumentType | I_FixedAssetAssgmt | ReferenceDocumentType | ||
| LogicalSystem | I_FixedAssetAssgmt | LogicalSystem | ||
| ReferenceDocumentContext | I_FixedAssetAssgmt | ReferenceDocumentContext | ||
| ReferenceDocument | I_FixedAssetAssgmt | ReferenceDocument | ||
| LongText | ||||
| AssetAuthorizationContext | I_FixedAssetAssgmt | AssetAuthorizationContext | ||
| _AssetTP | _AssetTP | |||
| _FixedAsset | _FixedAsset | |||
| _Grant | _Grant | |||
| _Fund | _Fund | |||
| _FundsCenter | _FundsCenter | |||
| _WBSElementBasicData | _WBSElementBasicData | |||
| _BudgetPeriod | _BudgetPeriod | |||
| _MasterFixedAsset | _MasterFixedAsset | |||
| _CompanyCode | I_FixedAssetAssgmt | _CompanyCode | ||
| _CostCenter | I_FixedAssetAssgmt | _CostCenter | ||
| _ResponsibleCostCenter | I_FixedAssetAssgmt | _ResponsibleCostCenter | ||
| _CostCenterActivityType | I_FixedAssetAssgmt | _CostCenterActivityType | ||
| _Plant | I_FixedAssetAssgmt | _Plant | ||
| _BusinessArea | I_FixedAssetAssgmt | _BusinessArea | ||
| _InternalOrder | I_FixedAssetAssgmt | _InternalOrder | ||
| _ProfitCenter | I_FixedAssetAssgmt | _ProfitCenter | ||
| _Segment | I_FixedAssetAssgmt | _Segment | ||
| _FunctionalArea | I_FixedAssetAssgmt | _FunctionalArea | ||
| _ControllingArea | I_FixedAssetAssgmt | _ControllingArea | ||
| _AssetLocation | I_FixedAssetAssgmt | _AssetLocation | ||
| _Employment | I_FixedAssetAssgmt | _Employment |
@AbapCatalog.sqlViewName: 'PASSETASSGMT'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true
@AccessControl.authorizationCheck: #CHECK
@VDM: {
private: true,
viewType: #COMPOSITE }
@ObjectModel.usageType.dataClass: #MIXED
@ObjectModel.usageType.serviceQuality: #B
@ObjectModel.usageType.sizeCategory: #XXL
define view P_AssetAssignment
as select from I_FixedAssetAssgmt
association [1..1] to I_AssetTP as _AssetTP on $projection.CompanyCode = _AssetTP.CompanyCode
and $projection.MasterFixedAsset = _AssetTP.MasterFixedAsset
and $projection.FixedAsset = _AssetTP.FixedAsset
association [0..1] to I_Fund as _Fund on $projection.Fund = _Fund.Fund
and $projection.FinancialManagementArea = _Fund.FinancialManagementArea
association [0..*] to I_FundsCenter as _FundsCenter on $projection.FundsCenter = _FundsCenter.FundsCenter
and $projection.FinancialManagementArea = _FundsCenter.FinancialManagementArea
and (
(
$projection.ValidityEndDate > _FundsCenter.ValidityStartDate
and $projection.ValidityEndDate <= _FundsCenter.ValidityEndDate
)
or(
$projection.ValidityStartDate <= _FundsCenter.ValidityEndDate
and $projection.ValidityStartDate >= _FundsCenter.ValidityStartDate
)
or(
$projection.ValidityEndDate >= _FundsCenter.ValidityEndDate
and $projection.ValidityStartDate <= _FundsCenter.ValidityStartDate
and _FundsCenter.ValidityStartDate <= $session.system_date
and _FundsCenter.ValidityEndDate >= $session.system_date
)
)
association [0..1] to I_WBSElementBasicData as _WBSElementBasicData on $projection.WBSElementInternalID = _WBSElementBasicData.WBSElementInternalID
association [0..1] to I_BudgetPeriod as _BudgetPeriod on $projection.BudgetPeriod = _BudgetPeriod.BudgetPeriod
association [0..1] to I_Grant as _Grant on $projection.GrantID = _Grant.GrantID
// association [1..1] to E_FixedAssetAssgmt as _Extension on $projection.CompanyCode = _Extension.CompanyCode
// and $projection.MasterFixedAsset = _Extension.MasterFixedAsset
// and $projection.FixedAsset = _Extension.FixedAsset
// and $projection.ValidityEndDate = _Extension.ValidityEndDate
{
@ObjectModel.foreignKey.association: '_CompanyCode'
key I_FixedAssetAssgmt.CompanyCode as CompanyCode,
@ObjectModel.foreignKey.association: '_MasterFixedAsset'
key I_FixedAssetAssgmt.MasterFixedAsset,
key I_FixedAssetAssgmt.FixedAsset,
key I_FixedAssetAssgmt.ValidityEndDate,
I_FixedAssetAssgmt.ValidityStartDate,
@ObjectModel.foreignKey.association: '_ControllingArea'
I_FixedAssetAssgmt.ControllingArea,
I_FixedAssetAssgmt._CompanyCode.FinancialManagementArea as FinancialManagementArea,
@ObjectModel.foreignKey.association: '_BusinessArea'
I_FixedAssetAssgmt.BusinessArea,
cast (cast (''as abap.char(30))as farp_gtext preserving type) as BusinessAreaName,
@ObjectModel.foreignKey.association: '_CostCenter'
I_FixedAssetAssgmt.CostCenter,
cast (cast (''as abap.char(20))as fis_kostl_name preserving type) as CostCenterName,
@ObjectModel.foreignKey.association: '_CostCenterActivityType'
I_FixedAssetAssgmt.CostCtrActivityType,
cast (cast (''as abap.char(20))as ktext preserving type) as CostCtrActivityTypeName,
@ObjectModel.foreignKey.association: '_InternalOrder'
I_FixedAssetAssgmt.InternalOrder,
cast (cast (''as abap.char(40))as fis_internalorder_text preserving type) as InternalOrderDescription,
@ObjectModel.foreignKey.association: '_Fund'
I_FixedAssetAssgmt.Fund,
cast (cast (''as abap.char(20))as fmis_fund_name preserving type) as FundName,
@ObjectModel.foreignKey.association:'_Grant'
I_FixedAssetAssgmt.GrantID,
cast (cast (''as abap.char(20))as gm_short_description preserving type) as GrantName,
@ObjectModel.foreignKey.association: '_FunctionalArea'
I_FixedAssetAssgmt.FunctionalArea,
cast (cast (''as abap.char(25))as fkbtx preserving type) as FunctionalAreaName,
@ObjectModel.foreignKey.association: '_FundsCenter'
I_FixedAssetAssgmt.FundsCenter,
cast (cast (''as abap.char(20))as fmis_fc_name preserving type) as FundsCenterName,
@ObjectModel.foreignKey.association: '_WBSElementBasicData'
I_FixedAssetAssgmt.WBSElementInternalID,
cast (cast('' as abap.char(24)) as ps_posid_edit preserving type) as WBSElementExternalID,
//_WBSElementBasicData.WBSElementExternalID as WBSElementExternalID,
cast (cast (''as abap.char(40))as ps_s4_post1 preserving type) as WBSElementDescription,
I_FixedAssetAssgmt.TaxJurisdiction,
I_FixedAssetAssgmt.RealEstateObject,
@ObjectModel.foreignKey.association: '_Segment'
I_FixedAssetAssgmt.Segment,
cast (cast (''as abap.char(50))as fis_segment_name preserving type) as SegmentName,
@ObjectModel.foreignKey.association: '_ProfitCenter'
I_FixedAssetAssgmt.ProfitCenter,
cast (cast (''as abap.char(20))as fis_prctr_shorttext preserving type) as ProfitCenterName,
@ObjectModel.foreignKey.association: '_BudgetPeriod'
I_FixedAssetAssgmt.BudgetPeriod,
@ObjectModel.foreignKey.association: '_ResponsibleCostCenter'
I_FixedAssetAssgmt.ResponsibleCostCenter,
cast (cast (''as abap.char(20))as fis_kostl_name preserving type) as ResponsibleCostCenterName,
I_FixedAssetAssgmt.Room,
@ObjectModel.foreignKey.association: '_Plant'
I_FixedAssetAssgmt.Plant,
cast (cast (''as abap.char(30))as werks_name preserving type) as PlantName,
//_Plant.PlantName,
// PlantName,
@ObjectModel.foreignKey.association: '_AssetLocation'
I_FixedAssetAssgmt.AssetLocation,
//_Location.LocationName as AssetLocationName,
//I_FixedAssetAssgmt._AssetLocation.LocationName as AssetLocationName,
cast (cast (''as abap.char(40))as locationname preserving type) as AssetLocationName,
I_FixedAssetAssgmt.VehicleLicensePlateNumber,
I_FixedAssetAssgmt.PersonnelNumber,
I_FixedAssetAssgmt.BusinessPlace,
I_FixedAssetAssgmt.ReferenceDocumentType,
I_FixedAssetAssgmt.LogicalSystem,
I_FixedAssetAssgmt.ReferenceDocumentContext,
I_FixedAssetAssgmt.ReferenceDocument,
cast ('' as abap.char(512) ) as LongText,
@Consumption.hidden: true
I_FixedAssetAssgmt.AssetAuthorizationContext,
_AssetTP,
@ObjectModel.association.type:null
_FixedAsset, // For inheritence use in access control
_Grant,
_Fund,
_FundsCenter,
_WBSElementBasicData,
_BudgetPeriod,
_MasterFixedAsset,
I_FixedAssetAssgmt._CompanyCode,
I_FixedAssetAssgmt._CostCenter,
I_FixedAssetAssgmt._ResponsibleCostCenter,
I_FixedAssetAssgmt._CostCenterActivityType,
I_FixedAssetAssgmt._Plant,
I_FixedAssetAssgmt._BusinessArea,
I_FixedAssetAssgmt._InternalOrder,
I_FixedAssetAssgmt._ProfitCenter,
I_FixedAssetAssgmt._Segment,
I_FixedAssetAssgmt._FunctionalArea,
I_FixedAssetAssgmt._ControllingArea,
I_FixedAssetAssgmt._AssetLocation,
I_FixedAssetAssgmt._Employment
}
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