P_SupAssgmtNormal

DDL: P_SUPASSGMTNORMAL Type: view BASIC Package: VDM_ARUN_MONITOR

Supply Assignment Run ARUN_BDBS data

P_SupAssgmtNormal is a Basic CDS View that provides data about "Supply Assignment Run ARUN_BDBS data" in SAP S/4HANA. It reads from 1 data source (arun_bdbs) and exposes 29 fields. Part of development package VDM_ARUN_MONITOR.

Data Sources (1)

SourceAliasJoin Type
arun_bdbs arun_bdbs from

Annotations (9)

NameValueLevelField
ClientHandling.algorithm #SESSION_VARIABLE view
VDM.viewType #BASIC view
AccessControl.authorizationCheck #CHECK view
VDM.private true view
AbapCatalog.sqlViewName PSUPASSGMTBDBS view
AbapCatalog.compiler.compareFilter true view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.usageType.serviceQuality #B view
ObjectModel.usageType.sizeCategory #XXL view

Fields (29)

KeyFieldSource TableSource FieldDescription
ARunID arunid ARun ID
Plant plant Valuation Area
Material material Vehicle Model
RequirementType req_ind Requirement Type
SupplyAssignmentStatus arun_status ARun Status
AssignedSupplyType stock_source Stock Source
char12endasSupplyNumber PO number
char5endasSupplyItem PO Item
char4endasSupplyScheduleLine PO Schedule Line
Batch batch Lot No.
StorageLocation storage_location Sup. Stor. Loc.
AssignedQuantityInBaseUnit alloc_qty Assigned Qty
FixedQuantityInBaseUnit
SupAssgmtReservedQtyInBaseUnit
OnHoldQuantityInBaseUnit
ReadyForReleaseQtyInBaseUnit
InboundAssignedQuantityInBsUnt
BaseUnitOfMeasure material_baseunit Base Unit
RequestedDate requested_date Requested date
ProductAvailabilityDate material_avail_date Mat.Avail.Date
SupplyDeliveryDate
NumberOfDays
SupplyAssignmentRunMode arun_mode ARun Mode
CreationDateTime creation_time Time Stamp
LastChangeByUser changed_by User Name
MRPMaterialAvailabilityDate mat_avail_date_mrp Mat.Avail.Date
RequirementSegment req_segment Req. Segment
StockSegment stk_segment Stock Segment
PRODALLOCATIONUUID

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 P_SupAssgmtNormal.
-- 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 P_SupAssgmtNormal AS
SELECT
  ARunID,
  Plant,
  Material,
  req_ind AS RequirementType,
  arun_status AS SupplyAssignmentStatus,
  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,
  Batch,
  storage_location AS StorageLocation,
  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 BaseUnitOfMeasure,
  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,
  arun_mode AS SupplyAssignmentRunMode,
  creation_time AS CreationDateTime,
  changed_by AS LastChangeByUser,
  mat_avail_date_mrp AS MRPMaterialAvailabilityDate,
  req_segment AS RequirementSegment,
  stk_segment AS StockSegment,
  cast('' as abap.char(255)) AS PRODALLOCATIONUUID
FROM arun_bdbs
;