P_PurOrdOutputAutomation2
Segregation of Output Messages
P_PurOrdOutputAutomation2 is a Consumption CDS View that provides data about "Segregation of Output Messages" in SAP S/4HANA. It reads from 5 data sources (P_PurOrdOutputAutomation3, P_PurOrdOutputAutomation3, P_PurOrdOutputAutomation3, P_PurOrdOutputAutomation3, P_PurOrdOutputAutomation3) and exposes 75 fields with key fields PurchaseOrder, POOutputMessageItemID, POOutputMessageItemID, POOutputMessageItemID, POOutputMessageItemID. Part of development package ODATA_MM_ANALYTICS.
Data Sources (5)
| Source | Alias | Join Type |
|---|---|---|
| P_PurOrdOutputAutomation3 | P_PurOrdOutputAutomation3 | from |
| P_PurOrdOutputAutomation3 | P_PurOrdOutputAutomation3 | union_all |
| P_PurOrdOutputAutomation3 | P_PurOrdOutputAutomation3 | union_all |
| P_PurOrdOutputAutomation3 | P_PurOrdOutputAutomation3 | union_all |
| P_PurOrdOutputAutomation3 | P_PurOrdOutputAutomation3 | union_all |
Parameters (2)
| Name | Type | Default |
|---|---|---|
| P_StartDate | bedat | |
| P_EndDate | bedat |
Annotations (11)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PMMOPAUT2 | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| VDM.private | true | view | |
| VDM.viewType | #CONSUMPTION | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| AccessControl.authorizationCheck | #PRIVILEGED_ONLY | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| EndUserText.label | Segregation of Output Messages | view |
Fields (75)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | PurchaseOrder | PurchaseOrder | Purchasing Document | |
| KEY | POOutputMessageItemID | POOutputMessageItemID | ||
| PurchaseOrderDate | PurchaseOrderDate | PO Date | ||
| Supplier | Supplier | Supplier | ||
| PurchasingOrganization | PurchasingOrganization | Purchasing Organization | ||
| PurchasingGroup | PurchasingGroup | Purchasing Group | ||
| POOutputChannel | POOutputChannel | |||
| NmbrOfPurchaseOrdersPrinted | ||||
| NmbrOfPurOrdersOutputAsXML | ||||
| NmbrOfPurOrdersOutputAsIDOC | ||||
| NmbrOfPurOrdersOutputAsEDI | ||||
| NmbrOfPurchaseOrdersEmailed | ||||
| PurchaseOrderOutputIsAutomated | ||||
| POOutputChannelManualUniqueID | ||||
| P_StartDate | ||||
| P_EndDatekeyPurchaseOrder | ||||
| KEY | POOutputMessageItemID | POOutputMessageItemID | ||
| PurchaseOrderDate | PurchaseOrderDate | PO Date | ||
| Supplier | Supplier | Supplier | ||
| PurchasingOrganization | PurchasingOrganization | Purchasing Organization | ||
| PurchasingGroup | PurchasingGroup | Purchasing Group | ||
| POOutputChannel | POOutputChannel | |||
| NmbrOfPurchaseOrdersPrinted | ||||
| NmbrOfPurOrdersOutputAsXML | ||||
| NmbrOfPurOrdersOutputAsIDOC | ||||
| NmbrOfPurOrdersOutputAsEDI | ||||
| NmbrOfPurchaseOrdersEmailed | ||||
| PurchaseOrderOutputIsAutomated | ||||
| POOutputChannelManualUniqueID | ||||
| P_StartDate | ||||
| P_EndDatekeyPurchaseOrder | ||||
| KEY | POOutputMessageItemID | POOutputMessageItemID | ||
| PurchaseOrderDate | PurchaseOrderDate | PO Date | ||
| Supplier | Supplier | Supplier | ||
| PurchasingOrganization | PurchasingOrganization | Purchasing Organization | ||
| PurchasingGroup | PurchasingGroup | Purchasing Group | ||
| POOutputChannel | POOutputChannel | |||
| NmbrOfPurchaseOrdersPrinted | ||||
| NmbrOfPurOrdersOutputAsXML | ||||
| NmbrOfPurOrdersOutputAsIDOC | ||||
| NmbrOfPurOrdersOutputAsEDI | ||||
| NmbrOfPurchaseOrdersEmailed | ||||
| PurchaseOrderOutputIsAutomated | ||||
| POOutputChannelManualUniqueID | ||||
| P_StartDate | ||||
| P_EndDatekeyPurchaseOrder | ||||
| KEY | POOutputMessageItemID | POOutputMessageItemID | ||
| PurchaseOrderDate | PurchaseOrderDate | PO Date | ||
| Supplier | Supplier | Supplier | ||
| PurchasingOrganization | PurchasingOrganization | Purchasing Organization | ||
| PurchasingGroup | PurchasingGroup | Purchasing Group | ||
| POOutputChannel | POOutputChannel | |||
| NmbrOfPurchaseOrdersPrinted | ||||
| NmbrOfPurOrdersOutputAsXML | ||||
| NmbrOfPurOrdersOutputAsIDOC | ||||
| NmbrOfPurOrdersOutputAsEDI | ||||
| NmbrOfPurchaseOrdersEmailed | ||||
| PurchaseOrderOutputIsAutomated | ||||
| POOutputChannelManualUniqueID | ||||
| P_StartDate | ||||
| P_EndDatekeyPurchaseOrder | ||||
| KEY | POOutputMessageItemID | POOutputMessageItemID | ||
| PurchaseOrderDate | PurchaseOrderDate | PO Date | ||
| Supplier | Supplier | Supplier | ||
| PurchasingOrganization | PurchasingOrganization | Purchasing Organization | ||
| PurchasingGroup | PurchasingGroup | Purchasing Group | ||
| POOutputChannel | POOutputChannel | |||
| NmbrOfPurchaseOrdersPrinted | ||||
| NmbrOfPurOrdersOutputAsXML | ||||
| NmbrOfPurOrdersOutputAsIDOC | ||||
| NmbrOfPurOrdersOutputAsEDI | ||||
| NmbrOfPurchaseOrdersEmailed | ||||
| PurchaseOrderOutputIsAutomated | ||||
| POOutputChannelManualUniqueID | ||||
| POOutputChannelAutomnUniqueID |
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_PurOrdOutputAutomation2.
-- 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: PMMOPAUT2
-- Parameters: P_StartDate : bedat, P_EndDate : bedat
CREATE VIEW P_PurOrdOutputAutomation2 AS
SELECT
PurchaseOrder,
POOutputMessageItemID,
PurchaseOrderDate,
Supplier,
PurchasingOrganization,
PurchasingGroup,
POOutputChannel,
cast( 1 as mm_a_nmbrofposprinted ) AS NmbrOfPurchaseOrdersPrinted,
cast( 0 as mm_a_nmbrofposasxml ) AS NmbrOfPurOrdersOutputAsXML,
cast( 0 as mm_a_nmbrofposasidoc ) AS NmbrOfPurOrdersOutputAsIDOC,
cast( 0 as mm_a_nmbrofposasedi ) AS NmbrOfPurOrdersOutputAsEDI,
cast( 0 as mm_a_nmbrofposemailed ) AS NmbrOfPurchaseOrdersEmailed,
cast( 'M' as mm_a_output_channel_type ) AS PurchaseOrderOutputIsAutomated,
cast (CONCAT(PurchaseOrder , POOutputMessageItemID) as char14 ) AS POOutputChannelManualUniqueID,
cast ( ' ' as char14) as POOutputChannelAutomnUniqueID AS P_StartDate,
cast ( ' ' as char14) AS POOutputChannelAutomnUniqueID
FROM P_PurOrdOutputAutomation3
-- UNION ALL with additional select branch(es): P_PurOrdOutputAutomation3
;
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