P_RO_SAFTPurInvHdr1

DDL: P_RO_SAFTPURINVHDR1 SQL: PROSAFTPURIH1 Type: view CONSUMPTION

Pur Inv Header for RO SAFT Base 1

P_RO_SAFTPurInvHdr1 is a Consumption CDS View that provides data about "Pur Inv Header for RO SAFT Base 1" in SAP S/4HANA. It reads from 4 data sources (I_RO_SAFTDocumentTypeMap, I_StRpJournalEntryHeaderLog, P_RO_SAFTInvoiceItemCount, P_RO_SAFTJournalEntryItemExc) and exposes 11 fields with key fields StatryRptCategory, StatryRptgEntity, StatryRptRunID, SourceLedger, Ledger.

Data Sources (4)

SourceAliasJoin Type
I_RO_SAFTDocumentTypeMap DocType inner
I_StRpJournalEntryHeaderLog Log from
P_RO_SAFTInvoiceItemCount P_RO_SAFTInvoiceItemCount inner
P_RO_SAFTJournalEntryItemExc P_RO_SAFTJournalEntryItemExc inner

Parameters (1)

NameTypeDefault
P_AlternativeGLAccountIsUsed saft_ro_alt_gl_account_flag

Annotations (12)

NameValueLevelField
AbapCatalog.sqlViewName PROSAFTPURIH1 view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
VDM.viewType #CONSUMPTION view
VDM.private true view
EndUserText.label Pur Inv Header for RO SAFT Base 1 view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
AccessControl.authorizationCheck #MANDATORY view
AccessControl.personalData.blocking #BLOCKED_DATA_INCLUDED view

Fields (11)

KeyFieldSource TableSource FieldDescription
KEY StatryRptCategory I_StRpJournalEntryHeaderLog StatryRptCategory Report ID
KEY StatryRptgEntity I_StRpJournalEntryHeaderLog StatryRptgEntity Reporting Entity
KEY StatryRptRunID I_StRpJournalEntryHeaderLog StatryRptRunID Report Run ID
KEY SourceLedger Acdoca SourceLedger Source Ledger
KEY Ledger Acdoca Ledger Ledger
KEY CompanyCode Acdoca CompanyCode Receiver Company Code
KEY FiscalYear Acdoca FiscalYear G/L Fiscal Year
KEY AccountingDocument Acdoca AccountingDocument Journal Entry
PostingDate Acdoca PostingDate Posting Date for GR
AccountingDocumentType Acdoca AccountingDocumentType Journal Entry Type
AccountingDocumentItem

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_RO_SAFTPurInvHdr1.
-- 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: PROSAFTPURIH1
-- Parameters: P_AlternativeGLAccountIsUsed : saft_ro_alt_gl_account_flag

CREATE VIEW P_RO_SAFTPurInvHdr1 AS
SELECT
  Log.StatryRptCategory AS StatryRptCategory,
  Log.StatryRptgEntity AS StatryRptgEntity,
  Log.StatryRptRunID AS StatryRptRunID,
  Acdoca.SourceLedger AS SourceLedger,
  Acdoca.Ledger AS Ledger,
  Acdoca.CompanyCode AS CompanyCode,
  Acdoca.FiscalYear AS FiscalYear,
  Acdoca.AccountingDocument AS AccountingDocument,
  Acdoca.PostingDate AS PostingDate,
  Acdoca.AccountingDocumentType AS AccountingDocumentType,
  max(Acdoca.AccountingDocumentItem) AS AccountingDocumentItem
FROM I_StRpJournalEntryHeaderLog AS Log
INNER JOIN P_RO_SAFTJournalEntryItemExc ON /* join condition not captured in parsed metadata */
INNER JOIN P_RO_SAFTInvoiceItemCount ON /* join condition not captured in parsed metadata */
INNER JOIN I_RO_SAFTDocumentTypeMap AS DocType ON /* join condition not captured in parsed metadata */
;