ARUNI_STO_STKSEL
STO as stock selections
ARUNI_STO_STKSEL is a CDS View that provides data about "STO as stock selections" in SAP S/4HANA. It reads from 3 data sources (ARUN_I_STAT_FUTURE, Arun_Purchord_Bdbs, aruni_sto_line) and exposes 35 fields.
Data Sources (3)
| Source | Alias | Join Type |
|---|---|---|
| ARUN_I_STAT_FUTURE | ARUN_I_STAT_FUTURE | left_outer |
| Arun_Purchord_Bdbs | Arun_Purchord_Bdbs | left_outer |
| aruni_sto_line | p | from |
Annotations (8)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | ARUNI_V_STK_STO | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| ObjectModel.usageType.sizeCategory | #XXL | view | |
| ObjectModel.usageType.serviceQuality | #X | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| AccessControl.personalData.blocking | #REQUIRED | view | |
| EndUserText.label | STO as stock selections | view |
Fields (35)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| purchord_num | aruni_sto_line | purchord_num | PO number | |
| purchord_sch | aruni_sto_line | purchord_sch | PO Schedule Line | |
| company_code | aruni_sto_line | company_code | Company Code | |
| material | aruni_sto_line | material | Vehicle Model | |
| plant | aruni_sto_line | plant | Valuation Area | |
| delv_date | aruni_sto_line | delv_date | Initial Entry | |
| sgt_scat | aruni_sto_line | sgt_scat | Stock Segment | |
| PurchDocDate | aruni_sto_line | PurchDocDate | Start date | |
| PurchDocType | aruni_sto_line | PurchDocType | Stnd purch.ord. | |
| Supplier | aruni_sto_line | Supplier | Supplier | |
| StorageLocation | aruni_sto_line | StorageLocation | StorageLocation | |
| StockSegment | aruni_sto_line | StockSegment | Stock Segment | |
| SeasonYear | aruni_sto_line | SeasonYear | Season Year | |
| Season | aruni_sto_line | Season | Season | |
| SCollection | aruni_sto_line | SCollection | Collection | |
| theme | aruni_sto_line | theme | Theme | |
| webaz | aruni_sto_line | webaz | GR Proc. Time | |
| stock_source | ||||
| StockQty | aruni_sto_line | quantity | Value | |
| color | aruni_sto_line | color | Level Color | |
| size1 | aruni_sto_line | size1 | Size 1 | |
| size2 | aruni_sto_line | size2 | Size 2 | |
| color_atinn | aruni_sto_line | color_atinn | Internal Char. | |
| size1_atinn | aruni_sto_line | size1_atinn | Internal Char. | |
| size2_atinn | aruni_sto_line | size2_atinn | Internal Char. | |
| fsh_mg_at1 | aruni_sto_line | fsh_mg_at1 | Fsh. Attribute1 | |
| fsh_mg_at2 | aruni_sto_line | fsh_mg_at2 | Fsh. Attribute2 | |
| fsh_mg_at3 | aruni_sto_line | fsh_mg_at3 | Fsh. Attribute3 | |
| matkl | aruni_sto_line | matkl | Product Sold Group | |
| satnr | aruni_sto_line | satnr | Cross-plant CM | |
| stknam | ||||
| alloc_qty | bdbs | alloc_qty | Assigned Qty | |
| attyp | aruni_sto_line | attyp | Trdg Goods Cat. | |
| reswk | aruni_sto_line | reswk | Supplying Plant | |
| reslo | aruni_sto_line | reslo | Iss. Stor. Loc. |
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 ARUNI_STO_STKSEL.
-- 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.
-- SQL view name: ARUNI_V_STK_STO
CREATE VIEW ARUNI_STO_STKSEL AS
SELECT
p.purchord_num AS purchord_num,
p.purchord_sch AS purchord_sch,
p.company_code AS company_code,
p.material AS material,
p.plant AS plant,
p.delv_date AS delv_date,
p.sgt_scat AS sgt_scat,
p.PurchDocDate AS PurchDocDate,
p.PurchDocType AS PurchDocType,
p.Supplier AS Supplier,
p.StorageLocation AS StorageLocation,
p.StockSegment AS StockSegment,
p.SeasonYear AS SeasonYear,
p.Season AS Season,
p.SCollection AS SCollection,
p.theme AS theme,
p.webaz AS webaz,
'B' AS stock_source,
p.quantity AS StockQty,
p.color AS color,
p.size1 AS size1,
p.size2 AS size2,
p.color_atinn AS color_atinn,
p.size1_atinn AS size1_atinn,
p.size2_atinn AS size2_atinn,
p.fsh_mg_at1 AS fsh_mg_at1,
p.fsh_mg_at2 AS fsh_mg_at2,
p.fsh_mg_at3 AS fsh_mg_at3,
p.matkl AS matkl,
p.satnr AS satnr,
'Purchase Order' AS stknam,
bdbs.alloc_qty AS alloc_qty,
p.attyp AS attyp,
p.reswk AS reswk,
p.reslo AS reslo
FROM aruni_sto_line AS p
LEFT OUTER JOIN Arun_Purchord_Bdbs ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN ARUN_I_STAT_FUTURE ON /* join condition not captured in parsed metadata */
;
Learn More
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- 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