C_AbpInvoice

DDL: C_ABPINVOICE SQL: CABPINVOICE Type: view CONSUMPTION

ABP - Invoice

C_AbpInvoice is a Consumption CDS View that provides data about "ABP - Invoice" in SAP S/4HANA. It reads from 1 data source (I_PaymentProposalItem) and exposes 39 fields with key fields PaymentDocument, FiscalYear, AccountingDocumentItem, PaymentRunDate, PaymentRunID. It has 2 associations to related views.

Data Sources (1)

SourceAliasJoin Type
I_PaymentProposalItem _PaymentProposalItem from

Associations (2)

CardinalityTargetAliasCondition
[0..1] I_Supplier _Supplier _Supplier.Supplier = _PaymentProposalItem.Supplier
[0..1] I_CompanyCode _PayeeCompanyCode $projection.CompanyCode = _PayeeCompanyCode.CompanyCode

Annotations (12)

NameValueLevelField
AbapCatalog.sqlViewName CABPINVOICE view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #CHECK view
ClientHandling.algorithm #SESSION_VARIABLE view
AccessControl.personalData.blocking #REQUIRED view
EndUserText.label ABP - Invoice view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #XL view
VDM.viewType #CONSUMPTION view
UI.headerInfo.typeName Invoice view
UI.headerInfo.typeNamePlural Invoices view

Fields (39)

KeyFieldSource TableSource FieldDescription
KEY PaymentDocument I_PaymentProposalItem PaymentDocument Payment Document Number
KEY FiscalYear I_PaymentProposalItem FiscalYear G/L Fiscal Year
KEY AccountingDocumentItem I_PaymentProposalItem AccountingDocumentItem Posting View Item
KEY PaymentRunDate
KEY PaymentRunID I_PaymentProposalItem PaymentRunID
KEY PaymentRunIsProposal
KEY PayingCompanyCode
KEY CompanyCode I_PaymentProposalItem CompanyCode Receiver Company Code
KEY AccountingDocument
PayingCompanyCodeName
PayeeCompanyCodeName _PayeeCompanyCode CompanyCodeName Company Name
AccountingDocumentType
BusinessArea I_PaymentProposalItem BusinessArea Business Area
CashDiscount2Percent
PaymentMethod I_PaymentProposalItem PaymentMethod Pymt Meth.
DocumentDate
PaymentTerms I_PaymentProposalItem PaymentTerms Pyt Terms
PostingDate I_PaymentProposalItem PostingDate Posting Date for GR
SpecialGLCode I_PaymentProposalItem SpecialGLCode Special G/L Ind
DocumentItemText I_PaymentProposalItem DocumentItemText Text
GLAccount I_PaymentProposalItem GLAccount General Ledger
DocumentReferenceID I_PaymentProposalItem DocumentReferenceID Reference
NetDueDate I_PaymentProposalItem DueCalculationBaseDate Due Calculation Base Date
AssignmentReference I_PaymentProposalItem AssignmentReference Assignment Reference
TaxCode I_PaymentProposalItem TaxCode Tax Code
CashDiscount1Percent
CustomerSupplierAccount
CAClearingDocumentNumber
PaymentRecipient I_PaymentProposalItem PaymentRecipient
AmountInTransactionCurrency Gross Amount
TotDeductionAmtInTransacCrcy Deduction
NetAmountInTransacCurrency Net Amount
TransactionCurrency
HeaderAmtInCoCodeCurrency
TotDeductionAmtInCoCodeCrcy
NetAmountInCoCodeCurrency
CompanyCodeCurrency
SupplierAccountGroup _Supplier SupplierAccountGroup Account group
AuthorizationGroup _Supplier AuthorizationGroup AuthorizGroup

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_AbpInvoice.
-- 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: CABPINVOICE

