I_MaterialShortageDefinition

DDL: I_MATERIALSHORTAGEDEFINITION SQL: IMATSHORTDEF Type: view BASIC Package: ODATA_PP_MRP

MRP Material Shortage Definition

I_MaterialShortageDefinition is a Basic CDS View that provides data about "MRP Material Shortage Definition" in SAP S/4HANA. It reads from 1 data source (sdm_msh_prof01) and exposes 8 fields with key fields MaterialShortageProfile, MaterialShortageProfileCount. It has 3 associations to related views. Part of development package ODATA_PP_MRP.

Data Sources (1)

SourceAliasJoin Type
sdm_msh_prof01 sdm_msh_prof01 from

Associations (3)

CardinalityTargetAliasCondition
[0..1] sdm_aor_profile _ProfileUser _ProfileUser.uname = $session.user and _ProfileUser.sdm_profile = $projection.MaterialShortageProfile
[0..1] sdm_aor_profile _ProfileStar _ProfileStar.uname = '*' and _ProfileStar.sdm_profile = $projection.MaterialShortageProfile
[0..*] sdm_msh_prof01_t _MaterialShortageDefText $projection.MaterialShortageProfile = _MaterialShortageDefText.materialshortageprofile and $projection.MaterialShortageProfileCount = _MaterialShortageDefText.materialshortageprof_cnt

Annotations (9)

NameValueLevelField
AbapCatalog.sqlViewName IMATSHORTDEF view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #NOT_REQUIRED view
EndUserText.label MRP Material Shortage Definition view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.serviceQuality #B view
ObjectModel.usageType.sizeCategory #M view
ObjectModel.usageType.dataClass #CUSTOMIZING view
VDM.viewType #BASIC view

Fields (8)

KeyFieldSource TableSource FieldDescription
KEY MaterialShortageProfile sdm_msh_prof01 materialshortageprofile Shortage Prf.
KEY MaterialShortageProfileCount
DemandCategoryGroup sdm_msh_prof01 demandcategorygroup Demand Groups
ReceiptCategoryGroup sdm_msh_prof01 receiptcategorygroup Supply Groups
EvaluationHorizonInDays sdm_msh_prof01 sdivevaluationhorizonindays Eval. Horizon
MaterialShortageDefinitionName
HasMfgOrderComponentCheckRule sdm_msh_prof01 mfgordercomponentcheckrule Check Comps
UncoveredDemandIsCalculated sdm_msh_prof01 uncovereddemandiscalculated Uncovered Dmnd

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_MaterialShortageDefinition.
-- 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: IMATSHORTDEF

CREATE VIEW I_MaterialShortageDefinition AS
SELECT
  sdm_msh_prof01.materialshortageprofile AS MaterialShortageProfile,
  cast (sdm_msh_prof01.materialshortageprof_cnt as materialshortageprofilecount preserving type) AS MaterialShortageProfileCount,
  sdm_msh_prof01.demandcategorygroup AS DemandCategoryGroup,
  sdm_msh_prof01.receiptcategorygroup AS ReceiptCategoryGroup,
  sdm_msh_prof01.sdivevaluationhorizonindays AS EvaluationHorizonInDays,
  _MaterialShortageDefText[ 1: spras = $session.system_language ].materialshortagedefinitionname AS MaterialShortageDefinitionName,
  sdm_msh_prof01.mfgordercomponentcheckrule AS HasMfgOrderComponentCheckRule,
  sdm_msh_prof01.uncovereddemandiscalculated AS UncoveredDemandIsCalculated
FROM sdm_msh_prof01
LEFT OUTER JOIN sdm_aor_profile AS _ProfileUser ON _ProfileUser.uname = $session.user AND _ProfileUser.sdm_profile = MaterialShortageProfile  -- association [0..1]
LEFT OUTER JOIN sdm_aor_profile AS _ProfileStar ON _ProfileStar.uname = '*' AND _ProfileStar.sdm_profile = MaterialShortageProfile  -- association [0..1]
LEFT OUTER JOIN sdm_msh_prof01_t AS _MaterialShortageDefText ON MaterialShortageProfile = _MaterialShortageDefText.materialshortageprofile AND MaterialShortageProfileCount = _MaterialShortageDefText.materialshortageprof_cnt  -- association [0..*]
;