I_PRODUCTIONVERSION
Production Version
I_PRODUCTIONVERSION is a CDS View in S/4HANA. Production Version. It contains 72 fields. 29 CDS views read from this table.
CDS Views using this table (29)
| View | Type | Join | VDM | Description |
|---|---|---|---|---|
| C_MassMaintCapProdnVersionVH | view_entity | from | CONSUMPTION | Value Help for Production Version |
| C_MfgOrderProdVersionObjPg | view_entity | from | CONSUMPTION | Production Version |
| C_MM_ProductionVersValueHelp | view | from | CONSUMPTION | Production Version Value Help |
| C_MntrWrkCtrSourceSchedule | view | from | CONSUMPTION | Free Slots in Work Center Reschedule |
| C_ProdnSupplyAreaProdnVersCnt | view_entity | left_outer | CONSUMPTION | Count of Production Versions use PSA |
| C_ProdnSupplyAreaProdnVersion | view_entity | from | CONSUMPTION | Production Version of PSA Where Used |
| C_SchedProdnProdVersDay | view | from | CONSUMPTION | Production Versions In Day Bucket |
| C_SchedProdnProdVersShift | view | from | CONSUMPTION | Production versions in shift bucket |
| C_SchedProdnProdVersWeek | view | from | CONSUMPTION | Production Versions In Week Bucket |
| C_WrkCtrMntrReschedule | view | from | CONSUMPTION | Monitor Work Center Reschedule |
| I_CapEvalByAreaOfRespy | view | inner | COMPOSITE | Work Center By Area Of Responsibility |
| I_ChgRecdMstrRcpProdnVersion | view | from | COMPOSITE | Production Version for CR Master Recipe |
| I_ChgRecdProductionVersion | view | from | COMPOSITE | Change Record: Production Version |
| I_EvaltCapWrkCtrGrpAreaOfRespy | view_entity | inner | COMPOSITE | Work Center Group Area of Responsibility |
| I_MassMaintCapAreaOfRespy | view_entity | inner | COMPOSITE | Work Center Capacity AOR |
| I_ProdnVersTP | view | from | TRANSACTIONAL | Manage Production Version |
| I_ProductionVersionStdVH | view | from | COMPOSITE | Production Version |
| I_SchedProdnVersRtgDetails | view | from | COMPOSITE | Production Version Routing Details |
| I_SchedProdnWrkCtrSqncVH | view | from | COMPOSITE | Work Ctr Filter for dispatch by sequence |
| I_SchedProdnWrkCtrSqncVH | view | union_all | COMPOSITE | Work Ctr Filter for dispatch by sequence |
| I_WrkCtrCapByAreaOfRespy | view | inner | COMPOSITE | Work Center By Area Of Responsibility |
| P_ALTERNATEPRODLINES | view | inner | BASIC | |
| P_DDMaterialSOS | view | inner | CONSUMPTION | |
| P_NumberOfSourcesOfSupply | view | from | COMPOSITE | |
| P_ProductionVersion | view | from | COMPOSITE | |
| P_SchedProdnAltvProdnVers | view | from | BASIC | |
| P_WrkCtrMntrAlternateWrkCtr | view | inner | CONSUMPTION | |
| P_WrkCtrMntrIndstryType | view | from | CONSUMPTION | Industry Type for Alternate Routings |
| R_ProductionVersionTP | view_entity | from | TRANSACTIONAL | Production Version Header |
Fields (72)
| Key | Field | CDS Fields | Used in Views |
|---|---|---|---|
| KEY | Material | Material,MaterialForEdit,Product | 11 |
| KEY | Plant | AlternatePlant,Plant,PlantForEdit | 12 |
| KEY | ProductionLine | AlternateWorkCenter,ProductionLine,WorkCenter | 10 |
| KEY | ProductionVersion | ProductionVersion,ProductionVersionForEdit | 11 |
| _BillOfOperations | _BillOfOperations | 2 | |
| _BillOfOperationsGroup | _BillOfOperationsGroup | 2 | |
| _BillOfOperationsType | _BillOfOperationsType | 2 | |
| _ChangeMaster | _ChangeMaster | 2 | |
| _IssuingStorageLocation | _IssuingStorageLocation | 2 | |
| _MainProduct | _MainProduct | 2 | |
| _Material | _Material | 2 | |
| _MaterialBaseUnit | _MaterialBaseUnit | 1 | |
| _MatlCostApportionmentStruc | _MatlCostApportionmentStruc | 2 | |
| _MatlProcurementProfile | _MatlProcurementProfile | 1 | |
| _OriglBatchReferenceMaterial | _OriglBatchReferenceMaterial | 2 | |
| _Plant | _Plant | 2 | |
| _Product | _Product | 2 | |
| _ProductionLine | _ProductionLine | 2 | |
| _ProductionSupplyArea | _ProductionSupplyArea | 2 | |
| _ProductionVersionGroup | _ProductionVersionGroup | 2 | |
| _ProductPlant | _ProductPlant | 2 | |
| _QuantityDistributionKey | _QuantityDistributionKey | 1 | |
| _ReceivingStorageLocation | _ReceivingStorageLocation | 2 | |
| _TargetProductionSupplyArea | _TargetProductionSupplyArea | 1 | |
| BillOfMaterialVariant | BillOfMaterialVariant | 3 | |
| BillOfMaterialVariantUsage | BillOfMaterialVariantUsage | 3 | |
| BillOfOperationsGroup | BillOfOperationsGroup | 3 | |
| BillOfOperationsType | BillOfOperationsType | 4 | |
| BillOfOperationsVariant | BillOfOperationsVariant | 3 | |
| BOMCheckStatus | BOMCheckStatus | 3 | |
| ChangeHistoryCount | ChangeHistoryCount | 3 | |
| ChangeNumber | ChangeNumber | 3 | |
| ConfigblProdProductionVersion | ConfigblProdProductionVersion | 1 | |
| CostingLotSize | CostingLotSize | 1 | |
| CreatedByUser | CreatedByUser | 3 | |
| CreationDate | CreationDate | 3 | |
| DestinationStorageBin | DestinationStorageBin | 2 | |
| DistributionKey | DistributionKey | 2 | |
| ExecBillOfMaterialVariant | ExecBillOfMaterialVariant | 2 | |
| ExecBillOfMaterialVariantUsage | ExecBillOfMaterialVariantUsage | 2 | |
| ExecBillOfOperationsGroup | ExecBillOfOperationsGroup | 2 | |
| ExecBillOfOperationsType | ExecBillOfOperationsType | 2 | |
| ExecBillOfOperationsVariant | ExecBillOfOperationsVariant | 2 | |
| HasVersionCtrldBOMAndRouting | HasVersionCtrldBOMAndRouting | 3 | |
| IssuingStorageLocation | IssuingStorageLocation | 3 | |
| LastChangeDate | LastChangeDate | 3 | |
| LastChangedByUser | LastChangedByUser | 3 | |
| MainProduct | MainProduct | 3 | |
| MaterialBaseUnit | MaterialBaseUnit | 2 | |
| MaterialCostApportionmentStruc | MaterialCostApportionmentStruc | 3 | |
| MaterialMaxLotSizeQuantity | MaterialMaxLotSizeQuantity | 3 | |
| MaterialMinLotSizeQuantity | MaterialMinLotSizeQuantity | 3 | |
| MaterialProcurementProfile | MaterialProcurementProfile | 1 | |
| OriginalBatchReferenceMaterial | OriginalBatchReferenceMaterial | 3 | |
| PlanningAndExecutionBOMIsDiff | PlanningAndExecutionBOMIsDiff | 2 | |
| PreliminaryPlanningStatus | PreliminaryPlanningStatus | 3 | |
| ProcurementType | ProcurementType | 1 | |
| ProdnVersIsAllowedForRptvMfg | ProdnVersIsAllowedForRptvMfg | 3 | |
| ProductionSupplyArea | ProductionSupplyArea | 3 | |
| ProductionVersionGroup | ProductionVersionGroup | 3 | |
| ProductionVersionIsLocked | ProductionVersionIsLocked | 2 | |
| ProductionVersionLastCheckDate | ProductionVersionLastCheckDate | 3 | |
| ProductionVersionStatus | ProductionVersionStatus | 2 | |
| ProductionVersionText | ProductionVersionText | 8 | |
| QuantityDistributionKey | QuantityDistributionKey | 2 | |
| RateBasedPlanningStatus | RateBasedPlanningStatus | 3 | |
| ReceivingStorageLocation | ReceivingStorageLocation,StorageLocation | 4 | |
| TargetProductionSupplyArea | TargetProductionSupplyArea | 1 | |
| UsgeProbltyWthVersCtrlInPct | UsgeProbltyWthVersCtrlInPct | 1 | |
| ValidityEndDate | ValidityEndDate | 3 | |
| ValidityStartDate | ValidityStartDate | 3 | |
| Warehouse | EWMWarehouse | 2 |
//@AbapCatalog.sqlViewName: 'IPPPRODVERSION'
@AccessControl.authorizationCheck: #CHECK
@AccessControl.personalData.blocking: #NOT_REQUIRED
@Analytics.dataCategory: #DIMENSION
@Analytics.dataExtraction.enabled: true
@Metadata.allowExtensions: true
@Metadata.ignorePropagatedAnnotations: true
@ObjectModel.sapObjectNodeType.name: 'ProductionVersion'
@ObjectModel.modelingPattern: #ANALYTICAL_DIMENSION
@ObjectModel.supportedCapabilities: [#ANALYTICAL_DIMENSION, #CDS_MODELING_ASSOCIATION_TARGET, #SQL_DATA_SOURCE, #CDS_MODELING_DATA_SOURCE, #SEARCHABLE_ENTITY, #EXTRACTION_DATA_SOURCE]
@ObjectModel.representativeKey: 'ProductionVersion'
@ObjectModel.usageType: {serviceQuality: #C, sizeCategory: #XL, dataClass: #MASTER}
@Search.searchable: true
@VDM.lifecycle.contract.type: #PUBLIC_LOCAL_API
@VDM.viewType: #BASIC
@EndUserText.label: 'Production Version'
define view entity I_ProductionVersion
as select from mkal as mkal
left outer to one join I_ProdnVersLastChangeHistory as mkal_aend on mkal_aend.Material = mkal.matnr
and mkal_aend.Plant = mkal.werks
and mkal_aend.ProductionVersion = mkal.verid
association [1..1] to I_Material as _Material on $projection.Material = _Material.Material
association [1..1] to I_Plant as _Plant on $projection.Plant = _Plant.Plant
association [1..1] to I_Product as _Product on $projection.Material = _Product.Product
association [1..1] to I_ProductPlant as _ProductPlant on $projection.Material = _ProductPlant.Product
and $projection.Plant = _ProductPlant.Plant
association [0..1] to I_Product as _MainProduct on $projection.MainProduct = _MainProduct.Product
association [0..1] to I_Product as _OriglBatchReferenceMaterial on $projection.OriginalBatchReferenceMaterial = _OriglBatchReferenceMaterial.Product
association [1..1] to I_BillOfOperationsType as _BillOfOperationsType on $projection.BillOfOperationsType = _BillOfOperationsType.BillOfOperationsType
association [1..1] to I_BillOfOperationsGroup as _BillOfOperationsGroup on $projection.BillOfOperationsType = _BillOfOperationsGroup.BillOfOperationsType
and $projection.BillOfOperationsGroup = _BillOfOperationsGroup.BillOfOperationsGroup
association [1..1] to I_BillOfOperations as _BillOfOperations on $projection.BillOfOperationsType = _BillOfOperations.BillOfOperationsType
and $projection.BillOfOperationsGroup = _BillOfOperations.BillOfOperationsGroup
and $projection.BillOfOperationsVariant = _BillOfOperations.BillOfOperationsVariant
association [0..1] to I_ProductionLine as _ProductionLine on $projection.Plant = _ProductionLine.Plant
and $projection.ProductionLine = _ProductionLine.ProductionLine
association [0..1] to I_ProductionVersionGroup as _ProductionVersionGroup on $projection.Plant = _ProductionVersionGroup.Plant
and $projection.ProductionVersionGroup = _ProductionVersionGroup.ProductionVersionGroup
association [0..1] to I_ProductionSupplyArea as _ProductionSupplyArea on $projection.Plant = _ProductionSupplyArea.Plant
and $projection.ProductionSupplyArea = _ProductionSupplyArea.ProductionSupplyArea
association [0..1] to I_ProductionSupplyArea as _TargetProductionSupplyArea on $projection.Plant = _TargetProductionSupplyArea.Plant
and $projection.TargetProductionSupplyArea = _TargetProductionSupplyArea.ProductionSupplyArea
association [0..1] to I_StorageLocation as _IssuingStorageLocation on $projection.Plant = _IssuingStorageLocation.Plant
and $projection.IssuingStorageLocation = _IssuingStorageLocation.StorageLocation
association [0..1] to I_StorageLocation as _ReceivingStorageLocation on $projection.Plant = _ReceivingStorageLocation.Plant
and $projection.ReceivingStorageLocation = _ReceivingStorageLocation.StorageLocation
association [0..1] to I_MatlCostApportionmentStruc as _MatlCostApportionmentStruc on $projection.Material = _MatlCostApportionmentStruc.Material
and $projection.Plant = _MatlCostApportionmentStruc.Plant
and $projection.MaterialCostApportionmentStruc = _MatlCostApportionmentStruc.MaterialCostApportionmentStruc
association [0..1] to I_MRPQuantityDistributionKey as _QuantityDistributionKey on $projection.Plant = _QuantityDistributionKey.Plant
and $projection.QuantityDistributionKey = _QuantityDistributionKey.QuantityDistributionKey
association [0..1] to I_UnitOfMeasure as _MaterialBaseUnit on $projection.MaterialBaseUnit = _MaterialBaseUnit.UnitOfMeasure
association [0..1] to I_MatlProcurementProfile as _MatlProcurementProfile on $projection.Plant = _MatlProcurementProfile.Plant
and $projection.MaterialProcurementProfile = _MatlProcurementProfile.MaterialProcurementProfile
{
// Key
@Search: {defaultSearchElement: true, ranking: #HIGH, fuzzinessThreshold: 0.8}
@Consumption.valueHelpDefinition: [ { entity: { name: 'I_MaterialStdVH', element: 'Material' } } ]
@ObjectModel.foreignKey.association: '_Material'
key mkal.matnr as Material,
@ObjectModel.foreignKey.association: '_Plant'
key mkal.werks as Plant,
@ObjectModel.text.element: ['ProductionVersionText']
key mkal.verid as ProductionVersion,
// Text
@Semantics.text: true
@Search: {defaultSearchElement: true, ranking: #MEDIUM, fuzzinessThreshold: 0.8}
mkal.text1 as ProductionVersionText,
// Administrative Data
mkal_aend.ChangeHistoryCount,
@Consumption.valueHelpDefinition: [ { entity: { name: 'I_ChangeMasterStdVH', element: 'ChangeNumber' } } ]
@ObjectModel.foreignKey.association: '_ChangeMaster'
mkal_aend.ChangeNumber,
@Semantics.systemDate.createdAt: true
mkal_aend.CreationDate,
@Semantics.user.createdBy: true
mkal_aend.CreatedByUser,
@Semantics.systemDate.lastChangedAt: true
mkal_aend.LastChangeDate,
@Semantics.user.lastChangedBy: true
mkal_aend.LastChangedByUser,
// Key of Bill of Operations (BOO, e.g. Routing)
@ObjectModel.foreignKey.association: '_BillOfOperationsType'
cast(mkal.plnty as billofoperationstype preserving type) as BillOfOperationsType,
@ObjectModel.foreignKey.association: '_BillOfOperationsGroup'
cast(mkal.plnnr as billofoperationsgroup preserving type) as BillOfOperationsGroup,
@ObjectModel.foreignKey.association: '_BillOfOperations'
cast(mkal.alnal as billofoperationsvariant preserving type) as BillOfOperationsVariant,
// Key for Bill of Material (BOM) in addition to matnr and werks
mkal.stlan as BillOfMaterialVariantUsage,
mkal.stlal as BillOfMaterialVariant,
// Assignments
@Consumption.valueHelpDefinition: [ { entity: { name: 'I_ProductionLineStdVH', element: 'ProductionLine' } } ]
@ObjectModel.foreignKey.association: '_ProductionLine'
mkal.mdv01 as ProductionLine,
@ObjectModel.foreignKey.association: '_ProductionSupplyArea'
cast(mkal.prvbe as pph_prvbe preserving type) as ProductionSupplyArea,
@ObjectModel.foreignKey.association: '_ProductionVersionGroup'
cast(mkal.mdv02 as pph_mdv preserving type) as ProductionVersionGroup,
@ObjectModel.foreignKey.association: '_MainProduct'
cast(mkal.matko as pph_matko preserving type) as MainProduct,
@ObjectModel.foreignKey.association: '_MatlCostApportionmentStruc'
mkal.csplt as MaterialCostApportionmentStruc,
@ObjectModel.foreignKey.association: '_IssuingStorageLocation'
mkal.elpro as IssuingStorageLocation,
@ObjectModel.foreignKey.association: '_ReceivingStorageLocation'
mkal.alort as ReceivingStorageLocation,
@ObjectModel.foreignKey.association: '_OriglBatchReferenceMaterial'
cast(mkal.ucmat as pph_rfmat preserving type) as OriginalBatchReferenceMaterial,
@ObjectModel.foreignKey.association: '_QuantityDistributionKey'
mkal.verto as QuantityDistributionKey,
mkal.prfg_f as ProductionVersionStatus,
cast(mkal.prdat as pph_mkprdat preserving type) as ProductionVersionLastCheckDate,
cast(mkal.prfg_r as pph_prfgr preserving type) as RateBasedPlanningStatus,
cast(mkal.prfg_g as pph_prfgg preserving type) as PreliminaryPlanningStatus,
cast(mkal.prfg_s as pph_prfgs preserving type) as BOMCheckStatus,
// Attributes
@Semantics.businessDate.from: true
cast(mkal.adatu as vdm_v_validity_start_date preserving type) as ValidityStartDate,
@Semantics.businessDate.to: true
cast(mkal.bdatu as vdm_v_validity_end_date preserving type) as ValidityEndDate,
mkal.mksp as ProductionVersionIsLocked,
mkal.serkz as ProdnVersIsAllowedForRptvMfg,
mkal.versind as HasVersionCtrldBOMAndRouting,
mkal.diffplanexemstr as PlanningAndExecutionBOMIsDiff,
mkal.exe_stlan as ExecBillOfMaterialVariantUsage,
mkal.exe_stlal as ExecBillOfMaterialVariant,
mkal.exe_plnty as ExecBillOfOperationsType,
mkal.exe_plnnr as ExecBillOfOperationsGroup,
mkal.exe_alnal as ExecBillOfOperationsVariant,
mkal.ewm_lgnum as Warehouse,
mkal.ewm_lgpla as DestinationStorageBin,
mkal.beskz as ProcurementType,
@ObjectModel.foreignKey.association: '_MatlProcurementProfile'
mkal.sobsl as MaterialProcurementProfile,
mkal.ewahr as UsgeProbltyWthVersCtrlInPct,
// Quantity and UoM
// @Semantics.unitOfMeasure: true; commented for cds2.0
_Product.BaseUnit as MaterialBaseUnit,
@Semantics.quantity.unitOfMeasure: 'MaterialBaseUnit'
@DefaultAggregation: #MIN
mkal.bstmi as MaterialMinLotSizeQuantity,
@Semantics.quantity.unitOfMeasure: 'MaterialBaseUnit'
@DefaultAggregation: #MAX
mkal.bstma as MaterialMaxLotSizeQuantity,
@Semantics.quantity.unitOfMeasure: 'MaterialBaseUnit'
mkal.losgr as CostingLotSize,
// kept for compatibility reasons
@VDM.lifecycle.status: #DEPRECATED
@VDM.lifecycle.successor: 'QuantityDistributionKey'
mkal.verto as DistributionKey,
@ObjectModel.foreignKey.association: '_TargetProductionSupplyArea'
cast(mkal.tsa_prvbe as pph_prvbe preserving type) as TargetProductionSupplyArea,
mkal.configblprodprodnvers as ConfigblProdProductionVersion,
// Associations
_Material,
_Product,
_ProductPlant,
_Plant,
_BillOfOperationsType,
_BillOfOperationsGroup,
_BillOfOperations,
_ProductionLine,
_ProductionVersionGroup,
_ProductionSupplyArea,
_TargetProductionSupplyArea,
_MainProduct,
_OriglBatchReferenceMaterial,
_IssuingStorageLocation,
_ReceivingStorageLocation,
_MatlCostApportionmentStruc,
_QuantityDistributionKey,
_MaterialBaseUnit,
_MatlProcurementProfile,
mkal_aend._ChangeMaster
};