C_ImportSupplierInvoice

DDL: C_IMPORTSUPPLIERINVOICE SQL: CAPISINVOICE Type: view CONSUMPTION

Import Supplier Invoice List

C_ImportSupplierInvoice is a Consumption CDS View that provides data about "Import Supplier Invoice List" in SAP S/4HANA. It reads from 1 data source (I_ImportSupplierInvoice) and exposes 49 fields with key field SupplierInvoiceUploadUUID. It has 5 associations to related views.

Data Sources (1)

SourceAliasJoin Type
I_ImportSupplierInvoice I_ImportSupplierInvoice from

Associations (5)

CardinalityTargetAliasCondition
[1..1] I_Supplier _Supplier $projection.InvoicingParty = _Supplier.Supplier
[1..1] I_CompanyCode _CompanyCode $projection.CompanyCode = _CompanyCode.CompanyCode
[0..1] I_SupplierCompany _SupplierCompany $projection.InvoicingParty = _SupplierCompany.Supplier and $projection.CompanyCode = _SupplierCompany.CompanyCode
[0..1] I_SupplierInvoiceStatus _SupplierInvoiceStatus $projection.SupplierInvoiceStatus = _SupplierInvoiceStatus.SupplierInvoiceStatus
[0..1] I_Currency _Currency $projection.DocumentCurrency = _Currency.Currency

Annotations (10)

NameValueLevelField
AbapCatalog.sqlViewName CAPISINVOICE view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #CHECK view
AccessControl.personalData.blocking #REQUIRED view
VDM.viewType #CONSUMPTION view
EndUserText.label Import Supplier Invoice List view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #TRANSACTIONAL view

Fields (49)

KeyFieldSource TableSource FieldDescription
KEY SupplierInvoiceUploadUUID SupplierInvoiceUploadUUID
RootDraftKey RootDraftKey NodeID
CreationDate CreationDate Time Stamp
SupplierInvoiceUploadStatus SupplierInvoiceUploadStatus
SupplierInvoice SupplierInvoice
FiscalYear FiscalYear G/L Fiscal Year
InvoicingParty InvoicingParty Supplier
DocumentDate DocumentDate Journal Entry Date
PostingDate PostingDate Posting Date for GR
DocumentCurrency DocumentCurrency Document Currency
SupplierInvoiceOrigin SupplierInvoiceOrigin IV category
CreatedByUser CreatedByUser User Name
SupplierInvoiceIDByInvcgParty SupplierInvoiceIDByInvcgParty Reference
CompanyCode CompanyCode Receiver Company Code
DueCalculationBaseDate DueCalculationBaseDate Due Calculation Base Date
CashDiscount1Days CashDiscount1Days Days from Baseline Date for Payment
CashDiscount1Percent CashDiscount1Percent Disc. Percent 1
DocumentHeaderText DocumentHeaderText Doc.Header Text
InvoiceGrossAmount InvoiceGrossAmount Gross Invoice Amount
SupplierInvoiceStatus SupplierInvoiceStatus Inv. status
PaymentBlockingReason PaymentBlockingReason Pmnt block
ManualCashDiscount ManualCashDiscount CD Amount
PaymentMethod PaymentMethod Pymt Meth.
PaymentReference PaymentReference Payment Reference
InvoiceReference InvoiceReference Invoice Reference
InvoiceReferenceFiscalYear InvoiceReferenceFiscalYear Invoice Reference Fiscal Year
PaymentTerms PaymentTerms Pyt Terms
CashDiscount2Days CashDiscount2Days Days from Baseline Date for Payment
CashDiscount2Percent CashDiscount2Percent Disc. Percent 2
NetPaymentDays NetPaymentDays Net Pmt Terms Period
FixedCashDiscount FixedCashDiscount Fixed Cash Discount
UnplannedDeliveryCost UnplannedDeliveryCost Unpl. Delivery Costs
UnplannedDeliveryCostTaxCode UnplannedDeliveryCostTaxCode
UnplndDelivCostTaxJurisdiction UnplndDelivCostTaxJurisdiction
AssignmentReference AssignmentReference Assignment Reference
SupplierPostingLineItemText SupplierPostingLineItemText Text
PaytSlipWthRefSubscriber PaytSlipWthRefSubscriber PBC/POR Number
PaytSlipWthRefCheckDigit PaytSlipWthRefCheckDigit ISR Check Digit
BusinessPlace BusinessPlace Business place
PaytSlipWthRefReference PaytSlipWthRefReference QR Reference
BusinessNetworkOrigin BusinessNetworkOrigin
AccountingDocumentType AccountingDocumentType Journal Entry Type
IsDoubleInvoice _SupplierCompany IsDoubleInvoice Chk Double Inv.
InvoiceStatusAndOrigin InvoiceStatusAndOrigin
IsEndOfPurposeBlocked IsEndOfPurposeBlocked Busin. Purp. Cmpltd.
CompanyCodeName _CompanyCode CompanyCodeName Company Name
InvoicingPartyName _Supplier SupplierName Supplier Name
SupplierInvoiceStatusDesc
_Currency _Currency

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_ImportSupplierInvoice.
-- 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: CAPISINVOICE

