P_SuplrInvcItmAcctAssgmt

DDL: P_SUPLRINVCITMACCTASSGMT SQL: PSIITMACCTASSGMT Type: view CONSUMPTION

Supplier Invoice Item Account Assignment

P_SuplrInvcItmAcctAssgmt is a Consumption CDS View that provides data about "Supplier Invoice Item Account Assignment" in SAP S/4HANA. It reads from 1 data source (I_SupplierInvoiceItmAcctAssgmt) and exposes 13 fields with key fields SupplierInvoice, FiscalYear, SupplierInvoiceItem, OrdinalNumber. It has 1 association to related views.

Data Sources (1)

SourceAliasJoin Type
I_SupplierInvoiceItmAcctAssgmt I_SupplierInvoiceItmAcctAssgmt from

Associations (1)

CardinalityTargetAliasCondition
[0..1] I_WBSElementBasicData iWBS $projection.WBSElementInternalID = iWBS.WBSElementInternalID

Annotations (11)

NameValueLevelField
AbapCatalog.sqlViewName PSIITMACCTASSGMT view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #PRIVILEGED_ONLY view
EndUserText.label Supplier Invoice Item Account Assignment view
ClientHandling.algorithm #SESSION_VARIABLE view
VDM.viewType #CONSUMPTION view
VDM.private true view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #TRANSACTIONAL view

Fields (13)

KeyFieldSource TableSource FieldDescription
KEY SupplierInvoice SupplierInvoice SD Document
KEY FiscalYear FiscalYear G/L Fiscal Year
KEY SupplierInvoiceItem SupplierInvoiceItem Posting View Item
KEY OrdinalNumber OrdinalNumber Sequence Number
Quantity Quantity Value
SupplierInvoiceItemAmount SupplierInvoiceItemAmount Amount
CostCenter CostCenter Cost Center
ControllingArea ControllingArea Controlling Area
SalesOrder SalesOrder SD Document
SalesOrderItem SalesOrderItem Sales Order Item
WBSElementInternalID WBSElementInternalID WBS Internal ID
WBSElementInternalID_2 WBS Internal ID
WBSElementExternalID iWBS WBSElementExternalID WBS Element External ID

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_SuplrInvcItmAcctAssgmt.
-- 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: PSIITMACCTASSGMT

CREATE VIEW P_SuplrInvcItmAcctAssgmt AS
SELECT
  SupplierInvoice,
  FiscalYear,
  SupplierInvoiceItem,
  OrdinalNumber,
  Quantity,
  SupplierInvoiceItemAmount,
  CostCenter,
  ControllingArea,
  SalesOrder,
  SalesOrderItem,
  WBSElementInternalID,
  cast( WBSElementInternalID as ps_s4_pspnr ) AS WBSElementInternalID_2,
  iWBS.WBSElementExternalID AS WBSElementExternalID
FROM I_SupplierInvoiceItmAcctAssgmt
LEFT OUTER JOIN I_WBSElementBasicData AS iWBS ON WBSElementInternalID = iWBS.WBSElementInternalID  -- association [0..1]
;