C_SuplrInvcByAcctAssgmt

DDL: C_SUPLRINVCBYACCTASSGMT SQL: CSUPINVACCTASS Type: view CONSUMPTION

Supplier Invoices By Account Assignment View

C_SuplrInvcByAcctAssgmt is a Consumption CDS View that provides data about "Supplier Invoices By Account Assignment View" in SAP S/4HANA. It reads from 1 data source (C_SuplrInvcByAcctAssgmtCalc) and exposes 93 fields with key fields SupplierInvoice, FiscalYear, SupplierInvoiceItem, SupplierInvoiceWthnFiscalYear, OrdinalNumber. It has 23 associations to related views.

Data Sources (1)

SourceAliasJoin Type
C_SuplrInvcByAcctAssgmtCalc C_SuplrInvcByAcctAssgmtCalc from

Associations (23)

CardinalityTargetAliasCondition
[0..*] I_MM_WBSElementValueHelp _WBSElementValueHelp _WBSElementValueHelp.WBSElementExternalID = $projection.WBSElementExternalID
[0..1] C_SuplrInvcAccountTypeText _SuplrInvcAccountTypeText _SuplrInvcAccountTypeText.AccountType = $projection.AccountType
[0..1] C_MM_CompanyCodeValueHelp _CompanyCodeValueHelp _CompanyCodeValueHelp.CompanyCode = $projection.CompanyCode
[0..1] I_MM_CostCenterValueHelp _CostCenterValueHelp _CostCenterValueHelp.CostCenter = $projection.CostCenter and _CostCenterValueHelp.ControllingArea = $projection.ControllingArea and _CostCenterValueHelp.ValidityEndDate >= $projection.ValidityDate
[0..1] C_MM_SalesOrderItemValueHelp _SalesOrderItemValueHelp _SalesOrderItemValueHelp.SalesOrderItem = $projection.SalesOrderItem and _SalesOrderItemValueHelp.SalesOrder = $projection.SalesOrder
[0..1] C_MM_SupplierValueHelp _SupplierValueHelp _SupplierValueHelp.Supplier = $projection.InvoicingParty and _SupplierValueHelp.CompanyCode = $projection.CompanyCode
[0..1] I_MM_GLAccountVH _GLAccountVH _GLAccountVH.CompanyCode = $projection.CompanyCode and _GLAccountVH.GLAccount = $projection.GLAccount
[0..1] C_SupplierInvoiceStatusValHelp _SupplierInvoiceStatusValHelp _SupplierInvoiceStatusValHelp.SupplierInvoiceStatus = $projection.InvoiceStatusAndOrigin
[0..1] I_SupplierInvoiceStsOriginText _SupplierInvoiceStsOriginText _SupplierInvoiceStsOriginText.InvoiceStatusAndOrigin = $projection.InvoiceStatusAndOrigin and _SupplierInvoiceStsOriginText.Language = $session.system_language
[0..1] I_MM_SalesOrderValueHelp _SalesOrderValueHelp _SalesOrderValueHelp.SalesOrder = $projection.SalesOrder
[0..1] I_BusinessAreaStdVH _BusinessAreaStdVH _BusinessAreaStdVH.BusinessArea = $projection.BusinessArea
[0..1] I_MM_ProfitCenterValueHelp _ProfitCenterValueHelp _ProfitCenterValueHelp.ControllingArea = $projection.ControllingArea and _ProfitCenterValueHelp.ProfitCenter = $projection.ProfitCenter and _ProfitCenterValueHelp.ValidityEndDate >= $projection.ValidityDate
[0..1] I_FndsMgmtFuncnlAreaStdVH _FndsMgmtFuncnlAreaStdVH _FndsMgmtFuncnlAreaStdVH.FunctionalArea = $projection.FunctionalArea
[0..1] I_MM_ProjectNetworkVH _ProjectNetworkVH _ProjectNetworkVH.ProjectNetwork = $projection.ProjectNetwork
[0..*] I_FundsCenterStdVH _FundsCenterStdVH _FundsCenterStdVH.FundsCenter = $projection.FundsCenter and _FundsCenterStdVH.ValidityEndDate >= $projection.ValidityDate and _FundsCenterStdVH.FinancialManagementArea = $projection.FinancialManagementArea
[0..1] I_FundStdVH _FundStdVH _FundStdVH.Fund = $projection.Fund and _FundStdVH.FinancialManagementArea = $projection.FinancialManagementArea
[0..1] I_GrantStdVH _GrantStdVH _GrantStdVH.GrantID = $projection.GrantID
[0..1] C_ControllingAreaVH _ControllingAreaVH _ControllingAreaVH.ControllingArea = $projection.ControllingArea
[0..*] C_SuplrInvcTaxCodeVH _SuplrInvcTaxCodeVH _SuplrInvcTaxCodeVH.TaxCode = $projection.TaxCode and _SuplrInvcTaxCodeVH.CompanyCode = $projection.CompanyCode and _SuplrInvcTaxCodeVH.Language = $session.system_language
[0..1] I_MM_NetworkActivityVH _NetworkActivityVH _NetworkActivityVH.ProjectNetwork = $projection.ProjectNetwork and _NetworkActivityVH.NetworkActivity = $projection.NetworkActivity
[0..1] I_OrderBasicVH _InternalOrderVH _InternalOrderVH.OrderID = $projection.InternalOrder
[0..1] C_SuplrInvcPersonalNumberVH _SuplrInvcPersonalNumberVH _SuplrInvcPersonalNumberVH.PersonnelNumber = $projection.PersonnelNumber
[0..1] C_SuplrInvcDebitCreditCodeVH _SuplrInvcDebitCreditCodeVH _SuplrInvcDebitCreditCodeVH.DebitCreditCode = $projection.DebitCreditCode

