I_ARunNormal

DDL: I_ARUNNORMAL Type: view BASIC Package: VDM_ARUN_MONITOR

Basic View for Normal Run data

I_ARunNormal is a Basic CDS View that provides data about "Basic View for Normal Run data" in SAP S/4HANA. It reads from 1 data source (arun_bdbs) and exposes 27 fields. Part of development package VDM_ARUN_MONITOR.

Data Sources (1)

SourceAliasJoin Type
arun_bdbs arun_bdbs from

Annotations (10)

NameValueLevelField
ClientHandling.algorithm #SESSION_VARIABLE view
EndUserText.label Basic View for Normal Run data view
VDM.viewType #BASIC view
VDM.lifecycle.contract.type #PUBLIC_LOCAL_API view
AccessControl.authorizationCheck #NOT_REQUIRED view
AbapCatalog.sqlViewName IARUNNORMAL view
AbapCatalog.compiler.compareFilter true view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.usageType.serviceQuality #B view
ObjectModel.usageType.sizeCategory #XXL view

Fields (27)

KeyFieldSource TableSource FieldDescription
ARunUUID arunid ARun ID
Plant plant Valuation Area
Material material Vehicle Model
SupplyAssignmentStatus arun_status ARun Status
RequirementType req_ind Requirement Type
AssignedSupplyType stock_source Stock Source
char12endasSupplyNumber PO number
char5endasSupplyItem PO Item
char4endasSupplyScheduleLine PO Schedule Line
AssignedQuantityInBaseUnit alloc_qty Assigned Qty
FixedQuantityInBaseUnit
SupAssgmtReservedQtyInBaseUnit
OnHoldQuantityInBaseUnit
ReadyForReleaseQtyInBaseUnit
InboundAssignedQuantityInBsUnt
BaseUnit material_baseunit Base Unit
RequestedDate requested_date Requested date
ProductAvailabilityDate material_avail_date Mat.Avail.Date
SupplyDeliveryDate
NumberOfDays
dec123endasARunPhysSupAssgdQtyInBsUnt
dec123endasARunPhysSupReservedQtyInBsUnt
CreationDateTime creation_time Time Stamp
LastChangeByUser changed_by User Name
RequirementSegment req_segment Req. Segment
StockSegment stk_segment Stock Segment
ARunSource arun_source ARun Source

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_ARunNormal.
-- 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_ARunNormal AS
SELECT
  arunid AS ARunUUID,
  Plant,
  Material,
  arun_status AS SupplyAssignmentStatus,
  req_ind AS RequirementType,
  stock_source AS AssignedSupplyType,
  case stock_source when 'B' then cast(purchord_num as abap.char(12)) when 'F' then cast(prodord_num as abap.char(12)) when 'L' then cast(purchord_num as abap.char(12)) else cast('' as abap.char(12)) end as SupplyNumber AS char12endasSupplyNumber,
  case stock_source when 'B' then cast(purchord_item as abap.char(5)) when 'F' then cast(prodord_item as abap.char(5)) when 'L' then cast(purchord_item as abap.char(5)) else cast('' as abap.char(5)) end as SupplyItem AS char5endasSupplyItem,
  case stock_source when 'B' then cast(purchord_sch as abap.char(4)) when 'L' then cast(confirmation_no as abap.char(4)) else cast('' as abap.char(4)) end as SupplyScheduleLine AS char4endasSupplyScheduleLine,
  alloc_qty AS AssignedQuantityInBaseUnit,
  case when arun_status = 'F' then alloc_qty else 0 end AS FixedQuantityInBaseUnit,
  case when arun_status = 'R' then alloc_qty else 0 end AS SupAssgmtReservedQtyInBaseUnit,
  case when arun_status = 'H' then alloc_qty else 0 end AS OnHoldQuantityInBaseUnit,
  case when arun_status = 'O' then alloc_qty else 0 end AS ReadyForReleaseQtyInBaseUnit,
  case when arun_status = 'C' then alloc_qty else 0 end AS InboundAssignedQuantityInBsUnt,
  material_baseunit AS BaseUnit,
  requested_date AS RequestedDate,
  material_avail_date AS ProductAvailabilityDate,
  case when stock_source = 'S' or stock_source = 'C' then cast( $session.system_date as abap.dats ) else delivery_date_po end AS SupplyDeliveryDate,
  case when stock_source = 'S' or stock_source = 'C' then 0 else DATS_DAYS_BETWEEN( material_avail_date, delivery_date_po ) end AS NumberOfDays,
  case when stock_source = 'S' or stock_source = 'C' then alloc_qty else cast( 0 as abap.dec( 12, 3 ) ) end as ARunPhysSupAssgdQtyInBsUnt AS dec123endasARunPhysSupAssgdQtyInBsUnt,
  case when arun_status = 'R' and ( stock_source = 'S' or stock_source = 'C' ) then alloc_qty else cast( 0 as abap.dec( 12, 3 ) ) end as ARunPhysSupReservedQtyInBsUnt AS dec123endasARunPhysSupReservedQtyInBsUnt,
  creation_time AS CreationDateTime,
  changed_by AS LastChangeByUser,
  req_segment AS RequirementSegment,
  stk_segment AS StockSegment,
  arun_source AS ARunSource
FROM arun_bdbs
;