Arun_Sto_Req1

DDL: ARUN_STO_REQ1 SQL: ARUN_V_STO_REQ1 Type: view

STO Requirement - Initial join

Arun_Sto_Req1 is a CDS View that provides data about "STO Requirement - Initial join" in SAP S/4HANA. It reads from 5 data sources (ekko, ekpo, nsdm_e_marc, mara, makt) and exposes 46 fields with key fields mandt, ebeln, ebelp.

Data Sources (5)

SourceAliasJoin Type
ekko h inner
ekpo i from
nsdm_e_marc m inner
mara ma inner
makt makt left_outer

Parameters (1)

NameTypeDefault
p_langu abap.lang

Annotations (7)

NameValueLevelField
AbapCatalog.sqlViewName ARUN_V_STO_REQ1 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
EndUserText.label STO Requirement - Initial join view

Fields (46)

KeyFieldSource TableSource FieldDescription
KEY mandt ekpo mandt Editing Client
KEY ebeln ekpo ebeln Source PurchDoc
KEY ebelp ekpo ebelp Item pur. doc.
bstyp ekko bstyp Source doc.cat.
bsart ekko bsart Stnd purch.ord.
bedat ekko bedat Start date
audat ekko bedat Start date
reswk ekko reswk Supplying Plant
aedat ekko aedat Obsolete
erdat ekko aedat Obsolete
ekorg ekko ekorg Purchasing Org.
ekgrp ekko ekgrp Sub. purchasing grp
bukrs ekko bukrs Value
matnr ekpo matnr Vehicle Model
matkl ekpo matkl Product Sold Group
meins ekpo meins Valuation Unit
sgt_rcat ekpo sgt_rcat Req. Segment
fsh_season ekpo fsh_season Season
fsh_theme ekpo fsh_theme Theme
abeln ekpo abeln Alloc. Table
abelp ekpo abelp Item
werks ekpo werks Receiving Plant
lgort ekpo reslo Iss. Stor. Loc.
uebpo ekpo uebpo H-Lev. Item
stapo ekpo stapo Statistical
fsh_vas_rel ekpo fsh_vas_rel VAS Relevant
fsh_item ekpo fsh_item Item Number
umrez ekpo umrez Numerator
umren ekpo umren Denominator
lmein ekpo lmein Base Unit
satnr mara satnr Cross-plant CM
mspart mara spart Source supplier
xchpf nsdm_e_marc xchpf Batch Mgmt Rqt(Plnt)
sgt_covs nsdm_e_marc sgt_covs Segment. Strategy
sgt_stk_prt nsdm_e_marc sgt_stk_prt Stk Prot.
color_atinn mara color_atinn Internal Char.
size1_atinn mara size1_atinn Internal Char.
size2_atinn mara size2_atinn Internal Char.
color mara color Level Color
size1 mara size1 Size 1
size2 mara size2 Size 2
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
attyp mara attyp Trdg Goods Cat.
maktg makt maktg Description

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 Arun_Sto_Req1.
-- 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: ARUN_V_STO_REQ1
-- Parameters: p_langu : abap.lang

CREATE VIEW Arun_Sto_Req1 AS
SELECT
  i.mandt AS mandt,
  i.ebeln AS ebeln,
  i.ebelp AS ebelp,
  h.bstyp AS bstyp,
  h.bsart AS bsart,
  h.bedat AS bedat,
  h.bedat AS audat,
  h.reswk AS reswk,
  h.aedat AS aedat,
  h.aedat AS erdat,
  h.ekorg AS ekorg,
  h.ekgrp AS ekgrp,
  h.bukrs AS bukrs,
  i.matnr AS matnr,
  i.matkl AS matkl,
  i.meins AS meins,
  i.sgt_rcat AS sgt_rcat,
  i.fsh_season AS fsh_season,
  i.fsh_theme AS fsh_theme,
  i.abeln AS abeln,
  i.abelp AS abelp,
  i.werks AS werks,
  i.reslo AS lgort,
  i.uebpo AS uebpo,
  i.stapo AS stapo,
  i.fsh_vas_rel AS fsh_vas_rel,
  i.fsh_item AS fsh_item,
  i.umrez AS umrez,
  i.umren AS umren,
  i.lmein AS lmein,
  ma.satnr AS satnr,
  ma.spart AS mspart,
  m.xchpf AS xchpf,
  m.sgt_covs AS sgt_covs,
  m.sgt_stk_prt AS sgt_stk_prt,
  ma.color_atinn AS color_atinn,
  ma.size1_atinn AS size1_atinn,
  ma.size2_atinn AS size2_atinn,
  ma.color AS color,
  ma.size1 AS size1,
  ma.size2 AS size2,
  ma.fsh_mg_at1 AS fsh_mg_at1,
  ma.fsh_mg_at2 AS fsh_mg_at2,
  ma.fsh_mg_at3 AS fsh_mg_at3,
  ma.attyp AS attyp,
  makt.maktg AS maktg
FROM ekpo AS i
INNER JOIN ekko AS h ON /* join condition not captured in parsed metadata */
INNER JOIN mara AS ma ON /* join condition not captured in parsed metadata */
INNER JOIN nsdm_e_marc AS m ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN makt ON /* join condition not captured in parsed metadata */
;