PPH_E_STOCK
PPH_E_STOCK is a CDS View in SAP S/4HANA. It reads from 2 data sources (mard, pph_ddl_stock_4) and exposes 18 fields.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| mard | mard | left_outer |
| pph_ddl_stock_4 | stck | from |
Annotations (6)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | V_PPH_STOCK | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| ClientHandling.algorithm | #AUTOMATED | view | |
| ObjectModel.usageType.serviceQuality | #X | view | |
| ObjectModel.usageType.sizeCategory | #XXL | view | |
| ObjectModel.usageType.dataClass | #MIXED | view |
Fields (18)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| matnr | pph_ddl_stock_4 | matnr | Vehicle Model | |
| werks | pph_ddl_stock_4 | werks | Receiving Plant | |
| berid | pph_ddl_stock_4 | berid | Single-Character Flag | |
| plaab | pph_ddl_stock_4 | plaab | MRP segment | |
| planr | pph_ddl_stock_4 | planr | Plng Segmnt No. | |
| sgt_scat | pph_ddl_stock_4 | sgt_scat | Stock Segment | |
| delkz | pph_ddl_stock_4 | delkz | MRP Elmnt Ind. | |
| sobkz | pph_ddl_stock_4 | sobkz | Special Stock | |
| lifnr | pph_ddl_stock_4 | lifnr | Vendor no. | |
| kunnr | pph_ddl_stock_4 | kunnr | Stock customer | |
| kdauf | pph_ddl_stock_4 | kdauf | SD Document | |
| kdpos | pph_ddl_stock_4 | kdpos | Sales Ord. Item | |
| pspel | pph_ddl_stock_4 | pspel | WBS Element | |
| vrfkz | ||||
| plumi | ||||
| sort1 | ||||
| sort2 | ||||
| mng01 |
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 PPH_E_STOCK.
-- 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: V_PPH_STOCK
CREATE VIEW PPH_E_STOCK AS
SELECT
stck.matnr AS matnr,
stck.werks AS werks,
stck.berid AS berid,
stck.plaab AS plaab,
stck.planr AS planr,
stck.sgt_scat AS sgt_scat,
stck.delkz AS delkz,
stck.sobkz AS sobkz,
stck.lifnr AS lifnr,
stck.kunnr AS kunnr,
stck.kdauf AS kdauf,
stck.kdpos AS kdpos,
stck.pspel AS pspel,
'X' AS vrfkz,
'B' AS plumi,
'0' AS sort1,
'01' AS sort2,
cast(sum(stck.mng01) as pph_dec_20_3) AS mng01
FROM pph_ddl_stock_4 AS stck
LEFT OUTER JOIN mard ON /* join condition not captured in parsed metadata */
;
Learn More
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA