P_Matval_Manage_Xbew
Base View for Mat.Val., Master Data
P_Matval_Manage_Xbew is a Composite CDS View that provides data about "Base View for Mat.Val., Master Data" in SAP S/4HANA. It reads from 4 data sources (v_ebew_md, v_mbew_md, v_obew_md, v_qbew_md) and exposes 289 fields with key fields CostEstimate, Material, ValuationArea, InventoryValuationType, Material. Part of development package ODATA_MATVAL_MANAGE.
Data Sources (4)
Annotations (6)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PMATVALMGMXBEW | view | |
| VDM.private | true | view | |
| VDM.viewType | #COMPOSITE | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view |
Fields (289)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CostEstimate | v_mbew_md | kaln1 | ProdCostEst.No. |
| KEY | Material | v_mbew_md | matnr | Vehicle Model |
| KEY | ValuationArea | v_mbew_md | bwkey | Valuation Area |
| KEY | InventoryValuationType | v_mbew_md | bwtar | Valuation Type |
| PriceDeterminationControl | ||||
| InvtryValnSpecialStockType | Special Stock | |||
| SalesOrder | SD Sched. Agmt | |||
| SalesOrderItem | WBS Element | |||
| Supplier | Vendor no. | |||
| WBSElementInternalID | WBS Element | |||
| IsMatlOfValnTypeMarkedForDeltn | v_mbew_md | lvorm | Stock del. flag | |
| MaterialValuationClass | v_mbew_md | bklas | Valuation Class | |
| ValuationClassInPrevPeriod | Val. class PP | |||
| ValuationClassInPrevYear | Val. class PY | |||
| InventoryValuationCategory | v_mbew_md | bwtty | Valuation Cat. | |
| PriceLastChangeDate | v_mbew_md | laepr | Last Price Chg. | |
| TaxPricel1InCoCodeCrcy | ||||
| CommercialPrice1InCoCodeCrcy | ||||
| TaxPrice3InCoCodeCrcy | ||||
| CommercialPrice3InCoCodeCrcy | ||||
| PlannedPriceInCoCodeCrcy | v_mbew_md | zplpr | Fut. Plnd Price | |
| PlannedPrice1InCoCodeCrcy | ||||
| PlannedPrice2InCoCodeCrcy | ||||
| PlannedPrice3InCoCodeCrcy | ||||
| FuturePlndPrice1ValdtyDate | ||||
| FuturePlndPrice2ValdtyDate | ||||
| FuturePlndPrice3ValdtyDate | ||||
| HasStdCostEstForFuturePeriod | v_mbew_md | kalkz | Fut. cost est. | |
| HasStdCostEstForCurrentPeriod | v_mbew_md | kalkl | CurrentCostEst. | |
| HasStdCostEstForPreviousPeriod | v_mbew_md | kalkv | PreviousCostEst | |
| IsLIFOAndFIFORelevant | ||||
| LIFOValuationPoolNumber | v_mbew_md | mypol | LIFO Pool | |
| CommercialPrice2InCoCodeCrcy | ||||
| TaxPrice2InCoCodeCrcy | ||||
| DevaluationYearCount | v_mbew_md | abwkz | Devaluation Ind | |
| MaintenanceStatus | v_mbew_md | pstat | Processing Status | |
| FutrCostEstValuationVariant | v_mbew_md | bwva1 | Valuation Var. | |
| CurCostEstValuationVariant | v_mbew_md | bwva2 | Valuatn Variant | |
| PrevCostEstValuationVariant | v_mbew_md | bwva3 | Valuation Var. | |
| FutureCostEstCostingVersion | v_mbew_md | vers1 | Late Completion | |
| CurrentCostEstCostingVersion | v_mbew_md | vers2 | EarlyCompletion | |
| PreviousCostEstCostingVersion | v_mbew_md | vers3 | Costing Version | |
| CostOriginGroup | v_mbew_md | hrkft | Origin group order | |
| CostingOverheadGroup | v_mbew_md | kosgr | Overhead Group | |
| FutureCostEstimateFiscalPeriod | v_mbew_md | pprdz | Posting Period | |
| CurrentCostEstFiscalPeriod | v_mbew_md | pprdl | Current Period | |
| PreviousCostEstFiscalPeriod | v_mbew_md | pprdv | Previous Period | |
| FutureCostEstFiscalYear | v_mbew_md | pdatz | Fut. FYyear | |
| CurrentCostEstFiscalYear | v_mbew_md | pdatl | Curr. Fiscal Yr | |
| PreviousCostEstFiscalYear | v_mbew_md | pdatv | Valid From | |
| IsMaterialCostedWithQtyStruc | v_mbew_md | ekalr | Cost Est. w/QS | |
| PreviousPlanPriceInCoCodeCrcy | v_mbew_md | vplpr | Prev. Plnd Prc. | |
| CurrentPlanPriceInCoCodeCrcy | v_mbew_md | lplpr | Curr.Plnd Price | |
| IsMaterialRelatedOrigin | Material origin | |||
| PhysicalInventoryBlockInd | v_mbew_md | sperw | Phys. Inv. Blk | |
| DateOfLastPostedCntUnRstrcdStk | v_mbew_md | wlinl | Last Count Date | |
| InventoryForCycleCountInd | v_mbew_md | abciw | CC Phys. Inv. | |
| ValuationMargin | v_mbew_md | bwspa | Val. Margin | |
| FxdPortnOfPlanPrcInCoCodeCrcy | v_mbew_md | lplpx | Fix. Cur. Plnd Prc. | |
| FxdPortOfPrevPlPrcInCoCodeCrcy | v_mbew_md | vplpx | Fixed Prev. PlndPrc. | |
| FxdPortnOfFutPlPrcInCoCodeCrcy | v_mbew_md | fplpx | Fut. PlanPrice, Fxd | |
| CurPlanProjSlsOrdValnStrategy | v_mbew_md | lbwst | Curr. Valn Strat. | |
| PrevPlanProjSlsOrdValnStrategy | v_mbew_md | vbwst | Prev. Valn Strat. | |
| FutrPlanProjSlsOrdValnStrategy | v_mbew_md | fbwst | Fut. Valn Strat. | |
| ValuationClassSalesOrderStock | v_mbew_md | eklas | VC: Sal.Ord.Stk | |
| ProjectStockValuationClass | v_mbew_md | qklas | Project stk VC | |
| ProductUsageType | v_mbew_md | mtuse | Material Usage | |
| ProductOriginType | v_mbew_md | mtorg | Material Origin | |
| IsProducedInhouse | v_mbew_md | ownpr | Prod. in-house | |
| ValnIsBsdOnBatchSpecificUnit | v_mbew_md | xbewm | Valuated UoM | |
| TaxBasedPricesPriceUnitQty | ||||
| ValnClsForSpclStkAtVndr | v_mbew_md | oklas | VC: Vendor | |
| kaln1asCostEstimate | ||||
| KEY | Material | v_ebew_md | matnr | Vehicle Model |
| KEY | ValuationArea | v_ebew_md | bwkey | Valuation Area |
| KEY | InventoryValuationType | v_ebew_md | bwtar | Valuation Type |
| PriceDeterminationControl | ||||
| InvtryValnSpecialStockType | v_ebew_md | sobkz | Special Stock | |
| SalesOrder | v_ebew_md | vbeln | SD Sched. Agmt | |
| SalesOrderItem | v_ebew_md | posnr | WBS Element | |
| Supplier | Vendor no. | |||
| WBSElementInternalID | WBS Element | |||
| IsMatlOfValnTypeMarkedForDeltn | Stock del. flag | |||
| MaterialValuationClass | v_ebew_md | bklas | Valuation Class | |
| ValuationClassInPrevPeriod | v_ebew_md | vmbkl | Val. class PP | |
| ValuationClassInPrevYear | v_ebew_md | vjbkl | Val. class PY | |
| InventoryValuationCategory | v_ebew_md | bwtty | Valuation Cat. | |
| PriceLastChangeDate | v_ebew_md | laepr | Last Price Chg. | |
| TaxPricel1InCoCodeCrcy | ||||
| CommercialPrice1InCoCodeCrcy | ||||
| TaxPrice3InCoCodeCrcy | ||||
| CommercialPrice3InCoCodeCrcy | ||||
| PlannedPriceInCoCodeCrcy | v_ebew_md | zplpr | Fut. Plnd Price | |
| PlannedPrice1InCoCodeCrcy | ||||
| PlannedPrice2InCoCodeCrcy | ||||
| PlannedPrice3InCoCodeCrcy | ||||
| FuturePlndPrice1ValdtyDate | ||||
| FuturePlndPrice2ValdtyDate | ||||
| FuturePlndPrice3ValdtyDate | ||||
| HasStdCostEstForFuturePeriod | Fut. cost est. | |||
| HasStdCostEstForCurrentPeriod | CurrentCostEst. | |||
| HasStdCostEstForPreviousPeriod | PreviousCostEst | |||
| IsLIFOAndFIFORelevant | ||||
| LIFOValuationPoolNumber | LIFO Pool | |||
| CommercialPrice2InCoCodeCrcy | ||||
| TaxPrice2InCoCodeCrcy | ||||
| DevaluationYearCount | Devaluation Ind | |||
| MaintenanceStatus | Processing Status | |||
| FutrCostEstValuationVariant | v_ebew_md | bwva1 | Valuation Var. | |
| CurCostEstValuationVariant | v_ebew_md | bwva2 | Valuatn Variant | |
| PrevCostEstValuationVariant | v_ebew_md | bwva3 | Valuation Var. | |
| FutureCostEstCostingVersion | v_ebew_md | vers1 | Late Completion | |
| CurrentCostEstCostingVersion | v_ebew_md | vers2 | EarlyCompletion | |
| PreviousCostEstCostingVersion | v_ebew_md | vers3 | Costing Version | |
| CostOriginGroup | v_ebew_md | hrkft | Origin group order | |
| CostingOverheadGroup | v_ebew_md | kosgr | Overhead Group | |
| FutureCostEstimateFiscalPeriod | v_ebew_md | pprdz | Posting Period | |
| CurrentCostEstFiscalPeriod | v_ebew_md | pprdl | Current Period | |
| PreviousCostEstFiscalPeriod | v_ebew_md | pprdv | Previous Period | |
| FutureCostEstFiscalYear | v_ebew_md | pdatz | Fut. FYyear | |
| CurrentCostEstFiscalYear | v_ebew_md | pdatl | Curr. Fiscal Yr | |
| PreviousCostEstFiscalYear | v_ebew_md | pdatv | Valid From | |
| IsMaterialCostedWithQtyStruc | v_ebew_md | ekalr | Cost Est. w/QS | |
| PreviousPlanPriceInCoCodeCrcy | v_ebew_md | vplpr | Prev. Plnd Prc. | |
| CurrentPlanPriceInCoCodeCrcy | v_ebew_md | lplpr | Curr.Plnd Price | |
| IsMaterialRelatedOrigin | v_ebew_md | hkmat | Material origin | |
| PhysicalInventoryBlockInd | Phys. Inv. Blk | |||
| DateOfLastPostedCntUnRstrcdStk | Last Count Date | |||
| InventoryForCycleCountInd | CC Phys. Inv. | |||
| ValuationMargin | Val. Margin | |||
| FxdPortnOfPlanPrcInCoCodeCrcy | Fix. Cur. Plnd Prc. | |||
| FxdPortOfPrevPlPrcInCoCodeCrcy | Fixed Prev. PlndPrc. | |||
| FxdPortnOfFutPlPrcInCoCodeCrcy | v_ebew_md | fplpx | Fut. PlanPrice, Fxd | |
| CurPlanProjSlsOrdValnStrategy | v_ebew_md | lbwst | Curr. Valn Strat. | |
| PrevPlanProjSlsOrdValnStrategy | v_ebew_md | vbwst | Prev. Valn Strat. | |
| FutrPlanProjSlsOrdValnStrategy | v_ebew_md | fbwst | Fut. Valn Strat. | |
| ValuationClassSalesOrderStock | VC: Sal.Ord.Stk | |||
| ProjectStockValuationClass | Project stk VC | |||
| ProductUsageType | Material Usage | |||
| ProductOriginType | Material Origin | |||
| IsProducedInhouse | Prod. in-house | |||
| ValnIsBsdOnBatchSpecificUnit | Valuated UoM | |||
| TaxBasedPricesPriceUnitQty | ||||
| ValnClsForSpclStkAtVndr | VC: Vendor | |||
| kaln1asCostEstimate | ||||
| KEY | Material | v_obew_md | matnr | Vehicle Model |
| KEY | ValuationArea | v_obew_md | bwkey | Valuation Area |
| KEY | InventoryValuationType | v_obew_md | bwtar | Valuation Type |
| PriceDeterminationControl | ||||
| InvtryValnSpecialStockType | v_obew_md | sobkz | Special Stock | |
| SalesOrder | SD Sched. Agmt | |||
| SalesOrderItem | WBS Element | |||
| Supplier | v_obew_md | lifnr | Vendor no. | |
| WBSElementInternalID | WBS Element | |||
| IsMatlOfValnTypeMarkedForDeltn | Stock del. flag | |||
| MaterialValuationClass | v_obew_md | bklas | Valuation Class | |
| ValuationClassInPrevPeriod | v_obew_md | vmbkl | Val. class PP | |
| ValuationClassInPrevYear | v_obew_md | vjbkl | Val. class PY | |
| InventoryValuationCategory | v_obew_md | bwtty | Valuation Cat. | |
| PriceLastChangeDate | v_obew_md | laepr | Last Price Chg. | |
| TaxPricel1InCoCodeCrcy | ||||
| CommercialPrice1InCoCodeCrcy | ||||
| TaxPrice3InCoCodeCrcy | ||||
| CommercialPrice3InCoCodeCrcy | ||||
| PlannedPriceInCoCodeCrcy | v_obew_md | zplpr | Fut. Plnd Price | |
| PlannedPrice1InCoCodeCrcy | ||||
| PlannedPrice2InCoCodeCrcy | ||||
| PlannedPrice3InCoCodeCrcy | ||||
| FuturePlndPrice1ValdtyDate | ||||
| FuturePlndPrice2ValdtyDate | ||||
| FuturePlndPrice3ValdtyDate | ||||
| HasStdCostEstForFuturePeriod | Fut. cost est. | |||
| HasStdCostEstForCurrentPeriod | CurrentCostEst. | |||
| HasStdCostEstForPreviousPeriod | PreviousCostEst | |||
| IsLIFOAndFIFORelevant | ||||
| LIFOValuationPoolNumber | LIFO Pool | |||
| CommercialPrice2InCoCodeCrcy | ||||
| TaxPrice2InCoCodeCrcy | ||||
| DevaluationYearCount | Devaluation Ind | |||
| MaintenanceStatus | Processing Status | |||
| FutrCostEstValuationVariant | v_obew_md | bwva1 | Valuation Var. | |
| CurCostEstValuationVariant | v_obew_md | bwva2 | Valuatn Variant | |
| PrevCostEstValuationVariant | v_obew_md | bwva3 | Valuation Var. | |
| FutureCostEstCostingVersion | v_obew_md | vers1 | Late Completion | |
| CurrentCostEstCostingVersion | v_obew_md | vers2 | EarlyCompletion | |
| PreviousCostEstCostingVersion | v_obew_md | vers3 | Costing Version | |
| CostOriginGroup | v_obew_md | hrkft | Origin group order | |
| CostingOverheadGroup | v_obew_md | kosgr | Overhead Group | |
| FutureCostEstimateFiscalPeriod | v_obew_md | pprdz | Posting Period | |
| CurrentCostEstFiscalPeriod | v_obew_md | pprdl | Current Period | |
| PreviousCostEstFiscalPeriod | v_obew_md | pprdv | Previous Period | |
| FutureCostEstFiscalYear | v_obew_md | pdatz | Fut. FYyear | |
| CurrentCostEstFiscalYear | v_obew_md | pdatl | Curr. Fiscal Yr | |
| PreviousCostEstFiscalYear | v_obew_md | pdatv | Valid From | |
| IsMaterialCostedWithQtyStruc | v_obew_md | ekalr | Cost Est. w/QS | |
| PreviousPlanPriceInCoCodeCrcy | v_obew_md | vplpr | Prev. Plnd Prc. | |
| CurrentPlanPriceInCoCodeCrcy | v_obew_md | lplpr | Curr.Plnd Price | |
| IsMaterialRelatedOrigin | v_obew_md | hkmat | Material origin | |
| PhysicalInventoryBlockInd | Phys. Inv. Blk | |||
| DateOfLastPostedCntUnRstrcdStk | Last Count Date | |||
| InventoryForCycleCountInd | CC Phys. Inv. | |||
| ValuationMargin | Val. Margin | |||
| FxdPortnOfPlanPrcInCoCodeCrcy | Fix. Cur. Plnd Prc. | |||
| FxdPortOfPrevPlPrcInCoCodeCrcy | Fixed Prev. PlndPrc. | |||
| FxdPortnOfFutPlPrcInCoCodeCrcy | v_obew_md | fplpx | Fut. PlanPrice, Fxd | |
| CurPlanProjSlsOrdValnStrategy | v_obew_md | lbwst | Curr. Valn Strat. | |
| PrevPlanProjSlsOrdValnStrategy | v_obew_md | vbwst | Prev. Valn Strat. | |
| FutrPlanProjSlsOrdValnStrategy | v_obew_md | fbwst | Fut. Valn Strat. | |
| ValuationClassSalesOrderStock | VC: Sal.Ord.Stk | |||
| ProjectStockValuationClass | Project stk VC | |||
| ProductUsageType | Material Usage | |||
| ProductOriginType | Material Origin | |||
| IsProducedInhouse | Prod. in-house | |||
| ValnIsBsdOnBatchSpecificUnit | Valuated UoM | |||
| TaxBasedPricesPriceUnitQty | ||||
| ValnClsForSpclStkAtVndr | v_obew_md | oklas | VC: Vendor | |
| kaln1asCostEstimate | ||||
| KEY | Material | v_qbew_md | matnr | Vehicle Model |
| KEY | ValuationArea | v_qbew_md | bwkey | Valuation Area |
| KEY | InventoryValuationType | v_qbew_md | bwtar | Valuation Type |
| PriceDeterminationControl | ||||
| InvtryValnSpecialStockType | v_qbew_md | sobkz | Special Stock | |
| SalesOrder | SD Sched. Agmt | |||
| SalesOrderItem | WBS Element | |||
| Supplier | Vendor no. | |||
| WBSElementInternalID | v_qbew_md | pspnr | WBS Element | |
| IsMatlOfValnTypeMarkedForDeltn | Stock del. flag | |||
| MaterialValuationClass | v_qbew_md | bklas | Valuation Class | |
| ValuationClassInPrevPeriod | v_qbew_md | vmbkl | Val. class PP | |
| ValuationClassInPrevYear | v_qbew_md | vjbkl | Val. class PY | |
| InventoryValuationCategory | v_qbew_md | bwtty | Valuation Cat. | |
| PriceLastChangeDate | v_qbew_md | laepr | Last Price Chg. | |
| TaxPricel1InCoCodeCrcy | ||||
| CommercialPrice1InCoCodeCrcy | ||||
| TaxPrice3InCoCodeCrcy | ||||
| CommercialPrice3InCoCodeCrcy | ||||
| PlannedPriceInCoCodeCrcy | v_qbew_md | zplpr | Fut. Plnd Price | |
| PlannedPrice1InCoCodeCrcy | ||||
| PlannedPrice2InCoCodeCrcy | ||||
| PlannedPrice3InCoCodeCrcy | ||||
| FuturePlndPrice1ValdtyDate | ||||
| FuturePlndPrice2ValdtyDate | ||||
| FuturePlndPrice3ValdtyDate | ||||
| HasStdCostEstForFuturePeriod | Fut. cost est. | |||
| HasStdCostEstForCurrentPeriod | CurrentCostEst. | |||
| HasStdCostEstForPreviousPeriod | PreviousCostEst | |||
| IsLIFOAndFIFORelevant | ||||
| LIFOValuationPoolNumber | LIFO Pool | |||
| CommercialPrice2InCoCodeCrcy | ||||
| TaxPrice2InCoCodeCrcy | ||||
| DevaluationYearCount | Devaluation Ind | |||
| MaintenanceStatus | Processing Status | |||
| FutrCostEstValuationVariant | v_qbew_md | bwva1 | Valuation Var. | |
| CurCostEstValuationVariant | v_qbew_md | bwva2 | Valuatn Variant | |
| PrevCostEstValuationVariant | v_qbew_md | bwva3 | Valuation Var. | |
| FutureCostEstCostingVersion | v_qbew_md | vers1 | Late Completion | |
| CurrentCostEstCostingVersion | v_qbew_md | vers2 | EarlyCompletion | |
| PreviousCostEstCostingVersion | v_qbew_md | vers3 | Costing Version | |
| CostOriginGroup | v_qbew_md | hrkft | Origin group order | |
| CostingOverheadGroup | v_qbew_md | kosgr | Overhead Group | |
| FutureCostEstimateFiscalPeriod | v_qbew_md | pprdz | Posting Period | |
| CurrentCostEstFiscalPeriod | v_qbew_md | pprdl | Current Period | |
| PreviousCostEstFiscalPeriod | v_qbew_md | pprdv | Previous Period | |
| FutureCostEstFiscalYear | v_qbew_md | pdatz | Fut. FYyear | |
| CurrentCostEstFiscalYear | v_qbew_md | pdatl | Curr. Fiscal Yr | |
| PreviousCostEstFiscalYear | v_qbew_md | pdatv | Valid From | |
| IsMaterialCostedWithQtyStruc | v_qbew_md | ekalr | Cost Est. w/QS | |
| PreviousPlanPriceInCoCodeCrcy | v_qbew_md | vplpr | Prev. Plnd Prc. | |
| CurrentPlanPriceInCoCodeCrcy | v_qbew_md | lplpr | Curr.Plnd Price | |
| IsMaterialRelatedOrigin | v_qbew_md | hkmat | Material origin | |
| PhysicalInventoryBlockInd | Phys. Inv. Blk | |||
| DateOfLastPostedCntUnRstrcdStk | Last Count Date | |||
| InventoryForCycleCountInd | CC Phys. Inv. | |||
| ValuationMargin | Val. Margin | |||
| FxdPortnOfPlanPrcInCoCodeCrcy | Fix. Cur. Plnd Prc. | |||
| FxdPortOfPrevPlPrcInCoCodeCrcy | Fixed Prev. PlndPrc. | |||
| FxdPortnOfFutPlPrcInCoCodeCrcy | v_qbew_md | fplpx | Fut. PlanPrice, Fxd | |
| CurPlanProjSlsOrdValnStrategy | v_qbew_md | lbwst | Curr. Valn Strat. | |
| PrevPlanProjSlsOrdValnStrategy | v_qbew_md | vbwst | Prev. Valn Strat. | |
| FutrPlanProjSlsOrdValnStrategy | v_qbew_md | fbwst | Fut. Valn Strat. | |
| ValuationClassSalesOrderStock | VC: Sal.Ord.Stk | |||
| ProjectStockValuationClass | Project stk VC | |||
| ProductUsageType | Material Usage | |||
| ProductOriginType | Material Origin | |||
| IsProducedInhouse | Prod. in-house | |||
| ValnIsBsdOnBatchSpecificUnit | Valuated UoM | |||
| TaxBasedPricesPriceUnitQty | ||||
| ValnClsForSpclStkAtVndr | v_qbew_md | oklas | VC: Vendor | |
| mlmaa | v_qbew_md | mlmaa | ML Act. |
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 P_Matval_Manage_Xbew.
-- 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.
-- SQL view name: PMATVALMGMXBEW
CREATE VIEW P_Matval_Manage_Xbew AS
SELECT
mb.kaln1 AS CostEstimate,
mb.matnr AS Material,
mb.bwkey AS ValuationArea,
mb.bwtar AS InventoryValuationType,
cast(mb.mlast as fml_abst preserving type) AS PriceDeterminationControl,
cast('' as sobkz preserving type) AS InvtryValnSpecialStockType,
cast(' ' as vbeln preserving type) AS SalesOrder,
cast('000000' as posnr preserving type) AS SalesOrderItem,
cast(' ' as lifnr preserving type) AS Supplier,
cast('00000000' as ps_psp_pnr preserving type) AS WBSElementInternalID,
mb.lvorm AS IsMatlOfValnTypeMarkedForDeltn,
mb.bklas AS MaterialValuationClass,
cast(mb.vmbkl as fml_vmbkl preserving type) AS ValuationClassInPrevPeriod,
cast(mb.vjbkl as fml_vjbkl preserving type) AS ValuationClassInPrevYear,
mb.bwtty AS InventoryValuationCategory,
mb.laepr AS PriceLastChangeDate,
cast(mb.bwprs as fml_bwprs) AS TaxPricel1InCoCodeCrcy,
cast(mb.bwprh as fml_bwprh) AS CommercialPrice1InCoCodeCrcy,
cast(mb.vjbws as fml_vjbws) AS TaxPrice3InCoCodeCrcy,
cast(mb.vjbwh as fml_vjbwh) AS CommercialPrice3InCoCodeCrcy,
mb.zplpr AS PlannedPriceInCoCodeCrcy,
cast(mb.zplp1 as fml_dzplp1) AS PlannedPrice1InCoCodeCrcy,
cast(mb.zplp2 as fml_dzplp2) AS PlannedPrice2InCoCodeCrcy,
cast(mb.zplp3 as fml_dzplp3) AS PlannedPrice3InCoCodeCrcy,
cast(mb.zpld1 as fml_dzpld1) AS FuturePlndPrice1ValdtyDate,
cast(mb.zpld2 as fml_dzpld2) AS FuturePlndPrice2ValdtyDate,
cast(mb.zpld3 as fml_dzpld3) AS FuturePlndPrice3ValdtyDate,
mb.kalkz AS HasStdCostEstForFuturePeriod,
mb.kalkl AS HasStdCostEstForCurrentPeriod,
mb.kalkv AS HasStdCostEstForPreviousPeriod,
cast(mb.xlifo as fml_is_lifo_fifo_relevant preserving type) AS IsLIFOAndFIFORelevant,
mb.mypol AS LIFOValuationPoolNumber,
cast(mb.bwph1 as fml_bwph1) AS CommercialPrice2InCoCodeCrcy,
cast(mb.bwps1 as fml_bwps1) AS TaxPrice2InCoCodeCrcy,
mb.abwkz AS DevaluationYearCount,
mb.pstat AS MaintenanceStatus,
mb.bwva1 AS FutrCostEstValuationVariant,
mb.bwva2 AS CurCostEstValuationVariant,
mb.bwva3 AS PrevCostEstValuationVariant,
mb.vers1 AS FutureCostEstCostingVersion,
mb.vers2 AS CurrentCostEstCostingVersion,
mb.vers3 AS PreviousCostEstCostingVersion,
mb.hrkft AS CostOriginGroup,
mb.kosgr AS CostingOverheadGroup,
mb.pprdz AS FutureCostEstimateFiscalPeriod,
mb.pprdl AS CurrentCostEstFiscalPeriod,
mb.pprdv AS PreviousCostEstFiscalPeriod,
mb.pdatz AS FutureCostEstFiscalYear,
mb.pdatl AS CurrentCostEstFiscalYear,
mb.pdatv AS PreviousCostEstFiscalYear,
mb.ekalr AS IsMaterialCostedWithQtyStruc,
mb.vplpr AS PreviousPlanPriceInCoCodeCrcy,
mb.lplpr AS CurrentPlanPriceInCoCodeCrcy,
cast(mb.hkmat as fml_is_mat_rel_origin preserving type) AS IsMaterialRelatedOrigin,
mb.sperw AS PhysicalInventoryBlockInd,
mb.wlinl AS DateOfLastPostedCntUnRstrcdStk,
mb.abciw AS InventoryForCycleCountInd,
mb.bwspa AS ValuationMargin,
mb.lplpx AS FxdPortnOfPlanPrcInCoCodeCrcy,
mb.vplpx AS FxdPortOfPrevPlPrcInCoCodeCrcy,
mb.fplpx AS FxdPortnOfFutPlPrcInCoCodeCrcy,
mb.lbwst AS CurPlanProjSlsOrdValnStrategy,
mb.vbwst AS PrevPlanProjSlsOrdValnStrategy,
mb.fbwst AS FutrPlanProjSlsOrdValnStrategy,
mb.eklas AS ValuationClassSalesOrderStock,
mb.qklas AS ProjectStockValuationClass,
mb.mtuse AS ProductUsageType,
mb.mtorg AS ProductOriginType,
mb.ownpr AS IsProducedInhouse,
mb.xbewm AS ValnIsBsdOnBatchSpecificUnit,
cast(mb.bwpei as fml_bwpei preserving type) AS TaxBasedPricesPriceUnitQty,
mb.oklas AS ValnClsForSpclStkAtVndr,
mb.mlmaa AS kaln1asCostEstimate,
qb.mlmaa AS mlmaa
FROM v_mbew_md AS mb
-- UNION ALL with additional select branch(es): v_ebew_md, v_obew_md, v_qbew_md
;
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