I_PLANT
Plant
I_PLANT is a CDS View in S/4HANA. Plant. It contains 13 fields. 113 CDS views read from this table.
CDS Views using this table (113)
| View | Type | Join | VDM | Description |
|---|---|---|---|---|
| /VSCEW/A_Plant | view_entity | from | Plant | |
| /VSCEW/CC_Plant_VH | view_entity | from | Plant VH | |
| /VSCEW/I_MRPAreaStorageLoc | view_entity | inner | MRP Area Storage Location | |
| /VSCEW/I_MRPAreaSubcontractor | view_entity | inner | MRP Area Subcontractor | |
| A_BufferProfileDetails | view_entity | from | CONSUMPTION | Buffer Profile Details |
| A_DigitalVehiclePlant | view_entity | from | CONSUMPTION | Digital Vehicle Plant |
| A_ExciseTaxPlant | view | from | BASIC | Plant (for Excise Tax) |
| A_Plant | view | from | BASIC | API Plant |
| A_Plant_2 | view_entity | from | CONSUMPTION | Plant |
| A_ProfileAssgmtToPlant | view_entity | from | CONSUMPTION | Buffer Profile Assigned to Plant |
| C_ChgMgmtPlantVH | view | from | CONSUMPTION | Change Management Plant Value Help |
| C_CmmdtyHdgPlnExposurePlantVH | view | from | CONSUMPTION | Commodity Hedge Plan Exposure Plant |
| C_Distributioncentervh | view | from | CONSUMPTION | Consumption-Dist Center Value Help |
| C_FixedAssetOvwPlntPurgOrgVH | view | from | CONSUMPTION | Plant Purchasing Organization Value Help |
| C_MasterRecipePlantVH | view_entity | from | CONSUMPTION | Master Recipe Plant |
| C_MaterialPlantMalfuncManageVH | view | from | CONSUMPTION | Material Plant |
| C_MM_PlantBasicValueHelp | view | from | CONSUMPTION | Basic Value Help for Plants |
| C_MM_PlantValueHelp | view | from | CONSUMPTION | Plant Value Help |
| C_ModProdSpecItemPlantVH | view_entity | from | CONSUMPTION | Model Product Specification Item Plants |
| C_PhysInvtryProposal | view_entity | inner | CONSUMPTION | Proposals for new PI counts |
| C_Plantvaluehelp | view_entity | from | CONSUMPTION | Plant Value Help for QM |
| C_PlantVH | view | from | CONSUMPTION | Consumption-Plant Value Help |
| C_ProcmtMassUpdtPlantVH | view | from | CONSUMPTION | Procurement Plant Value Help |
| C_ProjSrvcOrgPlantVH | view_entity | from | CONSUMPTION | Select Plant |
| C_PurOrdMaintainPlantValHelp | view | from | CONSUMPTION | PO Maintenance: Value Help for Plant |
| C_PurOrdMaintainUoMValHelp | view | left_outer | CONSUMPTION | Value Help Unit of measure |
| C_RecipeFinderPlantValueHelp | view | from | CONSUMPTION | Recipe Finder Plant Value Help |
| C_ResvnDocPlantByCoCodeVH | view | from | CONSUMPTION | Plant by Company Code Value Help |
| C_SASAction | view | inner | CONSUMPTION | Shop Floor Item At Operation Activity |
| C_StkSubscrpnPlntByCoCodeVH | view_entity | from | CONSUMPTION | List of plants by company code |
| C_Storevh | view | from | CONSUMPTION | Consumption-Store Value Help |
| C_SupDmndOpenDelivQuery | view | left_outer | CONSUMPTION | Query View for Total Demand |
| C_SupDmndOvwDmndItmQuery | view | left_outer | CONSUMPTION | Query View for Total Demand |
| C_SupDmndOvwSupAssgmtQuery | view | left_outer | CONSUMPTION | Consumption view for Assignments |
| C_SupDmndOvwTotDmndQuery | view | left_outer | CONSUMPTION | Query View for Total Demand |
| C_SupDmndOvwTotSupQuery | view | left_outer | CONSUMPTION | Query View for Total Supply |
| C_SupDmndTotSlsOrdQuery | view | left_outer | CONSUMPTION | Query View for Total Demand |
| C_SupDmndTotSTOQuery | view | left_outer | CONSUMPTION | Query View for Total Demand |
| C_SustPlantAddressDEX | view | from | CONSUMPTION | Plant Address data extractor |
| C_WrkCtrMntrNonWorkingDays | view_entity | from | CONSUMPTION | Non Working Days On Factory Calendar |
| C_WrntyPlantValueHelp | view_entity | from | CONSUMPTION | Value Help for Warranty Claim Plant |
| CIC_PlantAddress | view_entity | inner | Proj. view on Plant address | |
| FAC_AUDIT_Z3_Plant | view | from | Plant | |
| FAC_PLANTVH | view | from | Value help for plant | |
| finoc_rt_mat_fill | view | inner | Orgl Change: Fill Runtime for Material | |
| FPCV_AI_VAL_VAR_PLANT | view_entity | left_outer | Valuation Variant per Plant | |
| I_CnsldtnMasterData | view | union_all | COMPOSITE | Consolidation - Combined Master Data |
| I_CustomerCompanyByPlant | view_entity | from | COMPOSITE | Customer Company by Plant |
| I_DistributionChainCountry | view | inner | COMPOSITE | Distribution Chain Country/Region |
| I_FixedAssetOvwPlantVH | view | from | BASIC | Plant by Company Code Value Help |
| I_FldLogsPlntPerCustSlsArea | view_entity | inner | BASIC | Plant wise Customer Sales Area |
| I_IN_PlantBusinessPlaceDetail | view_entity | from | COMPOSITE | GST India Business Place for Plant |
| I_InternalOrderPlantVH | view | from | COMPOSITE | Internal Order Plant |
| I_JITPlant | view_entity | from | BASIC | JIT Plant |
| I_KanbanContainerVH | view | inner | COMPOSITE | Kanban Container Value Help |
| I_LoglProdAssgmtSuplrToStore | view | left_outer | COMPOSITE | Logistical Product Supplier Store Assgmt |
| I_LoglProdAssgmtSupplierToDC | view | left_outer | COMPOSITE | Logistical Product Supplier DC Assgmt |
| I_ManufacturingFeatureStatus | view | from | BASIC | Manufacturing Feature Status |
| I_PhysInvtryMatValnTypeVH | view_entity | inner | COMPOSITE | Material Valuation Type |
| I_PlantAddressVH | view_entity | from | BASIC | Plant by Address |
| I_PlantCompanyCodeCurrency | view | from | COMPOSITE | Plant company code currency |
| I_PlantVH | view_entity | from | COMPOSITE | Plants |
| I_ProdEWMPartyToDispose | view | inner | BASIC | Basic View - Entitled to Dispose |
| I_ProdPlantPurchaseTax | view | inner | COMPOSITE | Composite View - Prod Plant Purchase Tax |
| I_PT_SelfBillgCustAddrVers | view | inner | COMPOSITE | PT Self-Billing CustAddr Version |
| I_QltyMgmtPlantCostCenterVH | view | inner | COMPOSITE | Cost Center By Plant |
| I_Site | view | from | BASIC | Retail Site |
| I_SupDmndOvwAssgmtCube | view | left_outer | COMPOSITE | Supply Demand Overview Cube View(MDR) |
| I_SupDmndOvwCube | view | left_outer | COMPOSITE | Supply Demand Overview Cube View |
| I_SupplierCompanyByPlant | view_entity | from | COMPOSITE | Supplier Company by Plant |
| I_SVTPlant | view_entity | from | COMPOSITE | Substance Volume Tracking Plant |
| P_AssgblDCForSuplr | view | cross | CONSUMPTION | Assignable DC for Supplier Value Help |
| P_AssgblStoreForProcmtProdExt | view | cross | CONSUMPTION | Assignable Store for Prod (Ext) Val Help |
| P_AssgblStoreForProcmtProdInt | view | cross | CONSUMPTION | Assignable Store for Prod (Int) Val Help |
| P_AssgblSuplrForProcmtProd | view | left_outer | CONSUMPTION | Assgbl Suplr for Procmt Prod Value Help |
| P_BOOPlantControllingArea | view_entity | from | COMPOSITE | Bill of Operations Plant Controlling Area |
| P_CnsldtnPlant | view | from | COMPOSITE | Consolidation Combined Plant |
| P_CnsldtnPlantT | view | from | COMPOSITE | Consolidation Combined Plant - Text |
| P_DMVCCompanyCodeByPlant | view | from | COMPOSITE | DMVC: Company Code by Plant |
| P_DMVCMaterialActivity | view | inner | COMPOSITE | DMVC: Material Activity |
| P_JP_GRBASEDGRLIST | view | inner | COMPOSITE | Goods Receipt Document List(GR Based ) |
| P_JP_POBASEDGRLIST | view | inner | COMPOSITE | Goods Receipt Document List(PO Based ) |
| P_MaterialValuationCategory | view_entity | inner | COMPOSITE | Valuation Category of a Material and Plant |
| P_MaterialValuationTypesVH | view_entity | inner | COMPOSITE | Valuation category by material plant |
| P_MatlDocPlntAuthzn | view | from | COMPOSITE | Read Plants for F4 Help |
| P_MfgProcgExecBatchPlant | view | cross | COMPOSITE | Batches in Plants for Component Assembly |
| P_MfgProcgExecNonAssySrlNmbr | view | cross | COMPOSITE | Manufacturing Processing Execution Serial Number |
| P_MMIM_PLANT_M_BEST_WRK_01 | view | from | COMPOSITE | Plants with authority M_BEST_WRK activity 01 |
| P_MMIM_PLANT_M_MSEG_WWA_01 | view | from | COMPOSITE | Plants with authority M_MSEG_WWA activity 01 |
| P_NightSplitForShift | view | from | COMPOSITE | Work Center Night Split |
| P_NightSplitForShift | view | union | COMPOSITE | Work Center Night Split |
| P_NonVrsEngBOMAcrsAllProdnPlnt | view | cross | COMPOSITE | Non Version Controlled Eng BOM Across All Production Plants |
| P_OrderFulfillmentRespyFC | view | from | COMPOSITE | Order Fulfillment Responsibility Field Catalog |
| P_PhysInvtryKeyFiguresBase | view_entity | inner | COMPOSITE | Basis for the calc. of PI Key Figures for a Stock Sep. Comb. |
| P_PhysInvtryProposal | view_entity | inner | CONSUMPTION | Proposals for new PI documents |
| P_Plant_Fs | view | left_outer | BASIC | Priavte Factsheet - Plant |
| P_PlantValuationArea | view | from | COMPOSITE | Temporary view for valuation area and company code of plant |
| P_ProdCmplncPlant | view_entity | from | COMPOSITE | Substance Volume Tracking Plants |
| P_ProdCmplncStorLoc | view_entity | union | COMPOSITE | Product Complliance Storage Location with Fallback |
| P_ProdnSupvrPlantList | view_entity | union | COMPOSITE | Prodn Supvr Plant List |
| P_ProfileAssgmtToPlant | view_entity | from | CONSUMPTION | Profile Assignment To Plant |
| P_PurOrdMaintainItemActAddr | view | left_outer | CONSUMPTION | PO Maintenance: Purchase Order Item Address (Active) |
| P_PurOrdMaintainItemActCalcPrc | view | left_outer | CONSUMPTION | PO Maintenance: PO Item Calculation Procedures (Active) |
| P_Qm_Headerwithoperations | view | left_outer | BASIC | Private CDS - QALS with V_QAPO |
| P_QMQLTYINROCIDGEN | view_entity | from | COMPOSITE | Quality In Proc Generation |
| P_RSHRelationshipSplit | view | from | BASIC | Relationship Split |
| P_RSHRelationshipSplit | view | union | BASIC | Relationship Split |
| P_RSHWCNightSplit | view | from | CONSUMPTION | Two lines to split the night shifts |
| P_RSHWCNightSplit | view | union | CONSUMPTION | Two lines to split the night shifts |
| P_SLLMINMAXRELEVANTPOITEMS | view | inner | COMPOSITE | PO history for min and max order price determination |
| P_Supplier_Fs | view | left_outer | BASIC | Private Factsheet - Supplier |
| P_VersEngBOMAcrossAllProdnPlnt | view | cross | COMPOSITE | Version Controlled Eng BOM Across All Production Plants |
| P_WrkCtrPersnRespAORList | view_entity | union | COMPOSITE | Work Center Person Responsible AOR List |
Fields (13)
| Key | Field | CDS Fields | Used in Views |
|---|---|---|---|
| KEY | DistributionChannel | DistributionChannel | 1 |
| KEY | Division | Division | 1 |
| KEY | Plant | DistributionCenter,Plant,Store | 37 |
| KEY | PlantCustomer | PlantCustomer | 2 |
| KEY | SalesOrganization | SalesOrganization | 3 |
| _Customer | _Customer | 1 | |
| AddressID | AddressID | 2 | |
| DefaultPurchasingOrganization | DefaultPurchasingOrganization | 1 | |
| Language | PlantLanguage | 1 | |
| PlantCategory | PlantCategory | 4 | |
| PlantName | name1,PlantName,StoreName | 31 | |
| PlantSupplier | PlantSupplier | 1 | |
| ValuationArea | ValuationArea | 3 |
@AbapCatalog.entityBuffer.definitionAllowed: true
@EndUserText.label: 'Plant'
@ObjectModel:{
usageType:{
sizeCategory: #S,
serviceQuality: #A,
dataClass:#CUSTOMIZING
},
representativeKey: 'Plant',
sapObjectNodeType: {
name: 'Plant'
},
modelingPattern: #ANALYTICAL_DIMENSION,
supportedCapabilities: [#ANALYTICAL_DIMENSION, #CDS_MODELING_ASSOCIATION_TARGET, #SQL_DATA_SOURCE, #CDS_MODELING_DATA_SOURCE, #EXTRACTION_DATA_SOURCE]
}
@AccessControl:{
authorizationCheck: #NOT_REQUIRED,
personalData.blocking: #NOT_REQUIRED,
privilegedAssociations: ['_Address', '_OrganizationAddress', '_StandardOrganizationAddress']
}
@VDM:{
viewType: #BASIC,
lifecycle.contract.type: #PUBLIC_LOCAL_API
}
@Analytics:{
internalName: #LOCAL,
technicalName: 'IPLANT',
dataCategory: #DIMENSION,
dataExtraction.enabled: true
}
@Search.searchable: true
@Metadata:{
allowExtensions: true,
ignorePropagatedAnnotations: true
}
define view entity I_Plant
as select from t001w
association [0..1] to I_Address as _Address on $projection.AddressID = _Address.AddressID
association [0..*] to I_OrganizationAddress as _OrganizationAddress on $projection.AddressID = _OrganizationAddress.AddressID
and _OrganizationAddress.AddressPersonID = ''
/*
For association _OrganizationAddress an ON condition for AddressRepresentationCode is missing. With the abillity to maintain also an International Address version
it is possible to have more than one address for the plant. Due to this cardinality break compared to _Address the additional association _StandardOrganizationAddress
has been introduced and defined as successor.
*/
association [0..1] to I_OrganizationAddress as _StandardOrganizationAddress on $projection.AddressID = _StandardOrganizationAddress.AddressID
and _StandardOrganizationAddress.AddressPersonID = ''
and _StandardOrganizationAddress.AddressRepresentationCode = ''
association [0..1] to I_Customer as _Customer on $projection.PlantCustomer = _Customer.Customer
association [0..1] to I_Supplier as _Supplier on $projection.PlantSupplier = _Supplier.Supplier
association [0..*] to I_PlantPurchasingOrganization as _ResponsiblePurchaseOrg on $projection.Plant = _ResponsiblePurchaseOrg.Plant
association [0..*] to I_PlantCategoryT as _PlantCategoryText on $projection.PlantCategory = _PlantCategoryText.PlantCategory
association [0..1] to I_ValuationArea as _ValuationArea on $projection.ValuationArea = _ValuationArea.ValuationArea
association [0..*] to I_MRPArea as _MRPArea on $projection.Plant = _MRPArea.MRPAreaPlant
association [0..*] to I_PlantHierarchyNode as _PlantHierarchyNode on $projection.Plant = _PlantHierarchyNode.Plant
{
@ObjectModel.text.element: ['PlantName']
@Search.defaultSearchElement: true
@Search.fuzzinessThreshold: 0.8
@Search.ranking: #HIGH
@ObjectModel.hierarchy.association: '_PlantHierarchyNode'
key werks as Plant,
@Semantics.text: true
@Search.defaultSearchElement: true
@Search.fuzzinessThreshold: 0.8
@Search.ranking: #HIGH
cast(name1 as werks_name preserving type ) as PlantName,
bwkey as ValuationArea,
@ObjectModel.foreignKey.association: '_Customer'
@Consumption.valueHelpDefinition: [
{ entity: { name: 'I_Customer_VH',
element: 'Customer' }
}]
kunnr as PlantCustomer,
@ObjectModel.foreignKey.association: '_Supplier'
@Consumption.valueHelpDefinition: [
{ entity: { name: 'I_Supplier_VH',
element: 'Supplier' }
}]
lifnr as PlantSupplier,
fabkl as FactoryCalendar,
ekorg as DefaultPurchasingOrganization,
vkorg as SalesOrganization,
/*
The right foreignKey.association would be to _StandardOrganizationAddress
But that creates issues for all analytical views which associate I_Plant due to the above hard coded ON condition on AddressPersonID = ''
and AddressRepresentationCode = ''
As long as that is not solved by BW-BEX-OT-ODP, the foreignKey.assocaition is set back to _Address
*/
@ObjectModel.foreignKey.association: '_Address'
adrnr as AddressID,
@ObjectModel.sapObjectNodeTypeReference: 'PlantCategory'
vlfkz as PlantCategory,
vtweg as DistributionChannel,
spart as Division,
spras as Language,
achvm as IsMarkedForArchiving, //2949107
@API: {
element: {
releaseState: #DEPRECATED,
successor: '_StandardOrganizationAddress'
}
}
@VDM: {
lifecycle: {
status: #DEPRECATED,
successor: '_StandardOrganizationAddress'
}
}
_Address,
_OrganizationAddress,
_StandardOrganizationAddress,
_Customer,
_Supplier,
_ResponsiblePurchaseOrg,
_PlantCategoryText,
_ValuationArea,
_MRPArea,
_PlantHierarchyNode
}