C_ARunSimlnDmndQuery

DDL: C_ARUNSIMLNDMNDQUERY Type: view CONSUMPTION

ARun Simulation Demand Query View

C_ARunSimlnDmndQuery is a Consumption CDS View that provides data about "ARun Simulation Demand Query View" in SAP S/4HANA. It reads from 1 data source (I_ARunSimlnDmndCube) and exposes 79 fields with key fields ATPCheckUUID, RequirementDocumentNumber, RequirementDocumentItem, RequestedDate, ProductAvailabilityDate. It has 14 associations to related views.

Data Sources (1)

SourceAliasJoin Type
I_ARunSimlnDmndCube Demand from

Associations (14)

CardinalityTargetAliasCondition
[0..1] I_ProductText _ProductText $projection.Material = _ProductText.Product and _ProductText.Language = $session.system_language
[0..1] I_ProductGroupText _ProductGroupText $projection.MaterialGroup = _ProductGroupText.MaterialGroup and _ProductGroupText.Language = $session.system_language
[0..1] I_SalesOrganizationText _SalesOrgText $projection.SalesOrganization = _SalesOrgText.SalesOrganization and _SalesOrgText.Language = $session.system_language
[0..1] I_DistributionChannelText _DistrChnl $projection.DistributionChannel = _DistrChnl.DistributionChannel and _DistrChnl.Language = $session.system_language
[0..1] I_DivisionText _Divn $projection.Division = _Divn.Division and _Divn.Language = $session.system_language
[0..1] I_SalesDistrictText _SalesDist $projection.SalesDistrict = _SalesDist.SalesDistrict and _SalesDist.Language = $session.system_language
[0..1] I_Plant _Plant $projection.Plant = _Plant.Plant
[0..1] I_CompanyCode _CompanyCode $projection.CompanyCode = _CompanyCode.CompanyCode
[0..1] I_CustomerGroupText _CustomerGroup $projection.CustomerGroup = _CustomerGroup.CustomerGroup and _CustomerGroup.Language = $session.system_language
[0..1] I_Customer _SoldToParty $projection.SoldToParty = _SoldToParty.Customer
[0..1] I_Customer _ShipToParty $projection.ShipToParty = _ShipToParty.Customer
[0..1] I_UnitOfMeasure _BaseUnit $projection.BaseUnit = _BaseUnit.UnitOfMeasure
[0..1] I_SupDmndRqmtTypeText _RqmtText $projection.RequirementType = _RqmtText.RequirementType and _RqmtText.Language = $session.system_language
[0..1] I_ARunABOPText _ARunABOPText $projection.ATPCheckUUID = _ARunABOPText.ATPCheckUUID

Annotations (11)

NameValueLevelField
AbapCatalog.sqlViewName CARUNSIMDMNDCUBE view
AbapCatalog.compiler.compareFilter true view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #XXL view
AccessControl.authorizationCheck #CHECK view
ObjectModel.usageType.dataClass #MIXED view
ClientHandling.type #INHERITED view
ClientHandling.algorithm #SESSION_VARIABLE view
VDM.viewType #CONSUMPTION view
AccessControl.personalData.blocking #REQUIRED view
EndUserText.label ARun Simulation Demand Query View view

Fields (79)

