I_OIL_GeneralMeter

DDL: I_OIL_GENERALMETER Type: view_entity BASIC

General Meter

I_OIL_GeneralMeter is a Basic CDS View that provides data about "General Meter" in SAP S/4HANA. It reads from 1 data source (oiigmmk) and exposes 45 fields with key field GeneralMeterNumber. It has 11 associations to related views.

Data Sources (1)

SourceAliasJoin Type
oiigmmk oiigmmk from

Associations (11)

CardinalityTargetAliasCondition
[0..*] I_OIL_GeneralMeterText _Text $projection.GeneralMeterNumber = _Text.GeneralMeterNumber
[1..1] I_ControllingObject _ControllingObject $projection.ControllingObject = _ControllingObject.ControllingObject
[1..1] I_OIL_GeneralMeterTypeVH _GeneralMeterTypeVH $projection.GeneralMeterType = _GeneralMeterTypeVH.GeneralMeterType
[1..1] I_Equipment _Equipment $projection.Equipment = _Equipment.Equipment
[1..1] I_FunctionalLocation _FunctionalLocation $projection.FunctionalLocation = _FunctionalLocation.FunctionalLocation
[1..1] I_Country _Country $projection.ManufacturerCountry = _Country.Country
[1..1] I_UnitOfMeasure _VolumeUnit $projection.VolumeUnit = _VolumeUnit.UnitOfMeasure
[1..1] I_UnitOfMeasure _MassUnit $projection.TankMassUnit = _MassUnit.UnitOfMeasure
[1..1] I_UnitOfMeasure _LengthUnit $projection.TankLengthUnit = _LengthUnit.UnitOfMeasure
[1..1] I_Material _Material _Material.Material = $projection.Material
[1..1] I_OIL_StoreStopMtrCalcRoutnVH _StoreStopMtrCalcRoutnVH $projection.StopMeterCalcRoutineType = _StoreStopMtrCalcRoutnVH.StopMeterCalcRoutineType

Annotations (9)

NameValueLevelField
AccessControl.authorizationCheck #NOT_REQUIRED view
EndUserText.label General Meter view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.representativeKey GeneralMeterNumber view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.sizeCategory #M view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
VDM.viewType #BASIC view
Search.searchable true view

Fields (45)

