I_PartnerInAccountingDocument

DDL: I_PARTNERINACCOUNTINGDOCUMENT Type: view_entity COMPOSITE

Partner in Accounting Document

I_PartnerInAccountingDocument is a Composite 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 with key fields CompanyCode, AccountingDocument, FiscalYear, AccountingDocumentItem.

Data Sources (2)

SourceAliasJoin Type
P_RU_FIRSTACCDOCITEMPARTNR AccDocFirstItem from
I_OperationalAcctgDocItem AccDocItems inner

Annotations (8)

NameValueLevelField
AccessControl.authorizationCheck #MANDATORY view
EndUserText.label Partner in Accounting Document view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #MIXED view
VDM.viewType #COMPOSITE view
AccessControl.personalData.blocking #BLOCKED_DATA_INCLUDED view

Fields (8)

KeyFieldSource TableSource FieldDescription
KEY CompanyCode P_RU_FIRSTACCDOCITEMPARTNR CompanyCode Receiver Company Code
KEY AccountingDocument P_RU_FIRSTACCDOCITEMPARTNR AccountingDocument Journal Entry
KEY FiscalYear P_RU_FIRSTACCDOCITEMPARTNR FiscalYear G/L Fiscal Year
KEY 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 I_PartnerInAccountingDocument.
-- 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.

CREATE VIEW I_PartnerInAccountingDocument 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 */
;