rrp_e_StockSum

DDL: RRP_DDL_STOCK_SUM SQL: RRP_V_STOCK_SUM Type: view

RRP: Aggregate MARC and MARD Stock from MATDOC

rrp_e_StockSum is a CDS View that provides data about "RRP: Aggregate MARC and MARD Stock from MATDOC" in SAP S/4HANA. It reads from 3 data sources (wrrp_ctrl, rrp_e_StockMarc, rrp_e_StockMard) and exposes 4 fields.

Data Sources (3)

SourceAliasJoin Type
wrrp_ctrl ctrl from
rrp_e_StockMarc marc left_outer
rrp_e_StockMard mard left_outer

Annotations (7)

NameValueLevelField
AbapCatalog.sqlViewName RRP_V_STOCK_SUM view
EndUserText.label RRP: Aggregate MARC and MARD Stock from MATDOC view
AccessControl.authorizationCheck #NOT_REQUIRED view
ObjectModel.usageType.serviceQuality #X view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #MIXED view
ClientHandling.algorithm #SESSION_VARIABLE view

Fields (4)

KeyFieldSource TableSource FieldDescription
process_id wrrp_ctrl process_id Process Instance ID
werks wrrp_ctrl werks Receiving Plant
matnr wrrp_ctrl matnr Vehicle Model
stock_mm

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 rrp_e_StockSum.
-- 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: RRP_V_STOCK_SUM

CREATE VIEW rrp_e_StockSum AS
SELECT
  ctrl.process_id AS process_id,
  ctrl.werks AS werks,
  ctrl.matnr AS matnr,
  COALESCE(mard.stock, 0) + COALESCE(marc.stock, 0) AS stock_mm
FROM wrrp_ctrl AS ctrl
LEFT OUTER JOIN rrp_e_StockMard AS mard ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN rrp_e_StockMarc AS marc ON /* join condition not captured in parsed metadata */
;