P_RU_PartnerInAccDocument

DDL: P_RU_PARTNERINACCDOCUMENT SQL: PRUPARTNERACC Type: view CONSUMPTION Package: GLO_FIN_IS_RU_FIN_STMNT

Partner in Accounting Document

P_RU_PartnerInAccDocument is a Consumption CDS View that provides data about "Partner in Accounting Document" in SAP S/4HANA. It reads from 2 data sources (P_RU_FIRSTACCDOCITEMPARTNR, I_OperationalAcctgDocItem) and exposes 8 fields. Part of development package GLO_FIN_IS_RU_FIN_STMNT.

Data Sources (2)

SourceAliasJoin Type
P_RU_FIRSTACCDOCITEMPARTNR AccDocFirstItem from
I_OperationalAcctgDocItem AccDocItems inner

Annotations (11)

NameValueLevelField
AbapCatalog.sqlViewName PRUPARTNERACC view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #CHECK view
EndUserText.label Partner in Accounting Document view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #MIXED view
VDM.viewType #CONSUMPTION view
VDM.private true view

Fields (8)

KeyFieldSource TableSource FieldDescription
CompanyCode P_RU_FIRSTACCDOCITEMPARTNR CompanyCode Receiver Company Code
AccountingDocument P_RU_FIRSTACCDOCITEMPARTNR AccountingDocument Journal Entry
FiscalYear P_RU_FIRSTACCDOCITEMPARTNR FiscalYear G/L Fiscal Year
AccountingDocumentItem P_RU_FIRSTACCDOCITEMPARTNR AccountingDocumentItem Posting View Item
Customer I_OperationalAcctgDocItem Customer Sold-to Party
Supplier I_OperationalAcctgDocItem Supplier Supplier
_Customer I_OperationalAcctgDocItem _Customer
_Supplier I_OperationalAcctgDocItem _Supplier

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_PartnerInAccDocument.
-- 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: PRUPARTNERACC

CREATE VIEW P_RU_PartnerInAccDocument AS
SELECT
  AccDocFirstItem.CompanyCode AS CompanyCode,
  AccDocFirstItem.AccountingDocument AS AccountingDocument,
  AccDocFirstItem.FiscalYear AS FiscalYear,
  AccDocFirstItem.AccountingDocumentItem AS AccountingDocumentItem,
  AccDocItems.Customer AS Customer,
  AccDocItems.Supplier AS Supplier,
  AccDocItems._Customer AS _Customer,
  AccDocItems._Supplier AS _Supplier
FROM P_RU_FIRSTACCDOCITEMPARTNR AS AccDocFirstItem
INNER JOIN I_OperationalAcctgDocItem AS AccDocItems ON /* join condition not captured in parsed metadata */
;