I_ARunAllSupAssgmt

DDL: I_ARUNALLSUPASSGMT Type: view BASIC

Assignment Qty at Stock level

I_ARunAllSupAssgmt is a Basic CDS View that provides data about "Assignment Qty at Stock level" in SAP S/4HANA. It reads from 3 data sources (arun_bdbs, arun_preview, arun_sdo_alldoc) and exposes 34 fields.

Data Sources (3)

SourceAliasJoin Type
arun_bdbs arun_bdbs from
arun_preview arun_preview union_all
arun_sdo_alldoc arun_sdo_alldoc union_all

Annotations (10)

NameValueLevelField
ClientHandling.algorithm #SESSION_VARIABLE view
VDM.viewType #BASIC view
VDM.lifecycle.contract.type #PUBLIC_LOCAL_API view
AccessControl.authorizationCheck #NOT_REQUIRED view
AbapCatalog.sqlViewName IASSGNSUPQTY view
AbapCatalog.compiler.compareFilter true view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #XXL view
EndUserText.label Assignment Qty at Stock level view

Fields (34)

KeyFieldSource TableSource FieldDescription
Plant plant Valuation Area
Material material Vehicle Model
AssignedSupplyType stock_source Supply Type
SupAssgmtSource stock_source Stock Source
char12endasSupplyNumber PO number
char6endasSupplyItem PO Item
char4endasSupplyScheduleLine PO Schedule Line
StorageLocation storage_location Sup. Stor. Loc.
AssignedQuantityInBaseUnit alloc_qty Assigned Qty
NormalAssignedQuantityInBsUnt alloc_qty Assigned Qty
PreviewAssignedQuantityInBsUnt Assigned Qty
ARunTmpAssignedQuantityInBsUnt Assigned Qty
Material material Vehicle Model
AssignedSupplyType stock_source Supply Type
SupAssgmtSource stock_source Stock Source
char12endasSupplyNumber PO number
char6endasSupplyItem PO Item
char4endasSupplyScheduleLine PO Schedule Line
StorageLocation storage_location Sup. Stor. Loc.
AssignedQuantityInBaseUnit alloc_qty Assigned Qty
NormalAssignedQuantityInBsUnt Assigned Qty
PreviewAssignedQuantityInBsUnt alloc_qty Assigned Qty
ARunTmpAssignedQuantityInBsUnt Assigned Qty
AssignedSupplyType stock_ind Supply Type
SupAssgmtSource stock_source Stock Source
char12endasSupplyNumber PO number
char6endasSupplyItem PO Item
char4endasSupplyScheduleLine PO Schedule Line
StorageLocation storage_location Sup. Stor. Loc.
AssignedQuantityInBaseUnit alloc_qty Assigned Qty
NormalAssignedQuantityInBsUnt Assigned Qty
PreviewAssignedQuantityInBsUnt Assigned Qty
ARunTmpAssignedQuantityInBsUnt alloc_qty Assigned Qty
BaseUnit material_baseunit Base Unit

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_ARunAllSupAssgmt.
-- 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_ARunAllSupAssgmt AS
SELECT
  Plant,
  Material,
  stock_source AS AssignedSupplyType,
  stock_source AS SupAssgmtSource,
  case stock_source when 'B' then cast(purchord_num as abap.char(12)) when 'L' then cast(purchord_num as abap.char(12)) when 'F' then cast(prodord_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(6)) when 'L' then cast(purchord_item as abap.char(6)) when 'F' then cast(prodord_item as abap.char(6)) else cast('000000' as abap.char(6)) end as SupplyItem AS char6endasSupplyItem,
  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('0000' as abap.char(4)) end as SupplyScheduleLine AS char4endasSupplyScheduleLine,
  storage_location AS StorageLocation,
  alloc_qty AS AssignedQuantityInBaseUnit,
  alloc_qty AS NormalAssignedQuantityInBsUnt,
  cast( 0 as abap.dec( 12, 3 ) ) AS PreviewAssignedQuantityInBsUnt,
  cast( 0 as abap.dec( 12, 3 ) ) AS ARunTmpAssignedQuantityInBsUnt,
  material_baseunit AS BaseUnit
FROM arun_bdbs
-- UNION ALL with additional select branch(es): arun_preview, arun_sdo_alldoc
;