I_CurrentMaterialValuations
Current Material Valuations
I_CurrentMaterialValuations is a Composite CDS View that provides data about "Current Material Valuations" in SAP S/4HANA. It reads from 1 data source (P_MATVAL_MANAGE_MD_FMLT) and exposes 135 fields with key fields CostEstimate, LedgerValuationCurrencyRole. It has 6 associations to related views. Part of development package ODATA_MATVAL_MANAGE.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| P_MATVAL_MANAGE_MD_FMLT | md | from |
Associations (6)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_MaterialLedgerPrice | _STDPR | _STDPR.CostEstimate = md.CostEstimate and _STDPR.Ledger = md.Ledger and _STDPR.CurrencyRole = md.CurrencyRole and _STDPR.MaterialPriceType = 'STDPR' and _STDPR.MaterialPriceSubtype = '' and _STDPR.MatlPrcValdtyEndFsclYearPeriod = '9999012' and _STDPR.Material = md.Material and _STDPR.CompanyCode = md.CompanyCode and _STDPR.ValuationArea = md.ValuationArea |
| [0..1] | I_MaterialLedgerPrice | _ACT | _ACT.CostEstimate = md.CostEstimate and _ACT.CurrencyRole = md.CurrencyRole and _ACT.Ledger = md.Ledger and _ACT.MaterialPriceType = 'ACT' and _ACT.MaterialPriceSubtype = 'ACT' and _ACT.MatlPrcValdtyEndFsclYearPeriod = '9999012' and _ACT.Material = md.Material and _ACT.CompanyCode = md.CompanyCode and _ACT.ValuationArea = md.ValuationArea |
| [0..1] | I_MaterialLedgerPrice | _MAP | _MAP.CostEstimate = md.CostEstimate and _MAP.CurrencyRole = md.CurrencyRole and _MAP.Ledger = md.Ledger and _MAP.MaterialPriceType = 'MAP' and _MAP.MaterialPriceSubtype = '' and _MAP.MatlPrcValdtyEndFsclYearPeriod = '9999012' and _MAP.Material = md.Material and _MAP.Material = md.Material and _MAP.CompanyCode = md.CompanyCode and _MAP.ValuationArea = md.ValuationArea |
| [0..1] | I_MaterialLedgerPrice | _FSTDCE | _FSTDCE.CostEstimate = md.CostEstimate and _FSTDCE.CurrencyRole = md.CurrencyRole and _FSTDCE.Ledger = md.Ledger and _FSTDCE.MaterialPriceType = 'FSTDCE' and _FSTDCE.MaterialPriceSubtype = '' and _FSTDCE.Material = md.Material and _FSTDCE.Material = md.Material and _FSTDCE.CompanyCode = md.CompanyCode and _FSTDCE.ValuationArea = md.ValuationArea and _FSTDCE.MatlPrcValidityStartFiscalYear = md.CurrentFiscalYear and _FSTDCE.MatlPrcValdtyStartFiscalPeriod = md.CurrentFiscalPeriod |
| [0..1] | I_CompanyCode | _CompanyCode | $projection.CompanyCode = _CompanyCode.CompanyCode |
| [0..1] | I_MaterialText | _MaterialText | $projection.Material = _MaterialText.Material and _MaterialText.Language = $session.system_language |
Annotations (6)
| Name | Value | Level | Field |
|---|---|---|---|
| EndUserText.label | Current Material Valuations | view | |
| VDM.viewType | #COMPOSITE | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| ObjectModel.usageType.dataClass | #MIXED | view |
Fields (135)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CostEstimate | P_MATVAL_MANAGE_MD_FMLT | CostEstimate | |
| KEY | LedgerValuationCurrencyRole | lvcr | LedgerValuationCurrencyRole | |
| LegalCurrencyRole | lvcr | LegalCurrencyRole | ||
| Ledger | lvcr | Ledger | ||
| AccountingValuationView | lvcr | AccountingValuationView | ||
| AccountingValuationSubview | lvcr | AccountingValuationSubview | ||
| CurrencyRole | lvcr | CurrencyRole | ||
| LegalCurrencyRoleName | lvcr | LegalCurrencyRoleName | ||
| AccountingValuationViewName | lvcr | AccountingValuationViewName | ||
| AccountingValuationSubviewName | lvcr | AccountingValuationSubviewName | ||
| AcctgValnVwSubviewCombinedName | lvcr | AcctgValnVwSubviewCombinedName | ||
| LedgerName | lvcr | LedgerName | ||
| Material | P_MATVAL_MANAGE_MD_FMLT | Material | ||
| ValuationArea | P_MATVAL_MANAGE_MD_FMLT | ValuationArea | ||
| InventoryValuationType | P_MATVAL_MANAGE_MD_FMLT | InventoryValuationType | ||
| ControllingArea | _CompanyCode | ControllingArea | ||
| InvtryValnSpecialStockType | P_MATVAL_MANAGE_MD_FMLT | InvtryValnSpecialStockType | ||
| SalesOrder | P_MATVAL_MANAGE_MD_FMLT | SalesOrder | ||
| SalesOrderItem | P_MATVAL_MANAGE_MD_FMLT | SalesOrderItem | ||
| Supplier | P_MATVAL_MANAGE_MD_FMLT | Supplier | ||
| WBSElementInternalID | P_MATVAL_MANAGE_MD_FMLT | WBSElementInternalID | ||
| WBSElementExternalID | P_MATVAL_MANAGE_MD_FMLT | WBSElementExternalID | ||
| FuturePrice | P_MATVAL_MANAGE_MD_FMLT | FuturePrice | ||
| FuturePriceValidityStartDate | P_MATVAL_MANAGE_MD_FMLT | FuturePriceValidityStartDate | ||
| FuturePlannedPrice | ||||
| MaterialPriceControl | INVPR | MaterialPriceControl | ||
| PriceDeterminationControl | P_MATVAL_MANAGE_MD_FMLT | PriceDeterminationControl | ||
| InventoryPrice | INVPR | MaterialPrice | ||
| MaterialPriceendasMovingAveragePrice | ||||
| MaterialPriceendasStandardPrice | ||||
| MaterialPriceUnitQty | INVPR | MaterialPriceUnitQty | ||
| CompanyCode | P_MATVAL_MANAGE_MD_FMLT | CompanyCode | ||
| Currency | lvcr | Currency | ||
| CompanyCodeCurrency | ||||
| BaseUnit | P_MATVAL_MANAGE_MD_FMLT | BaseUnit | ||
| ValuationQuantityUnit | P_MATVAL_MANAGE_MD_FMLT | ValuationQuantityUnit | ||
| MaterialGroup | P_MATVAL_MANAGE_MD_FMLT | MaterialGroup | ||
| MaterialType | P_MATVAL_MANAGE_MD_FMLT | MaterialType | ||
| PlntMatlIsMarkedForDeletion | P_MATVAL_MANAGE_MD_FMLT | PlntMatlIsMarkedForDeletion | ||
| AssemblyScrapPercent | P_MATVAL_MANAGE_MD_FMLT | AssemblyScrapPercent | ||
| MaterialProcurementCategory | P_MATVAL_MANAGE_MD_FMLT | MaterialProcurementCategory | ||
| MaterialProcurementProfile | P_MATVAL_MANAGE_MD_FMLT | MaterialProcurementProfile | ||
| ProfitCenter | P_MATVAL_MANAGE_MD_FMLT | ProfitCenter | ||
| HasProductionVersion | P_MATVAL_MANAGE_MD_FMLT | HasProductionVersion | ||
| AlternativeBillOfMaterial | P_MATVAL_MANAGE_MD_FMLT | AlternativeBillOfMaterial | ||
| BillOfMaterialVariantUsage | P_MATVAL_MANAGE_MD_FMLT | BillOfMaterialVariantUsage | ||
| TaskListGroup | P_MATVAL_MANAGE_MD_FMLT | TaskListGroup | ||
| TaskListGroupCounter | P_MATVAL_MANAGE_MD_FMLT | TaskListGroupCounter | ||
| CostingLotSize | P_MATVAL_MANAGE_MD_FMLT | CostingLotSize | ||
| CostingMatProcurementProfile | P_MATVAL_MANAGE_MD_FMLT | CostingMatProcurementProfile | ||
| IsCoProduct | P_MATVAL_MANAGE_MD_FMLT | IsCoProduct | ||
| ComponentScrapInPercent | P_MATVAL_MANAGE_MD_FMLT | ComponentScrapInPercent | ||
| IsBulkMaterial | P_MATVAL_MANAGE_MD_FMLT | IsBulkMaterial | ||
| BillOfOperationsType | P_MATVAL_MANAGE_MD_FMLT | BillOfOperationsType | ||
| CostingProductionVersion | P_MATVAL_MANAGE_MD_FMLT | CostingProductionVersion | ||
| IsFixedPriceCoProduct | P_MATVAL_MANAGE_MD_FMLT | IsFixedPriceCoProduct | ||
| IsBlockedForCosting | P_MATVAL_MANAGE_MD_FMLT | IsBlockedForCosting | ||
| IsMatlOfValnTypeMarkedForDeltn | P_MATVAL_MANAGE_MD_FMLT | IsMatlOfValnTypeMarkedForDeltn | ||
| MaterialUsabilityProfile | P_MATVAL_MANAGE_MD_FMLT | MaterialUsabilityProfile | ||
| MaterialValuationClass | P_MATVAL_MANAGE_MD_FMLT | MaterialValuationClass | ||
| ValuationClassInPrevPeriod | P_MATVAL_MANAGE_MD_FMLT | ValuationClassInPrevPeriod | ||
| ValuationClassInPrevYear | P_MATVAL_MANAGE_MD_FMLT | ValuationClassInPrevYear | ||
| CurrentFiscalYear | P_MATVAL_MANAGE_MD_FMLT | CurrentFiscalYear | ||
| CurrentFiscalPeriod | P_MATVAL_MANAGE_MD_FMLT | CurrentFiscalPeriod | ||
| PreviousFiscalPeriodFiscalYear | P_MATVAL_MANAGE_MD_FMLT | PreviousFiscalPeriodFiscalYear | ||
| PreviousFiscalPeriod | P_MATVAL_MANAGE_MD_FMLT | PreviousFiscalPeriod | ||
| PreviousFiscalYear | P_MATVAL_MANAGE_MD_FMLT | PreviousFiscalYear | ||
| PreviousFiscalYearPeriod | P_MATVAL_MANAGE_MD_FMLT | PreviousFiscalYearPeriod | ||
| InventoryValuationCategory | P_MATVAL_MANAGE_MD_FMLT | InventoryValuationCategory | ||
| PriceLastChangeDate | P_MATVAL_MANAGE_MD_FMLT | PriceLastChangeDate | ||
| TaxPricel1InCoCodeCrcy | P_MATVAL_MANAGE_MD_FMLT | TaxPricel1InCoCodeCrcy | ||
| CommercialPrice1InCoCodeCrcy | P_MATVAL_MANAGE_MD_FMLT | CommercialPrice1InCoCodeCrcy | ||
| TaxPrice3InCoCodeCrcy | P_MATVAL_MANAGE_MD_FMLT | TaxPrice3InCoCodeCrcy | ||
| CommercialPrice3InCoCodeCrcy | P_MATVAL_MANAGE_MD_FMLT | CommercialPrice3InCoCodeCrcy | ||
| PlannedPriceInCoCodeCrcy | P_MATVAL_MANAGE_MD_FMLT | PlannedPriceInCoCodeCrcy | ||
| PlannedPrice1InCoCodeCrcy | P_MATVAL_MANAGE_MD_FMLT | PlannedPrice1InCoCodeCrcy | ||
| PlannedPrice2InCoCodeCrcy | P_MATVAL_MANAGE_MD_FMLT | PlannedPrice2InCoCodeCrcy | ||
| PlannedPrice3InCoCodeCrcy | P_MATVAL_MANAGE_MD_FMLT | PlannedPrice3InCoCodeCrcy | ||
| FuturePlndPrice1ValdtyDate | P_MATVAL_MANAGE_MD_FMLT | FuturePlndPrice1ValdtyDate | ||
| FuturePlndPrice2ValdtyDate | P_MATVAL_MANAGE_MD_FMLT | FuturePlndPrice2ValdtyDate | ||
| FuturePlndPrice3ValdtyDate | P_MATVAL_MANAGE_MD_FMLT | FuturePlndPrice3ValdtyDate | ||
| HasStdCostEstForFuturePeriod | P_MATVAL_MANAGE_MD_FMLT | HasStdCostEstForFuturePeriod | ||
| HasStdCostEstForCurrentPeriod | P_MATVAL_MANAGE_MD_FMLT | HasStdCostEstForCurrentPeriod | ||
| HasStdCostEstForPreviousPeriod | P_MATVAL_MANAGE_MD_FMLT | HasStdCostEstForPreviousPeriod | ||
| IsLIFOAndFIFORelevant | P_MATVAL_MANAGE_MD_FMLT | IsLIFOAndFIFORelevant | ||
| LIFOValuationPoolNumber | P_MATVAL_MANAGE_MD_FMLT | LIFOValuationPoolNumber | ||
| CommercialPrice2InCoCodeCrcy | P_MATVAL_MANAGE_MD_FMLT | CommercialPrice2InCoCodeCrcy | ||
| TaxPrice2InCoCodeCrcy | P_MATVAL_MANAGE_MD_FMLT | TaxPrice2InCoCodeCrcy | ||
| DevaluationYearCount | P_MATVAL_MANAGE_MD_FMLT | DevaluationYearCount | ||
| MaintenanceStatus | P_MATVAL_MANAGE_MD_FMLT | MaintenanceStatus | ||
| FutrCostEstValuationVariant | P_MATVAL_MANAGE_MD_FMLT | FutrCostEstValuationVariant | ||
| CurCostEstValuationVariant | P_MATVAL_MANAGE_MD_FMLT | CurCostEstValuationVariant | ||
| PrevCostEstValuationVariant | P_MATVAL_MANAGE_MD_FMLT | PrevCostEstValuationVariant | ||
| FutureCostEstCostingVersion | P_MATVAL_MANAGE_MD_FMLT | FutureCostEstCostingVersion | ||
| CurrentCostEstCostingVersion | P_MATVAL_MANAGE_MD_FMLT | CurrentCostEstCostingVersion | ||
| PreviousCostEstCostingVersion | P_MATVAL_MANAGE_MD_FMLT | PreviousCostEstCostingVersion | ||
| CostOriginGroup | P_MATVAL_MANAGE_MD_FMLT | CostOriginGroup | ||
| CostingOverheadGroup | P_MATVAL_MANAGE_MD_FMLT | CostingOverheadGroup | ||
| FutureCostEstimateFiscalPeriod | P_MATVAL_MANAGE_MD_FMLT | FutureCostEstimateFiscalPeriod | ||
| CurrentCostEstFiscalPeriod | P_MATVAL_MANAGE_MD_FMLT | CurrentCostEstFiscalPeriod | ||
| PreviousCostEstFiscalPeriod | P_MATVAL_MANAGE_MD_FMLT | PreviousCostEstFiscalPeriod | ||
| FutureCostEstFiscalYear | P_MATVAL_MANAGE_MD_FMLT | FutureCostEstFiscalYear | ||
| CurrentCostEstFiscalYear | P_MATVAL_MANAGE_MD_FMLT | CurrentCostEstFiscalYear | ||
| PreviousCostEstFiscalYear | P_MATVAL_MANAGE_MD_FMLT | PreviousCostEstFiscalYear | ||
| IsMaterialCostedWithQtyStruc | P_MATVAL_MANAGE_MD_FMLT | IsMaterialCostedWithQtyStruc | ||
| PreviousPlanPriceInCoCodeCrcy | P_MATVAL_MANAGE_MD_FMLT | PreviousPlanPriceInCoCodeCrcy | ||
| CurrentPlanPriceInCoCodeCrcy | P_MATVAL_MANAGE_MD_FMLT | CurrentPlanPriceInCoCodeCrcy | ||
| TotStkValAtSlsPrcInCoCodeCrcy | bal | TotStkValAtSlsPrcInCoCodeCrcy | ||
| IsMaterialRelatedOrigin | P_MATVAL_MANAGE_MD_FMLT | IsMaterialRelatedOrigin | ||
| PhysicalInventoryBlockInd | P_MATVAL_MANAGE_MD_FMLT | PhysicalInventoryBlockInd | ||
| DateOfLastPostedCntUnRstrcdStk | P_MATVAL_MANAGE_MD_FMLT | DateOfLastPostedCntUnRstrcdStk | ||
| InventoryForCycleCountInd | P_MATVAL_MANAGE_MD_FMLT | InventoryForCycleCountInd | ||
| ValuationMargin | P_MATVAL_MANAGE_MD_FMLT | ValuationMargin | ||
| FxdPortnOfPlanPrcInCoCodeCrcy | P_MATVAL_MANAGE_MD_FMLT | FxdPortnOfPlanPrcInCoCodeCrcy | ||
| FxdPortOfPrevPlPrcInCoCodeCrcy | P_MATVAL_MANAGE_MD_FMLT | FxdPortOfPrevPlPrcInCoCodeCrcy | ||
| FxdPortnOfFutPlPrcInCoCodeCrcy | P_MATVAL_MANAGE_MD_FMLT | FxdPortnOfFutPlPrcInCoCodeCrcy | ||
| CurPlanProjSlsOrdValnStrategy | P_MATVAL_MANAGE_MD_FMLT | CurPlanProjSlsOrdValnStrategy | ||
| PrevPlanProjSlsOrdValnStrategy | P_MATVAL_MANAGE_MD_FMLT | PrevPlanProjSlsOrdValnStrategy | ||
| FutrPlanProjSlsOrdValnStrategy | P_MATVAL_MANAGE_MD_FMLT | FutrPlanProjSlsOrdValnStrategy | ||
| ValuationClassSalesOrderStock | P_MATVAL_MANAGE_MD_FMLT | ValuationClassSalesOrderStock | ||
| ProjectStockValuationClass | P_MATVAL_MANAGE_MD_FMLT | ProjectStockValuationClass | ||
| ProductUsageType | P_MATVAL_MANAGE_MD_FMLT | ProductUsageType | ||
| ProductOriginType | P_MATVAL_MANAGE_MD_FMLT | ProductOriginType | ||
| IsProducedInhouse | P_MATVAL_MANAGE_MD_FMLT | IsProducedInhouse | ||
| ValnIsBsdOnBatchSpecificUnit | P_MATVAL_MANAGE_MD_FMLT | ValnIsBsdOnBatchSpecificUnit | ||
| TaxBasedPricesPriceUnitQty | P_MATVAL_MANAGE_MD_FMLT | TaxBasedPricesPriceUnitQty | ||
| ValnClsForSpclStkAtVndr | P_MATVAL_MANAGE_MD_FMLT | ValnClsForSpclStkAtVndr | ||
| FiscalPeriodEndDate | fpi | FiscalPeriodEndDate | ||
| NextFiscalPeriodStartDate | ||||
| ControllingValuationType | lvcr | AccountingValuationView | ||
| MaterialName | _MaterialText | MaterialName | ||
| CompanyCodeName | _CompanyCode | CompanyCodeName | ||
| Plant | plt | Plant | ||
| PlantName | plt | PlantName | ||
| _ControllingArea | _CompanyCode | _ControllingArea |
@EndUserText.label: 'Current Material Valuations'
@VDM.viewType: #COMPOSITE
@AccessControl.authorizationCheck: #CHECK
@ObjectModel.usageType.serviceQuality: #D
@ObjectModel.usageType.sizeCategory: #XL
@ObjectModel.usageType.dataClass: #MIXED
define view entity I_CurrentMaterialValuations
as select from P_MATVAL_MANAGE_MD_FMLT as md
left outer to one join I_MaterialLedgerPrice as INVPR on md.CostEstimate = INVPR.CostEstimate
and md.Ledger = INVPR.Ledger
and md.CurrencyRole = INVPR.CurrencyRole
and md.CompanyCode = INVPR.CompanyCode
and md.ValuationArea = INVPR.ValuationArea
and INVPR.MaterialPriceType = 'INVPR'
and INVPR.MaterialPriceSubtype = ''
and INVPR.MatlPrcValdtyEndFsclYearPeriod = '9999012'
and INVPR.Material = md.Material
and INVPR.CompanyCode = md.CompanyCode
and INVPR.ValuationArea = md.ValuationArea
left outer to one join R_MatlLedgerValnCrcyRole as lvcr on md.Ledger = lvcr.Ledger
and md.CurrencyRole = lvcr.CurrencyRole
and md.CompanyCode = lvcr.CompanyCode
left outer to one join P_Matval_Manage_Baltab as bal on bal.CostEstimate = md.CostEstimate
and bal.Ledger = md.Ledger
and bal.CompanyCode = md.CompanyCode
and bal.ValuationArea = md.ValuationArea
and bal.Material = md.Material
left outer to one join P_Matval_Manage_Bal_Split as bal_split on bal_split.CostEstimate = md.CostEstimate
and bal_split.Ledger = md.Ledger
and bal_split.CompanyCode = md.CompanyCode
and bal_split.ValuationArea = md.ValuationArea
and bal_split.Material = md.Material
left outer to one join I_FiscalYearPeriodForLedger as fpi on fpi.CompanyCode = md.CompanyCode
and fpi.Ledger = md.Ledger
and fpi.FiscalYear = md.CurrentFiscalYear
and fpi.FiscalPeriod = md.CurrentFiscalPeriod
left outer to one join I_Plant as plt on plt.ValuationArea = md.ValuationArea
association [0..1] to I_MaterialLedgerPrice as _STDPR on _STDPR.CostEstimate = md.CostEstimate
and _STDPR.Ledger = md.Ledger
and _STDPR.CurrencyRole = md.CurrencyRole
and _STDPR.MaterialPriceType = 'STDPR'
and _STDPR.MaterialPriceSubtype = ''
and _STDPR.MatlPrcValdtyEndFsclYearPeriod = '9999012'
and _STDPR.Material = md.Material
and _STDPR.CompanyCode = md.CompanyCode
and _STDPR.ValuationArea = md.ValuationArea
association [0..1] to I_MaterialLedgerPrice as _ACT on _ACT.CostEstimate = md.CostEstimate
and _ACT.CurrencyRole = md.CurrencyRole
and _ACT.Ledger = md.Ledger
and _ACT.MaterialPriceType = 'ACT'
and _ACT.MaterialPriceSubtype = 'ACT'
and _ACT.MatlPrcValdtyEndFsclYearPeriod = '9999012'
and _ACT.Material = md.Material
and _ACT.CompanyCode = md.CompanyCode
and _ACT.ValuationArea = md.ValuationArea
association [0..1] to I_MaterialLedgerPrice as _MAP on _MAP.CostEstimate = md.CostEstimate
and _MAP.CurrencyRole = md.CurrencyRole
and _MAP.Ledger = md.Ledger
and _MAP.MaterialPriceType = 'MAP'
and _MAP.MaterialPriceSubtype = ''
and _MAP.MatlPrcValdtyEndFsclYearPeriod = '9999012'
and _MAP.Material = md.Material
and _MAP.Material = md.Material
and _MAP.CompanyCode = md.CompanyCode
and _MAP.ValuationArea = md.ValuationArea
association [0..1] to I_MaterialLedgerPrice as _FSTDCE on _FSTDCE.CostEstimate = md.CostEstimate
and _FSTDCE.CurrencyRole = md.CurrencyRole
and _FSTDCE.Ledger = md.Ledger
and _FSTDCE.MaterialPriceType = 'FSTDCE'
and _FSTDCE.MaterialPriceSubtype = ''
// and _FSTDCE.MatlPrcValdtyEndFsclYearPeriod = '9999012'
and _FSTDCE.Material = md.Material
and _FSTDCE.Material = md.Material
and _FSTDCE.CompanyCode = md.CompanyCode
and _FSTDCE.ValuationArea = md.ValuationArea
and _FSTDCE.MatlPrcValidityStartFiscalYear = md.CurrentFiscalYear
and _FSTDCE.MatlPrcValdtyStartFiscalPeriod = md.CurrentFiscalPeriod
association [0..1] to I_CompanyCode as _CompanyCode on $projection.CompanyCode = _CompanyCode.CompanyCode
association [0..1] to I_MaterialText as _MaterialText on $projection.Material = _MaterialText.Material
and _MaterialText.Language = $session.system_language
{
key md.CostEstimate,
@UI.hidden: true
key lvcr.LedgerValuationCurrencyRole,
lvcr.LegalCurrencyRole,
lvcr.Ledger,
lvcr.AccountingValuationView,
lvcr.AccountingValuationSubview,
@UI.hidden: true
lvcr.CurrencyRole,
lvcr.LegalCurrencyRoleName,
lvcr.AccountingValuationViewName,
lvcr.AccountingValuationSubviewName,
lvcr.AcctgValnVwSubviewCombinedName,
lvcr.LedgerName,
md.Material,
md.ValuationArea,
md.InventoryValuationType,
_CompanyCode.ControllingArea,
md.InvtryValnSpecialStockType,
md.SalesOrder,
md.SalesOrderItem,
md.Supplier,
md.WBSElementInternalID,
md.WBSElementExternalID,
@Semantics.amount.currencyCode : 'Currency'
md.FuturePrice,
md.FuturePriceValidityStartDate,
@Semantics.amount.currencyCode: 'Currency'
coalesce( _FSTDCE.MaterialPrice, cast(0 as fml_futureplannedprice)) as FuturePlannedPrice,
@Semantics.quantity.unitOfMeasure : 'BaseUnit'
case
when md.InventoryValuationType <> '' then bal.TotalVltdStockQuantity
when md.InventoryValuationType = '' and md.InventoryValuationCategory = '' then bal.TotalVltdStockQuantity
when md.InventoryValuationType = '' and md.InventoryValuationCategory <> '' then bal_split.TotalVltdStockQuantity
end as TotalVltdStockQuantity,
@Semantics.amount.currencyCode : 'Currency'
case
when md.InventoryValuationType <> '' then
(
case lvcr.JrnlEntrItemCrcyRolePosition
when 'H' then cast(bal.AmountInCompanyCodeCurrency as fml_salk3)
when 'K' then cast(bal.AmountInGroupCurrency as fml_salk3)
when 'O' then cast(bal.AmountInFreeDefinedCurrency1 as fml_salk3)
when 'V' then cast(bal.AmountInFreeDefinedCurrency2 as fml_salk3)
when 'B' then cast(bal.AmountInFreeDefinedCurrency3 as fml_salk3)
when 'C' then cast(bal.AmountInFreeDefinedCurrency4 as fml_salk3)
when 'D' then cast(bal.AmountInFreeDefinedCurrency5 as fml_salk3)
when 'E' then cast(bal.AmountInFreeDefinedCurrency6 as fml_salk3)
when 'F' then cast(bal.AmountInFreeDefinedCurrency7 as fml_salk3)
when 'G' then cast(bal.AmountInFreeDefinedCurrency8 as fml_salk3)
end
)
when md.InventoryValuationType = '' and md.InventoryValuationCategory = '' then
(
case lvcr.JrnlEntrItemCrcyRolePosition
when 'H' then cast(bal.AmountInCompanyCodeCurrency as fml_salk3)
when 'K' then cast(bal.AmountInGroupCurrency as fml_salk3)
when 'O' then cast(bal.AmountInFreeDefinedCurrency1 as fml_salk3)
when 'V' then cast(bal.AmountInFreeDefinedCurrency2 as fml_salk3)
when 'B' then cast(bal.AmountInFreeDefinedCurrency3 as fml_salk3)
when 'C' then cast(bal.AmountInFreeDefinedCurrency4 as fml_salk3)
when 'D' then cast(bal.AmountInFreeDefinedCurrency5 as fml_salk3)
when 'E' then cast(bal.AmountInFreeDefinedCurrency6 as fml_salk3)
when 'F' then cast(bal.AmountInFreeDefinedCurrency7 as fml_salk3)
when 'G' then cast(bal.AmountInFreeDefinedCurrency8 as fml_salk3)
end
)
when md.InventoryValuationType = '' and md.InventoryValuationCategory <> '' then
(
case lvcr.JrnlEntrItemCrcyRolePosition
when 'H' then cast(bal_split.AmountInCompanyCodeCurrency as fml_salk3)
when 'K' then cast(bal_split.AmountInGroupCurrency as fml_salk3)
when 'O' then cast(bal_split.AmountInFreeDefinedCurrency1 as fml_salk3)
when 'V' then cast(bal_split.AmountInFreeDefinedCurrency2 as fml_salk3)
when 'B' then cast(bal_split.AmountInFreeDefinedCurrency3 as fml_salk3)
when 'C' then cast(bal_split.AmountInFreeDefinedCurrency4 as fml_salk3)
when 'D' then cast(bal_split.AmountInFreeDefinedCurrency5 as fml_salk3)
when 'E' then cast(bal_split.AmountInFreeDefinedCurrency6 as fml_salk3)
when 'F' then cast(bal_split.AmountInFreeDefinedCurrency7 as fml_salk3)
when 'G' then cast(bal_split.AmountInFreeDefinedCurrency8 as fml_salk3)
end
)
end as TotalValuatedStockAmount,
@Semantics.amount.currencyCode : 'CompanyCodeCurrency'
case
when md.InventoryValuationType <> '' then bal.AmountInCompanyCodeCurrency
when md.InventoryValuationType = '' and md.InventoryValuationCategory = '' then bal.AmountInCompanyCodeCurrency
when md.InventoryValuationType = '' and md.InventoryValuationCategory <> '' then bal_split.AmountInCompanyCodeCurrency
end as AmountInCompanyCodeCurrency,
INVPR.MaterialPriceControl,
md.PriceDeterminationControl,
INVPR.MaterialPrice as InventoryPrice,
@Semantics.amount.currencyCode : 'Currency'
case
when INVPR.MaterialPriceControl = 'S' and md.PriceDeterminationControl = '2' then _MAP.MaterialPrice
when INVPR.MaterialPriceControl = 'S' and md.PriceDeterminationControl = '3' then _ACT.MaterialPrice
when INVPR.MaterialPriceControl = 'V' then INVPR.MaterialPrice
end as MovingAveragePrice,
@Semantics.amount.currencyCode : 'Currency'
case
when INVPR.MaterialPriceControl = 'S' then INVPR.MaterialPrice
when INVPR.MaterialPriceControl = 'V' then _STDPR.MaterialPrice
end as StandardPrice,
INVPR.MaterialPriceUnitQty,
md.CompanyCode,
lvcr.Currency,
cast(_CompanyCode.Currency as fis_hwaer) as CompanyCodeCurrency,
md.BaseUnit,
md.ValuationQuantityUnit,
md.MaterialGroup,
md.MaterialType,
md.PlntMatlIsMarkedForDeletion,
md.AssemblyScrapPercent,
md.MaterialProcurementCategory,
md.MaterialProcurementProfile,
md.ProfitCenter,
md.HasProductionVersion,
md.AlternativeBillOfMaterial,
md.BillOfMaterialVariantUsage,
md.TaskListGroup,
md.TaskListGroupCounter,
@Semantics.quantity.unitOfMeasure: 'BASEUNIT'
md.CostingLotSize,
@ObjectModel.sapObjectNodeTypeReference:'ProcurementSubType'
md.CostingMatProcurementProfile,
md.IsCoProduct,
md.ComponentScrapInPercent,
md.IsBulkMaterial,
md.BillOfOperationsType,
md.CostingProductionVersion,
md.IsFixedPriceCoProduct,
md.IsBlockedForCosting,
md.IsMatlOfValnTypeMarkedForDeltn,
md.MaterialUsabilityProfile,
md.MaterialValuationClass,
md.ValuationClassInPrevPeriod,
md.ValuationClassInPrevYear,
md.CurrentFiscalYear,
md.CurrentFiscalPeriod,
md.PreviousFiscalPeriodFiscalYear,
md.PreviousFiscalPeriod,
md.PreviousFiscalYear,
md.PreviousFiscalYearPeriod,
md.InventoryValuationCategory,
md.PriceLastChangeDate,
// @Semantics.amount.currencyCode : 'CompanyCodeCurrency'
md.TaxPricel1InCoCodeCrcy,
@Semantics.amount.currencyCode : 'CompanyCodeCurrency'
md.CommercialPrice1InCoCodeCrcy,
@Semantics.amount.currencyCode : 'CompanyCodeCurrency'
md.TaxPrice3InCoCodeCrcy,
@Semantics.amount.currencyCode : 'CompanyCodeCurrency'
md.CommercialPrice3InCoCodeCrcy,
@Semantics.amount.currencyCode : 'CompanyCodeCurrency'
md.PlannedPriceInCoCodeCrcy,
@Semantics.amount.currencyCode : 'CompanyCodeCurrency'
md.PlannedPrice1InCoCodeCrcy,
@Semantics.amount.currencyCode : 'CompanyCodeCurrency'
md.PlannedPrice2InCoCodeCrcy,
@Semantics.amount.currencyCode : 'CompanyCodeCurrency'
md.PlannedPrice3InCoCodeCrcy,
md.FuturePlndPrice1ValdtyDate,
md.FuturePlndPrice2ValdtyDate,
md.FuturePlndPrice3ValdtyDate,
md.HasStdCostEstForFuturePeriod,
md.HasStdCostEstForCurrentPeriod,
md.HasStdCostEstForPreviousPeriod,
md.IsLIFOAndFIFORelevant,
md.LIFOValuationPoolNumber,
@Semantics.amount.currencyCode : 'CompanyCodeCurrency'
md.CommercialPrice2InCoCodeCrcy,
@Semantics.amount.currencyCode : 'CompanyCodeCurrency'
md.TaxPrice2InCoCodeCrcy,
md.DevaluationYearCount,
md.MaintenanceStatus,
md.FutrCostEstValuationVariant,
md.CurCostEstValuationVariant,
md.PrevCostEstValuationVariant,
md.FutureCostEstCostingVersion,
md.CurrentCostEstCostingVersion,
md.PreviousCostEstCostingVersion,
md.CostOriginGroup,
md.CostingOverheadGroup,
md.FutureCostEstimateFiscalPeriod,
md.CurrentCostEstFiscalPeriod,
md.PreviousCostEstFiscalPeriod,
md.FutureCostEstFiscalYear,
md.CurrentCostEstFiscalYear,
md.PreviousCostEstFiscalYear,
md.IsMaterialCostedWithQtyStruc,
@Semantics.amount.currencyCode : 'CompanyCodeCurrency'
md.PreviousPlanPriceInCoCodeCrcy,
@Semantics.amount.currencyCode : 'CompanyCodeCurrency'
md.CurrentPlanPriceInCoCodeCrcy,
@Semantics.amount.currencyCode : 'CompanyCodeCurrency'
bal.TotStkValAtSlsPrcInCoCodeCrcy,
md.IsMaterialRelatedOrigin,
md.PhysicalInventoryBlockInd,
md.DateOfLastPostedCntUnRstrcdStk,
md.InventoryForCycleCountInd,
md.ValuationMargin,
@Semantics.amount.currencyCode : 'CompanyCodeCurrency'
md.FxdPortnOfPlanPrcInCoCodeCrcy,
@Semantics.amount.currencyCode : 'CompanyCodeCurrency'
md.FxdPortOfPrevPlPrcInCoCodeCrcy,
@Semantics.amount.currencyCode : 'CompanyCodeCurrency'
md.FxdPortnOfFutPlPrcInCoCodeCrcy,
md.CurPlanProjSlsOrdValnStrategy,
md.PrevPlanProjSlsOrdValnStrategy,
md.FutrPlanProjSlsOrdValnStrategy,
md.ValuationClassSalesOrderStock,
md.ProjectStockValuationClass,
md.ProductUsageType,
md.ProductOriginType,
md.IsProducedInhouse,
md.ValnIsBsdOnBatchSpecificUnit,
@Semantics.quantity.unitOfMeasure : 'BaseUnit'
md.TaxBasedPricesPriceUnitQty,
md.ValnClsForSpclStkAtVndr,
fpi.FiscalPeriodEndDate,
dats_add_days(fpi.FiscalPeriodEndDate, 1, 'INITIAL') as NextFiscalPeriodStartDate,
lvcr.AccountingValuationView as ControllingValuationType,
@Semantics.text: true
_MaterialText.MaterialName,
@Semantics.text: true
_CompanyCode.CompanyCodeName,
@ObjectModel.text.element: [ 'PlantName']
plt.Plant,
@Semantics.text: true
plt.PlantName,
// associations
_CompanyCode._ControllingArea
}
Learn More
- What Is a CDS View in SAP S/4HANA?
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- CDS View Annotations — A Complete Guide
- 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