I_SupplierInvoiceAPI01

DDL: I_SUPPLIERINVOICEAPI01 SQL: ISUPLRINVCAPI01 Type: view BASIC Package: VDM_MM_IV_SI_API

Supplier Invoice

I_SupplierInvoiceAPI01 is a Basic CDS View that provides data about "Supplier Invoice" in SAP S/4HANA. It reads from 1 data source (I_SupplierInvoice) and exposes 90 fields with key fields SupplierInvoice, FiscalYear. It has 15 associations to related views. Part of development package VDM_MM_IV_SI_API.

Data Sources (1)

SourceAliasJoin Type
I_SupplierInvoice I_SupplierInvoice from

Associations (15)

CardinalityTargetAliasCondition
[0..1] I_CompanyCode _CompanyCode $projection.CompanyCode = _CompanyCode.CompanyCode
[0..1] I_Currency _Currency $projection.DocumentCurrency = _Currency.Currency
[1..*] I_SuplrInvcItemPurOrdRefAPI01 _SuplrInvcItemPurOrdRefAPI01 $projection.SupplierInvoice = _SuplrInvcItemPurOrdRefAPI01.SupplierInvoice and $projection.FiscalYear = _SuplrInvcItemPurOrdRefAPI01.FiscalYear
[1..*] I_SuplrInvoiceItemGLAcctAPI01 _SuplrInvoiceItemGLAcctAPI01 $projection.SupplierInvoice = _SuplrInvoiceItemGLAcctAPI01.SupplierInvoice and $projection.FiscalYear = _SuplrInvoiceItemGLAcctAPI01.FiscalYear
[1..*] I_SuplrInvcItemMaterialAPI01 _SuplrInvcItemMaterialAPI01 $projection.SupplierInvoice = _SuplrInvcItemMaterialAPI01.SupplierInvoice and $projection.FiscalYear = _SuplrInvcItemMaterialAPI01.FiscalYear
[1..*] I_SuplrInvcItemAssetAPI01 _SuplrInvcItemAssetAPI01 $projection.SupplierInvoice = _SuplrInvcItemAssetAPI01.SupplierInvoice and $projection.FiscalYear = _SuplrInvcItemAssetAPI01.FiscalYear
[1..*] I_SupplierInvoiceTaxAPI01 _SupplierInvoiceTaxAPI01 $projection.SupplierInvoice = _SupplierInvoiceTaxAPI01.SupplierInvoice and $projection.FiscalYear = _SupplierInvoiceTaxAPI01.FiscalYear
[1..*] I_SuplrInvcHeaderWhldgTaxAPI01 _SuplrInvcHeaderWhldgTaxAPI01 $projection.SupplierInvoice = _SuplrInvcHeaderWhldgTaxAPI01.SupplierInvoice and $projection.FiscalYear = _SuplrInvcHeaderWhldgTaxAPI01.FiscalYear
[1..*] I_SuplrInvcSeldPurgDocAPI01 _SuplrInvcSeldPurgDocAPI01 $projection.SupplierInvoice = _SuplrInvcSeldPurgDocAPI01.SupplierInvoice and $projection.FiscalYear = _SuplrInvcSeldPurgDocAPI01.FiscalYear
[1..*] I_SuplrInvcSeldDelivNoteAPI01 _SuplrInvcSeldDelivNoteAPI01 $projection.SupplierInvoice = _SuplrInvcSeldDelivNoteAPI01.SupplierInvoice and $projection.FiscalYear = _SuplrInvcSeldDelivNoteAPI01.FiscalYear
[1..*] I_SuplrInvcSeldInbBOLAPI01 _SuplrInvcSeldInbBOLAPI01 $projection.SupplierInvoice = _SuplrInvcSeldInbBOLAPI01.SupplierInvoice and $projection.FiscalYear = _SuplrInvcSeldInbBOLAPI01.FiscalYear
[1..*] I_SuplrInvcSeldSESLeanAPI01 _SuplrInvcSeldSESLeanAPI01 $projection.SupplierInvoice = _SuplrInvcSeldSESLeanAPI01.SupplierInvoice and $projection.FiscalYear = _SuplrInvcSeldSESLeanAPI01.FiscalYear
[1..*] I_SuplrInvcItemCsgnmtAPI01 _SuplrInvcItemCsgnmtAPI01 $projection.SupplierInvoice = _SuplrInvcItemCsgnmtAPI01.SupplierInvoice and $projection.FiscalYear = _SuplrInvcItemCsgnmtAPI01.FiscalYear
[0..*] I_SupplierInvoiceBlockAPI01 _SupplierInvoiceBlockAPI01 $projection.SupplierInvoice = _SupplierInvoiceBlockAPI01.SupplierInvoice and $projection.FiscalYear = _SupplierInvoiceBlockAPI01.FiscalYear
[1..1] E_SupplierInvoice _HeaderExtension $projection.SupplierInvoice = _HeaderExtension.SupplierInvoice and $projection.FiscalYear = _HeaderExtension.FiscalYear and I_SupplierInvoice.SupplierInvoiceUUID = _HeaderExtension.SupplierInvoiceUUID

