I_LocationAccountAssignment
Location and Account Assignment
I_LocationAccountAssignment is a Basic CDS View (Dimension) that provides data about "Location and Account Assignment" in SAP S/4HANA. It reads from 1 data source (iloa) and exposes 54 fields with key field MaintObjectLocAcctAssgmtNmbr. It has 27 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| iloa | iloa | from |
Associations (27)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_WorkCenterType | _WorkCenterType | $projection.WorkCenterTypeCode = _WorkCenterType.WorkCenterTypeCode |
| [0..1] | I_WorkCenter | _WorkCenter | $projection.WorkCenterInternalID = _WorkCenter.WorkCenterInternalID and $projection.WorkCenterTypeCode = _WorkCenter.WorkCenterTypeCode |
| [0..1] | I_Plant | _MaintenancePlant | $projection.MaintenancePlant = _MaintenancePlant.Plant |
| [0..1] | I_FunctionalLocation | _FunctionalLocation | $projection.FunctionalLocation = _FunctionalLocation.FunctionalLocation |
| [0..1] | I_PlantSection | _PlantSection | $projection.PlantSection = _PlantSection.PlantSection and $projection.MaintenancePlant = _PlantSection.Plant |
| [0..*] | I_CostCenter | _CostCenter | $projection.CostCenter = _CostCenter.CostCenter and $projection.ControllingArea = _CostCenter.ControllingArea |
| [0..1] | I_CompanyCode | _CompanyCode | $projection.CompanyCode = _CompanyCode.CompanyCode |
| [0..1] | I_ControllingArea | _ControllingArea | $projection.ControllingArea = _ControllingArea.ControllingArea |
| [0..1] | I_BusinessArea | _BusinessArea | $projection.BusinessArea = _BusinessArea.BusinessArea |
| [0..1] | I_Division | _Division | $projection.Division = _Division.Division |
| [0..1] | I_ABCIndicator | _ABCIndicator | $projection.ABCIndicator = _ABCIndicator.ABCIndicator |
| [0..1] | I_WBSElementBasicData | _WBSElementBasicData | $projection.WBSElementInternalID = _WBSElementBasicData.WBSElementInternalID |
| [0..1] | I_PMNotifMaintenanceData | _PMNotifMaintenanceData | $projection.MaintObjectLocAcctAssgmtNmbr = _PMNotifMaintenanceData.MaintObjectLocAcctAssgmtNmbr |
| [0..1] | I_Location | _Location | $projection.MaintenancePlant = _Location.Plant and $projection.AssetLocation = _Location.Location |
| [0..1] | I_MasterFixedAsset | _MasterFixedAsset | $projection.CompanyCode = _MasterFixedAsset.CompanyCode and $projection.MasterFixedAsset = _MasterFixedAsset.MasterFixedAsset |
| [0..1] | I_FixedAsset | _FixedAsset | $projection.CompanyCode = _FixedAsset.CompanyCode and $projection.MasterFixedAsset = _FixedAsset.MasterFixedAsset and $projection.FixedAsset = _FixedAsset.FixedAsset |
| [0..1] | I_Order | _SettlementOrder | $projection.SettlementOrder = _SettlementOrder.OrderID |
| [0..1] | I_MaintenanceOrder | _StandingOrderNumber | $projection.StandingOrderNumber = _StandingOrderNumber.MaintenanceOrder |
| [0..1] | I_Address | _Address | $projection.AddressID = _Address.AddressID |
| [0..1] | I_SalesOrganization | _SalesOrganization | $projection.SalesOrganization = _SalesOrganization.SalesOrganization |
| [0..1] | I_SlsOrganizationDistrChnl | _SlsOrganizationDistrChnl | $projection.SalesOrganization = _SlsOrganizationDistrChnl.SalesOrganization and $projection.DistributionChannel = _SlsOrganizationDistrChnl.DistributionChannel |
| [0..1] | I_SalesAreaSalesOffice | _SalesAreaSalesOffice | $projection.SalesOffice = _SalesAreaSalesOffice.SalesOffice and $projection.SalesOrganization = _SalesAreaSalesOffice.SalesOrganization and $projection.DistributionChannel = _SalesAreaSalesOffice.DistributionChannel and $projection.OrganizationDivision = _SalesAreaSalesOffice.OrganizationDivision |
| [0..1] | I_SalesOfficeSalesGroup | _SalesOfficeSalesGroup | $projection.SalesOffice = _SalesOfficeSalesGroup.SalesOffice and $projection.SalesGroup = _SalesOfficeSalesGroup.SalesGroup |
| [0..*] | I_CostCenterText | _CostCenterText | $projection.ControllingArea = _CostCenterText.ControllingArea and $projection.CostCenter = _CostCenterText.CostCenter and _CostCenterText.ValidityStartDate <= $session.system_date and _CostCenterText.ValidityEndDate >= $session.system_date |
| [0..1] | I_AddressDefaultRepresentation | _Address2 | $projection.AddressID = _Address2.AddressID |
| [0..*] | I_AddressPhoneNumber_2 | _PhoneNumber | $projection.AddressID = _PhoneNumber.AddressID and _PhoneNumber.PhNmbrIsCurrentOverallDefault = 'X' and _PhoneNumber.AddressID <> '' |
| [0..*] | I_AddressFaxNumber_2 | _FaxNumber | $projection.AddressID = _FaxNumber.AddressID and _FaxNumber.FaxNumberIsCurrentDefault = 'X' and _FaxNumber.AddressID <> '' |
Annotations (12)
| Name | Value | Level | Field |
|---|---|---|---|
| EndUserText.label | Location and Account Assignment | view | |
| Analytics.dataCategory | #DIMENSION | view | |
| VDM.viewType | #BASIC | view | |
| AbapCatalog.sqlViewName | ILOCACCASSIGNMT | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #PRIVILEGED_ONLY | view | |
| ObjectModel.representativeKey | MaintObjectLocAcctAssgmtNmbr | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| ObjectModel.usageType.serviceQuality | #A | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| Metadata.allowExtensions | true | view |
Fields (54)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | MaintObjectLocAcctAssgmtNmbr | iloa | iloan | |
| WorkCenterInternalID | iloa | ppsid | ||
| WorkCenterTypeCode | iloa | cr_objty | ||
| FunctionalLocation | iloa | tplnr | ||
| MaintenancePlant | iloa | swerk | ||
| PlantSection | iloa | beber | ||
| AssetLocation | iloa | stort | ||
| MaintObjectFreeDefinedAttrib | iloa | eqfnr | ||
| BusinessArea | iloa | gsber | ||
| ControllingArea | iloa | kokrs | ||
| CostCenter | iloa | kostl | ||
| CompanyCode | iloa | bukrs | ||
| Division | iloa | spart | ||
| MaintenanceObjectLocation | iloa | stort | ||
| AssetRoom | iloa | msgrp | ||
| ABCIndicator | iloa | abckz | ||
| AddressID | iloa | adrnr | ||
| WBSElementInternalID | iloa | proid | ||
| MasterFixedAsset | iloa | anlnr | ||
| FixedAsset | iloa | anlun | ||
| SettlementOrder | iloa | aufnr | ||
| StandingOrderNumber | iloa | daufn | ||
| SalesOrganization | iloa | vkorg | ||
| DistributionChannel | iloa | vtweg | ||
| SalesOffice | iloa | vkbur | ||
| OrganizationDivision | iloa | spart | ||
| SalesGroup | iloa | vkgrp | ||
| _PMNotifMaintenanceData | _PMNotifMaintenanceData | |||
| _WorkCenterType | _WorkCenterType | |||
| _WorkCenter | _WorkCenter | |||
| _MaintenancePlant | _MaintenancePlant | |||
| _FunctionalLocation | _FunctionalLocation | |||
| _PlantSection | _PlantSection | |||
| _CostCenter | _CostCenter | |||
| _CostCenterText | _CostCenterText | |||
| _CompanyCode | _CompanyCode | |||
| _ControllingArea | _ControllingArea | |||
| _BusinessArea | _BusinessArea | |||
| _Division | _Division | |||
| _ABCIndicator | _ABCIndicator | |||
| _WBSElementBasicData | _WBSElementBasicData | |||
| _Location | _Location | |||
| _MasterFixedAsset | _MasterFixedAsset | |||
| _FixedAsset | _FixedAsset | |||
| _SettlementOrder | _SettlementOrder | |||
| _StandingOrderNumber | _StandingOrderNumber | |||
| _Address | _Address | |||
| _Address2 | _Address2 | |||
| _SalesAreaSalesOffice | _SalesAreaSalesOffice | |||
| _SalesOrganization | _SalesOrganization | |||
| _SlsOrganizationDistrChnl | _SlsOrganizationDistrChnl | |||
| _SalesOfficeSalesGroup | _SalesOfficeSalesGroup | |||
| _PhoneNumber | _PhoneNumber | |||
| _FaxNumber | _FaxNumber |
@EndUserText.label: 'Location and Account Assignment'
@Analytics: { dataCategory: #DIMENSION }
@VDM.viewType: #BASIC
@AbapCatalog: { sqlViewName: 'ILOCACCASSIGNMT', preserveKey }
@AbapCatalog.compiler.compareFilter: true
@AccessControl.authorizationCheck:#PRIVILEGED_ONLY
@AccessControl.privilegedAssociations:['_PlantSection','_FunctionalLocation']
@ObjectModel.representativeKey: 'MaintObjectLocAcctAssgmtNmbr'
@ObjectModel.semanticKey: [ 'MaintObjectLocAcctAssgmtNmbr' ]
@ClientHandling.algorithm: #SESSION_VARIABLE
@ObjectModel.usageType.dataClass: #TRANSACTIONAL
@ObjectModel.usageType.serviceQuality: #A
@ObjectModel.usageType.sizeCategory: #L
@Metadata.allowExtensions: true
@Metadata.ignorePropagatedAnnotations
@ObjectModel.supportedCapabilities: [#SQL_DATA_SOURCE, #CDS_MODELING_DATA_SOURCE, #CDS_MODELING_ASSOCIATION_TARGET,#ANALYTICAL_DIMENSION]
define view I_LocationAccountAssignment
as select from iloa
association [0..1] to I_WorkCenterType as _WorkCenterType on $projection.WorkCenterTypeCode = _WorkCenterType.WorkCenterTypeCode
association [0..1] to I_WorkCenter as _WorkCenter on $projection.WorkCenterInternalID = _WorkCenter.WorkCenterInternalID
and $projection.WorkCenterTypeCode = _WorkCenter.WorkCenterTypeCode
association [0..1] to I_Plant as _MaintenancePlant on $projection.MaintenancePlant = _MaintenancePlant.Plant
association [0..1] to I_FunctionalLocation as _FunctionalLocation on $projection.FunctionalLocation = _FunctionalLocation.FunctionalLocation
association [0..1] to I_PlantSection as _PlantSection on $projection.PlantSection = _PlantSection.PlantSection
and $projection.MaintenancePlant = _PlantSection.Plant
association [0..*] to I_CostCenter as _CostCenter on $projection.CostCenter = _CostCenter.CostCenter
and $projection.ControllingArea = _CostCenter.ControllingArea
association [0..1] to I_CompanyCode as _CompanyCode on $projection.CompanyCode = _CompanyCode.CompanyCode
association [0..1] to I_ControllingArea as _ControllingArea on $projection.ControllingArea = _ControllingArea.ControllingArea
association [0..1] to I_BusinessArea as _BusinessArea on $projection.BusinessArea = _BusinessArea.BusinessArea
association [0..1] to I_Division as _Division on $projection.Division = _Division.Division
association [0..1] to I_ABCIndicator as _ABCIndicator on $projection.ABCIndicator = _ABCIndicator.ABCIndicator
association [0..1] to I_WBSElementBasicData as _WBSElementBasicData on $projection.WBSElementInternalID = _WBSElementBasicData.WBSElementInternalID
association [0..1] to I_PMNotifMaintenanceData as _PMNotifMaintenanceData on $projection.MaintObjectLocAcctAssgmtNmbr = _PMNotifMaintenanceData.MaintObjectLocAcctAssgmtNmbr
association [0..1] to I_Location as _Location on $projection.MaintenancePlant = _Location.Plant
and $projection.AssetLocation = _Location.Location
association [0..1] to I_MasterFixedAsset as _MasterFixedAsset on $projection.CompanyCode = _MasterFixedAsset.CompanyCode
and $projection.MasterFixedAsset = _MasterFixedAsset.MasterFixedAsset
association [0..1] to I_FixedAsset as _FixedAsset on $projection.CompanyCode = _FixedAsset.CompanyCode
and $projection.MasterFixedAsset = _FixedAsset.MasterFixedAsset
and $projection.FixedAsset = _FixedAsset.FixedAsset
association [0..1] to I_Order as _SettlementOrder on $projection.SettlementOrder = _SettlementOrder.OrderID
association [0..1] to I_MaintenanceOrder as _StandingOrderNumber on $projection.StandingOrderNumber = _StandingOrderNumber.MaintenanceOrder
association [0..1] to I_Address as _Address on $projection.AddressID = _Address.AddressID
association [0..1] to I_SalesOrganization as _SalesOrganization on $projection.SalesOrganization = _SalesOrganization.SalesOrganization
association [0..1] to I_SlsOrganizationDistrChnl as _SlsOrganizationDistrChnl on $projection.SalesOrganization = _SlsOrganizationDistrChnl.SalesOrganization
and $projection.DistributionChannel = _SlsOrganizationDistrChnl.DistributionChannel
association [0..1] to I_SalesAreaSalesOffice as _SalesAreaSalesOffice on $projection.SalesOffice = _SalesAreaSalesOffice.SalesOffice
and $projection.SalesOrganization = _SalesAreaSalesOffice.SalesOrganization
and $projection.DistributionChannel = _SalesAreaSalesOffice.DistributionChannel
and $projection.OrganizationDivision = _SalesAreaSalesOffice.OrganizationDivision
association [0..1] to I_SalesOfficeSalesGroup as _SalesOfficeSalesGroup on $projection.SalesOffice = _SalesOfficeSalesGroup.SalesOffice
and $projection.SalesGroup = _SalesOfficeSalesGroup.SalesGroup
association [0..*] to I_CostCenterText as _CostCenterText on $projection.ControllingArea = _CostCenterText.ControllingArea
and $projection.CostCenter = _CostCenterText.CostCenter
and _CostCenterText.ValidityStartDate <= $session.system_date
and _CostCenterText.ValidityEndDate >= $session.system_date
association [0..1] to I_AddressDefaultRepresentation as _Address2 on $projection.AddressID = _Address2.AddressID //2302CE
association [0..*] to I_AddressPhoneNumber_2 as _PhoneNumber on $projection.AddressID = _PhoneNumber.AddressID //2502CE
and _PhoneNumber.PhNmbrIsCurrentOverallDefault = 'X'
and _PhoneNumber.AddressID <> ''
association [0..*] to I_AddressFaxNumber_2 as _FaxNumber on $projection.AddressID = _FaxNumber.AddressID //2502CE
and _FaxNumber.FaxNumberIsCurrentDefault = 'X'
and _FaxNumber.AddressID <> ''
{
key iloa.iloan as MaintObjectLocAcctAssgmtNmbr,
@ObjectModel.foreignKey.association: '_WorkCenter'
iloa.ppsid as WorkCenterInternalID,
@ObjectModel.foreignKey.association: '_WorkCenterType'
iloa.cr_objty as WorkCenterTypeCode,
@Consumption.valueHelpDefinition: [
{ entity: { name: 'I_FunctionalLocationStdVH',
element: 'FunctionalLocation' }
}]
@ObjectModel.foreignKey.association: '_FunctionalLocation'
iloa.tplnr as FunctionalLocation,
@Consumption.valueHelpDefinition: [
{ entity: { name: 'I_PlantStdVH',
element: 'Plant' }
}]
@ObjectModel.foreignKey.association: '_MaintenancePlant'
iloa.swerk as MaintenancePlant,
@Consumption.valueHelpDefinition: [
{ entity: { name: 'I_PlantSectionStdVH',
element: 'PlantSection' },
additionalBinding: [{ localElement: 'MaintenancePlant',
element: 'Plant' }]
}]
@ObjectModel.foreignKey.association: '_PlantSection'
iloa.beber as PlantSection,
@ObjectModel.foreignKey.association: '_Location'
iloa.stort as AssetLocation,
iloa.eqfnr as MaintObjectFreeDefinedAttrib, // Sort Field
@Consumption.valueHelpDefinition: [
{ entity: { name: 'I_BusinessAreaStdVH',
element: 'BusinessArea' }
}]
@ObjectModel.foreignKey.association: '_BusinessArea'
iloa.gsber as BusinessArea,
@Consumption.valueHelpDefinition: [
{ entity: { name: 'I_ControllingAreaStdVH',
element: 'ControllingArea' }
}]
@ObjectModel.foreignKey.association: '_ControllingArea'
iloa.kokrs as ControllingArea,
@Consumption.valueHelpDefinition: [
{ entity: { name: 'I_CostCenterStdVH',
element: 'CostCenter' },
additionalBinding: [{ localElement: 'ControllingArea',
element: 'ControllingArea' }]
}]
@ObjectModel.foreignKey.association: '_CostCenter'
@ObjectModel.text.association:'_CostCenterText'
iloa.kostl as CostCenter,
@Consumption.valueHelpDefinition: [
{ entity: { name: 'I_CompanyCodeStdVH',
element: 'CompanyCode' }
}]
@ObjectModel.foreignKey.association: '_CompanyCode'
iloa.bukrs as CompanyCode,
@ObjectModel.foreignKey.association: '_Division'
iloa.spart as Division,
iloa.stort as MaintenanceObjectLocation,
iloa.msgrp as AssetRoom,
@ObjectModel.foreignKey.association: '_ABCIndicator'
iloa.abckz as ABCIndicator,
// @ObjectModel.foreignKey.association: '_Address'
@ObjectModel.foreignKey.association: '_Address2' //2302 CE - Adapt I_Address_2 View
iloa.adrnr as AddressID,
@ObjectModel.foreignKey.association: '_WBSElementBasicData'
iloa.proid as WBSElementInternalID,
@Consumption.valueHelpDefinition: [
{ entity: { name: 'I_MasterFixedAssetStdVH',
element: 'MasterFixedAsset' },
additionalBinding: [{ localElement: 'CompanyCode',
element: 'CompanyCode' }]
}]
@ObjectModel.foreignKey.association: '_MasterFixedAsset'
iloa.anlnr as MasterFixedAsset,
@Consumption.valueHelpDefinition: [
{ entity: { name: 'I_FixedAssetStdVH',
element: 'FixedAsset' },
additionalBinding: [{ localElement: 'CompanyCode',
element: 'CompanyCode' },
{ localElement: 'MasterFixedAsset',
element: 'MasterFixedAsset' }]
}]
@ObjectModel.foreignKey.association: '_FixedAsset'
iloa.anlun as FixedAsset,
@ObjectModel.foreignKey.association: '_SettlementOrder'
iloa.aufnr as SettlementOrder,
@Consumption.valueHelpDefinition: [
{ entity: { name: 'I_MaintenanceOrderStdVH',
element: 'MaintenanceOrder' }
}]
@ObjectModel.foreignKey.association: '_StandingOrderNumber'
iloa.daufn as StandingOrderNumber,
@ObjectModel.foreignKey.association: '_SalesOrganization'
iloa.vkorg as SalesOrganization,
iloa.vtweg as DistributionChannel,
iloa.vkbur as SalesOffice,
iloa.spart as OrganizationDivision,
iloa.vkgrp as SalesGroup,
// Propagate association
_PMNotifMaintenanceData,
_WorkCenterType,
_WorkCenter,
_MaintenancePlant,
_FunctionalLocation,
_PlantSection,
_CostCenter,
@Consumption.hidden: true
_CostCenterText,
_CompanyCode,
_ControllingArea,
_BusinessArea,
_Division,
_ABCIndicator,
_WBSElementBasicData,
_Location,
_MasterFixedAsset,
_FixedAsset,
_SettlementOrder,
_StandingOrderNumber,
@API.element.releaseState: #DEPRECATED
@API.element.successor: '_Address2'
_Address,
_Address2, //2302 CE - Adapt I_Address_2 View
_SalesAreaSalesOffice,
_SalesOrganization,
_SlsOrganizationDistrChnl,
_SalesOfficeSalesGroup,
_PhoneNumber,
_FaxNumber
}
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