Annotations (15)

NameValueLevelField
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AbapCatalog.sqlViewName CSUPINVACCTASS view
AccessControl.authorizationCheck #MANDATORY view
AccessControl.personalData.blocking #REQUIRED view
ClientHandling.algorithm #SESSION_VARIABLE view
EndUserText.label Supplier Invoices By Account Assignment View view
ObjectModel.compositionRoot true view
ObjectModel.semanticKey SupplierInvoiceWthnFiscalYear view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.usageType.serviceQuality #B view
ObjectModel.usageType.sizeCategory #XL view
Search.searchable true view
VDM.lifecycle.contract.type #NONE view
VDM.viewType #CONSUMPTION view

Fields (93)

KeyFieldSource TableSource FieldDescription
KEY SupplierInvoice SupplierInvoice
KEY FiscalYear FiscalYear G/L Fiscal Year
KEY SupplierInvoiceItem SupplierInvoiceItem
KEY SupplierInvoiceWthnFiscalYear SupplierInvoiceWthnFiscalYear
KEY OrdinalNumber OrdinalNumber Sequence Number
KEY AccountType AccountType Account Type
ValidityDate ValidityDate Valid On
InvoicingParty InvoicingParty Supplier
InvoicingPartyName InvoicingPartyName
CostCenter CostCenter Cost Center
ControllingArea ControllingArea Controlling Area
ControllingAreaName _ControllingAreaVH ControllingAreaName Long Text
CompanyCode CompanyCode Receiver Company Code
CompanyCodeName _CompanyCodeValueHelp CompanyCodeName Company Name
BusinessArea BusinessArea Business Area
BusinessAreaName
ProfitCenter ProfitCenter Profit Center
ProfitCenterName
FunctionalArea FunctionalArea Sendr Fctl Area
FunctionalAreaName _FndsMgmtFuncnlAreaStdVH FunctionalAreaName Long Text
GLAccount GLAccount General Ledger
GLAccountName
SalesOrder SalesOrder SD Document
SalesOrderItem SalesOrderItem Sales Order Item
SalesOrderItemText _SalesOrderItemValueHelp SalesOrderItemText
ProjectNetworkInternalID ProjectNetworkInternalID Plan No.f.Oper.
NetworkActivityInternalID NetworkActivityInternalID Counter
CostObject CostObject Cost Object
CostCtrActivityType CostCtrActivityType Activity Type
BusinessProcess BusinessProcess Business Process
WBSElementInternalID WBSElementInternalID WBS Internal ID
WBSDescription _WBSElementBasicData WBSDescription WBS Element Name
WBSElementExternalID _WBSElementBasicData WBSElement WBS Internal ID
DocumentCurrency DocumentCurrency Document Currency
SupplierInvoiceItemAmount SupplierInvoiceItemAmount Amount
Quantity Quantity Value
QuantityUnit QuantityUnit Unit of measure
TaxCode TaxCode Tax Code
UserDescription _SuplrInvcPersonalNumberVH UserDescription Full Name
PersonnelNumber PersonnelNumber Personnel No.
WorkItem WorkItem Work Item ID
DebitCreditCode DebitCreditCode Debit/Credit Indicator
DebitCreditCodeName _SuplrInvcDebitCreditCodeVH DebitCreditCodeName
TaxJurisdiction TaxJurisdiction Tax Jurisdiction
InternalOrder InternalOrder Order
InternalOrderDescription _InternalOrderVH OrderDescription
ProjectNetwork ProjectNetwork Order
ProjectNetworkDescription _ProjectNetworkVH ProjectNetworkDescription Network Name
NetworkActivity NetworkActivity Operation/Activity
NetworkActivityDescription _NetworkActivityVH NetworkActivityDescription
CommitmentItem CommitmentItem Commitment item
TopCommitmentItem TopCommitmentItem Commitment item
FundsCenterName _FundsCenterStdVH FundsCenterName
FundsCenter FundsCenter Funds Center
Fund Fund Sender Fund
FundDescription _FundStdVH FundDescription
FinancialManagementArea FinancialManagementArea FM Area
GrantID GrantID Sender Grant
GrantName _GrantStdVH GrantName
PartnerBusinessArea PartnerBusinessArea Trading Partner Business Area
InvoiceStatusAndOrigin
PostingDate PostingDate Posting Date for GR
_WBSElementValueHelp _WBSElementValueHelp
_WBSElementBasicData _WBSElementBasicData
_SuplrInvcAccountTypeText _SuplrInvcAccountTypeText
_CompanyCodeValueHelp _CompanyCodeValueHelp
_CostCenterValueHelp _CostCenterValueHelp
_SalesOrderItemValueHelp _SalesOrderItemValueHelp
_BusinessArea _BusinessArea
_ProfitCenter _ProfitCenter
_FunctionalArea _FunctionalArea
_GLAccountVH _GLAccountVH
_CostCenterText _CostCenterText
_Currency _Currency
_SupplierValueHelp _SupplierValueHelp
_SupplierInvoice _SupplierInvoice
_SupplierInvoiceItemPurOrdRef _SupplierInvoiceItemPurOrdRef
_SupplierInvoiceStatusValHelp _SupplierInvoiceStatusValHelp
_SupplierInvoiceStsOriginText _SupplierInvoiceStsOriginText
_SalesOrderValueHelp _SalesOrderValueHelp
_BusinessAreaStdVH _BusinessAreaStdVH
_ProfitCenterValueHelp _ProfitCenterValueHelp
_FndsMgmtFuncnlAreaStdVH _FndsMgmtFuncnlAreaStdVH
_ProjectNetworkVH _ProjectNetworkVH
_FundsCenterStdVH _FundsCenterStdVH
_FundStdVH _FundStdVH
_GrantStdVH _GrantStdVH
_ControllingAreaVH _ControllingAreaVH
_SuplrInvcTaxCodeVH _SuplrInvcTaxCodeVH
_NetworkActivityVH _NetworkActivityVH
_InternalOrderVH _InternalOrderVH
_SuplrInvcPersonalNumberVH _SuplrInvcPersonalNumberVH
_SuplrInvcDebitCreditCodeVH _SuplrInvcDebitCreditCodeVH

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 C_SuplrInvcByAcctAssgmt.
-- 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: CSUPINVACCTASS

