P_ReturnDeliveryConfgnBased

DDL: P_RETURNDELIVERYCONFGNBASED SQL: PRETURNDELCONFGN Type: view CONSUMPTION Package: ODATA_MM_ANALYTICS

Return Delivery in PPM

P_ReturnDeliveryConfgnBased is a Consumption CDS View that provides data about "Return Delivery in PPM" in SAP S/4HANA. It reads from 2 data sources (P_PPMGoodMaterialDocumnet, P_PPMReturnDelivery) and exposes 37 fields with key fields MaterialDocument, MaterialDocumentItem, MaterialDocumentYear, MaterialDocumentItem, MaterialDocumentYear. Part of development package ODATA_MM_ANALYTICS.

Data Sources (2)

SourceAliasJoin Type
P_PPMGoodMaterialDocumnet P_PPMGoodMaterialDocumnet from
P_PPMReturnDelivery P_PPMReturnDelivery union

Parameters (2)

NameTypeDefault
P_StartDate bedat
P_EndDate bedat

Annotations (11)

NameValueLevelField
AbapCatalog.sqlViewName PRETURNDELCONFGN view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #CHECK view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #L view
VDM.private true view
VDM.viewType #CONSUMPTION view
EndUserText.label Return Delivery in PPM view

Fields (37)

KeyFieldSource TableSource FieldDescription
KEY MaterialDocument MaterialDocument Material Doc.
KEY MaterialDocumentItem MaterialDocumentItem Material Document Item
KEY MaterialDocumentYear MaterialDocumentYear Material Document Year
Supplier Supplier Supplier
PurchasingGroup PurchasingGroup Purchasing Group
PurchasingOrganization PurchasingOrganization Purchasing Organization
Material Material Vehicle Model
MaterialGroup MaterialGroup Product Group
Plant Plant Valuation Area
PurchaseOrder PurchaseOrder Purchasing Document
PurchaseOrderItem PurchaseOrderItem Purchasing Document Item
OrderQuantityUnit OrderQuantityUnit Sales Unit
GoodsMovementType GoodsMovementType Movement Type
PostingDate PostingDate Posting Date for GR
NmbrOfReturnPartsForQltyNotif
NumberOfReturnedParts
NumberOfReceivedParts
NotificationComplaintQuantity NotificationComplaintQuantity
P_StartDate
KEY MaterialDocumentItem MaterialDocumentItem Material Document Item
KEY MaterialDocumentYear MaterialDocumentYear Material Document Year
Supplier Supplier Supplier
PurchasingGroup PurchasingGroup Purchasing Group
PurchasingOrganization PurchasingOrganization Purchasing Organization
Material Material Vehicle Model
MaterialGroup MaterialGroup Product Group
Plant Plant Valuation Area
PurchaseOrder PurchaseOrder Purchasing Document
PurchaseOrderItem PurchaseOrderItem Purchasing Document Item
OrderQuantityUnit OrderQuantityUnit Sales Unit
GoodsMovementType GoodsMovementType Movement Type
PostingDate PostingDate Posting Date for GR
NmbrOfReturnPartsForQltyNotif
NumberOfReturnedParts NumberOfReturnedParts
NumberOfReceivedParts
NotificationComplaintQuantity
GoodsReceiptQtyInOrderUnit GoodsReceiptQtyInOrderUnit

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 P_ReturnDeliveryConfgnBased.
-- 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: PRETURNDELCONFGN
-- Parameters: P_StartDate : bedat, P_EndDate : bedat

CREATE VIEW P_ReturnDeliveryConfgnBased AS
SELECT
  MaterialDocument,
  MaterialDocumentItem,
  MaterialDocumentYear,
  Supplier,
  PurchasingGroup,
  PurchasingOrganization,
  Material,
  MaterialGroup,
  Plant,
  PurchaseOrder,
  PurchaseOrderItem,
  OrderQuantityUnit,
  GoodsMovementType,
  PostingDate,
  cast(NotificationComplaintQuantity as abap.dec(13,3)) AS NmbrOfReturnPartsForQltyNotif,
  cast(0 as abap.dec(13,3)) AS NumberOfReturnedParts,
  cast(GoodsReceiptQtyInOrderUnit as abap.dec( 13, 3 )) AS NumberOfReceivedParts,
  NotificationComplaintQuantity,
  GoodsReceiptQtyInOrderUnit AS P_StartDate,
  GoodsReceiptQtyInOrderUnit
FROM P_PPMGoodMaterialDocumnet
-- UNION with additional select branch(es): P_PPMReturnDelivery
;