KeyFieldSource TableSource FieldDescription
KEY GeneralMeterNumber gmmnr Gen. meter no.
ControllingObject objnr Val. Obj. No.
GeneralMeterType gmmtyp Gen. meter type
Equipment equnr Equipment
FunctionalLocation Functional loc.
EquipmentManufacturerName herst Vendor/Manuf.
ManufacturerCountry herld Mnf. Cntry/Regn
ManufacturerSerialNumber serge Mnf.serial no.
ManufacturerModelNumber typbz Type Name
MeterYearOfConstruction baujj ConstructYear
ConstructionMonth baumm ConstructMth
VolumeUnit volun Volume UoM
TankMassUnit masun UoM mass
TankLengthUnit lenun Length UoM
NumberOfDigitsOnMeter nrdig No.of digits
NumberOfDecimalPlacesOnMeter nrdpl No. of decimals
MeterConversionFactor confac Conv. factor
Material matnr Vehicle Model
LastRecalibrationDate recdat Last recalibr.
LastRecalibrationTime rectim Last recalibr.
StartReadingValue stcoun Start reading
SrvcStnRetailingServiceType servtyp Service type
MeterReadingIsQuantityValue qmet_ind Quantity Meter
MeterMatStorObjIsDifferent matswitch Mat Switch
CreationDate erdat Entered On
CreationTime erzeit Time created
CreatedByUser ernam User Name
LastChangeDate aedat Obsolete
LastChangeTime aezeit Time changed
LastChangedByUser aenam User Name
EntityIsBlocked bloind Single-Character Flag
EntityIsMarkedForDeletion delind Will be Deleted
LastMeterReadingCheckIsActive last_rdg_chk Check Last Meter Rdg
StopMeterCalcRoutineType st_mtr_rt Stp Mtr Calc Routine
_Text _Text
_ControllingObject _ControllingObject
_GeneralMeterTypeVH _GeneralMeterTypeVH
_Equipment _Equipment
_FunctionalLocation _FunctionalLocation
_Country _Country
_VolumeUnit _VolumeUnit
_MassUnit _MassUnit
_LengthUnit _LengthUnit
_Material _Material
_StoreStopMtrCalcRoutnVH _StoreStopMtrCalcRoutnVH

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 I_OIL_GeneralMeter.
-- 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 I_OIL_GeneralMeter AS
SELECT
  gmmnr AS GeneralMeterNumber,
  objnr AS ControllingObject,
  gmmtyp AS GeneralMeterType,
  equnr AS Equipment,
  cast(tplnr as char30 ) AS FunctionalLocation,
  herst AS EquipmentManufacturerName,
  herld AS ManufacturerCountry,
  serge AS ManufacturerSerialNumber,
  typbz AS ManufacturerModelNumber,
  baujj AS MeterYearOfConstruction,
  baumm AS ConstructionMonth,
  volun AS VolumeUnit,
  masun AS TankMassUnit,
  lenun AS TankLengthUnit,
  nrdig AS NumberOfDigitsOnMeter,
  nrdpl AS NumberOfDecimalPlacesOnMeter,
  confac AS MeterConversionFactor,
  matnr AS Material,
  recdat AS LastRecalibrationDate,
  rectim AS LastRecalibrationTime,
  stcoun AS StartReadingValue,
  servtyp AS SrvcStnRetailingServiceType,
  qmet_ind AS MeterReadingIsQuantityValue,
  matswitch AS MeterMatStorObjIsDifferent,
  erdat AS CreationDate,
  erzeit AS CreationTime,
  ernam AS CreatedByUser,
  aedat AS LastChangeDate,
  aezeit AS LastChangeTime,
  aenam AS LastChangedByUser,
  bloind AS EntityIsBlocked,
  delind AS EntityIsMarkedForDeletion,
  last_rdg_chk AS LastMeterReadingCheckIsActive,
  st_mtr_rt AS StopMeterCalcRoutineType
FROM oiigmmk
LEFT OUTER JOIN I_OIL_GeneralMeterText AS _Text ON GeneralMeterNumber = _Text.GeneralMeterNumber  -- association [0..*]
LEFT OUTER JOIN I_ControllingObject AS _ControllingObject ON ControllingObject = _ControllingObject.ControllingObject  -- association [1..1]
LEFT OUTER JOIN I_OIL_GeneralMeterTypeVH AS _GeneralMeterTypeVH ON GeneralMeterType = _GeneralMeterTypeVH.GeneralMeterType  -- association [1..1]
LEFT OUTER JOIN I_Equipment AS _Equipment ON Equipment = _Equipment.Equipment  -- association [1..1]
LEFT OUTER JOIN I_FunctionalLocation AS _FunctionalLocation ON FunctionalLocation = _FunctionalLocation.FunctionalLocation  -- association [1..1]
LEFT OUTER JOIN I_Country AS _Country ON ManufacturerCountry = _Country.Country  -- association [1..1]
LEFT OUTER JOIN I_UnitOfMeasure AS _VolumeUnit ON VolumeUnit = _VolumeUnit.UnitOfMeasure  -- association [1..1]
LEFT OUTER JOIN I_UnitOfMeasure AS _MassUnit ON TankMassUnit = _MassUnit.UnitOfMeasure  -- association [1..1]
LEFT OUTER JOIN I_UnitOfMeasure AS _LengthUnit ON TankLengthUnit = _LengthUnit.UnitOfMeasure  -- association [1..1]
LEFT OUTER JOIN I_Material AS _Material ON _Material.Material = Material  -- association [1..1]
LEFT OUTER JOIN I_OIL_StoreStopMtrCalcRoutnVH AS _StoreStopMtrCalcRoutnVH ON StopMeterCalcRoutineType = _StoreStopMtrCalcRoutnVH.StopMeterCalcRoutineType  -- association [1..1]
;