KeyFieldSource TableSource FieldDescription
KEY ATPCheckUUID ATPCheckUUID BOP Run
KEY RequirementDocumentNumber RequirementDocumentNumber Requirement Document Number
KEY RequirementDocumentItem RequirementDocumentItem Requirement Document Item
KEY RequestedDate RequestedDate Requested Date
KEY ProductAvailabilityDate ProductAvailabilityDate Mat.Avail.Date
KEY RequirementType RequirementType Requirement Type
DeliveredQuantityInBaseUnit DeliveredQuantityInBaseUnit Delivered Quantity
RequestedRqmtQtyInBaseUnit RequestedRqmtQtyInBaseUnit Order Quantity
ConfirmedRqmtQtyInBaseUnit ConfirmedRqmtQtyInBaseUnit Confirmed Quantity
OpenDemandQuantity OpenDemandQuantity Open Demand Quantity
ARunReqdRqmtQtyFlfmtPercent Assigned Requested Quantity %
ARunConfdReqdRqmtQtyRatioPct Confirmed Requested Quantity %
ARunDlvrdReqdRqmtQtyRatioPct Delivered Requested Quantity %
ARunOpnReqdRqmtQtyRatioPct Open Requested Quantity %
ARunTotSupProtQty ARunTotSupProtQty
ARunActualSupProtQty ARunActualSupProtQty
CalendarMonth CalendarMonth Calendar Month
CalendarWeek CalendarWeek Week
CalendarYear CalendarYear Year
CalendarDay CalendarDay Day
CalendarMonthName CalendarMonthName Month
AssignedQuantityInBaseUnit AssignedQuantityInBaseUnit Total Assigned Quantity
FixedQuantityInBaseUnit FixedQuantityInBaseUnit Ready for Delivery Quantity
SupAssgmtReservedQtyInBaseUnit SupAssgmtReservedQtyInBaseUnit Reserved Quantity
ReadyForReleaseQtyInBaseUnit ReadyForReleaseQtyInBaseUnit Open for Release Check Quantity
OnHoldQuantityInBaseUnit OnHoldQuantityInBaseUnit On Hold Quantity
InboundAssignedQuantityInBsUnt InboundAssignedQuantityInBsUnt IFO Assigned Quantity
ARunFixedConfdRqmtQtyRatioPct Ready for Delivery (F) Confirmed Quantity %
ARunOpnForRelConfdQtyRatioPct Open For Release Check (O) Confirmed Quantity %
ARunOnResvnConfdQtyRatioPct On Reservation(R) Confirmed Quantity %
ARunOnHoldConfdQtyRatioPct On Hold For Delivery (H) Confirmed Quantity %
ARunInbAssgdConfdQtyRatioPct IFO Assignemed (C) Confirmed Quantity %
ABOPVariantUUID ABOPVariantUUID BOP Variant UUID
ABOPVariantName _ARunABOPText ABOPVariantName BOP Variant Name
StartedByUser StartedByUser
ATPCheckStatus ATPCheckStatus
ABOPExecutionMode ABOPExecutionMode
ATPRlvtDocItmIsSupAssgmtRlvt ATPRlvtDocItmIsSupAssgmtRlvt
ABOPAssignmentPreviewIsActive ABOPAssignmentPreviewIsActive Assignment Preview
Material I_ARunSimlnDmndCube Material Product
Plant I_ARunSimlnDmndCube Plant Valuation Area
RequirementSegment RequirementSegment Req. Segment
BaseUnit BaseUnit Unit of Measure
SalesOrganization I_ARunSimlnDmndCube SalesOrganization Sales Organization
DistributionChannel I_ARunSimlnDmndCube DistributionChannel RefDistCh-Cust/Mat.
Division I_ARunSimlnDmndCube Division Internal Division ID
SalesDistrict I_ARunSimlnDmndCube SalesDistrict Sales District
CustomerGroup CustomerGroup Customer Group
CompanyCode I_ARunSimlnDmndCube CompanyCode Company Code
MaterialGroup I_ARunSimlnDmndCube MaterialGroup Product Group
OrderType OrderType Order type
OrderTypeName OrderTypeName Order Type Name
SoldToParty SoldToParty Sold-To Party
ShipToParty ShipToParty Ship-To Party
CrossPlantConfigurableProduct CrossPlantConfigurableProduct Generic Product
DeliveryGroup DeliveryGroup Delivery Group
ProductSeasonYear ProductSeasonYear Season Year
ProductSeason ProductSeason Season
ProductCollection ProductCollection Collection
ProductTheme ProductTheme Theme
NetAmount NetAmount Stated Amount
DocumentCurrency DocumentCurrency Document Currency
NetPriceAmount NetPriceAmount Net Price
NetPriceQuantity NetPriceQuantity Price Unit
_ProductText _ProductText
_ProductGroupText _ProductGroupText
_SalesOrgText _SalesOrgText
_DistrChnl _DistrChnl
_Divn _Divn
_SalesDist _SalesDist
_Plant _Plant
_CompanyCode _CompanyCode
_CustomerGroup _CustomerGroup
_SoldToParty _SoldToParty
_ShipToParty _ShipToParty
_BaseUnit _BaseUnit
_RqmtText _RqmtText
_DocCurrency _DocCurrency
_ARunABOPText _ARunABOPText

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 C_ARunSimlnDmndQuery.
-- 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 C_ARunSimlnDmndQuery AS
SELECT
  ATPCheckUUID,
  RequirementDocumentNumber,
  RequirementDocumentItem,
  RequestedDate,
  ProductAvailabilityDate,
  RequirementType,
  DeliveredQuantityInBaseUnit,
  RequestedRqmtQtyInBaseUnit,
  ConfirmedRqmtQtyInBaseUnit,
  OpenDemandQuantity,
  cast ( 0 as arun_alloc_qty ) AS ARunReqdRqmtQtyFlfmtPercent,
  cast ( 0 as arun_alloc_qty ) AS ARunConfdReqdRqmtQtyRatioPct,
  cast ( 0 as arun_alloc_qty ) AS ARunDlvrdReqdRqmtQtyRatioPct,
  cast ( 0 as arun_alloc_qty ) AS ARunOpnReqdRqmtQtyRatioPct,
  ARunTotSupProtQty,
  ARunActualSupProtQty,
  CalendarMonth,
  CalendarWeek,
  CalendarYear,
  CalendarDay,
  CalendarMonthName,
  AssignedQuantityInBaseUnit,
  FixedQuantityInBaseUnit,
  SupAssgmtReservedQtyInBaseUnit,
  ReadyForReleaseQtyInBaseUnit,
  OnHoldQuantityInBaseUnit,
  InboundAssignedQuantityInBsUnt,
  cast ( 0 as arun_alloc_qty ) AS ARunFixedConfdRqmtQtyRatioPct,
  cast ( 0 as arun_alloc_qty ) AS ARunOpnForRelConfdQtyRatioPct,
  cast ( 0 as arun_alloc_qty ) AS ARunOnResvnConfdQtyRatioPct,
  cast ( 0 as arun_alloc_qty ) AS ARunOnHoldConfdQtyRatioPct,
  cast ( 0 as arun_alloc_qty ) AS ARunInbAssgdConfdQtyRatioPct,
  ABOPVariantUUID,
  _ARunABOPText.ABOPVariantName AS ABOPVariantName,
  StartedByUser,
  ATPCheckStatus,
  ABOPExecutionMode,
  ATPRlvtDocItmIsSupAssgmtRlvt,
  ABOPAssignmentPreviewIsActive,
  Demand.Material AS Material,
  Demand.Plant AS Plant,
  RequirementSegment,
  BaseUnit,
  Demand.SalesOrganization AS SalesOrganization,
  Demand.DistributionChannel AS DistributionChannel,
  Demand.Division AS Division,
  Demand.SalesDistrict AS SalesDistrict,
  CustomerGroup,
  Demand.CompanyCode AS CompanyCode,
  Demand.MaterialGroup AS MaterialGroup,
  OrderType,
  OrderTypeName,
  SoldToParty,
  ShipToParty,
  CrossPlantConfigurableProduct,
  DeliveryGroup,
  ProductSeasonYear,
  ProductSeason,
  ProductCollection,
  ProductTheme,
  NetAmount,
  DocumentCurrency,
  NetPriceAmount,
  NetPriceQuantity