Annotations (13)

NameValueLevelField
ClientHandling.algorithm #SESSION_VARIABLE view
AbapCatalog.sqlViewName ISUPLRINVCAPI01 view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #MANDATORY view
VDM.viewType #BASIC view
VDM.lifecycle.contract.type #PUBLIC_LOCAL_API view
EndUserText.label Supplier Invoice view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.modelingPattern #NONE view
AccessControl.personalData.blocking #BLOCKED_DATA_EXCLUDED view
Metadata.ignorePropagatedAnnotations true view

Fields (90)

KeyFieldSource TableSource FieldDescription
KEY SupplierInvoice SupplierInvoice
KEY FiscalYear FiscalYear
SupplierInvoiceWthnFiscalYear
CompanyCode CompanyCode
DocumentDate DocumentDate
PostingDate PostingDate
InvoiceReceiptDate InvoiceReceiptDate
SupplierInvoiceIDByInvcgParty SupplierInvoiceIDByInvcgParty
InvoicingParty InvoicingParty
IsInvoice IsInvoice
DocumentCurrency DocumentCurrency
InvoiceGrossAmount InvoiceGrossAmount
ExchangeRate ExchangeRate
AccountingDocumentType AccountingDocumentType
SupplierInvoiceStatus SupplierInvoiceStatus
SupplierInvoiceOrigin SupplierInvoiceOrigin
CreatedByUser CreatedByUser
LastChangedByUser LastChangedByUser
InvoiceReference InvoiceReference
InvoiceReferenceFiscalYear InvoiceReferenceFiscalYear
AssignmentReference AssignmentReference
TaxIsCalculatedAutomatically TaxIsCalculatedAutomatically
BusinessPlace BusinessPlace
CreationDate CreationDate
CreationTime CreationTime
SuplrInvcLstChgDteTmeTxt
UnplannedDeliveryCost UnplannedDeliveryCost
UnplannedDeliveryCostTaxCode UnplannedDeliveryCostTaxCode
UnplndDelivCostTaxJurisdiction UnplndDelivCostTaxJurisdiction
DocumentHeaderText DocumentHeaderText
SupplierPostingLineItemText SupplierPostingLineItemText
PaymentTerms PaymentTerms
DueCalculationBaseDate DueCalculationBaseDate
CashDiscount1Percent CashDiscount1Percent
CashDiscount1Days CashDiscount1Days
CashDiscount2Percent CashDiscount2Percent
CashDiscount2Days CashDiscount2Days
NetPaymentDays NetPaymentDays
ManualCashDiscount ManualCashDiscount
FixedCashDiscount FixedCashDiscount
StateCentralBankPaymentReason StateCentralBankPaymentReason
SupplyingCountry SupplyingCountry
BPBankAccountInternalID BPBankAccountInternalID
PaymentMethod PaymentMethod
PaymentReference PaymentReference
PaytSlipWthRefSubscriber PaytSlipWthRefSubscriber
PaytSlipWthRefCheckDigit PaytSlipWthRefCheckDigit
PaytSlipWthRefReference PaytSlipWthRefReference
PaymentReason PaymentReason
ReverseDocument ReverseDocument
ReverseDocumentFiscalYear ReverseDocumentFiscalYear
SuplrInvcManuallyReducedAmount SuplrInvcManuallyReducedAmount
SuplrInvcAutomReducedAmount SuplrInvcAutomReducedAmount
TaxDeterminationDate TaxDeterminationDate
TaxReportingDate TaxReportingDate
TaxFulfillmentDate TaxFulfillmentDate
TaxCountry TaxCountry
UnplndDeliveryCostTaxCountry UnplndDeliveryCostTaxCountry
DeliveryOfGoodsReportingCntry DeliveryOfGoodsReportingCntry
SupplierVATRegistration SupplierVATRegistration
IsEUTriangularDeal IsEUTriangularDeal
SuplrInvcDebitCrdtCodeDelivery SuplrInvcDebitCrdtCodeDelivery
SuplrInvcDebitCrdtCodeReturns SuplrInvcDebitCrdtCodeReturns
ElectronicInvoiceUUID ElectronicInvoiceUUID
JrnlEntryCntrySpecificRef1 JrnlEntryCntrySpecificRef1
JrnlEntryCntrySpecificDate1 JrnlEntryCntrySpecificDate1
JrnlEntryCntrySpecificRef2 JrnlEntryCntrySpecificRef2
JrnlEntryCntrySpecificDate2 JrnlEntryCntrySpecificDate2
JrnlEntryCntrySpecificRef3 JrnlEntryCntrySpecificRef3
JrnlEntryCntrySpecificDate3 JrnlEntryCntrySpecificDate3
JrnlEntryCntrySpecificRef4 JrnlEntryCntrySpecificRef4
JrnlEntryCntrySpecificDate4 JrnlEntryCntrySpecificDate4
JrnlEntryCntrySpecificRef5 JrnlEntryCntrySpecificRef5
JrnlEntryCntrySpecificDate5 JrnlEntryCntrySpecificDate5
JrnlEntryCntrySpecificBP1 JrnlEntryCntrySpecificBP1
JrnlEntryCntrySpecificBP2 JrnlEntryCntrySpecificBP2
_CompanyCode _CompanyCode
_Currency _Currency
_SuplrInvcItemPurOrdRefAPI01 _SuplrInvcItemPurOrdRefAPI01
_SuplrInvoiceItemGLAcctAPI01 _SuplrInvoiceItemGLAcctAPI01
_SuplrInvcItemMaterialAPI01 _SuplrInvcItemMaterialAPI01
_SuplrInvcItemAssetAPI01 _SuplrInvcItemAssetAPI01
_SupplierInvoiceTaxAPI01 _SupplierInvoiceTaxAPI01
_SuplrInvcHeaderWhldgTaxAPI01 _SuplrInvcHeaderWhldgTaxAPI01
_SuplrInvcSeldPurgDocAPI01 _SuplrInvcSeldPurgDocAPI01
_SuplrInvcSeldDelivNoteAPI01 _SuplrInvcSeldDelivNoteAPI01
_SuplrInvcSeldInbBOLAPI01 _SuplrInvcSeldInbBOLAPI01
_SuplrInvcSeldSESLeanAPI01 _SuplrInvcSeldSESLeanAPI01
_SuplrInvcItemCsgnmtAPI01 _SuplrInvcItemCsgnmtAPI01
_SupplierInvoiceBlockAPI01 _SupplierInvoiceBlockAPI01
@ClientHandling.algorithm: #SESSION_VARIABLE
@AbapCatalog.sqlViewName: 'ISUPLRINVCAPI01'
@AbapCatalog.compiler.compareFilter: true
@AccessControl.authorizationCheck: #MANDATORY
@VDM.viewType : #BASIC
@VDM.lifecycle.contract.type: #PUBLIC_LOCAL_API
@EndUserText.label: 'Supplier Invoice'
@ObjectModel.usageType.serviceQuality: #A
@ObjectModel.usageType.sizeCategory: #L
@ObjectModel.usageType.dataClass: #TRANSACTIONAL
@ObjectModel.supportedCapabilities: [ #CDS_MODELING_DATA_SOURCE, #SQL_DATA_SOURCE ]
@ObjectModel.modelingPattern: #NONE
@AccessControl.personalData.blocking: #BLOCKED_DATA_EXCLUDED
@Metadata.ignorePropagatedAnnotations:true
@Workflow: { enabledFor: [ #CUSTOM_TASK_ATTRIBUTES ] }

define view I_SupplierInvoiceAPI01
  as select from I_SupplierInvoice

  association [0..1] to I_CompanyCode                  as _CompanyCode                  on  $projection.CompanyCode = _CompanyCode.CompanyCode

  association [0..1] to I_Currency                     as _Currency                     on  $projection.DocumentCurrency = _Currency.Currency

  association [1..*] to I_SuplrInvcItemPurOrdRefAPI01  as _SuplrInvcItemPurOrdRefAPI01  on  $projection.SupplierInvoice = _SuplrInvcItemPurOrdRefAPI01.SupplierInvoice
                                                                                        and $projection.FiscalYear      = _SuplrInvcItemPurOrdRefAPI01.FiscalYear

  association [1..*] to I_SuplrInvoiceItemGLAcctAPI01  as _SuplrInvoiceItemGLAcctAPI01  on  $projection.SupplierInvoice = _SuplrInvoiceItemGLAcctAPI01.SupplierInvoice
                                                                                        and $projection.FiscalYear      = _SuplrInvoiceItemGLAcctAPI01.FiscalYear

  association [1..*] to I_SuplrInvcItemMaterialAPI01   as _SuplrInvcItemMaterialAPI01   on  $projection.SupplierInvoice = _SuplrInvcItemMaterialAPI01.SupplierInvoice
                                                                                        and $projection.FiscalYear      = _SuplrInvcItemMaterialAPI01.FiscalYear

  association [1..*] to I_SuplrInvcItemAssetAPI01      as _SuplrInvcItemAssetAPI01      on  $projection.SupplierInvoice = _SuplrInvcItemAssetAPI01.SupplierInvoice
                                                                                        and $projection.FiscalYear      = _SuplrInvcItemAssetAPI01.FiscalYear

  association [1..*] to I_SupplierInvoiceTaxAPI01      as _SupplierInvoiceTaxAPI01      on  $projection.SupplierInvoice = _SupplierInvoiceTaxAPI01.SupplierInvoice
                                                                                        and $projection.FiscalYear      = _SupplierInvoiceTaxAPI01.FiscalYear

  association [1..*] to I_SuplrInvcHeaderWhldgTaxAPI01 as _SuplrInvcHeaderWhldgTaxAPI01 on  $projection.SupplierInvoice = _SuplrInvcHeaderWhldgTaxAPI01.SupplierInvoice
                                                                                        and $projection.FiscalYear      = _SuplrInvcHeaderWhldgTaxAPI01.FiscalYear

  association [1..*] to I_SuplrInvcSeldPurgDocAPI01    as _SuplrInvcSeldPurgDocAPI01    on  $projection.SupplierInvoice = _SuplrInvcSeldPurgDocAPI01.SupplierInvoice
                                                                                        and $projection.FiscalYear      = _SuplrInvcSeldPurgDocAPI01.FiscalYear

  association [1..*] to I_SuplrInvcSeldDelivNoteAPI01  as _SuplrInvcSeldDelivNoteAPI01  on  $projection.SupplierInvoice = _SuplrInvcSeldDelivNoteAPI01.SupplierInvoice
                                                                                        and $projection.FiscalYear      = _SuplrInvcSeldDelivNoteAPI01.FiscalYear

  association [1..*] to I_SuplrInvcSeldInbBOLAPI01     as _SuplrInvcSeldInbBOLAPI01     on  $projection.SupplierInvoice = _SuplrInvcSeldInbBOLAPI01.SupplierInvoice
                                                                                        and $projection.FiscalYear      = _SuplrInvcSeldInbBOLAPI01.FiscalYear

  association [1..*] to I_SuplrInvcSeldSESLeanAPI01    as _SuplrInvcSeldSESLeanAPI01    on  $projection.SupplierInvoice = _SuplrInvcSeldSESLeanAPI01.SupplierInvoice
                                                                                        and $projection.FiscalYear      = _SuplrInvcSeldSESLeanAPI01.FiscalYear
                                                                                        
  association [1..*] to I_SuplrInvcItemCsgnmtAPI01      as _SuplrInvcItemCsgnmtAPI01    on  $projection.SupplierInvoice = _SuplrInvcItemCsgnmtAPI01.SupplierInvoice
                                                                                        and $projection.FiscalYear      = _SuplrInvcItemCsgnmtAPI01.FiscalYear                                                                                      

  association [0..*] to I_SupplierInvoiceBlockAPI01    as _SupplierInvoiceBlockAPI01    on  $projection.SupplierInvoice = _SupplierInvoiceBlockAPI01.SupplierInvoice
                                                                                        and $projection.FiscalYear      = _SupplierInvoiceBlockAPI01.FiscalYear

  association [1..1] to E_SupplierInvoice              as _HeaderExtension              on  $projection.SupplierInvoice           = _HeaderExtension.SupplierInvoice
                                                                                        and $projection.FiscalYear                = _HeaderExtension.FiscalYear
                                                                                        and I_SupplierInvoice.SupplierInvoiceUUID = _HeaderExtension.SupplierInvoiceUUID
{
      //Key

  key SupplierInvoice,
  key FiscalYear,

      //-------------------------------------------------------------------------------------------------

      // General header data

      //-------------------------------------------------------------------------------------------------

      //For easier joins against BKPF-AWKEY

      cast( concat(SupplierInvoice , FiscalYear) as mmiv_belnr_gjahr_internal ) as SupplierInvoiceWthnFiscalYear,
      CompanyCode,
      DocumentDate,
      PostingDate,
      InvoiceReceiptDate,
      SupplierInvoiceIDByInvcgParty,
      InvoicingParty,
      IsInvoice,
      @Semantics.currencyCode: true
      DocumentCurrency,
      @Semantics.amount.currencyCode: 'DocumentCurrency'
      InvoiceGrossAmount,
      ExchangeRate,
      AccountingDocumentType,
      SupplierInvoiceStatus,
      SupplierInvoiceOrigin,
      CreatedByUser,
      LastChangedByUser,
      InvoiceReference,
      InvoiceReferenceFiscalYear,
      AssignmentReference,
      TaxIsCalculatedAutomatically,
      BusinessPlace,
      CreationDate,
      CreationTime,
      cast( SuplrInvcLastChangeDateTime as mmiv_si_lastchangedatetime_txt ) as SuplrInvcLstChgDteTmeTxt,

      //-------------------------------------------------------------------------------------------------

      //Unplanned delivery costs

      //-------------------------------------------------------------------------------------------------

      @Semantics.amount.currencyCode: 'DocumentCurrency'
      UnplannedDeliveryCost,
      UnplannedDeliveryCostTaxCode,
      UnplndDelivCostTaxJurisdiction,

      //-------------------------------------------------------------------------------------------------

      //Texts

      //-------------------------------------------------------------------------------------------------

      DocumentHeaderText,
      SupplierPostingLineItemText,

      //-------------------------------------------------------------------------------------------------

      //Payment

      //-------------------------------------------------------------------------------------------------

      PaymentTerms,
      DueCalculationBaseDate,
      CashDiscount1Percent,
      CashDiscount1Days,
      CashDiscount2Percent,
      CashDiscount2Days,
      NetPaymentDays,
      @Semantics.amount.currencyCode: 'DocumentCurrency'
      ManualCashDiscount,
      FixedCashDiscount,
      StateCentralBankPaymentReason,
      SupplyingCountry,
      BPBankAccountInternalID,
      PaymentMethod,
      PaymentReference,
      PaytSlipWthRefSubscriber,
      PaytSlipWthRefCheckDigit,
      PaytSlipWthRefReference,
      PaymentReason,

      //-------------------------------------------------------------------------------------------------

      //Cancellation

      //-------------------------------------------------------------------------------------------------

      ReverseDocument,
      ReverseDocumentFiscalYear,

      //-------------------------------------------------------------------------------------------------

      //Invoice reduction

      //-------------------------------------------------------------------------------------------------

      @Semantics.amount.currencyCode: 'DocumentCurrency'
      SuplrInvcManuallyReducedAmount,
      @Semantics.amount.currencyCode: 'DocumentCurrency'
      SuplrInvcAutomReducedAmount,

      //-------------------------------------------------------------------------------------------------

      // Taxes

      //-------------------------------------------------------------------------------------------------

      TaxDeterminationDate,
      TaxReportingDate,
      TaxFulfillmentDate,
      TaxCountry,
      UnplndDeliveryCostTaxCountry,

      //-------------------------------------------------------------------------------------------------

      //Tax reporting

      //-------------------------------------------------------------------------------------------------

      DeliveryOfGoodsReportingCntry,
      SupplierVATRegistration,
      IsEUTriangularDeal,

      //-------------------------------------------------------------------------------------------------

      // Preliminary fields (parked, held, batch)

      //-------------------------------------------------------------------------------------------------

      SuplrInvcDebitCrdtCodeDelivery,
      SuplrInvcDebitCrdtCodeReturns,

      //-------------------------------------------------------------------------------------------------

      // Localization

      //-------------------------------------------------------------------------------------------------

      ElectronicInvoiceUUID, //Mexico

      JrnlEntryCntrySpecificRef1,
      JrnlEntryCntrySpecificDate1,
      JrnlEntryCntrySpecificRef2,
      JrnlEntryCntrySpecificDate2,
      JrnlEntryCntrySpecificRef3,
      JrnlEntryCntrySpecificDate3,
      JrnlEntryCntrySpecificRef4,
      JrnlEntryCntrySpecificDate4,
      JrnlEntryCntrySpecificRef5,
      JrnlEntryCntrySpecificDate5,
      JrnlEntryCntrySpecificBP1,
      JrnlEntryCntrySpecificBP2,

      _CompanyCode,
      _Currency,
      _SuplrInvcItemPurOrdRefAPI01,
      _SuplrInvoiceItemGLAcctAPI01,
      _SuplrInvcItemMaterialAPI01,
      _SuplrInvcItemAssetAPI01,
      _SupplierInvoiceTaxAPI01,
      _SuplrInvcHeaderWhldgTaxAPI01,
      _SuplrInvcSeldPurgDocAPI01,
      _SuplrInvcSeldDelivNoteAPI01,
      _SuplrInvcSeldInbBOLAPI01,
      _SuplrInvcSeldSESLeanAPI01,
      _SuplrInvcItemCsgnmtAPI01,
      _SupplierInvoiceBlockAPI01
}
where
     IsEndOfPurposeBlocked = ''
  or IsEndOfPurposeBlocked is null