I_LocationAccountAssignment
Location and Account Assignment
I_LocationAccountAssignment (Basic)
Package: Explore, extend and adapt the SAP S/4HANA Cloud Private Edition with built-in and side-by-side extension capabilities.
Asset Management
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.
SAP Help Documentation
| Category | CDS Views for Maintenance Management |
|---|---|
| Data Category | Dimension |
Purpose
This CDS view retrieves the assignment number of the location account for a technical object (functional location or equipment). This CDS view provides the data to answer the following business questions: What is the assignment number of an internal location account for a functional location or equipment? To help you decide which CDS view to use for your purposes, SAP has introduced the annotation ObjectModel.supportedCapabilities that indicates the most appropriate use cases for each CDS view. To find out what use cases are best supported by this CDS view, access the entry of the CDS view in the View Browser app and find the values for this annotation under the Annotation tab. For more information, see Supported Capabilities for CDS Views .
Structure
Business Objects This view is built on the PM Object location and account assignment(ILOA) table. Parameters This CDS view does not have any input parameters. Important Fields Important fields in this view include the following: Location and account assignment for technical object Functional location Maintenance plant Address number Plant section Sort field Controlling area Cost center Company code Business area ABC indicator
Constraints
This CDS view can be used to retrieve only technical objects like I_FunctionalLocation and equipment. This CDS view is not intended to be consumed directly or through the data preview browser.
This CDS view retrieves the assignment number of the location account for a technical object (functional location or equipment). This CDS view provides the data to answer the following business questions: What is the assignment number of an internal location account for a functional location or equipment? To help you decide which CDS view to use for your purposes, SAP has introduced the annotation ObjectModel.supportedCapabilities that indicates the most appropriate use cases for each CDS view. To find out what use cases are best supported by this CDS view, access the entry of the CDS view in the View Browser app and find the values for this annotation under the Annotation tab. For more information, see Supported Capabilities for CDS Views .
Structure
Business Objects This view is built on the PM Object location and account assignment(ILOA) table. Parameters This CDS view does not have any input parameters. Important Fields Important fields in this view include the following: Location and account assignment for technical object Functional location Maintenance plant Address number Plant section Sort field Controlling area Cost center Company code Business area ABC indicator
Constraints
This CDS view can be used to retrieve only technical objects like I_FunctionalLocation and equipment. This CDS view is not intended to be consumed directly or through the data preview browser.
SAP API Hub
| State | C1 |
|---|---|
| Line of Business | Asset Management |
| Application Component | PM-EQM-FL |
| Capabilities | Data Source in SQL Select, Data Source for Defining CDS Entities, Association Target for Defining CDS Entities, Analytical Dimension |
| Package | Asset Management for SAP S/4HANA Cloud Private Edition |
Documentation
- Analytics with CDS Views — Build Analytics for S/4HANA Cloud Private Edition ABAP CDS views replicated to SAP Cloud Platform
- CDS Views on SAP Business Accelerator Hub — Explore SAP S/4HANA Cloud Private Edition CDS Views on SAP Business Accelerator Hub
- Create CDS View as API — Create CDS views in SAP S/4HANA Cloud Private Edition and consume them as APIs
- Custom CDS Views — Access data using a Custom Core Data Service view (Custom CDS view)
- Key User Extensibility Tools — The Key User Extensibility Tools of S/4HANA
- SAP Extensibility Explorer for SAP S/4HANA Cloud Private Edition — Explore SAP S/4HANA Cloud Private Edition Extensibility options by leveraging the sample scenarios from SAP
- SAP S/4HANA Extensibility — SAP S/4HANA Extensibility Tutorial
- VDM View Types — The Virtual Data Model in SAP S/4HANA Cloud Private Edition
- View Browser — Search, browse and tag CDS 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 <> '' and _PhoneNumber.AddressPersonID = '' |
| [0..*] | I_AddressFaxNumber_2 | _FaxNumber | $projection.AddressID = _FaxNumber.AddressID and _FaxNumber.FaxNumberIsCurrentDefault = 'X' and _FaxNumber.AddressID <> '' and _FaxNumber.AddressPersonID = '' |
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 | Location and account assignment for technical object |
| WorkCenterInternalID | iloa | ppsid | Object ID of PP work center | |
| WorkCenterTypeCode | iloa | cr_objty | Object types of the CIM resource | |
| FunctionalLocation | iloa | tplnr | Functional Location | |
| MaintenancePlant | iloa | swerk | Maintenance Plant | |
| PlantSection | iloa | beber | Plant Section | |
| AssetLocation | iloa | stort | Location of maintenance object | |
| MaintObjectFreeDefinedAttrib | iloa | eqfnr | Sort Field | |
| BusinessArea | iloa | gsber | Business Area | |
| ControllingArea | iloa | kokrs | Controlling Area | |
| CostCenter | iloa | kostl | Substitute CC | |
| CompanyCode | iloa | bukrs | Company Code | |
| Division | iloa | spart | Source supplier | |
| MaintenanceObjectLocation | iloa | stort | Location of maintenance object | |
| AssetRoom | iloa | msgrp | Room | |
| ABCIndicator | iloa | abckz | ABC Indicator for Technical Object | |
| AddressID | iloa | adrnr | Sold-To Address | |
| WBSElementInternalID | iloa | proid | Work Breakdown Structure Element (WBS Element) | |
| MasterFixedAsset | iloa | anlnr | Main Asset Number | |
| FixedAsset | iloa | anlun | Asset Subnumber | |
| SettlementOrder | iloa | aufnr | Settlement order | |
| StandingOrderNumber | iloa | daufn | Standing order number | |
| SalesOrganization | iloa | vkorg | Sales Organization | |
| DistributionChannel | iloa | vtweg | Distribution Channel | |
| SalesOffice | iloa | vkbur | Sales Office | |
| OrganizationDivision | iloa | spart | Source supplier | |
| SalesGroup | iloa | vkgrp | Sales Group | |
| _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 |
Derived SQL interpretation, reconstructed from the parsed view metadata (data sources, associations, and field mappings). SAP annotations are omitted and the structure is reformulated as SQL — this is a functional approximation, not the verbatim SAP source.
-- Derived SQL interpretation of CDS view I_LocationAccountAssignment.
-- Reconstructed from parsed metadata (data sources, associations, fields).
-- SAP annotations are omitted and the structure is reformulated as SQL;
-- this is a functional approximation, not the verbatim SAP source. Some join
-- conditions may be unavailable and a few CDS constructs are kept as-is.
CREATE VIEW I_LocationAccountAssignment AS
SELECT
iloa.iloan AS MaintObjectLocAcctAssgmtNmbr,
iloa.ppsid AS WorkCenterInternalID,
iloa.cr_objty AS WorkCenterTypeCode,
iloa.tplnr AS FunctionalLocation,
iloa.swerk AS MaintenancePlant,
iloa.beber AS PlantSection,
iloa.stort AS AssetLocation,
iloa.eqfnr AS MaintObjectFreeDefinedAttrib,
iloa.gsber AS BusinessArea,
iloa.kokrs AS ControllingArea,
iloa.kostl AS CostCenter,
iloa.bukrs AS CompanyCode,
iloa.spart AS Division,
iloa.stort AS MaintenanceObjectLocation,
iloa.msgrp AS AssetRoom,
iloa.abckz AS ABCIndicator,
iloa.adrnr AS AddressID,
iloa.proid AS WBSElementInternalID,
iloa.anlnr AS MasterFixedAsset,
iloa.anlun AS FixedAsset,
iloa.aufnr AS SettlementOrder,
iloa.daufn AS StandingOrderNumber,
iloa.vkorg AS SalesOrganization,
iloa.vtweg AS DistributionChannel,
iloa.vkbur AS SalesOffice,
iloa.spart AS OrganizationDivision,
iloa.vkgrp AS SalesGroup
FROM iloa
LEFT OUTER JOIN I_WorkCenterType AS _WorkCenterType ON WorkCenterTypeCode = _WorkCenterType.WorkCenterTypeCode -- association [0..1]
LEFT OUTER JOIN I_WorkCenter AS _WorkCenter ON WorkCenterInternalID = _WorkCenter.WorkCenterInternalID AND WorkCenterTypeCode = _WorkCenter.WorkCenterTypeCode -- association [0..1]
LEFT OUTER JOIN I_Plant AS _MaintenancePlant ON MaintenancePlant = _MaintenancePlant.Plant -- association [0..1]
LEFT OUTER JOIN I_FunctionalLocation AS _FunctionalLocation ON FunctionalLocation = _FunctionalLocation.FunctionalLocation -- association [0..1]
LEFT OUTER JOIN I_PlantSection AS _PlantSection ON PlantSection = _PlantSection.PlantSection AND MaintenancePlant = _PlantSection.Plant -- association [0..1]
LEFT OUTER JOIN I_CostCenter AS _CostCenter ON CostCenter = _CostCenter.CostCenter AND ControllingArea = _CostCenter.ControllingArea -- association [0..*]
LEFT OUTER JOIN I_CompanyCode AS _CompanyCode ON CompanyCode = _CompanyCode.CompanyCode -- association [0..1]
LEFT OUTER JOIN I_ControllingArea AS _ControllingArea ON ControllingArea = _ControllingArea.ControllingArea -- association [0..1]
LEFT OUTER JOIN I_BusinessArea AS _BusinessArea ON BusinessArea = _BusinessArea.BusinessArea -- association [0..1]
LEFT OUTER JOIN I_Division AS _Division ON Division = _Division.Division -- association [0..1]
LEFT OUTER JOIN I_ABCIndicator AS _ABCIndicator ON ABCIndicator = _ABCIndicator.ABCIndicator -- association [0..1]
LEFT OUTER JOIN I_WBSElementBasicData AS _WBSElementBasicData ON WBSElementInternalID = _WBSElementBasicData.WBSElementInternalID -- association [0..1]
LEFT OUTER JOIN I_PMNotifMaintenanceData AS _PMNotifMaintenanceData ON MaintObjectLocAcctAssgmtNmbr = _PMNotifMaintenanceData.MaintObjectLocAcctAssgmtNmbr -- association [0..1]
LEFT OUTER JOIN I_Location AS _Location ON MaintenancePlant = _Location.Plant AND AssetLocation = _Location.Location -- association [0..1]
LEFT OUTER JOIN I_MasterFixedAsset AS _MasterFixedAsset ON CompanyCode = _MasterFixedAsset.CompanyCode AND MasterFixedAsset = _MasterFixedAsset.MasterFixedAsset -- association [0..1]
LEFT OUTER JOIN I_FixedAsset AS _FixedAsset ON CompanyCode = _FixedAsset.CompanyCode AND MasterFixedAsset = _FixedAsset.MasterFixedAsset AND FixedAsset = _FixedAsset.FixedAsset -- association [0..1]
LEFT OUTER JOIN I_Order AS _SettlementOrder ON SettlementOrder = _SettlementOrder.OrderID -- association [0..1]
LEFT OUTER JOIN I_MaintenanceOrder AS _StandingOrderNumber ON StandingOrderNumber = _StandingOrderNumber.MaintenanceOrder -- association [0..1]
LEFT OUTER JOIN I_Address AS _Address ON AddressID = _Address.AddressID -- association [0..1]
LEFT OUTER JOIN I_SalesOrganization AS _SalesOrganization ON SalesOrganization = _SalesOrganization.SalesOrganization -- association [0..1]
LEFT OUTER JOIN I_SlsOrganizationDistrChnl AS _SlsOrganizationDistrChnl ON SalesOrganization = _SlsOrganizationDistrChnl.SalesOrganization AND DistributionChannel = _SlsOrganizationDistrChnl.DistributionChannel -- association [0..1]
LEFT OUTER JOIN I_SalesAreaSalesOffice AS _SalesAreaSalesOffice ON SalesOffice = _SalesAreaSalesOffice.SalesOffice AND SalesOrganization = _SalesAreaSalesOffice.SalesOrganization AND DistributionChannel = _SalesAreaSalesOffice.DistributionChannel AND OrganizationDivision = _SalesAreaSalesOffice.OrganizationDivision -- association [0..1]
LEFT OUTER JOIN I_SalesOfficeSalesGroup AS _SalesOfficeSalesGroup ON SalesOffice = _SalesOfficeSalesGroup.SalesOffice AND SalesGroup = _SalesOfficeSalesGroup.SalesGroup -- association [0..1]
LEFT OUTER JOIN I_CostCenterText AS _CostCenterText ON ControllingArea = _CostCenterText.ControllingArea AND CostCenter = _CostCenterText.CostCenter AND _CostCenterText.ValidityStartDate <= $session.system_date AND _CostCenterText.ValidityEndDate >= $session.system_date -- association [0..*]
LEFT OUTER JOIN I_AddressDefaultRepresentation AS _Address2 ON AddressID = _Address2.AddressID -- association [0..1]
LEFT OUTER JOIN I_AddressPhoneNumber_2 AS _PhoneNumber ON AddressID = _PhoneNumber.AddressID AND _PhoneNumber.PhNmbrIsCurrentOverallDefault = 'X' AND _PhoneNumber.AddressID <> '' AND _PhoneNumber.AddressPersonID = '' -- association [0..*]
LEFT OUTER JOIN I_AddressFaxNumber_2 AS _FaxNumber ON AddressID = _FaxNumber.AddressID AND _FaxNumber.FaxNumberIsCurrentDefault = 'X' AND _FaxNumber.AddressID <> '' AND _FaxNumber.AddressPersonID = '' -- association [0..*]
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- 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
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA