pph_ddl_stock_2
pph_ddl_stock_2 is a CDS View in SAP S/4HANA. It reads from 5 data sources (pph_ddl_stock_1, PPH_MRP_Pruefbest, t001l, t320, t340d) and exposes 15 fields.
Data Sources (5)
| Source | Alias | Join Type |
|---|---|---|
| pph_ddl_stock_1 | mtdc | from |
| PPH_MRP_Pruefbest | pruef | left_outer |
| t001l | t001l | left_outer |
| t320 | t320 | left_outer |
| t340d | t340d | left_outer |
Annotations (6)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | V_PPH_STOCK_2 | 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 (15)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| matnr | pph_ddl_stock_1 | matnr | Vehicle Model | |
| werks | pph_ddl_stock_1 | werks | Receiving Plant | |
| lgort | pph_ddl_stock_1 | lgort | Sublocation | |
| sobkz | pph_ddl_stock_1 | sobkz | Special Stock | |
| stocktype | pph_ddl_stock_1 | stocktype | Stock Type | |
| lifnr | pph_ddl_stock_1 | lifnr | Vendor no. | |
| kunnr | pph_ddl_stock_1 | kunnr | Stock customer | |
| kdauf | pph_ddl_stock_1 | kdauf | SD Document | |
| kdpos | pph_ddl_stock_1 | kdpos | Sales Ord. Item | |
| pspnr | pph_ddl_stock_1 | pspnr | WBS Element | |
| plaab | pph_ddl_stock_1 | plaab | MRP segment | |
| planr | pph_ddl_stock_1 | planr | Plng Segmnt No. | |
| charg | pph_ddl_stock_1 | charg | Chargeable Proc. | |
| sgt_scat | pph_ddl_stock_1 | sgt_scat | Stock Segment | |
| mng01 | mng01 | Rec./reqd qty |
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_2.
-- 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_2
CREATE VIEW pph_ddl_stock_2 AS
SELECT
mtdc.matnr AS matnr,
mtdc.werks AS werks,
mtdc.lgort AS lgort,
mtdc.sobkz AS sobkz,
mtdc.stocktype AS stocktype,
mtdc.lifnr AS lifnr,
mtdc.kunnr AS kunnr,
mtdc.kdauf AS kdauf,
mtdc.kdpos AS kdpos,
mtdc.pspnr AS pspnr,
mtdc.plaab AS plaab,
mtdc.planr AS planr,
mtdc.charg AS charg,
mtdc.sgt_scat AS sgt_scat,
mng01
FROM pph_ddl_stock_1 AS mtdc
LEFT OUTER JOIN PPH_MRP_Pruefbest AS pruef ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN t001l ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN t320 ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN t340d 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