P_RU_GtdFromPOMM8N

DDL: P_RU_GTDFROMPOMM8N SQL: PRUGTDPOMM8N Type: view COMPOSITE

P_RU_GtdFromPOMM8N is a Composite CDS View in SAP S/4HANA. It reads from 4 data sources (I_JournalEntry, I_JournalEntry, I_OperationalAcctgDocItem, I_OperationalAcctgDocItem) and exposes 25 fields.

Data Sources (4)

SourceAliasJoin Type
I_JournalEntry AccDoc from
I_JournalEntry AccDoc union_all
I_OperationalAcctgDocItem AccDocItem inner
I_OperationalAcctgDocItem AccDocItem inner

Annotations (6)

NameValueLevelField
VDM.private true view
VDM.viewType #COMPOSITE view
AbapCatalog.sqlViewName PRUGTDPOMM8N view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #NOT_REQUIRED view
ClientHandling.algorithm #SESSION_VARIABLE view

Fields (25)

KeyFieldSource TableSource FieldDescription
CompanyCode I_JournalEntry CompanyCode Receiver Company Code
AccountingDocument I_JournalEntry AccountingDocument Journal Entry
FiscalYear I_JournalEntry FiscalYear G/L Fiscal Year
AccountingDocumentItem I_OperationalAcctgDocItem AccountingDocumentItem Posting View Item
AccountingDocumentItemType I_OperationalAcctgDocItem AccountingDocumentItemType Line Item ID
PurchasingDocument I_OperationalAcctgDocItem PurchasingDocument Purchasing Document
PurchasingDocumentItem I_OperationalAcctgDocItem PurchasingDocumentItem Purchasing Doc. Item
OriginalReferenceDocument I_OperationalAcctgDocItem OriginalReferenceDocument Reference Key
OriginalReferenceDocumentNum
OriginalReferenceDocumentYear
AccountingDocumentHeaderText
5 5
AccountingDocumentHeaderText
15 15
CompanyCode Receiver Company Code
AccountingDocument I_JournalEntry AccountingDocument Journal Entry
FiscalYear I_JournalEntry FiscalYear G/L Fiscal Year
AccountingDocumentItem I_OperationalAcctgDocItem AccountingDocumentItem Posting View Item
AccountingDocumentItemType I_OperationalAcctgDocItem AccountingDocumentItemType Line Item ID
PurchasingDocument I_OperationalAcctgDocItem PurchasingDocument Purchasing Document
PurchasingDocumentItem I_OperationalAcctgDocItem PurchasingDocumentItem Purchasing Doc. Item
OriginalReferenceDocument I_OperationalAcctgDocItem OriginalReferenceDocument Reference Key
OriginalReferenceDocumentNum
OriginalReferenceDocumentYear
DocumentItemText I_OperationalAcctgDocItem DocumentItemText Text

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_RU_GtdFromPOMM8N.
-- 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: PRUGTDPOMM8N

CREATE VIEW P_RU_GtdFromPOMM8N AS
SELECT
  AccDoc.CompanyCode AS CompanyCode,
  AccDoc.AccountingDocument AS AccountingDocument,
  AccDoc.FiscalYear AS FiscalYear,
  AccDocItem.AccountingDocumentItem AS AccountingDocumentItem,
  AccDocItem.AccountingDocumentItemType AS AccountingDocumentItemType,
  AccDocItem.PurchasingDocument AS PurchasingDocument,
  AccDocItem.PurchasingDocumentItem AS PurchasingDocumentItem,
  AccDocItem.OriginalReferenceDocument AS OriginalReferenceDocument,
  substring(AccDocItem.OriginalReferenceDocument,1,10) AS OriginalReferenceDocumentNum,
  substring(AccDocItem.OriginalReferenceDocument,11,4) AS OriginalReferenceDocumentYear,
  AccDocItem.DocumentItemText AS AccountingDocumentHeaderText,
  5,
  15,
  AccDocItem.DocumentItemText AS DocumentItemText
FROM I_JournalEntry AS AccDoc
INNER JOIN I_OperationalAcctgDocItem AS AccDocItem ON /* join condition not captured in parsed metadata */
-- UNION ALL with additional select branch(es): I_JournalEntry
;