A_SupplierInvoice
Header Data
A_SupplierInvoice is a Consumption CDS View that provides data about "Header Data" in SAP S/4HANA. It reads from 1 data source (I_SupplierInvoice) and exposes 96 fields with key fields SupplierInvoice, FiscalYear. It has 13 associations to related views. Part of development package ODATA_MM_IV_SI_API.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_SupplierInvoice | I_SupplierInvoice | from |
Associations (13)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..*] | A_SupplierInvoiceTax | _SupplierInvoiceTax | $projection.SupplierInvoice = _SupplierInvoiceTax.SupplierInvoice and $projection.FiscalYear = _SupplierInvoiceTax.FiscalYear |
| [0..*] | A_SuplrInvcHeaderWhldgTax | _SupplierInvoiceWhldgTax | $projection.SupplierInvoice = _SupplierInvoiceWhldgTax.SupplierInvoice and $projection.FiscalYear = _SupplierInvoiceWhldgTax.FiscalYear |
| [0..*] | A_SupplierInvoiceItemGLAcct | _SupplierInvoiceItemGLAcct | $projection.SupplierInvoice = _SupplierInvoiceItemGLAcct.SupplierInvoice and $projection.FiscalYear = _SupplierInvoiceItemGLAcct.FiscalYear |
| [0..*] | A_SuplrInvcItemPurOrdRef | _SuplrInvcItemPurOrdRef | $projection.SupplierInvoice = _SuplrInvcItemPurOrdRef.SupplierInvoice and $projection.FiscalYear = _SuplrInvcItemPurOrdRef.FiscalYear |
| [0..*] | A_SupplierInvoiceItemMaterial | _SuplrInvcItemMaterial | $projection.SupplierInvoice = _SuplrInvcItemMaterial.SupplierInvoice and $projection.FiscalYear = _SuplrInvcItemMaterial.FiscalYear |
| [0..*] | A_SupplierInvoiceItemAsset | _SuplrInvcItemAsset | $projection.SupplierInvoice = _SuplrInvcItemAsset.SupplierInvoice and $projection.FiscalYear = _SuplrInvcItemAsset.FiscalYear |
| [0..*] | A_SuplrInvcSeldPurgDocument | _SelectedPurchaseOrders | $projection.SupplierInvoice = _SelectedPurchaseOrders.SupplierInvoice and $projection.FiscalYear = _SelectedPurchaseOrders.FiscalYear |
| [0..*] | A_SuplrInvcSeldInbDeliveryNote | _SelectedDeliveryNotes | $projection.SupplierInvoice = _SelectedDeliveryNotes.SupplierInvoice and $projection.FiscalYear = _SelectedDeliveryNotes.FiscalYear |
| [0..*] | A_SuplrInvcSeldSrvcEntrShtLean | _SelectedServiceEntrySheets | $projection.SupplierInvoice = _SelectedServiceEntrySheets.SupplierInvoice and $projection.FiscalYear = _SelectedServiceEntrySheets.FiscalYear |
| [1..1] | A_SuplrInvoiceAdditionalData | _SuplrInvoiceAdditionalData | $projection.SupplierInvoice = _SuplrInvoiceAdditionalData.SupplierInvoice and $projection.FiscalYear = _SuplrInvoiceAdditionalData.FiscalYear |
| [1..*] | A_SupplierInvoiceODN | _SupplierInvoiceODN | $projection.SupplierInvoice = _SupplierInvoiceODN.SupplierInvoice and $projection.FiscalYear = _SupplierInvoiceODN.FiscalYear |
| [0..1] | A_BR_SupplierInvoiceNFDocument | _BR_SupplierInvoiceNFDocument | $projection.SupplierInvoice = _BR_SupplierInvoiceNFDocument.SupplierInvoice and $projection.FiscalYear = _BR_SupplierInvoiceNFDocument.FiscalYear |
| [0..1] | E_SupplierInvoice | _HeaderExtension | $projection.SupplierInvoice = _HeaderExtension.SupplierInvoice and $projection.FiscalYear = _HeaderExtension.FiscalYear |
Annotations (17)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | ASUPPLIERINVOICE | view | |
| VDM.viewType | #CONSUMPTION | view | |
| VDM.lifecycle.contract.type | #PUBLIC_REMOTE_API | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.authorizationCheck | #MANDATORY | view | |
| AccessControl.personalData.blocking | #REQUIRED | view | |
| EndUserText.label | Header Data | view | |
| ObjectModel.usageType.serviceQuality | #B | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| ObjectModel.compositionRoot | true | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| ObjectModel.createEnabled | true | view | |
| ObjectModel.updateEnabled | false | view | |
| ObjectModel.deleteEnabled | true | view |
Fields (96)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | SupplierInvoice | SupplierInvoice | SD Document | |
| KEY | FiscalYear | FiscalYear | G/L Fiscal Year | |
| CompanyCode | CompanyCode | Receiver Company Code | ||
| DocumentDate | DocumentDate | Journal Entry Date | ||
| PostingDate | PostingDate | Posting Date for GR | ||
| CreationDate | CreationDate | Time Stamp | ||
| SuplrInvcLstChgDteTmeTxt | Timestamp | |||
| SupplierInvoiceIDByInvcgParty | SupplierInvoiceIDByInvcgParty | Reference | ||
| InvoicingParty | InvoicingParty | Supplier | ||
| DocumentCurrency | DocumentCurrency | Document Currency | ||
| InvoiceGrossAmount | InvoiceGrossAmount | Gross Invoice Amount | ||
| UnplannedDeliveryCost | UnplannedDeliveryCost | Unpl. Delivery Costs | ||
| DocumentHeaderText | DocumentHeaderText | Doc.Header Text | ||
| ReconciliationAccount | ReconciliationAccount | Recon. account | ||
| ManualCashDiscount | ManualCashDiscount | CD Amount | ||
| PaymentTerms | PaymentTerms | Pyt Terms | ||
| DueCalculationBaseDate | DueCalculationBaseDate | Due Calculation Base Date | ||
| CashDiscount1Percent | CashDiscount1Percent | Disc. Percent 1 | ||
| CashDiscount1Days | CashDiscount1Days | Days from Baseline Date for Payment | ||
| CashDiscount2Percent | CashDiscount2Percent | Disc. Percent 2 | ||
| CashDiscount2Days | CashDiscount2Days | Days from Baseline Date for Payment | ||
| NetPaymentDays | NetPaymentDays | Net Pmt Terms Period | ||
| PaymentBlockingReason | PaymentBlockingReason | Pmnt block | ||
| AccountingDocumentType | AccountingDocumentType | Journal Entry Type | ||
| BPBankAccountInternalID | BPBankAccountInternalID | BP Bank Account | ||
| SupplierInvoiceStatus | SupplierInvoiceStatus | Inv. status | ||
| StateCentralBankPaymentReason | StateCentralBankPaymentReason | SCB Ind. | ||
| SupplyingCountry | SupplyingCountry | Supplying Ctry/Reg. | ||
| PaymentMethod | PaymentMethod | Pymt Meth. | ||
| PaymentMethodSupplement | PaymentMethodSupplement | Pmnt Meth. Sup. | ||
| PaymentReference | PaymentReference | Payment Reference | ||
| InvoiceReference | InvoiceReference | Invoice Reference | ||
| InvoiceReferenceFiscalYear | InvoiceReferenceFiscalYear | Invoice Reference Fiscal Year | ||
| FixedCashDiscount | FixedCashDiscount | Fixed Cash Discount | ||
| UnplannedDeliveryCostTaxCode | UnplannedDeliveryCostTaxCode | Tax Code | ||
| UnplndDelivCostTaxJurisdiction | UnplndDelivCostTaxJurisdiction | Tax Jur. | ||
| UnplndDeliveryCostTaxCountry | UnplndDeliveryCostTaxCountry | Tax Ctry/Reg. | ||
| AssignmentReference | AssignmentReference | Assignment Reference | ||
| SupplierPostingLineItemText | SupplierPostingLineItemText | Text | ||
| TaxIsCalculatedAutomatically | TaxIsCalculatedAutomatically | Tax Is Automatically Calculated | ||
| BusinessPlace | BusinessPlace | Business place | ||
| BusinessSectionCode | BusinessSectionCode | Section Code | ||
| BusinessArea | BusinessArea | Business Area | ||
| SuplrInvcIsCapitalGoodsRelated | SuplrInvcIsCapitalGoodsRelated | Invest.ID | ||
| PaytSlipWthRefSubscriber | PaytSlipWthRefSubscriber | PBC/POR Number | ||
| PaytSlipWthRefCheckDigit | PaytSlipWthRefCheckDigit | ISR Check Digit | ||
| PaytSlipWthRefReference | PaytSlipWthRefReference | QR Reference | ||
| TaxDeterminationDate | TaxDeterminationDate | Tx Determination Dte | ||
| TaxReportingDate | TaxReportingDate | Tax Reporting Date | ||
| TaxFulfillmentDate | TaxFulfillmentDate | Tax Settlement Date | ||
| InvoiceReceiptDate | InvoiceReceiptDate | Invoice Receipt Date | ||
| DeliveryOfGoodsReportingCntry | DeliveryOfGoodsReportingCntry | Reporting Ctry/Reg. | ||
| SupplierVATRegistration | SupplierVATRegistration | VAT Registration No. | ||
| IsEUTriangularDeal | IsEUTriangularDeal | Is EU Triangular Deal | ||
| SuplrInvcDebitCrdtCodeDelivery | SuplrInvcDebitCrdtCodeDelivery | |||
| SuplrInvcDebitCrdtCodeReturns | SuplrInvcDebitCrdtCodeReturns | |||
| RetentionDueDate | RetentionDueDate | Due Date | ||
| PaymentReason | PaymentReason | Payment Reason | ||
| HouseBank | HouseBank | House Bank | ||
| HouseBankAccount | HouseBankAccount | House Bank Account | ||
| AlternativePayeePayer | AlternativePayeePayer | Alternative Payee/Payer | ||
| IsEndOfPurposeBlocked | IsEndOfPurposeBlocked | Busin. Purp. Cmpltd. | ||
| SupplierInvoiceOrigin | SupplierInvoiceOrigin | IV category | ||
| ReverseDocument | ReverseDocument | Reversed With | ||
| ReverseDocumentFiscalYear | ReverseDocumentFiscalYear | Year | ||
| IsReversal | ||||
| IsReversed | ||||
| SupplierInvoicePaymentStatus | ||||
| SupplierInvoiceApprovalStatus | ||||
| IN_GSTPartner | IN_GSTPartner | GST Partner | ||
| IN_GSTPlaceOfSupply | IN_GSTPlaceOfSupply | Place of Supply | ||
| IN_InvoiceReferenceNumber | IN_InvoiceReferenceNumber | Invoice Ref. Number | ||
| JrnlEntryCntrySpecificRef1 | JrnlEntryCntrySpecificRef1 | Country/Region Specific Reference 1 | ||
| JrnlEntryCntrySpecificDate1 | JrnlEntryCntrySpecificDate1 | Country/Region Specific Date 1 | ||
| JrnlEntryCntrySpecificRef2 | JrnlEntryCntrySpecificRef2 | Country/Region Specific Reference 2 | ||
| JrnlEntryCntrySpecificDate2 | JrnlEntryCntrySpecificDate2 | Country/Region Specific Date 2 | ||
| JrnlEntryCntrySpecificRef3 | JrnlEntryCntrySpecificRef3 | Country/Region Specific Reference 3 | ||
| JrnlEntryCntrySpecificDate3 | JrnlEntryCntrySpecificDate3 | Country/Region Specific Date 3 | ||
| JrnlEntryCntrySpecificRef4 | JrnlEntryCntrySpecificRef4 | Country/Region Specific Reference 4 | ||
| JrnlEntryCntrySpecificDate4 | JrnlEntryCntrySpecificDate4 | Country/Region Specific Date 4 | ||
| JrnlEntryCntrySpecificRef5 | JrnlEntryCntrySpecificRef5 | Country/Region Specific Reference 5 | ||
| JrnlEntryCntrySpecificDate5 | JrnlEntryCntrySpecificDate5 | Country/Region Specific Date 5 | ||
| JrnlEntryCntrySpecificBP1 | JrnlEntryCntrySpecificBP1 | Ctry/Reg. Specific Business Partner 1 | ||
| JrnlEntryCntrySpecificBP2 | JrnlEntryCntrySpecificBP2 | Ctry/Reg. Specific Business Partner 2 | ||
| _SupplierInvoiceTax | _SupplierInvoiceTax | |||
| _SupplierInvoiceWhldgTax | _SupplierInvoiceWhldgTax | |||
| _SupplierInvoiceItemGLAcct | _SupplierInvoiceItemGLAcct | |||
| _SuplrInvcItemPurOrdRef | _SuplrInvcItemPurOrdRef | |||
| _SuplrInvcItemMaterial | _SuplrInvcItemMaterial | |||
| _SuplrInvcItemAsset | _SuplrInvcItemAsset | |||
| _SuplrInvoiceAdditionalData | _SuplrInvoiceAdditionalData | |||
| _SupplierInvoiceODN | _SupplierInvoiceODN | |||
| _SelectedPurchaseOrders | _SelectedPurchaseOrders | |||
| _SelectedDeliveryNotes | _SelectedDeliveryNotes | |||
| _SelectedServiceEntrySheets | _SelectedServiceEntrySheets | |||
| _BR_SupplierInvoiceNFDocument | _BR_SupplierInvoiceNFDocument |
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 A_SupplierInvoice.
-- 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: ASUPPLIERINVOICE
CREATE VIEW A_SupplierInvoice AS
SELECT
SupplierInvoice,
FiscalYear,
CompanyCode,
DocumentDate,
PostingDate,
CreationDate,
cast( SuplrInvcLastChangeDateTime as mmiv_si_lastchangedatetime_txt ) AS SuplrInvcLstChgDteTmeTxt,
SupplierInvoiceIDByInvcgParty,
InvoicingParty,
DocumentCurrency,
InvoiceGrossAmount,
UnplannedDeliveryCost,
DocumentHeaderText,
ReconciliationAccount,
ManualCashDiscount,
PaymentTerms,
DueCalculationBaseDate,
CashDiscount1Percent,
CashDiscount1Days,
CashDiscount2Percent,
CashDiscount2Days,
NetPaymentDays,
PaymentBlockingReason,
AccountingDocumentType,
BPBankAccountInternalID,
SupplierInvoiceStatus,
StateCentralBankPaymentReason,
SupplyingCountry,
PaymentMethod,
PaymentMethodSupplement,
PaymentReference,
InvoiceReference,
InvoiceReferenceFiscalYear,
FixedCashDiscount,
UnplannedDeliveryCostTaxCode,
UnplndDelivCostTaxJurisdiction,
UnplndDeliveryCostTaxCountry,
AssignmentReference,
SupplierPostingLineItemText,
TaxIsCalculatedAutomatically,
BusinessPlace,
BusinessSectionCode,
BusinessArea,
SuplrInvcIsCapitalGoodsRelated,
PaytSlipWthRefSubscriber,
PaytSlipWthRefCheckDigit,
PaytSlipWthRefReference,
TaxDeterminationDate,
TaxReportingDate,
TaxFulfillmentDate,
InvoiceReceiptDate,
DeliveryOfGoodsReportingCntry,
SupplierVATRegistration,
IsEUTriangularDeal,
SuplrInvcDebitCrdtCodeDelivery,
SuplrInvcDebitCrdtCodeReturns,
RetentionDueDate,
PaymentReason,
HouseBank,
HouseBankAccount,
AlternativePayeePayer,
IsEndOfPurposeBlocked,
SupplierInvoiceOrigin,
ReverseDocument,
ReverseDocumentFiscalYear,
cast( '' as mmiv_is_reversal ) AS IsReversal,
cast( '' as mmiv_is_reversed ) AS IsReversed,
cast( '' as mmiv_payment_status ) AS SupplierInvoicePaymentStatus,
cast( '' as mm_approval_status ) AS SupplierInvoiceApprovalStatus,
IN_GSTPartner,
IN_GSTPlaceOfSupply,
IN_InvoiceReferenceNumber,
JrnlEntryCntrySpecificRef1,
JrnlEntryCntrySpecificDate1,
JrnlEntryCntrySpecificRef2,
JrnlEntryCntrySpecificDate2,
JrnlEntryCntrySpecificRef3,
JrnlEntryCntrySpecificDate3,
JrnlEntryCntrySpecificRef4,
JrnlEntryCntrySpecificDate4,
JrnlEntryCntrySpecificRef5,
JrnlEntryCntrySpecificDate5,
JrnlEntryCntrySpecificBP1,
JrnlEntryCntrySpecificBP2
FROM I_SupplierInvoice
LEFT OUTER JOIN A_SupplierInvoiceTax AS _SupplierInvoiceTax ON SupplierInvoice = _SupplierInvoiceTax.SupplierInvoice AND FiscalYear = _SupplierInvoiceTax.FiscalYear -- association [0..*]
LEFT OUTER JOIN A_SuplrInvcHeaderWhldgTax AS _SupplierInvoiceWhldgTax ON SupplierInvoice = _SupplierInvoiceWhldgTax.SupplierInvoice AND FiscalYear = _SupplierInvoiceWhldgTax.FiscalYear -- association [0..*]
LEFT OUTER JOIN A_SupplierInvoiceItemGLAcct AS _SupplierInvoiceItemGLAcct ON SupplierInvoice = _SupplierInvoiceItemGLAcct.SupplierInvoice AND FiscalYear = _SupplierInvoiceItemGLAcct.FiscalYear -- association [0..*]
LEFT OUTER JOIN A_SuplrInvcItemPurOrdRef AS _SuplrInvcItemPurOrdRef ON SupplierInvoice = _SuplrInvcItemPurOrdRef.SupplierInvoice AND FiscalYear = _SuplrInvcItemPurOrdRef.FiscalYear -- association [0..*]
LEFT OUTER JOIN A_SupplierInvoiceItemMaterial AS _SuplrInvcItemMaterial ON SupplierInvoice = _SuplrInvcItemMaterial.SupplierInvoice AND FiscalYear = _SuplrInvcItemMaterial.FiscalYear -- association [0..*]
LEFT OUTER JOIN A_SupplierInvoiceItemAsset AS _SuplrInvcItemAsset ON SupplierInvoice = _SuplrInvcItemAsset.SupplierInvoice AND FiscalYear = _SuplrInvcItemAsset.FiscalYear -- association [0..*]
LEFT OUTER JOIN A_SuplrInvcSeldPurgDocument AS _SelectedPurchaseOrders ON SupplierInvoice = _SelectedPurchaseOrders.SupplierInvoice AND FiscalYear = _SelectedPurchaseOrders.FiscalYear -- association [0..*]
LEFT OUTER JOIN A_SuplrInvcSeldInbDeliveryNote AS _SelectedDeliveryNotes ON SupplierInvoice = _SelectedDeliveryNotes.SupplierInvoice AND FiscalYear = _SelectedDeliveryNotes.FiscalYear -- association [0..*]
LEFT OUTER JOIN A_SuplrInvcSeldSrvcEntrShtLean AS _SelectedServiceEntrySheets ON SupplierInvoice = _SelectedServiceEntrySheets.SupplierInvoice AND FiscalYear = _SelectedServiceEntrySheets.FiscalYear -- association [0..*]
LEFT OUTER JOIN A_SuplrInvoiceAdditionalData AS _SuplrInvoiceAdditionalData ON SupplierInvoice = _SuplrInvoiceAdditionalData.SupplierInvoice AND FiscalYear = _SuplrInvoiceAdditionalData.FiscalYear -- association [1..1]
LEFT OUTER JOIN A_SupplierInvoiceODN AS _SupplierInvoiceODN ON SupplierInvoice = _SupplierInvoiceODN.SupplierInvoice AND FiscalYear = _SupplierInvoiceODN.FiscalYear -- association [1..*]
LEFT OUTER JOIN A_BR_SupplierInvoiceNFDocument AS _BR_SupplierInvoiceNFDocument ON SupplierInvoice = _BR_SupplierInvoiceNFDocument.SupplierInvoice AND FiscalYear = _BR_SupplierInvoiceNFDocument.FiscalYear -- association [0..1]
LEFT OUTER JOIN E_SupplierInvoice AS _HeaderExtension ON SupplierInvoice = _HeaderExtension.SupplierInvoice AND FiscalYear = _HeaderExtension.FiscalYear -- association [0..1]
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA