ARUN_I_PR

DDL: ARUN_I_PR SQL: ARUN_V_PR Type: view Package: ARUN_ITA

Assigned quantities for Purchase Requisitions

ARUN_I_PR is a CDS View that provides data about "Assigned quantities for Purchase Requisitions" in SAP S/4HANA. It reads from 3 data sources (Arun_Purchreq_Bdbs, ARUN_I_STAT_PR, ARUNI_EBAN_SEL) and exposes 30 fields. Part of development package ARUN_ITA.

Data Sources (3)

SourceAliasJoin Type
Arun_Purchreq_Bdbs bdbs_prv left_outer
ARUN_I_STAT_PR bdbs_prv_info left_outer
ARUNI_EBAN_SEL p from

Annotations (7)

NameValueLevelField
AbapCatalog.sqlViewName ARUN_V_PR 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 Assigned quantities for Purchase Requisitions view

Fields (30)

KeyFieldSource TableSource FieldDescription
purchreq_num ARUNI_EBAN_SEL banfn Requisition
purchreq_sch
material ARUNI_EBAN_SEL matnr Vehicle Model
plant ARUNI_EBAN_SEL werks Receiving Plant
total_stock total_stock
delv_date ARUNI_EBAN_SEL lfdat Delivery Date
stock_source
stocksegment ARUNI_EBAN_SEL sgt_scat Stock Segment
SeasonYear
Season
sCollection
theme
fsh_mg_at1 fsh_mg_at1 Fsh. Attribute1
fsh_mg_at2 fsh_mg_at2 Fsh. Attribute2
fsh_mg_at3 fsh_mg_at3 Fsh. Attribute3
color color Level Color
size1 size1 Size 1
size2 size2 Size 2
color_atinn color_atinn Internal Char.
size1_atinn size1_atinn Internal Char.
size2_atinn size2_atinn Internal Char.
stknam
company_code ARUNI_EBAN_SEL company_code Company Code
satnr ARUNI_EBAN_SEL satnr Cross-plant CM
alloc_qty Arun_Purchreq_Bdbs alloc_qty Assigned Qty
attyp attyp Trdg Goods Cat.
supplier ARUNI_EBAN_SEL lifnr Vendor no.
pr_doc_typ ARUNI_EBAN_SEL bsart Stnd purch.ord.
matkl ARUNI_EBAN_SEL matkl Product Sold Group
webaz ARUNI_EBAN_SEL webaz GR Proc. Time

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

CREATE VIEW ARUN_I_PR AS
SELECT
  p.banfn AS purchreq_num,
  '0001' AS purchreq_sch,
  p.matnr AS material,
  p.werks AS plant,
  total_stock,
  p.lfdat AS delv_date,
  'A' AS stock_source,
  p.sgt_scat AS stocksegment,
  '' AS SeasonYear,
  '' AS Season,
  '' AS sCollection,
  '' AS theme,
  fsh_mg_at1,
  fsh_mg_at2,
  fsh_mg_at3,
  color,
  size1,
  size2,
  color_atinn,
  size1_atinn,
  size2_atinn,
  'Purchase Requisition' AS stknam,
  p.company_code AS company_code,
  p.satnr AS satnr,
  bdbs_prv.alloc_qty AS alloc_qty,
  attyp,
  p.lifnr AS supplier,
  p.bsart AS pr_doc_typ,
  p.matkl AS matkl,
  p.webaz AS webaz
FROM ARUNI_EBAN_SEL AS p
LEFT OUTER JOIN Arun_Purchreq_Bdbs AS bdbs_prv ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN ARUN_I_STAT_PR AS bdbs_prv_info ON /* join condition not captured in parsed metadata */
;