C_InvoiceListObjPg

DDL: C_INVOICELISTOBJPG Type: view CONSUMPTION

C_InvoiceListObjPg is a Consumption CDS View in SAP S/4HANA. It reads from 1 data source (I_InvoiceList) and exposes 24 fields with key field InvoiceList. It has 3 associations to related views.

Data Sources (1)

SourceAliasJoin Type
I_InvoiceList InvoiceList from

Associations (3)

CardinalityTargetAliasCondition
[0..*] C_InvoiceListItemObjPg _Item $projection.InvoiceList = _Item.InvoiceList
[0..*] C_SDDocumentPartnerCard _SDDocumentPartnerCard $projection.InvoiceList = _SDDocumentPartnerCard.SDDocument and _SDDocumentPartnerCard.SDDocumentItem = '000000'
[0..1] I_InvoiceListRemuneration _InvoiceListRemuneration $projection.InvoiceList = _InvoiceListRemuneration.InvoiceList

Annotations (12)

NameValueLevelField
AbapCatalog.sqlViewName CINVLISTOP view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #CHECK view
AccessControl.personalData.blocking #REQUIRED view
ClientHandling.algorithm #SESSION_VARIABLE view
VDM.viewType #CONSUMPTION view
Metadata.allowExtensions true view
ObjectModel.compositionRoot true view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #MIXED view
Search.searchable false view

Fields (24)

KeyFieldSource TableSource FieldDescription
KEY InvoiceList I_InvoiceList InvoiceList Invoice List
PayerParty I_InvoiceList PayerParty Payer
BillingDocumentDate I_InvoiceList InvoiceListBillingDate Billing Date
TotalNetAmount I_InvoiceList TotalNetAmount Total Net Amount
TotalTaxAmount I_InvoiceList TotalTaxAmount Tax Amount
TransactionCurrency I_InvoiceList TransactionCurrency Transaction Currency
CompanyCode I_InvoiceList CompanyCode Receiver Company Code
SalesOrganization I_InvoiceList SalesOrganization Sales Organization
DocumentReferenceID I_InvoiceList DocumentReferenceID Reference
CustomerPaymentTerms I_InvoiceList CustomerPaymentTerms Pyt Terms
AccountingTransferStatus I_InvoiceList AccountingTransferStatus
BillingDocumentType I_InvoiceList InvoiceListType
BillingDocumentTypeName
TotalRemunerationNetAmount _InvoiceListRemuneration TotalRemunerationNetAmount
TotalRemunerationTaxAmount _InvoiceListRemuneration TotalRemunerationTaxAmount
TotalGrossAmount
_PayerParty I_InvoiceList _PayerParty
_BillingDocumentType I_InvoiceList _InvoiceListType
_SalesOrganization I_InvoiceList _SalesOrganization
_CompanyCode I_InvoiceList _CompanyCode
_CustomerPaymentTerms I_InvoiceList _CustomerPaymentTerms
_AccountingTransferStatus I_InvoiceList _AccountingTransferStatus
_Item _Item
_SDDocumentPartnerCard _SDDocumentPartnerCard

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_InvoiceListObjPg.
-- 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.

CREATE VIEW C_InvoiceListObjPg AS
SELECT
  InvoiceList.InvoiceList AS InvoiceList,
  InvoiceList.PayerParty AS PayerParty,
  InvoiceList.InvoiceListBillingDate AS BillingDocumentDate,
  InvoiceList.TotalNetAmount AS TotalNetAmount,
  InvoiceList.TotalTaxAmount AS TotalTaxAmount,
  InvoiceList.TransactionCurrency AS TransactionCurrency,
  InvoiceList.CompanyCode AS CompanyCode,
  InvoiceList.SalesOrganization AS SalesOrganization,
  InvoiceList.DocumentReferenceID AS DocumentReferenceID,
  InvoiceList.CustomerPaymentTerms AS CustomerPaymentTerms,
  InvoiceList.AccountingTransferStatus AS AccountingTransferStatus,
  InvoiceList.InvoiceListType AS BillingDocumentType,
  InvoiceList._InvoiceListType._Text[1: Language = $session.system_language ].InvoiceListTypeName AS BillingDocumentTypeName,
  _InvoiceListRemuneration.TotalRemunerationNetAmount AS TotalRemunerationNetAmount,
  _InvoiceListRemuneration.TotalRemunerationTaxAmount AS TotalRemunerationTaxAmount,
  cast( TotalTaxAmount + TotalNetAmount + _InvoiceListRemuneration.TotalRemunerationNetAmount + _InvoiceListRemuneration.TotalRemunerationTaxAmount as sum_rl) AS TotalGrossAmount,
  InvoiceList._PayerParty AS _PayerParty,
  InvoiceList._InvoiceListType AS _BillingDocumentType,
  InvoiceList._SalesOrganization AS _SalesOrganization,
  InvoiceList._CompanyCode AS _CompanyCode,
  InvoiceList._CustomerPaymentTerms AS _CustomerPaymentTerms,
  InvoiceList._AccountingTransferStatus AS _AccountingTransferStatus
FROM I_InvoiceList AS InvoiceList
LEFT OUTER JOIN C_InvoiceListItemObjPg AS _Item ON InvoiceList = _Item.InvoiceList  -- association [0..*]
LEFT OUTER JOIN C_SDDocumentPartnerCard AS _SDDocumentPartnerCard ON InvoiceList = _SDDocumentPartnerCard.SDDocument AND _SDDocumentPartnerCard.SDDocumentItem = '000000'  -- association [0..*]
LEFT OUTER JOIN I_InvoiceListRemuneration AS _InvoiceListRemuneration ON InvoiceList = _InvoiceListRemuneration.InvoiceList  -- association [0..1]
;