P_RU_FinStmAccountingDocument

DDL: P_RU_FINSTMACCOUNTINGDOCUMENT SQL: PRUFSTMACCDOC Type: view COMPOSITE

P_RU_FinStmAccountingDocument is a Composite CDS View in SAP S/4HANA. It reads from 1 data source (I_AccountingDocument) and exposes 10 fields.

Data Sources (1)

SourceAliasJoin Type
I_AccountingDocument docHeader from

Parameters (3)

NameTypeDefault
P_StatryRptgEntity srf_reporting_entity
P_StatryRptCategory srf_rep_cat_id
P_StatryRptRunID srf_report_run_id

Annotations (7)

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

Fields (10)

KeyFieldSource TableSource FieldDescription
CompanyCode I_AccountingDocument CompanyCode Receiver Company Code
AccountingDocument I_AccountingDocument AccountingDocument Journal Entry
FiscalYear I_AccountingDocument FiscalYear G/L Fiscal Year
AccountingDocumentItem docPosition AccountingDocumentItem Posting View Item
Material docPosition Product Product Sold
ValuationArea docPosition ValuationArea Valuation Area
InventoryValuationType docPosition InventoryValuationType Valuation Type
Plant docPosition Plant Valuation Area
Currency I_AccountingDocument Currency Valuation Crcy
PostingDate I_AccountingDocument PostingDate Posting Date for GR

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_FinStmAccountingDocument.
-- 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: PRUFSTMACCDOC
-- Parameters: P_StatryRptgEntity : srf_reporting_entity, P_StatryRptCategory : srf_rep_cat_id, P_StatryRptRunID : srf_report_run_id

CREATE VIEW P_RU_FinStmAccountingDocument AS
SELECT
  docHeader.CompanyCode AS CompanyCode,
  docHeader.AccountingDocument AS AccountingDocument,
  docHeader.FiscalYear AS FiscalYear,
  docPosition.AccountingDocumentItem AS AccountingDocumentItem,
  docPosition.Product AS Material,
  docPosition.ValuationArea AS ValuationArea,
  docPosition.InventoryValuationType AS InventoryValuationType,
  docPosition.Plant AS Plant,
  docHeader.Currency AS Currency,
  docHeader.PostingDate AS PostingDate
FROM I_AccountingDocument AS docHeader
;