I_PeggingAssignmentDelete
Deleted Pegging Assignments
I_PeggingAssignmentDelete is a Composite CDS View that provides data about "Deleted Pegging Assignments" in SAP S/4HANA. It reads from 1 data source (I_PeggingAssignmentHistory) and exposes 34 fields with key fields MRPArea, MatlStkOwnrGrpgWBSElmntIntID, ReplenishmentElement, ReplenishmentDate, RequirementDate.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_PeggingAssignmentHistory | AssignmentHistory | from |
Parameters (1)
| Name | Type | Default |
|---|---|---|
| P_PeggingAssgmtAsOfDateTime | pmmo_valid_from_d |
Annotations (7)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| EndUserText.label | Deleted Pegging Assignments | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| ObjectModel.usageType.serviceQuality | #X | view | |
| ObjectModel.usageType.sizeCategory | #S | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| VDM.viewType | #COMPOSITE | view |
Fields (34)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | MRPArea | MRPArea | MRP Area | |
| KEY | MatlStkOwnrGrpgWBSElmntIntID | MatlStkOwnrGrpgWBSElmntIntID | ||
| KEY | ReplenishmentElement | ReplenishmentElement | Replenishm. El. | |
| KEY | ReplenishmentDate | ReplenishmentDate | Replenishment Date | |
| KEY | RequirementDate | RequirementDate | Requirement Date | |
| KEY | AssignedWBSElementInternalID | AssignedWBSElementInternalID | WBS Element | |
| KEY | MaterialStockAndConsumptionSts | MaterialStockAndConsumptionSts | In Stock | |
| KEY | AlternateCostAssignmentObject | AlternateCostAssignmentObject | Breakpoint | |
| KEY | NextHigherAssemblyObject | NextHigherAssemblyObject | NHA Repl. Elem. | |
| KEY | TopLevelRequirementObject | TopLevelRequirementObject | Top Level Rqmt | |
| KEY | PeggingAssgmtValidFromDteTme | PeggingAssgmtValidFromDteTme | ||
| KEY | PeggingAssgmtValidToDteTme | PeggingAssgmtValidToDteTme | ||
| PeggingAssignmentChangeType | PeggingAssignmentChangeType | Change Type | ||
| WBSElementExternalID | _StkOwnrGrpgWBSElmnt | WBSElementExternalID | WBS Element External ID | |
| Material | Material | Vehicle Model | ||
| AcctAsgtGroupingWBSElmntIntID | AcctAsgtGroupingWBSElmntIntID | |||
| Plant | Plant | Valuation Area | ||
| WBSElmntAssgdMatlQuantity | WBSElmntAssgdMatlQuantity | Allocated Qty | ||
| WBSElmntAssgdMatlExssQuantity | WBSElmntAssgdMatlExssQuantity | Excess Quantity | ||
| WBSElmntAssgdMatlScrapQuantity | WBSElmntAssgdMatlScrapQuantity | Scrap Quantity | ||
| WBSElmntAssgdMatlLossQuantity | WBSElmntAssgdMatlLossQuantity | Loss Quantity | ||
| MaterialBaseUnit | MaterialBaseUnit | Valuation Unit | ||
| MaterialExcessAssgmtMethod | MaterialExcessAssgmtMethod | Excess Method | ||
| MaterialLossAssgmtMethod | MaterialLossAssgmtMethod | Loss Method | ||
| MaterialScrapAssgmtMethod | MaterialScrapAssgmtMethod | Scrap Method | ||
| ReplnmtElmntTotalOrderQuantity | ReplnmtElmntTotalOrderQuantity | Totl. Order Qty | ||
| TopLevelRequirementObjQuantity | TopLevelRequirementObjQuantity | Requirement Quantity | ||
| TopLevelRqmtObjQuantityUnit | TopLevelRqmtObjQuantityUnit | Base Unit | ||
| TopLevelRequirementObjRqmtDate | TopLevelRequirementObjRqmtDate | Top Requirement Date | ||
| LeadingOrderOfCollectiveOrder | LeadingOrderOfCollectiveOrder | Leading Order | ||
| OriginOfPeggingAssignment | OriginOfPeggingAssignment | Assignment Source | ||
| ReplnmtElmntIsStockGain | ReplnmtElmntIsStockGain | Stock Gain Indicator | ||
| ShippingNotice | ShippingNotice | Ship.Notif.Seq. | ||
| CreationDateTime | CreationDateTime | Timestamp |
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 I_PeggingAssignmentDelete.
-- 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.
-- Parameters: P_PeggingAssgmtAsOfDateTime : pmmo_valid_from_d
CREATE VIEW I_PeggingAssignmentDelete AS
SELECT
MRPArea,
MatlStkOwnrGrpgWBSElmntIntID,
ReplenishmentElement,
ReplenishmentDate,
RequirementDate,
AssignedWBSElementInternalID,
MaterialStockAndConsumptionSts,
AlternateCostAssignmentObject,
NextHigherAssemblyObject,
TopLevelRequirementObject,
PeggingAssgmtValidFromDteTme,
PeggingAssgmtValidToDteTme,
PeggingAssignmentChangeType,
_StkOwnrGrpgWBSElmnt.WBSElementExternalID AS WBSElementExternalID,
Material,
AcctAsgtGroupingWBSElmntIntID,
Plant,
WBSElmntAssgdMatlQuantity,
WBSElmntAssgdMatlExssQuantity,
WBSElmntAssgdMatlScrapQuantity,
WBSElmntAssgdMatlLossQuantity,
MaterialBaseUnit,
MaterialExcessAssgmtMethod,
MaterialLossAssgmtMethod,
MaterialScrapAssgmtMethod,
ReplnmtElmntTotalOrderQuantity,
TopLevelRequirementObjQuantity,
TopLevelRqmtObjQuantityUnit,
TopLevelRequirementObjRqmtDate,
LeadingOrderOfCollectiveOrder,
OriginOfPeggingAssignment,
ReplnmtElmntIsStockGain,
ShippingNotice,
CreationDateTime
FROM I_PeggingAssignmentHistory AS AssignmentHistory
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- 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