C_FunctionalLocation

DDL: C_FUNCTIONALLOCATION SQL: CFUNCTLLOCATION Type: view CONSUMPTION Package: ILOM

Functional Location

C_FunctionalLocation is a Consumption CDS View that provides data about "Functional Location" in SAP S/4HANA. It reads from 1 data source (I_FunctionalLocation) and exposes 45 fields with key field FunctionalLocation. Part of development package ILOM.

Data Sources (1)

SourceAliasJoin Type
I_FunctionalLocation I_FunctionalLocation from

Parameters (1)

NameTypeDefault
P_Language sylangu

Annotations (10)

NameValueLevelField
ObjectModel.representativeKey FunctionalLocation view
EndUserText.label Functional Location view
VDM.viewType #CONSUMPTION view
AbapCatalog.sqlViewName CFUNCTLLOCATION view
AccessControl.authorizationCheck #CHECK view
AbapCatalog.compiler.compareFilter true view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.dataClass #MASTER view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #L view

Fields (45)

KeyFieldSource TableSource FieldDescription
KEY FunctionalLocation FunctionalLocation
FunctionalLocationLabelName
FuncnlLocPrimaryLabelName _PrimaryLabel FunctionalLocationLabelName
FunctionalLocationName
FunctionalLocationCategory FunctionalLocationCategory
FunctionalLocationCategoryDesc
WorkCenterInternalID WorkCenterInternalID
WorkCenterTypeCode WorkCenterTypeCode
TechnicalObjectType TechnicalObjectType
TechnicalObjectTypeDesc
CreatedByUser CreatedByUser
CreationDate CreationDate
LastChangedByUser LastChangedByUser
LastChangeDate LastChangeDate
AssetManufacturerName AssetManufacturerName
ManufacturerPartTypeName ManufacturerPartTypeName
AuthorizationGroup AuthorizationGroup
MaintenanceWorkCenter
MaintenancePlant _LocationAccountAssignment MaintenancePlant
PlantSection _LocationAccountAssignment PlantSection
AssetLocation _LocationAccountAssignment AssetLocation
AssetRoom _LocationAccountAssignment AssetRoom
MaintObjectFreeDefinedAttrib _LocationAccountAssignment MaintObjectFreeDefinedAttrib
ABCIndicator _LocationAccountAssignment ABCIndicator
BusinessArea _LocationAccountAssignment BusinessArea
ControllingArea _LocationAccountAssignment ControllingArea
CostCenter _LocationAccountAssignment CostCenter
CompanyCode _LocationAccountAssignment CompanyCode
Division _LocationAccountAssignment Division
MainWorkCenter _WorkCenter WorkCenter
MainWorkCenterPlant _WorkCenter Plant
MaintenancePlanningPlant MaintenancePlanningPlant
MaintenancePlannerGroup MaintenancePlannerGroup
CatalogProfile CatalogProfile
SalesOrganization _LocationAccountAssignment SalesOrganization
DistributionChannel _LocationAccountAssignment DistributionChannel
SalesOffice _LocationAccountAssignment SalesOffice
OrganizationDivision _LocationAccountAssignment OrganizationDivision
SalesGroup _LocationAccountAssignment SalesGroup
MaintObjectInternalID MaintObjectInternalID
_Status _Status
_FunctionalLocationCategory _FunctionalLocationCategory
_FunctionalLocationText _FunctionalLocationText
_TechnicalObjectType _TechnicalObjectType
_WorkCenter _WorkCenter
@ObjectModel.representativeKey: 'FunctionalLocation'
@EndUserText.label: 'Functional Location'
@VDM.viewType: #CONSUMPTION
@AbapCatalog.sqlViewName: 'CFUNCTLLOCATION'
@AccessControl.authorizationCheck:#CHECK
@AbapCatalog.compiler.compareFilter: true

@ClientHandling.algorithm: #SESSION_VARIABLE 
@ObjectModel.usageType.dataClass: #MASTER 
@ObjectModel.usageType.serviceQuality: #D
@ObjectModel.usageType.sizeCategory: #L


define view C_FunctionalLocation
with parameters
@Consumption.hidden: true
@Environment.systemField: #SYSTEM_LANGUAGE
P_Language : sylangu
as select from I_FunctionalLocation
association[0..1] to I_FunctionalLocationLabel as _FunctionalLocationLabel  on $projection.FunctionalLocation = _FunctionalLocationLabel.FunctionalLocation
association[0..1] to I_FunclocationLabelInternal as _PrimaryLabel on $projection.FunctionalLocation = _PrimaryLabel.FunctionalLocation
                                                                  and _PrimaryLabel.FunctionalLocLabelIsActive = 'X'
                                                                  and _PrimaryLabel.FuncnlLocLabelIsPrimaryLabel = 'X'    
{
    key FunctionalLocation, 
    
    // Select User Label if available, if not then primary label

    cast( _FunctionalLocationLabel.FunctionalLocationLabelName as ilom_strno ) as FunctionalLocationLabelName,
    
    _PrimaryLabel.FunctionalLocationLabelName as FuncnlLocPrimaryLabelName,
           
    _FunctionalLocationText[1: Language = $parameters.P_Language ].FunctionalLocationName,
    
    FunctionalLocationCategory, 
    _FunctionalLocationCategory._Text[1: Language = $parameters.P_Language ].FunctionalLocationCategoryDesc,
     
    WorkCenterInternalID, 
    WorkCenterTypeCode, 
    
    TechnicalObjectType, 
    _TechnicalObjectType._Text[1: Language = $parameters.P_Language ].TechnicalObjectTypeDesc,
    
    
    CreatedByUser, 
    CreationDate, 
    LastChangedByUser, 
    LastChangeDate,
    AssetManufacturerName,
    ManufacturerPartTypeName, 
    AuthorizationGroup,

    
    // Location data      

    _LocationAccountAssignment._WorkCenter.WorkCenter as MaintenanceWorkCenter, 
    _LocationAccountAssignment.MaintenancePlant,  
    _LocationAccountAssignment.PlantSection, 
    _LocationAccountAssignment.AssetLocation, 
    _LocationAccountAssignment.AssetRoom,
    _LocationAccountAssignment.MaintObjectFreeDefinedAttrib, 
    _LocationAccountAssignment.ABCIndicator, 
       
    // Organization

    _LocationAccountAssignment.BusinessArea, 
    _LocationAccountAssignment.ControllingArea, 
    _LocationAccountAssignment.CostCenter, 
    _LocationAccountAssignment.CompanyCode, 
    _LocationAccountAssignment.Division, 
    
    // Responsibilities

    _WorkCenter.WorkCenter as MainWorkCenter,    
    _WorkCenter.Plant as MainWorkCenterPlant, 
    
    MaintenancePlanningPlant,  
    MaintenancePlannerGroup,
    CatalogProfile, 
    
    //Sales Org Data

    _LocationAccountAssignment.SalesOrganization,
    _LocationAccountAssignment.DistributionChannel,
    _LocationAccountAssignment.SalesOffice,
    _LocationAccountAssignment.OrganizationDivision,
    _LocationAccountAssignment.SalesGroup,
    
    MaintObjectInternalID,
    
    _Status,

    // Propagate associations

    _FunctionalLocationCategory, 
    _FunctionalLocationText, 
    _TechnicalObjectType, 
    _WorkCenter

}