FROM I_ARunSimlnDmndCube AS Demand
LEFT OUTER JOIN I_ProductText AS _ProductText ON Material = _ProductText.Product AND _ProductText.Language = $session.system_language  -- association [0..1]
LEFT OUTER JOIN I_ProductGroupText AS _ProductGroupText ON MaterialGroup = _ProductGroupText.MaterialGroup AND _ProductGroupText.Language = $session.system_language  -- association [0..1]
LEFT OUTER JOIN I_SalesOrganizationText AS _SalesOrgText ON SalesOrganization = _SalesOrgText.SalesOrganization AND _SalesOrgText.Language = $session.system_language  -- association [0..1]
LEFT OUTER JOIN I_DistributionChannelText AS _DistrChnl ON DistributionChannel = _DistrChnl.DistributionChannel AND _DistrChnl.Language = $session.system_language  -- association [0..1]
LEFT OUTER JOIN I_DivisionText AS _Divn ON Division = _Divn.Division AND _Divn.Language = $session.system_language  -- association [0..1]
LEFT OUTER JOIN I_SalesDistrictText AS _SalesDist ON SalesDistrict = _SalesDist.SalesDistrict AND _SalesDist.Language = $session.system_language  -- association [0..1]
LEFT OUTER JOIN I_Plant AS _Plant ON Plant = _Plant.Plant  -- association [0..1]
LEFT OUTER JOIN I_CompanyCode AS _CompanyCode ON CompanyCode = _CompanyCode.CompanyCode  -- association [0..1]
LEFT OUTER JOIN I_CustomerGroupText AS _CustomerGroup ON CustomerGroup = _CustomerGroup.CustomerGroup AND _CustomerGroup.Language = $session.system_language  -- association [0..1]
LEFT OUTER JOIN I_Customer AS _SoldToParty ON SoldToParty = _SoldToParty.Customer  -- association [0..1]
LEFT OUTER JOIN I_Customer AS _ShipToParty ON ShipToParty = _ShipToParty.Customer  -- association [0..1]
LEFT OUTER JOIN I_UnitOfMeasure AS _BaseUnit ON BaseUnit = _BaseUnit.UnitOfMeasure  -- association [0..1]
LEFT OUTER JOIN I_SupDmndRqmtTypeText AS _RqmtText ON RequirementType = _RqmtText.RequirementType AND _RqmtText.Language = $session.system_language  -- association [0..1]
LEFT OUTER JOIN I_ARunABOPText AS _ARunABOPText ON ATPCheckUUID = _ARunABOPText.ATPCheckUUID  -- association [0..1]
;