ARUNI_STO_LINE_STK

DDL: ARUNI_STO_LINE_STK SQL: ARUNI_V_STO_STK Type: view

STO as stock

ARUNI_STO_LINE_STK is a CDS View that provides data about "STO as stock" in SAP S/4HANA. It reads from 7 data sources and exposes 31 fields.

Data Sources (7)

SourceAliasJoin Type
Atpc_Cds_Ekub_2 ekub inner
ekko hdr from
ekpo item inner
lfa1 lfa1 inner
mara m inner
marc mc inner
eket sch inner

Annotations (8)

NameValueLevelField
AbapCatalog.sqlViewName ARUNI_V_STO_STK 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 view

Fields (31)

KeyFieldSource TableSource FieldDescription
purchord_num ekko ebeln Source PurchDoc
company_code ekko bukrs Value
purchord_sch eket etenr Schedule Line
delv_date eket eindt Initial Entry
sgt_scat ekpo sgt_scat Stock Segment
material ekpo matnr Vehicle Model
plant ekpo werks Receiving Plant
PurchDocType ekko bsart Stnd purch.ord.
PurchDocDate ekko bedat Start date
Supplier ekko lifnr Vendor no.
StorageLocation ekpo lgort Sublocation
StockSegment ekpo sgt_scat Stock Segment
SeasonYear ekpo fsh_season_year Season Year
Season ekpo fsh_season Season
SCollection ekpo fsh_collection Collection
theme ekpo fsh_theme Theme
webaz ekpo webaz GR Proc. Time
color mara color Level Color
size1 mara size1 Size 1
size2 mara size2 Size 2
color_atinn mara color_atinn Internal Char.
size1_atinn mara size1_atinn Internal Char.
size2_atinn mara size2_atinn Internal Char.
fsh_mg_at1 mara fsh_mg_at1 Fsh. Attribute1
fsh_mg_at2 mara fsh_mg_at2 Fsh. Attribute2
fsh_mg_at3 mara fsh_mg_at3 Fsh. Attribute3
matkl mara matkl Product Sold Group
satnr mara satnr Cross-plant CM
attyp mara attyp Trdg Goods Cat.
reswk ekko reswk Supplying Plant
reslo ekpo 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_LINE_STK.
-- 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_STO_STK

CREATE VIEW ARUNI_STO_LINE_STK AS
SELECT
  hdr.ebeln AS purchord_num,
  hdr.bukrs AS company_code,
  sch.etenr AS purchord_sch,
  sch.eindt AS delv_date,
  item.sgt_scat AS sgt_scat,
  item.matnr AS material,
  item.werks AS plant,
  hdr.bsart AS PurchDocType,
  hdr.bedat AS PurchDocDate,
  hdr.lifnr AS Supplier,
  item.lgort AS StorageLocation,
  item.sgt_scat AS StockSegment,
  item.fsh_season_year AS SeasonYear,
  item.fsh_season AS Season,
  item.fsh_collection AS SCollection,
  item.fsh_theme AS theme,
  item.webaz AS webaz,
  m.color AS color,
  m.size1 AS size1,
  m.size2 AS size2,
  m.color_atinn AS color_atinn,
  m.size1_atinn AS size1_atinn,
  m.size2_atinn AS size2_atinn,
  m.fsh_mg_at1 AS fsh_mg_at1,
  m.fsh_mg_at2 AS fsh_mg_at2,
  m.fsh_mg_at3 AS fsh_mg_at3,
  m.matkl AS matkl,
  m.satnr AS satnr,
  m.attyp AS attyp,
  hdr.reswk AS reswk,
  item.reslo AS reslo
FROM ekko AS hdr
INNER JOIN ekpo AS item ON /* join condition not captured in parsed metadata */
INNER JOIN eket AS sch ON /* join condition not captured in parsed metadata */
INNER JOIN mara AS m ON /* join condition not captured in parsed metadata */
INNER JOIN marc AS mc ON /* join condition not captured in parsed metadata */
INNER JOIN lfa1 ON /* join condition not captured in parsed metadata */
INNER JOIN Atpc_Cds_Ekub_2 AS ekub ON /* join condition not captured in parsed metadata */
;