P_ProductSalesDeliveryWD
P_ProductSalesDeliveryWD is a Composite CDS View in SAP S/4HANA. It reads from 5 data sources (I_ProductSalesDelivery, I_DraftAdministrativeData, P_ProductSalesDeliveryD, P_ProductSalesDeliveryD, P_ProductD) and exposes 60 fields with key fields Draftkey, ActiveProduct, ActiveProductSalesOrg, ActiveProductDistributionChnl.
Data Sources (5)
| Source | Alias | Join Type |
|---|---|---|
| I_ProductSalesDelivery | ActiveDocument | from |
| I_DraftAdministrativeData | DraftAdministrativeData | inner |
| P_ProductSalesDeliveryD | DraftDocument | left_outer |
| P_ProductSalesDeliveryD | DraftDocument | union_all |
| P_ProductD | DraftRootDocument | inner |
Annotations (6)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PPRDSALESDELIVWD | view | |
| VDM.viewType | #COMPOSITE | view | |
| VDM.private | true | view | |
| ClientDependent | true | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view |
Fields (60)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | Draftkey | |||
| KEY | ActiveProduct | I_ProductSalesDelivery | Product | Product |
| KEY | ActiveProductSalesOrg | I_ProductSalesDelivery | ProductSalesOrg | Sales Org. |
| KEY | ActiveProductDistributionChnl | I_ProductSalesDelivery | ProductDistributionChnl | Distr. Channel |
| ParentDraftKey | NodeID | |||
| Product | I_ProductSalesDelivery | Product | Product Sold | |
| MinimumOrderQuantity | I_ProductSalesDelivery | MinimumOrderQuantity | Minimum Order Quantity | |
| SupplyingPlant | I_ProductSalesDelivery | SupplyingPlant | Supplying Plant | |
| PriceSpecificationProductGroup | I_ProductSalesDelivery | PriceSpecificationProductGroup | Prd.Price Grp | |
| AccountDetnProductGroup | I_ProductSalesDelivery | AccountDetnProductGroup | AcctAssmtGrpPrd | |
| DeliveryNoteProcMinDelivQty | I_ProductSalesDelivery | DeliveryNoteProcMinDelivQty | Min. dely qty | |
| ItemCategoryGroup | I_ProductSalesDelivery | ItemCategoryGroup | Item Cat. Group | |
| DeliveryQuantityUnit | I_ProductSalesDelivery | DeliveryQuantityUnit | Unit of measure | |
| DeliveryQuantity | ||||
| ProductSalesStatus | I_ProductSalesDelivery | ProductSalesStatus | Status | |
| ProductSalesStatusValidityDate | I_ProductSalesDelivery | ProductSalesStatusValidityDate | Valid From | |
| SalesMeasureUnit | I_ProductSalesDelivery | SalesMeasureUnit | Sales unit | |
| IsMarkedForDeletion | ||||
| ProductHierarchy | I_ProductSalesDelivery | ProductHierarchy | Prod.hierarchy | |
| FirstSalesSpecProductGroup | I_ProductSalesDelivery | FirstSalesSpecProductGroup | ProductGroup 1 | |
| SecondSalesSpecProductGroup | I_ProductSalesDelivery | SecondSalesSpecProductGroup | ProductGroup 2 | |
| ThirdSalesSpecProductGroup | I_ProductSalesDelivery | ThirdSalesSpecProductGroup | ProductGroup 3 | |
| FourthSalesSpecProductGroup | I_ProductSalesDelivery | FourthSalesSpecProductGroup | ProductGroup 4 | |
| FifthSalesSpecProductGroup | I_ProductSalesDelivery | FifthSalesSpecProductGroup | ProductGroup 5 | |
| MinimumMakeToOrderOrderQty | I_ProductSalesDelivery | MinimumMakeToOrderOrderQty | MakeToOrder qty | |
| LogisticsStatisticsGroup | I_ProductSalesDelivery | LogisticsStatisticsGroup | StatisticsGroup | |
| VolumeRebateGroup | I_ProductSalesDelivery | VolumeRebateGroup | Vol. Rebate Grp | |
| ProductCommissionGroup | I_ProductSalesDelivery | ProductCommissionGroup | Commission Grp | |
| CashDiscountIsDeductible | I_ProductSalesDelivery | CashDiscountIsDeductible | Cash Discount | |
| PricingReferenceProduct | I_ProductSalesDelivery | PricingReferenceProduct | X-distr.-chain PRM | |
| AssortmentGrade | I_ProductSalesDelivery | AssortmentGrade | Assortm. Grade | |
| StoreListingProcedure | I_ProductSalesDelivery | StoreListingProcedure | LP for stores | |
| DistrCntrListingProcedure | I_ProductSalesDelivery | DistrCntrListingProcedure | LP distr. ctrs | |
| StoreListingStartDate | I_ProductSalesDelivery | StoreListingStartDate | Str Listed from | |
| StoreListingEndDate | I_ProductSalesDelivery | StoreListingEndDate | Str Listed to | |
| DistrCntrListingStartDate | I_ProductSalesDelivery | DistrCntrListingStartDate | DC Listed from | |
| DistrCntrListingEndDate | I_ProductSalesDelivery | DistrCntrListingEndDate | DC Listed to | |
| StoreSaleStartDate | I_ProductSalesDelivery | StoreSaleStartDate | sale from (str) | |
| StoreSaleEndDate | I_ProductSalesDelivery | StoreSaleEndDate | sale till (str) | |
| DistrCntrSaleStartDate | I_ProductSalesDelivery | DistrCntrSaleStartDate | sale from (DC) | |
| DistrCntrSaleEndDate | I_ProductSalesDelivery | DistrCntrSaleEndDate | sale till (DC) | |
| RoundingProfile | I_ProductSalesDelivery | RoundingProfile | Rnding Profile | |
| ProductUnitGroup | I_ProductSalesDelivery | ProductUnitGroup | UoM Group | |
| MaxDeliveryQtyStoreOrder | I_ProductSalesDelivery | MaxDeliveryQtyStoreOrder | Max. dely qty | |
| PriceFixingCategory | I_ProductSalesDelivery | PriceFixingCategory | Price Fixing | |
| VariableSalesUnitIsNotAllowed | I_ProductSalesDelivery | VariableSalesUnitIsNotAllowed | SUn not var. | |
| CompetitionPressureCategory | I_ProductSalesDelivery | CompetitionPressureCategory | Comp. Charactn | |
| IsActiveEntity | ||||
| HasActiveEntity | TRUE | |||
| DraftkeyasDraftkey | ||||
| ActiveProduct | P_ProductSalesDeliveryD | ActiveProduct | Product | |
| ActiveProductSalesOrg | P_ProductSalesDeliveryD | ActiveProductSalesOrg | Sales Org. | |
| ActiveProductDistributionChnl | P_ProductSalesDeliveryD | ActiveProductDistributionChnl | Distr. Channel | |
| ParentDraftKey | P_ProductSalesDeliveryD | ParentDraftKey | NodeID | |
| product | P_ProductD | product | Product Sold | |
| IsMarkedForDeletion | ||||
| IsActiveEntity | ||||
| HasActiveEntity | P_ProductSalesDeliveryD | hasactiveentity | TRUE | |
| HasDraftEntity | ||||
| DraftAdministrativeDataUUID |
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_ProductSalesDeliveryWD.
-- 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: PPRDSALESDELIVWD
CREATE VIEW P_ProductSalesDeliveryWD AS
SELECT
cast ( hextobin('00000000000000000000000000000000') as sysuuid_x ) AS Draftkey,
ActiveDocument.Product AS ActiveProduct,
ActiveDocument.ProductSalesOrg AS ActiveProductSalesOrg,
ActiveDocument.ProductDistributionChnl AS ActiveProductDistributionChnl,
cast ( hextobin('00000000000000000000000000000000') as sysuuid_x ) AS ParentDraftKey,
ActiveDocument.Product AS Product,
ActiveDocument.MinimumOrderQuantity AS MinimumOrderQuantity,
ActiveDocument.SupplyingPlant AS SupplyingPlant,
ActiveDocument.PriceSpecificationProductGroup AS PriceSpecificationProductGroup,
ActiveDocument.AccountDetnProductGroup AS AccountDetnProductGroup,
ActiveDocument.DeliveryNoteProcMinDelivQty AS DeliveryNoteProcMinDelivQty,
ActiveDocument.ItemCategoryGroup AS ItemCategoryGroup,
ActiveDocument.DeliveryQuantityUnit AS DeliveryQuantityUnit,
ActiveDocument. DeliveryQuantity AS DeliveryQuantity,
ActiveDocument.ProductSalesStatus AS ProductSalesStatus,
ActiveDocument.ProductSalesStatusValidityDate AS ProductSalesStatusValidityDate,
ActiveDocument.SalesMeasureUnit AS SalesMeasureUnit,
cast(ActiveDocument.IsMarkedForDeletion as boole_d) AS IsMarkedForDeletion,
ActiveDocument.ProductHierarchy AS ProductHierarchy,
ActiveDocument.FirstSalesSpecProductGroup AS FirstSalesSpecProductGroup,
ActiveDocument.SecondSalesSpecProductGroup AS SecondSalesSpecProductGroup,
ActiveDocument.ThirdSalesSpecProductGroup AS ThirdSalesSpecProductGroup,
ActiveDocument.FourthSalesSpecProductGroup AS FourthSalesSpecProductGroup,
ActiveDocument.FifthSalesSpecProductGroup AS FifthSalesSpecProductGroup,
ActiveDocument.MinimumMakeToOrderOrderQty AS MinimumMakeToOrderOrderQty,
ActiveDocument.LogisticsStatisticsGroup AS LogisticsStatisticsGroup,
ActiveDocument.VolumeRebateGroup AS VolumeRebateGroup,
ActiveDocument.ProductCommissionGroup AS ProductCommissionGroup,
ActiveDocument.CashDiscountIsDeductible AS CashDiscountIsDeductible,
ActiveDocument.PricingReferenceProduct AS PricingReferenceProduct,
ActiveDocument.AssortmentGrade AS AssortmentGrade,
ActiveDocument.StoreListingProcedure AS StoreListingProcedure,
ActiveDocument.DistrCntrListingProcedure AS DistrCntrListingProcedure,
ActiveDocument.StoreListingStartDate AS StoreListingStartDate,
ActiveDocument.StoreListingEndDate AS StoreListingEndDate,
ActiveDocument.DistrCntrListingStartDate AS DistrCntrListingStartDate,
ActiveDocument.DistrCntrListingEndDate AS DistrCntrListingEndDate,
ActiveDocument.StoreSaleStartDate AS StoreSaleStartDate,
ActiveDocument.StoreSaleEndDate AS StoreSaleEndDate,
ActiveDocument.DistrCntrSaleStartDate AS DistrCntrSaleStartDate,
ActiveDocument.DistrCntrSaleEndDate AS DistrCntrSaleEndDate,
ActiveDocument.RoundingProfile AS RoundingProfile,
ActiveDocument.ProductUnitGroup AS ProductUnitGroup,
ActiveDocument.MaxDeliveryQtyStoreOrder AS MaxDeliveryQtyStoreOrder,
ActiveDocument.PriceFixingCategory AS PriceFixingCategory,
ActiveDocument.VariableSalesUnitIsNotAllowed AS VariableSalesUnitIsNotAllowed,
ActiveDocument.CompetitionPressureCategory AS CompetitionPressureCategory,
cast( 'X' as boole_d ) AS IsActiveEntity,
cast( ' ' as boole_d ) AS HasActiveEntity,
cast(DraftDocument.ParentDraftKey as sysuuid_x ) as DraftAdministrativeDataUUID AS DraftkeyasDraftkey,
cast( ' ' as boole_d ) AS HasDraftEntity,
cast(DraftDocument.ParentDraftKey as sysuuid_x ) AS DraftAdministrativeDataUUID
FROM I_ProductSalesDelivery AS ActiveDocument
LEFT OUTER JOIN P_ProductSalesDeliveryD AS DraftDocument ON /* join condition not captured in parsed metadata */
INNER JOIN P_ProductD AS DraftRootDocument ON /* join condition not captured in parsed metadata */
INNER JOIN I_DraftAdministrativeData AS DraftAdministrativeData ON /* join condition not captured in parsed metadata */
-- UNION ALL with additional select branch(es): P_ProductSalesDeliveryD
;
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