P_ProductPlantWD
Union
P_ProductPlantWD is a Composite CDS View that provides data about "Union" in SAP S/4HANA. It reads from 5 data sources (I_ProductPlant, I_DraftAdministrativeData, P_ProductPlantD, P_ProductPlantD, P_Productplantreferences) and exposes 59 fields with key fields Draftkey, ActiveProduct, ActivePlant, ActiveProduct, ActivePlant. Part of development package VDM_MD_PRODUCT_OBSOLETE.
Data Sources (5)
| Source | Alias | Join Type |
|---|---|---|
| I_ProductPlant | ActiveDocument | from |
| I_DraftAdministrativeData | DraftAdministrativeData | inner |
| P_ProductPlantD | DraftDocument | left_outer |
| P_ProductPlantD | DraftDocument | union_all |
| P_Productplantreferences | Reference | left_outer |
Annotations (6)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PPRDPLANTWD | view | |
| VDM.viewType | #COMPOSITE | view | |
| VDM.private | true | view | |
| ClientDependent | true | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view |
Fields (59)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | Draftkey | |||
| KEY | ActiveProduct | I_ProductPlant | Product | Product |
| KEY | ActivePlant | I_ProductPlant | Plant | Plant ID |
| ParentDraftKey | ||||
| Product | I_ProductPlant | Product | Product Sold | |
| Plant | I_ProductPlant | Plant | Valuation Area | |
| PurchasingGroup | I_ProductPlant | PurchasingGroup | Purchasing Group | |
| CountryOfOrigin | I_ProductPlant | CountryOfOrigin | Country/Region of Origin | |
| RegionOfOrigin | I_ProductPlant | RegionOfOrigin | Reg. of Origin | |
| ProductionInvtryManagedLoc | I_ProductPlant | ProductionInvtryManagedLoc | Storage Location | |
| ProfileCode | I_ProductPlant | ProfileCode | Product Status | |
| ProfileValidityStartDate | I_ProductPlant | ProfileValidityStartDate | Valid from | |
| AvailabilityCheckType | I_ProductPlant | AvailabilityCheckType | Avail. check | |
| FiscalYearVariant | I_ProductPlant | FiscalYearVariant | FY Variant | |
| PeriodType | I_ProductPlant | PeriodType | PeriodIndicator | |
| ProfitCenter | I_ProductPlant | ProfitCenter | Profit Center | |
| MaintenanceStatusName | I_ProductPlant | MaintenanceStatusName | Maint. status | |
| IsMarkedForDeletion | ||||
| ConsumptionTaxCtrlCode | I_ProductPlant | ConsumptionTaxCtrlCode | Taxes F.Trade | |
| IsCoProduct | I_ProductPlant | IsCoProduct | Co-product? | |
| ProductIsConfigurable | I_ProductPlant | ProductIsConfigurable | Configurable | |
| StockDeterminationGroup | I_ProductPlant | StockDeterminationGroup | Stock Determ. Group | |
| StockInTransferQuantity | I_ProductPlant | StockInTransferQuantity | Stock in tfr | |
| StockInTransitQuantity | I_ProductPlant | StockInTransitQuantity | Stk in Transit | |
| HasPostToInspectionStock | I_ProductPlant | HasPostToInspectionStock | Post to insp. stk | |
| GoodsReceiptBlockedStockQty | I_ProductPlant | GoodsReceiptBlockedStockQty | Val. GR Blocked Stck | |
| HasConsignmentCtrl | I_ProductPlant | HasConsignmentCtrl | Consign.Control | |
| IsPurgAcrossPurgGroup | I_ProductPlant | IsPurgAcrossPurgGroup | Across Purch.Group | |
| IsInternalBatchManaged | I_ProductPlant | IsInternalBatchManaged | Batches | |
| ProductCFOPCategory | I_ProductPlant | ProductCFOPCategory | Prod. category | |
| SourceOfSupplyCategory | I_ProductPlant | SourceOfSupplyCategory | Supply source | |
| ProductUnitGroup | I_ProductPlant | ProductUnitGroup | UoM Group | |
| DistrCntrDistributionProfile | I_ProductPlant | DistrCntrDistributionProfile | Dist.prof. | |
| ConsignmentControl | I_ProductPlant | ConsignmentControl | Consign.Control | |
| GoodIssueProcessingDays | I_ProductPlant | GoodIssueProcessingDays | GI Proc.Time | |
| SalesOrganization | P_Productplantreferences | SalesOrganization | Sales Organization | |
| DistributionChannel | P_Productplantreferences | DistributionChannel | RefDistCh-Cust/Mat. | |
| PlantCategory | P_Productplantreferences | PlantCategory | Plant cat. | |
| ReferenceDistributionCenter | P_Productplantreferences | ReferenceDistributionCenter | Ref. distr. ctr | |
| ReferenceStore | P_Productplantreferences | ReferenceStore | Reference Store | |
| IsReferenceDistributionCenter | P_Productplantreferences | IsReferenceDistributionCenter | TRUE | |
| IsReferenceStore | P_Productplantreferences | IsReferenceStore | TRUE | |
| IsActiveEntity | ||||
| HasActiveEntity | ||||
| Draftkey | ||||
| KEY | ActiveProduct | P_ProductPlantD | ActiveProduct | Product |
| KEY | ActivePlant | P_ProductPlantD | ActivePlant | Plant ID |
| Parentdraftkey | P_ProductPlantD | Parentdraftkey | NodeID | |
| product | P_ProductPlantD | product | Product Sold | |
| plant | P_ProductPlantD | plant | Valuation Area | |
| profilecode | P_ProductPlantD | profilecode | Product Status | |
| periodtype | P_ProductPlantD | periodtype | PeriodIndicator | |
| profitcenter | P_ProductPlantD | profitcenter | Profit Center | |
| IsMarkedForDeletion | ||||
| iscoproduct | P_ProductPlantD | iscoproduct | Co-product? | |
| IsActiveEntity | ||||
| HasActiveEntity | ||||
| 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_ProductPlantWD.
-- 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: PPRDPLANTWD
CREATE VIEW P_ProductPlantWD AS
SELECT
cast ( hextobin('00000000000000000000000000000000') as sysuuid_x ) AS Draftkey,
ActiveDocument.Product AS ActiveProduct,
ActiveDocument.Plant AS ActivePlant,
cast ( hextobin('00000000000000000000000000000000') as sysuuid_x ) AS ParentDraftKey,
ActiveDocument.Product AS Product,
ActiveDocument.Plant AS Plant,
ActiveDocument.PurchasingGroup AS PurchasingGroup,
ActiveDocument.CountryOfOrigin AS CountryOfOrigin,
ActiveDocument.RegionOfOrigin AS RegionOfOrigin,
ActiveDocument.ProductionInvtryManagedLoc AS ProductionInvtryManagedLoc,
ActiveDocument.ProfileCode AS ProfileCode,
ActiveDocument.ProfileValidityStartDate AS ProfileValidityStartDate,
ActiveDocument.AvailabilityCheckType AS AvailabilityCheckType,
ActiveDocument.FiscalYearVariant AS FiscalYearVariant,
ActiveDocument.PeriodType AS PeriodType,
ActiveDocument.ProfitCenter AS ProfitCenter,
ActiveDocument.MaintenanceStatusName AS MaintenanceStatusName,
cast(ActiveDocument.IsMarkedForDeletion as boole_d) AS IsMarkedForDeletion,
ActiveDocument.ConsumptionTaxCtrlCode AS ConsumptionTaxCtrlCode,
ActiveDocument.IsCoProduct AS IsCoProduct,
ActiveDocument.ProductIsConfigurable AS ProductIsConfigurable,
ActiveDocument.StockDeterminationGroup AS StockDeterminationGroup,
ActiveDocument.StockInTransferQuantity AS StockInTransferQuantity,
ActiveDocument.StockInTransitQuantity AS StockInTransitQuantity,
ActiveDocument.HasPostToInspectionStock AS HasPostToInspectionStock,
ActiveDocument.GoodsReceiptBlockedStockQty AS GoodsReceiptBlockedStockQty,
ActiveDocument.HasConsignmentCtrl AS HasConsignmentCtrl,
ActiveDocument.IsPurgAcrossPurgGroup AS IsPurgAcrossPurgGroup,
ActiveDocument.IsInternalBatchManaged AS IsInternalBatchManaged,
ActiveDocument.ProductCFOPCategory AS ProductCFOPCategory,
ActiveDocument.SourceOfSupplyCategory AS SourceOfSupplyCategory,
ActiveDocument.ProductUnitGroup AS ProductUnitGroup,
ActiveDocument.DistrCntrDistributionProfile AS DistrCntrDistributionProfile,
ActiveDocument.ConsignmentControl AS ConsignmentControl,
ActiveDocument.GoodIssueProcessingDays AS GoodIssueProcessingDays,
Reference.SalesOrganization AS SalesOrganization,
Reference.DistributionChannel AS DistributionChannel,
Reference.PlantCategory AS PlantCategory,
Reference.ReferenceDistributionCenter AS ReferenceDistributionCenter,
Reference.ReferenceStore AS ReferenceStore,
Reference.IsReferenceDistributionCenter AS IsReferenceDistributionCenter,
Reference.IsReferenceStore AS IsReferenceStore,
cast( 'X' as boole_d ) AS IsActiveEntity,
cast( ' ' as boole_d ) AS HasActiveEntity,
cast( ' ' as boole_d ) AS HasDraftEntity,
cast(DraftDocument.Parentdraftkey as sysuuid_x ) AS DraftAdministrativeDataUUID
FROM I_ProductPlant AS ActiveDocument
LEFT OUTER JOIN P_ProductPlantD AS DraftDocument ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN P_Productplantreferences AS Reference 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_ProductPlantD
;
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