pph_ddl_stock_4
pph_ddl_stock_4 is a CDS View in SAP S/4HANA. It reads from 3 data sources (PPH_DDL_MDQM_EWM, pph_ddl_stock_3, MDCV_E_T399D) and exposes 16 fields.
Data Sources (3)
| Source | Alias | Join Type |
|---|---|---|
| PPH_DDL_MDQM_EWM | mdqm_ewm | left_outer |
| pph_ddl_stock_3 | stck | from |
| MDCV_E_T399D | t399d | inner |
Annotations (6)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | V_PPH_STOCK_4 | 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 (16)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| matnr | pph_ddl_stock_3 | matnr | Vehicle Model | |
| werks | pph_ddl_stock_3 | werks | Receiving Plant | |
| berid | pph_ddl_stock_3 | berid | Single-Character Flag | |
| plaab | pph_ddl_stock_3 | plaab | MRP segment | |
| planr | pph_ddl_stock_3 | planr | Plng Segmnt No. | |
| sgt_scat | pph_ddl_stock_3 | sgt_scat | Stock Segment | |
| lgort | pph_ddl_stock_3 | lgort | Sublocation | |
| charg | pph_ddl_stock_3 | charg | Chargeable Proc. | |
| stocktype | pph_ddl_stock_3 | stocktype | Stock Type | |
| delkz | pph_ddl_stock_3 | delkz | MRP Elmnt Ind. | |
| lifnrwhenOthenwhenKthenelseendaslifnr | ||||
| kunnr | pph_ddl_stock_3 | kunnr | Stock customer | |
| kdauf | pph_ddl_stock_3 | kdauf | SD Document | |
| kdpos | pph_ddl_stock_3 | kdpos | Sales Ord. Item | |
| pspnr | pph_ddl_stock_3 | pspnr | WBS Element | |
| pspel | pph_ddl_stock_3 | pspnr | WBS Element |
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_ddl_stock_4.
-- 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_4
CREATE VIEW pph_ddl_stock_4 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.lgort AS lgort,
stck.charg AS charg,
stck.stocktype AS stocktype,
stck.delkz AS delkz,
case stck.sobkz when 'E' then stck.lifnr when 'Q' then stck.lifnr when 'C' then stck.lifnr when 'F' then stck.lifnr when 'R' then stck.lifnr when 'O' then '' when 'K' then '' else '' end as lifnr AS lifnrwhenOthenwhenKthenelseendaslifnr,
stck.kunnr AS kunnr,
stck.kdauf AS kdauf,
stck.kdpos AS kdpos,
stck.pspnr AS pspnr,
stck.pspnr AS pspel
FROM pph_ddl_stock_3 AS stck
INNER JOIN MDCV_E_T399D AS t399d ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN PPH_DDL_MDQM_EWM AS mdqm_ewm 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