CREATE VIEW C_SuplrInvcByAcctAssgmt AS
SELECT
  SupplierInvoice,
  FiscalYear,
  SupplierInvoiceItem,
  SupplierInvoiceWthnFiscalYear,
  OrdinalNumber,
  AccountType,
  ValidityDate,
  InvoicingParty,
  InvoicingPartyName,
  CostCenter,
  ControllingArea,
  _ControllingAreaVH.ControllingAreaName AS ControllingAreaName,
  CompanyCode,
  _CompanyCodeValueHelp.CompanyCodeName AS CompanyCodeName,
  BusinessArea,
  _BusinessAreaStdVH._Text[1: Language = $session.system_language].BusinessAreaName AS BusinessAreaName,
  ProfitCenter,
  _ProfitCenterValueHelp._Text[1: Language = $session.system_language].ProfitCenterLongName AS ProfitCenterName,
  FunctionalArea,
  _FndsMgmtFuncnlAreaStdVH.FunctionalAreaName AS FunctionalAreaName,
  GLAccount,
  _GLAccountVH._Text[1: Language = $session.system_language].GLAccountName AS GLAccountName,
  SalesOrder,
  SalesOrderItem,
  _SalesOrderItemValueHelp.SalesOrderItemText AS SalesOrderItemText,
  ProjectNetworkInternalID,
  NetworkActivityInternalID,
  CostObject,
  CostCtrActivityType,
  BusinessProcess,
  WBSElementInternalID,
  _WBSElementBasicData.WBSDescription AS WBSDescription,
  _WBSElementBasicData.WBSElement AS WBSElementExternalID,
  DocumentCurrency,
  SupplierInvoiceItemAmount,
  Quantity,
  QuantityUnit,
  TaxCode,
  _SuplrInvcPersonalNumberVH.UserDescription AS UserDescription,
  PersonnelNumber,
  WorkItem,
  DebitCreditCode,
  _SuplrInvcDebitCreditCodeVH.DebitCreditCodeName AS DebitCreditCodeName,
  TaxJurisdiction,
  InternalOrder,
  _InternalOrderVH.OrderDescription AS InternalOrderDescription,
  ProjectNetwork,
  _ProjectNetworkVH.ProjectNetworkDescription AS ProjectNetworkDescription,
  NetworkActivity,
  _NetworkActivityVH.NetworkActivityDescription AS NetworkActivityDescription,
  CommitmentItem,
  TopCommitmentItem,
  _FundsCenterStdVH.FundsCenterName AS FundsCenterName,
  FundsCenter,
  Fund,
  _FundStdVH.FundDescription AS FundDescription,
  FinancialManagementArea,
  GrantID,
  _GrantStdVH.GrantName AS GrantName,
  PartnerBusinessArea,
  cast(InvoiceStatusAndOrigin as mmiv_invoice_state preserving type) AS InvoiceStatusAndOrigin,
  PostingDate
