pph_e_Resb_agg_1
pph_e_Resb_agg_1 is a CDS View in SAP S/4HANA. It reads from 1 data source (resb) and exposes 33 fields.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| resb | resb | from |
Annotations (6)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | V_PPH_RESB_AGG_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 (33)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| MATNR | resb | matnr | Vehicle Model | |
| WERKS | resb | werks | Receiving Plant | |
| DAT00 | resb | bdter | Reqmts date | |
| SORT1 | ||||
| bdartSBthen07else04endasSORT2 | ||||
| DELKZ | resb | bdart | RequirementType | |
| PLUMI | ||||
| enmngendasMNG01 | ||||
| enmngelse0endasMNG03 | ||||
| bdterasDAT01 | ||||
| sbterelse00000000endasDAT03 | ||||
| BAART | resb | bdart | RequirementType | |
| LGORT | resb | lgort | Sublocation | |
| SERNR | resb | sernr | Serial Number | |
| AUFVR | ||||
| VERTO | resb | verti | Distribution | |
| LIFNR | resb | lifnr | Vendor no. | |
| VRPLA | resb | vrpla | W/o final assy | |
| DBSKZ | resb | dbskz | Direct procure. | |
| RESB_SHKZG | resb | shkzg | Returns | |
| RESB_DUMPS | resb | dumps | Phantom item | |
| RESB_NO_DISP | resb | no_disp | Res./Purc. req. | |
| RESB_SCHGT | resb | schgt | Bulk material | |
| RESB_UMSOK | resb | umsok | Special Stock | |
| vorab | vorab | Prelim. order | ||
| no_disp | no_disp | Res./Purc. req. | ||
| kzaus | kzaus | Share of scrap | ||
| nafkz | nafkz | FollowUp MatInd | ||
| sgt_scat | sgt_scat | Stock Segment | ||
| sgt_rcat | sgt_rcat | Req. Segment | ||
| knttp_db | knttp | AcctAssgnCat:CC | ||
| kzvbr_db | kzvbr | Consumption | ||
| kzbws_db | kzbws | Valuation |
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_Resb_agg_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_RESB_AGG_1
CREATE VIEW pph_e_Resb_agg_1 AS
SELECT
resb.matnr AS MATNR,
resb.werks AS WERKS,
resb.bdter AS DAT00,
case when resb.shkzg = 'S' then '1' else '2' end AS SORT1,
case when resb.bdart = 'BB' then '08' when resb.bdart = 'SB' then '07' else '04' end as SORT2 AS bdartSBthen07else04endasSORT2,
resb.bdart AS DELKZ,
case when resb.shkzg = 'S' then '+' else '-' end AS PLUMI,
case when resb.shkzg = 'S' then (resb.bdmng - resb.enmng) else - (resb.bdmng - resb.enmng) end as MNG01 AS enmngendasMNG01,
case when resb.bdart = 'SB' or resb.bdart = 'BB' then resb.bdmng - resb.enmng else 0 end as MNG03 AS enmngelse0endasMNG03,
case when resb.verti is not null or resb.verti <> '' then resb.sbter else '00000000' end as DAT03 AS sbterelse00000000endasDAT03,
resb.bdart AS BAART,
resb.lgort AS LGORT,
resb.sernr AS SERNR,
'DUMMY' AS AUFVR,
resb.verti AS VERTO,
resb.lifnr AS LIFNR,
resb.vrpla AS VRPLA,
resb.dbskz AS DBSKZ,
resb.shkzg AS RESB_SHKZG,
resb.dumps AS RESB_DUMPS,
resb.no_disp AS RESB_NO_DISP,
resb.schgt AS RESB_SCHGT,
resb.umsok AS RESB_UMSOK,
vorab,
no_disp,
kzaus,
nafkz,
sgt_scat,
sgt_rcat,
knttp AS knttp_db,
kzvbr AS kzvbr_db,
kzbws AS kzbws_db
FROM resb
;
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