CREATE VIEW C_AbpInvoice AS
SELECT
  _PaymentProposalItem.PaymentDocument AS PaymentDocument,
  _PaymentProposalItem.FiscalYear AS FiscalYear,
  _PaymentProposalItem.AccountingDocumentItem AS AccountingDocumentItem,
  cast(_PaymentProposalItem.PaymentRunDate as farp_laufd) AS PaymentRunDate,
  _PaymentProposalItem.PaymentRunID AS PaymentRunID,
  cast(_PaymentProposalItem.PaymentRunIsProposal as farp_xvorl) AS PaymentRunIsProposal,
  cast(_PaymentProposalItem.PayingCompanyCode as farp_bnk_com_dzbukr) AS PayingCompanyCode,
  _PaymentProposalItem.CompanyCode AS CompanyCode,
  cast (_PaymentProposalItem.AccountingDocument as fis_belnr) AS AccountingDocument,
  cast(_CompanyCode.CompanyCodeName as farp_zbukrstxt) AS PayingCompanyCodeName,
  _PayeeCompanyCode.CompanyCodeName AS PayeeCompanyCodeName,
  cast(_PaymentProposalItem.AccountingDocumentType as fap_bpa_blart) AS AccountingDocumentType,
  _PaymentProposalItem.BusinessArea AS BusinessArea,
  cast(_PaymentProposalItem.CashDiscount2Percent as dzbd2p_farp) AS CashDiscount2Percent,
  _PaymentProposalItem.PaymentMethod AS PaymentMethod,
  cast(_PaymentProposalItem.DocumentDate as fis_bldat) AS DocumentDate,
  _PaymentProposalItem.PaymentTerms AS PaymentTerms,
  _PaymentProposalItem.PostingDate AS PostingDate,
  _PaymentProposalItem.SpecialGLCode AS SpecialGLCode,
  _PaymentProposalItem.DocumentItemText AS DocumentItemText,
  _PaymentProposalItem.GLAccount AS GLAccount,
  _PaymentProposalItem.DocumentReferenceID AS DocumentReferenceID,
  _PaymentProposalItem.DueCalculationBaseDate AS NetDueDate,
  _PaymentProposalItem.AssignmentReference AS AssignmentReference,
  _PaymentProposalItem.TaxCode AS TaxCode,
  cast(_PaymentProposalItem.CashDiscount1Percent as dzbd1p_farp) AS CashDiscount1Percent,
  cast(_PaymentProposalItem.Supplier as fap_bpa_lifnr) AS CustomerSupplierAccount,
  cast(_PaymentProposalItem.PaymentDocument as fap_bpa_clrdoc) AS CAClearingDocumentNumber,
  _PaymentProposalItem.PaymentRecipient AS PaymentRecipient,
  cast(_PaymentProposalItem.AmountInTransactionCurrency as fap_bpa_wrbtr) AS AmountInTransactionCurrency,
  cast(_PaymentProposalItem.TotDeductionAmtInTransacCrcy as fap_bpa_wskto) AS TotDeductionAmtInTransacCrcy,
  cast(_PaymentProposalItem.NetAmountInTransacCurrency as fap_abp_wnetv) AS NetAmountInTransacCurrency,
  cast(_PaymentProposalItem.PaymentCurrency as fap_bpa_rwcur) AS TransactionCurrency,
  cast(_PaymentProposalItem.HeaderAmtInCoCodeCurrency as farp_dmbtr) AS HeaderAmtInCoCodeCurrency,
  cast(_PaymentProposalItem.TotDeductionAmtInCoCodeCrcy as fap_bpa_sknto) AS TotDeductionAmtInCoCodeCrcy,
  cast(_PaymentProposalItem.NetAmountInCoCodeCurrency as fap_bpa_wnetwcc) AS NetAmountInCoCodeCurrency,
  cast(_PaymentProposalItem._CompanyCode.Currency as fap_bpa_waers) AS CompanyCodeCurrency,
  _Supplier.SupplierAccountGroup AS SupplierAccountGroup,
  _Supplier.AuthorizationGroup AS AuthorizationGroup
FROM I_PaymentProposalItem AS _PaymentProposalItem
LEFT OUTER JOIN I_Supplier AS _Supplier ON _Supplier.Supplier = _PaymentProposalItem.Supplier  -- association [0..1]
LEFT OUTER JOIN I_CompanyCode AS _PayeeCompanyCode ON CompanyCode = _PayeeCompanyCode.CompanyCode  -- association [0..1]
;