P_PurOrdOutputAutomation2

DDL: P_PURORDOUTPUTAUTOMATION2 SQL: PMMOPAUT2 Type: view CONSUMPTION

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.

Data Sources (5)

SourceAliasJoin 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)

NameTypeDefault
P_StartDate bedat
P_EndDate bedat

Annotations (11)

NameValueLevelField
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)

KeyFieldSource TableSource FieldDescription
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
;