I_ARunAllSupAssgmt
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)
| Source | Alias | Join Type |
|---|---|---|
| arun_bdbs | arun_bdbs | from |
| arun_preview | arun_preview | union_all |
| arun_sdo_alldoc | arun_sdo_alldoc | union_all |
Annotations (10)
| Name | Value | Level | Field |
|---|---|---|---|
| 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)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA