ARUN_I_F_LINE

DDL: ARUN_I_F_LINE SQL: ARUNI_V_I_F_LINE Type: view

Production Order Item level selection

ARUN_I_F_LINE is a CDS View that provides data about "Production Order Item level selection" in SAP S/4HANA. It reads from 4 data sources (aufk, afpo, mara, nsdm_e_marc) and exposes 46 fields.

Data Sources (4)

SourceAliasJoin Type
aufk aufk left_outer
afpo item from
mara m inner
nsdm_e_marc mc inner

Annotations (7)

NameValueLevelField
AbapCatalog.sqlViewName ARUNI_V_I_F_LINE 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 Production Order Item level selection view

Fields (46)

KeyFieldSource TableSource FieldDescription
aufnr afpo aufnr SettlementOrder
posnr afpo posnr WBS Element
mandt afpo mandt Editing Client
matnr afpo matnr Vehicle Model
werks afpo pwerk Planning Plant
lgort afpo lgort Sublocation
charg afpo charg Chargeable Proc.
StockSegment afpo sgt_scat Stock Segment
SeasonYear afpo fsh_season_year Season Year
Season afpo fsh_season Season
SCollection afpo fsh_collection Collection
theme afpo fsh_theme Theme
stock_source
sobkzQthenprojnelseendassskey
kdauf afpo kdauf SD Document
kdpos afpo kdpos Sales Ord. Item
projn afpo projn WBS Element
dgltp afpo dgltp Basic fin. date
atpdate
psmng afpo psmng Total Quantity
wemng afpo wemng Received
iamng afpo iamng ExpectVarRecipt
psamg afpo psamg Planned Scrap
dfrei afpo dfrei Release ind.
amein afpo amein Order Un
umrez afpo umrez Numerator
umren afpo umren Denominator
bwtar afpo bwtar Valuation Type
dauty afpo dauty Order category
webaz afpo 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.
reqqty
meins afpo meins Valuation Unit
auart aufk auart Sales Doc. Type
autyp aufk autyp Order category

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_I_F_LINE.
-- 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_I_F_LINE

CREATE VIEW ARUN_I_F_LINE AS
SELECT
  item.aufnr AS aufnr,
  item.posnr AS posnr,
  item.mandt AS mandt,
  item.matnr AS matnr,
  item.pwerk AS werks,
  item.lgort AS lgort,
  item.charg AS charg,
  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,
  'F' AS stock_source,
  case when item.sobkz = 'E' then item.kdauf when item.sobkz = 'Q' then projn else '' end as sskey AS sobkzQthenprojnelseendassskey,
  item.kdauf AS kdauf,
  item.kdpos AS kdpos,
  item.projn AS projn,
  item.dgltp AS dgltp,
  item.psmng AS psmng,
  item.wemng AS wemng,
  item.iamng AS iamng,
  item.psamg AS psamg,
  item.dfrei AS dfrei,
  item.amein AS amein,
  item.umrez AS umrez,
  item.umren AS umren,
  item.bwtar AS bwtar,
  item.dauty AS dauty,
  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,
  ( psmng - wemng - iamng - psamg ) AS reqqty,
  item.meins AS meins,
  aufk.auart AS auart,
  aufk.autyp AS autyp
FROM afpo AS item
LEFT OUTER JOIN aufk ON /* join condition not captured in parsed metadata */
INNER JOIN mara AS m ON /* join condition not captured in parsed metadata */
INNER JOIN nsdm_e_marc AS mc ON /* join condition not captured in parsed metadata */
;