FROM C_SuplrInvcByAcctAssgmtCalc
LEFT OUTER JOIN I_MM_WBSElementValueHelp AS _WBSElementValueHelp ON _WBSElementValueHelp.WBSElementExternalID = WBSElementExternalID  -- association [0..*]
LEFT OUTER JOIN C_SuplrInvcAccountTypeText AS _SuplrInvcAccountTypeText ON _SuplrInvcAccountTypeText.AccountType = AccountType  -- association [0..1]
LEFT OUTER JOIN C_MM_CompanyCodeValueHelp AS _CompanyCodeValueHelp ON _CompanyCodeValueHelp.CompanyCode = CompanyCode  -- association [0..1]
LEFT OUTER JOIN I_MM_CostCenterValueHelp AS _CostCenterValueHelp ON _CostCenterValueHelp.CostCenter = CostCenter AND _CostCenterValueHelp.ControllingArea = ControllingArea AND _CostCenterValueHelp.ValidityEndDate >= ValidityDate  -- association [0..1]
LEFT OUTER JOIN C_MM_SalesOrderItemValueHelp AS _SalesOrderItemValueHelp ON _SalesOrderItemValueHelp.SalesOrderItem = SalesOrderItem AND _SalesOrderItemValueHelp.SalesOrder = SalesOrder  -- association [0..1]
LEFT OUTER JOIN C_MM_SupplierValueHelp AS _SupplierValueHelp ON _SupplierValueHelp.Supplier = InvoicingParty AND _SupplierValueHelp.CompanyCode = CompanyCode  -- association [0..1]
LEFT OUTER JOIN I_MM_GLAccountVH AS _GLAccountVH ON _GLAccountVH.CompanyCode = CompanyCode AND _GLAccountVH.GLAccount = GLAccount  -- association [0..1]
LEFT OUTER JOIN C_SupplierInvoiceStatusValHelp AS _SupplierInvoiceStatusValHelp ON _SupplierInvoiceStatusValHelp.SupplierInvoiceStatus = InvoiceStatusAndOrigin  -- association [0..1]
LEFT OUTER JOIN I_SupplierInvoiceStsOriginText AS _SupplierInvoiceStsOriginText ON _SupplierInvoiceStsOriginText.InvoiceStatusAndOrigin = InvoiceStatusAndOrigin AND _SupplierInvoiceStsOriginText.Language = $session.system_language  -- association [0..1]
LEFT OUTER JOIN I_MM_SalesOrderValueHelp AS _SalesOrderValueHelp ON _SalesOrderValueHelp.SalesOrder = SalesOrder  -- association [0..1]
LEFT OUTER JOIN I_BusinessAreaStdVH AS _BusinessAreaStdVH ON _BusinessAreaStdVH.BusinessArea = BusinessArea  -- association [0..1]
LEFT OUTER JOIN I_MM_ProfitCenterValueHelp AS _ProfitCenterValueHelp ON _ProfitCenterValueHelp.ControllingArea = ControllingArea AND _ProfitCenterValueHelp.ProfitCenter = ProfitCenter AND _ProfitCenterValueHelp.ValidityEndDate >= ValidityDate  -- association [0..1]
LEFT OUTER JOIN I_FndsMgmtFuncnlAreaStdVH AS _FndsMgmtFuncnlAreaStdVH ON _FndsMgmtFuncnlAreaStdVH.FunctionalArea = FunctionalArea  -- association [0..1]
LEFT OUTER JOIN I_MM_ProjectNetworkVH AS _ProjectNetworkVH ON _ProjectNetworkVH.ProjectNetwork = ProjectNetwork  -- association [0..1]
LEFT OUTER JOIN I_FundsCenterStdVH AS _FundsCenterStdVH ON _FundsCenterStdVH.FundsCenter = FundsCenter AND _FundsCenterStdVH.ValidityEndDate >= ValidityDate AND _FundsCenterStdVH.FinancialManagementArea = FinancialManagementArea  -- association [0..*]
LEFT OUTER JOIN I_FundStdVH AS _FundStdVH ON _FundStdVH.Fund = Fund AND _FundStdVH.FinancialManagementArea = FinancialManagementArea  -- association [0..1]
LEFT OUTER JOIN I_GrantStdVH AS _GrantStdVH ON _GrantStdVH.GrantID = GrantID  -- association [0..1]
LEFT OUTER JOIN C_ControllingAreaVH AS _ControllingAreaVH ON _ControllingAreaVH.ControllingArea = ControllingArea  -- association [0..1]
LEFT OUTER JOIN C_SuplrInvcTaxCodeVH AS _SuplrInvcTaxCodeVH ON _SuplrInvcTaxCodeVH.TaxCode = TaxCode AND _SuplrInvcTaxCodeVH.CompanyCode = CompanyCode AND _SuplrInvcTaxCodeVH.Language = $session.system_language  -- association [0..*]
LEFT OUTER JOIN I_MM_NetworkActivityVH AS _NetworkActivityVH ON _NetworkActivityVH.ProjectNetwork = ProjectNetwork AND _NetworkActivityVH.NetworkActivity = NetworkActivity  -- association [0..1]
LEFT OUTER JOIN I_OrderBasicVH AS _InternalOrderVH ON _InternalOrderVH.OrderID = InternalOrder  -- association [0..1]
LEFT OUTER JOIN C_SuplrInvcPersonalNumberVH AS _SuplrInvcPersonalNumberVH ON _SuplrInvcPersonalNumberVH.PersonnelNumber = PersonnelNumber  -- association [0..1]
LEFT OUTER JOIN C_SuplrInvcDebitCreditCodeVH AS _SuplrInvcDebitCreditCodeVH ON _SuplrInvcDebitCreditCodeVH.DebitCreditCode = DebitCreditCode  -- association [0..1]
;