pph_ddl_stock_1
pph_ddl_stock_1 is a CDS View in SAP S/4HANA. It reads from 1 data source (matdoc_extract) and exposes 14 fields.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| matdoc_extract | mtdc | from |
Annotations (6)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | V_PPH_STOCK_1 | 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 (14)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| matnr | matdoc_extract | matbf | Stock Mat. | |
| werks | matdoc_extract | werks | Receiving Plant | |
| lgort | matdoc_extract | lgort_sid | Stor. Location SID | |
| sobkz | matdoc_extract | sobkz | Special Stock | |
| lifnr | matdoc_extract | lifnr_sid | Supplier SID | |
| kunnr | matdoc_extract | kunnr_sid | Customer SID | |
| kdauf | matdoc_extract | mat_kdauf | SD Doc of Inv. | |
| kdpos | matdoc_extract | mat_kdpos | SD Item of Inv. | |
| pspnr | matdoc_extract | mat_pspnr | WBSElem of Inv. | |
| mat_kdpos0000Differentinclassiccode | ||||
| lifnr_sid | ||||
| mng01 | ||||
| charg | matdoc_extract | charg_sid | Batch SID | |
| sgt_scat |
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_1.
-- 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_1
CREATE VIEW pph_ddl_stock_1 AS
SELECT
mtdc.matbf AS matnr,
mtdc.werks AS werks,
mtdc.lgort_sid AS lgort,
mtdc.sobkz AS sobkz,
mtdc.lifnr_sid AS lifnr,
mtdc.kunnr_sid AS kunnr,
mtdc.mat_kdauf AS kdauf,
mtdc.mat_kdpos AS kdpos,
mtdc.mat_pspnr AS pspnr,
but how? AS mat_kdpos0000Differentinclassiccode,
see include DI_PCS_MRP when mtdc.sobkz = 'R' then concat(mtdc.mat_pspnr,mtdc.lifnr_sid) when (mtdc.sobkz = 'I' or mtdc.sobkz = 'J' or mtdc.sobkz = 'O') and mtdc.disub_owner_sid <> '' then '' AS lifnr_sid,
cast(sum(mtdc.stock_qty_l1) as nsdm_stock_qty) AS mng01,
mtdc.charg_sid AS charg,
coalesce(mcha.sgt_scat,'') AS sgt_scat
FROM matdoc_extract AS mtdc
;
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