CREATE VIEW C_ImportSupplierInvoice AS
SELECT
  SupplierInvoiceUploadUUID,
  RootDraftKey,
  CreationDate,
  SupplierInvoiceUploadStatus,
  SupplierInvoice,
  FiscalYear,
  InvoicingParty,
  DocumentDate,
  PostingDate,
  DocumentCurrency,
  SupplierInvoiceOrigin,
  CreatedByUser,
  SupplierInvoiceIDByInvcgParty,
  CompanyCode,
  DueCalculationBaseDate,
  CashDiscount1Days,
  CashDiscount1Percent,
  DocumentHeaderText,
  InvoiceGrossAmount,
  SupplierInvoiceStatus,
  PaymentBlockingReason,
  ManualCashDiscount,
  PaymentMethod,
  PaymentReference,
  InvoiceReference,
  InvoiceReferenceFiscalYear,
  PaymentTerms,
  CashDiscount2Days,
  CashDiscount2Percent,
  NetPaymentDays,
  FixedCashDiscount,
  UnplannedDeliveryCost,
  UnplannedDeliveryCostTaxCode,
  UnplndDelivCostTaxJurisdiction,
  AssignmentReference,
  SupplierPostingLineItemText,
  PaytSlipWthRefSubscriber,
  PaytSlipWthRefCheckDigit,
  BusinessPlace,
  PaytSlipWthRefReference,
  BusinessNetworkOrigin,
  AccountingDocumentType,
  _SupplierCompany.IsDoubleInvoice AS IsDoubleInvoice,
  InvoiceStatusAndOrigin,
  IsEndOfPurposeBlocked,
  _CompanyCode.CompanyCodeName AS CompanyCodeName,
  _Supplier.SupplierName AS InvoicingPartyName,
  _SupplierInvoiceStatus._Text[1: Language = $session.system_language].SupplierInvoiceStatusDesc AS SupplierInvoiceStatusDesc
FROM I_ImportSupplierInvoice
LEFT OUTER JOIN I_Supplier AS _Supplier ON InvoicingParty = _Supplier.Supplier  -- association [1..1]
LEFT OUTER JOIN I_CompanyCode AS _CompanyCode ON CompanyCode = _CompanyCode.CompanyCode  -- association [1..1]
LEFT OUTER JOIN I_SupplierCompany AS _SupplierCompany ON InvoicingParty = _SupplierCompany.Supplier AND CompanyCode = _SupplierCompany.CompanyCode  -- association [0..1]
LEFT OUTER JOIN I_SupplierInvoiceStatus AS _SupplierInvoiceStatus ON SupplierInvoiceStatus = _SupplierInvoiceStatus.SupplierInvoiceStatus  -- association [0..1]
LEFT OUTER JOIN I_Currency AS _Currency ON DocumentCurrency = _Currency.Currency  -- association [0..1]
;