A_OIL_LocationMaterial
Location Material
A_OIL_LocationMaterial is a Consumption CDS View that provides data about "Location Material" in SAP S/4HANA. It reads from 1 data source (R_OIL_LocationMaterialTP) and exposes 100 fields with key fields BusinessLocationIdentifier, TSWLocationID, Material.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| R_OIL_LocationMaterialTP | R_OIL_LocationMaterialTP | projection |
Annotations (10)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #MANDATORY | view | |
| AccessControl.personalData.blocking | #REQUIRED | view | |
| EndUserText.label | Location Material | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| ObjectModel.usageType.serviceQuality | #A | view | |
| ObjectModel.usageType.sizeCategory | #M | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| VDM.viewType | #CONSUMPTION | view | |
| VDM.lifecycle.contract.type | #PUBLIC_REMOTE_API | view | |
| OData.entityType.name | OIL_BusinessLocationMaterial_Type | view |
Fields (100)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | BusinessLocationIdentifier | BusinessLocationIdentifier | Location ID | |
| KEY | TSWLocationID | TSWLocationID | Location ID | |
| KEY | Material | Material | Vehicle Model | |
| BusinessLocationName | BusinessLocationName | Location name | ||
| MaterialName | MaterialName | Material Description | ||
| BusinessLocationPlant | BusinessLocationPlant | Loc. plant | ||
| Batch | Batch | Lot No. | ||
| PhysicalStockQuantityUnit | PhysicalStockQuantityUnit | Stock Proj. UoM | ||
| PhysicalStockConversionFactor | PhysicalStockConversionFactor | Conversion fac. | ||
| PhysicalStockRollingPeriod | PhysicalStockRollingPeriod | Rolling period | ||
| PhysicalStockNumberOfPastDays | PhysicalStockNumberOfPastDays | Days in past | ||
| ToleranceUnderRate | ToleranceUnderRate | Under % | ||
| PhysStkAbsltQtyTolUndrQty | PhysStkAbsltQtyTolUndrQty | Abs.tol.Q under | ||
| PhysicalStockSafetyPastDays | PhysicalStockSafetyPastDays | SftySt pstDays | ||
| EntityHasPhysInvtryInpt | EntityHasPhysInvtryInpt | Phys.inv.input | ||
| PhysInvtryAtLocExtSrcQty | PhysInvtryAtLocExtSrcQty | Physical inv. | ||
| PhysInvtryUpdtDte | PhysInvtryUpdtDte | Phys. Inv. Date | ||
| PhysInvtryHistHrznForFcst | PhysInvtryHistHrznForFcst | Hist.HorizonFc | ||
| PhysInvtryNrOfDaysFcstCalc | PhysInvtryNrOfDaysFcstCalc | Offset days | ||
| PhysInventoryUpdateDateValue | PhysInventoryUpdateDateValue | Physical Timestamp | ||
| InventorySourceType | InventorySourceType | Phys.Inv.Source | ||
| PhysInvtryHrznForFcstThrput | PhysInvtryHrznForFcstThrput | Rack Iss FC | ||
| VaporPressureValue | VaporPressureValue | RVP | ||
| PhysicalInventoryPlanningType | PhysicalInventoryPlanningType | Plan.type | ||
| CalendarUseActiveCode | CalendarUseActiveCode | Calendar ind. | ||
| PhysInventoryPlanningCalendar | PhysInventoryPlanningCalendar | Plan.calendar | ||
| SftyStkCvrgPerdQty | SftyStkCvrgPerdQty | Safety cover. | ||
| SftyStkPlngHrznQty | SftyStkPlngHrznQty | Plan.horizon | ||
| SftyStkPlngPerdUoM | SftyStkPlngPerdUoM | Plan period UoM | ||
| SftyStkPlngTransptSyst | SftyStkPlngTransptSyst | Planning TS | ||
| SafetyStockPlanningUnit | SafetyStockPlanningUnit | Plan UoM | ||
| SftyStkPlngCycPerdQty | SftyStkPlngCycPerdQty | Cycle period | ||
| SftyStkCycPerdUoM | SftyStkCycPerdUoM | Cycle UoM | ||
| PlngMaxBatSizeQty | PlngMaxBatSizeQty | Max batch size | ||
| PlngMinBatSizeQty | PlngMinBatSizeQty | Min batch size | ||
| PlngIncrmtlBatSizeQty | PlngIncrmtlBatSizeQty | Increment | ||
| SftyStkPlngInvtryUoM | SftyStkPlngInvtryUoM | Inventory UoM | ||
| PlngMaxInvtryLvlQty | PlngMaxInvtryLvlQty | Max inventory | ||
| PlngTgtInvtryLvlQty | PlngTgtInvtryLvlQty | Target inv. | ||
| PlngReordPtInvtryLvlQty | PlngReordPtInvtryLvlQty | Reorder point | ||
| PlngSftyInvtryLvlQty | PlngSftyInvtryLvlQty | Safety level | ||
| BlockedInventoryQuantity | BlockedInventoryQuantity | Unpumpable | ||
| PlngMinInvtryLvlQty | PlngMinInvtryLvlQty | Min.inventory | ||
| PlanningSourceTransportSystem | PlanningSourceTransportSystem | Source TS | ||
| PlanningSourceLocation | PlanningSourceLocation | Source location | ||
| PlanningSourcePartner | PlanningSourcePartner | Source supplier | ||
| PlngSrcePrtnObjType | PlngSrcePrtnObjType | Partner type | ||
| PlngSrceOffstPerdQty | PlngSrceOffstPerdQty | Offset period | ||
| PlngSrceOffstPerdUoM | PlngSrceOffstPerdUoM | Offset per.UoM | ||
| EntityHasNoPlanningSource | EntityHasNoPlanningSource | Radio button | ||
| TransportSystemIsSourcing | TransportSystemIsSourcing | Radio button | ||
| LocationIsSourcing | LocationIsSourcing | Radio button | ||
| EntityPlanDetail | EntityPlanDetail | Plan details | ||
| EntityPlanningIsRun | EntityPlanningIsRun | Plan.run.flag | ||
| EntityIsSrcObjectPlanningRun | EntityIsSrcObjectPlanningRun | Source flag | ||
| SafetyStockServiceLevelValue | SafetyStockServiceLevelValue | Service level | ||
| SafetyStockCoverageProfile | SafetyStockCoverageProfile | Sfty.cov.prof. | ||
| SafetyStockCalendarProfile | SafetyStockCalendarProfile | Safety cal.prf | ||
| SafetyStockFactoryCalendar | SafetyStockFactoryCalendar | Factory cal. | ||
| SafetyStockCalculationType | SafetyStockCalculationType | Safety stock type | ||
| SafetyStockHistoryHorizonValue | SafetyStockHistoryHorizonValue | Hist.horzn. | ||
| TargetStockServiceLevelValue | TargetStockServiceLevelValue | Service level | ||
| TargetStockCoverageProfile | TargetStockCoverageProfile | Tgt.cov.prof. | ||
| TargetStockCalendarProfile | TargetStockCalendarProfile | Target cal.prf | ||
| TgtStkCalcFctryCal | TgtStkCalcFctryCal | Factory cal. | ||
| TargetStockCalculationType | TargetStockCalculationType | Target stock ty | ||
| TargetStockHistoryHorizonValue | TargetStockHistoryHorizonValue | Hist.horzn. | ||
| StkProjtnRackFcstCal | StkProjtnRackFcstCal | Factory cal. | ||
| StkProjtnRackFcstPrfl | StkProjtnRackFcstPrfl | Rack fc profile | ||
| EntityIsUpdatedByTankInterface | EntityIsUpdatedByTankInterface | Tank Inf Flag | ||
| PreferredSafetyLevelQuantity | PreferredSafetyLevelQuantity | PrefSafetyLvl | ||
| PreferredHeadroomLevelQuantity | PreferredHeadroomLevelQuantity | Prefered Hdroom Lvl | ||
| SafetyStockCalculationIsActive | SafetyStockCalculationIsActive | Time dep. Sf | ||
| EntityIsCalctTmeDepdntTgtStk | EntityIsCalctTmeDepdntTgtStk | Time dep. Tg | ||
| ProductionPlanningType | ProductionPlanningType | PP type | ||
| EntityIsSuppressedStkBalcngQts | EntityIsSuppressedStkBalcngQts | Sup SP balance | ||
| ProductionVersionIsActive | ProductionVersionIsActive | PV active | ||
| ProductionVersion | ProductionVersion | Version ID | ||
| ProdnVersValidityEndDate | ProdnVersValidityEndDate | To date | ||
| ProdnVersValidityStartDate | ProdnVersValidityStartDate | From date | ||
| OIL_AlternativeBillOfMaterial | OIL_AlternativeBillOfMaterial | Alternative BOM | ||
| LocPlngIsBillOfMatlUse | LocPlngIsBillOfMatlUse | BOM use | ||
| OIL_BillOfMaterial | OIL_BillOfMaterial | BOM matnr | ||
| CreationDate | CreationDate | Time Stamp | ||
| CreationTime | CreationTime | Time of Change | ||
| CreatedByUser | CreatedByUser | User Name | ||
| LastChangeDate | LastChangeDate | Time Stamp | ||
| LastChangeTime | LastChangeTime | Time changed | ||
| LastChangedByUser | LastChangedByUser | User Name | ||
| EntityIsBlocked | EntityIsBlocked | Blocking ind. | ||
| EntityIsMarkedForDeletion | EntityIsMarkedForDeletion | Will be Deleted | ||
| TicketIsSelectable | TicketIsSelectable | Flag to Select Tkt | ||
| EntityHasTimeDependentData | EntityHasTimeDependentData | Time Dep. Ind. | ||
| AutomaticallyIsConfirmed | AutomaticallyIsConfirmed | Autoconfirm | ||
| ProdRqmtsConsumptionMode | ProdRqmtsConsumptionMode | Consmption mode | ||
| BackwardCnsmpnPeriodInWorkDays | BackwardCnsmpnPeriodInWorkDays | Bwd cons. per. | ||
| FwdConsumptionPeriodInWorkDays | FwdConsumptionPeriodInWorkDays | Fwd cons.period | ||
| DefaultScheduleType | DefaultScheduleType | Def. sched. type | ||
| ReferenceDocumentCode | ReferenceDocumentCode | Ref.Doc.Ind. | ||
| LocationBalancingUnitOfMeasure | LocationBalancingUnitOfMeasure | Loc. Bal. UOM |
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 A_OIL_LocationMaterial.
-- 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.
CREATE VIEW A_OIL_LocationMaterial AS
SELECT
BusinessLocationIdentifier,
TSWLocationID,
Material,
BusinessLocationName,
MaterialName,
BusinessLocationPlant,
Batch,
PhysicalStockQuantityUnit,
PhysicalStockConversionFactor,
PhysicalStockRollingPeriod,
PhysicalStockNumberOfPastDays,
ToleranceUnderRate,
PhysStkAbsltQtyTolUndrQty,
PhysicalStockSafetyPastDays,
EntityHasPhysInvtryInpt,
PhysInvtryAtLocExtSrcQty,
PhysInvtryUpdtDte,
PhysInvtryHistHrznForFcst,
PhysInvtryNrOfDaysFcstCalc,
PhysInventoryUpdateDateValue,
InventorySourceType,
PhysInvtryHrznForFcstThrput,
VaporPressureValue,
PhysicalInventoryPlanningType,
CalendarUseActiveCode,
PhysInventoryPlanningCalendar,
SftyStkCvrgPerdQty,
SftyStkPlngHrznQty,
SftyStkPlngPerdUoM,
SftyStkPlngTransptSyst,
SafetyStockPlanningUnit,
SftyStkPlngCycPerdQty,
SftyStkCycPerdUoM,
PlngMaxBatSizeQty,
PlngMinBatSizeQty,
PlngIncrmtlBatSizeQty,
SftyStkPlngInvtryUoM,
PlngMaxInvtryLvlQty,
PlngTgtInvtryLvlQty,
PlngReordPtInvtryLvlQty,
PlngSftyInvtryLvlQty,
BlockedInventoryQuantity,
PlngMinInvtryLvlQty,
PlanningSourceTransportSystem,
PlanningSourceLocation,
PlanningSourcePartner,
PlngSrcePrtnObjType,
PlngSrceOffstPerdQty,
PlngSrceOffstPerdUoM,
EntityHasNoPlanningSource,
TransportSystemIsSourcing,
LocationIsSourcing,
EntityPlanDetail,
EntityPlanningIsRun,
EntityIsSrcObjectPlanningRun,
SafetyStockServiceLevelValue,
SafetyStockCoverageProfile,
SafetyStockCalendarProfile,
SafetyStockFactoryCalendar,
SafetyStockCalculationType,
SafetyStockHistoryHorizonValue,
TargetStockServiceLevelValue,
TargetStockCoverageProfile,
TargetStockCalendarProfile,
TgtStkCalcFctryCal,
TargetStockCalculationType,
TargetStockHistoryHorizonValue,
StkProjtnRackFcstCal,
StkProjtnRackFcstPrfl,
EntityIsUpdatedByTankInterface,
PreferredSafetyLevelQuantity,
PreferredHeadroomLevelQuantity,
SafetyStockCalculationIsActive,
EntityIsCalctTmeDepdntTgtStk,
ProductionPlanningType,
EntityIsSuppressedStkBalcngQts,
ProductionVersionIsActive,
ProductionVersion,
ProdnVersValidityEndDate,
ProdnVersValidityStartDate,
OIL_AlternativeBillOfMaterial,
LocPlngIsBillOfMatlUse,
OIL_BillOfMaterial,
CreationDate,
CreationTime,
CreatedByUser,
LastChangeDate,
LastChangeTime,
LastChangedByUser,
EntityIsBlocked,
EntityIsMarkedForDeletion,
TicketIsSelectable,
EntityHasTimeDependentData,
AutomaticallyIsConfirmed,
ProdRqmtsConsumptionMode,
BackwardCnsmpnPeriodInWorkDays,
FwdConsumptionPeriodInWorkDays,
DefaultScheduleType,
ReferenceDocumentCode,
LocationBalancingUnitOfMeasure
FROM R_OIL_LocationMaterialTP
;
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