I_MRPPurchasingInfoRecord

DDL: I_MRPPURCHASINGINFORECORD SQL: IMRPPURGINFOREC Type: view BASIC

Basic InfoRecords for SOS

I_MRPPurchasingInfoRecord is a Basic CDS View that provides data about "Basic InfoRecords for SOS" in SAP S/4HANA. It reads from 3 data sources (eina, eine, eine) and exposes 47 fields.

Data Sources (3)

SourceAliasJoin Type
eina eina from
eine eine inner
eine eine inner

Annotations (11)

NameValueLevelField
AbapCatalog.sqlViewName IMRPPURGINFOREC view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #MANDATORY view
EndUserText.label Basic InfoRecords for SOS view
VDM.viewType #BASIC view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #MIXED view
ClientHandling.type #CLIENT_DEPENDENT view

Fields (47)

KeyFieldSource TableSource FieldDescription
ManufacturerMaterial eina matnr Vehicle Model
Material mara matnr Int. material no.
Plant t024w werks Receiving Plant
ValidityStartDate eina lifab Available from
lifbiendasValidityEndDate
PreferredSupplier eina lifnr Vendor no.
umren3endendasMaterialMinLotSizeQuantity
umren3endendasMaterialMaxLotSizeQuantity
IsRelevantForAutomSrcg eine aut_source Auto. Sourcing
PurgDocNetPriceAmount eine netpr Price
PurgDocTransactionCurrency eine waers Transaction Currency
PurgDocNetPriceQuantity eine peinh Unit of measure
ActivePurchasingInfoRecord eina infnr Info Record
PurchasingOrganization eine ekorg Purchasing Org.
PurchasingInfoRecordCategory eine esokz Infotype
PurchasingGroup eine ekgrp Sub. purchasing grp
GoodsReceiptDuration marc webaz GR Proc. Time
PlannedDeliveryDuration eine aplfz Pl. Deliv. Time
ProductionVersion eine verid Version ID
RoundingProfile eine rdprf Rounding Prfl.
werkswhenthenelseXendasPurgDocHasPlant
ProductVariantGroup eina matkl Product Sold Group
PurgDocHasRefPurchasingOrg
matnrasManufacturerMaterial
Material mara bmatn Int. material no.
Plant t024w werks Receiving Plant
ValidityStartDate eina lifab Available from
lifbiendasValidityEndDate
PreferredSupplier eina lifnr Vendor no.
umren3endendasMaterialMinLotSizeQuantity
umren3endendasMaterialMaxLotSizeQuantity
IsRelevantForAutomSrcg eine aut_source Auto. Sourcing
PurgDocNetPriceAmount eine netpr Price
PurgDocTransactionCurrency eine waers Transaction Currency
PurgDocNetPriceQuantity eine peinh Unit of measure
ActivePurchasingInfoRecord eina infnr Info Record
PurchasingOrganization eine ekorg Purchasing Org.
PurchasingInfoRecordCategory eine esokz Infotype
PurchasingGroup eine ekgrp Sub. purchasing grp
GoodsReceiptDuration marc webaz GR Proc. Time
PlannedDeliveryDuration eine aplfz Pl. Deliv. Time
ProductionVersion eine verid Version ID
RoundingProfile eine rdprf Rounding Prfl.
werkswhenthenelseXendasPurgDocHasPlant
ProductVariantGroup eina matkl Product Sold Group
PurgDocHasRefPurchasingOrg
ManufacturerPartProfile mara mprof Mfr Part Profile

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_MRPPurchasingInfoRecord.
-- 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: IMRPPURGINFOREC

CREATE VIEW I_MRPPurchasingInfoRecord AS
SELECT
  eina.matnr AS ManufacturerMaterial,
  mara.matnr AS Material,
  t024w.werks AS Plant,
  eina.lifab AS ValidityStartDate,
  case eina.lifbi when '00000000' then '99991231' else eina.lifbi end as ValidityEndDate AS lifbiendasValidityEndDate,
  eina.lifnr AS PreferredSupplier,
  case eine.minbm when 0 then eine.minbm else case eina.umren when 0 then eine.minbm else division((eine.minbm * eina.umrez), eina.umren, 3) end end as MaterialMinLotSizeQuantity AS umren3endendasMaterialMinLotSizeQuantity,
  case eine.bstma when 0 then cast('9999999999' as abap.dec(13,3)) else case eina.umren when 0 then eine.bstma else division((eine.bstma * eina.umrez), eina.umren, 3) end end as MaterialMaxLotSizeQuantity AS umren3endendasMaterialMaxLotSizeQuantity,
  eine.aut_source AS IsRelevantForAutomSrcg,
  eine.netpr AS PurgDocNetPriceAmount,
  eine.waers AS PurgDocTransactionCurrency,
  eine.peinh AS PurgDocNetPriceQuantity,
  eina.infnr AS ActivePurchasingInfoRecord,
  eine.ekorg AS PurchasingOrganization,
  eine.esokz AS PurchasingInfoRecordCategory,
  eine.ekgrp AS PurchasingGroup,
  marc.webaz AS GoodsReceiptDuration,
  eine.aplfz AS PlannedDeliveryDuration,
  eine.verid AS ProductionVersion,
  eine.rdprf AS RoundingProfile,
  case eine.werks when '' then '' else 'X' end as PurgDocHasPlant AS werkswhenthenelseXendasPurgDocHasPlant,
  eina.matkl AS ProductVariantGroup,
  '' AS PurgDocHasRefPurchasingOrg,
  mara.mprof as ManufacturerPartProfile AS matnrasManufacturerMaterial,
  mara.mprof AS ManufacturerPartProfile
FROM eina
INNER JOIN eine ON /* join condition not captured in parsed metadata */
;