C_InvoiceListObjPg

DDL: C_INVOICELISTOBJPG Type: view CONSUMPTION Package: ODATA_SD_BIL_IL_FS_V2

Invoice List

C_InvoiceListObjPg is a Consumption CDS View that provides data about "Invoice List" 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. Part of development package ODATA_SD_BIL_IL_FS_V2.

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
PayerParty I_InvoiceList PayerParty
BillingDocumentDate I_InvoiceList InvoiceListBillingDate
TotalNetAmount I_InvoiceList TotalNetAmount
TotalTaxAmount I_InvoiceList TotalTaxAmount
TransactionCurrency I_InvoiceList TransactionCurrency
CompanyCode I_InvoiceList CompanyCode
SalesOrganization I_InvoiceList SalesOrganization
DocumentReferenceID I_InvoiceList DocumentReferenceID
CustomerPaymentTerms I_InvoiceList CustomerPaymentTerms
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
@AbapCatalog: { 
  sqlViewName: 'CINVLISTOP',
  compiler.compareFilter: true
}

@AccessControl: {
  authorizationCheck: #CHECK,
  privilegedAssociations: [ '_SDDocumentPartnerCard' ],
  personalData: {
    blocking: #REQUIRED
  }
}

@ClientHandling.algorithm: #SESSION_VARIABLE

@VDM.viewType: #CONSUMPTION

@Metadata.allowExtensions: true

@ObjectModel: {
  compositionRoot: true,
  semanticKey:     ['InvoiceList'],
  usageType: {
    serviceQuality: #C,
    sizeCategory: #L,
    dataClass: #MIXED
   }
}

@Search.searchable: false

define view C_InvoiceListObjPg
  as select from I_InvoiceList as InvoiceList

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

{

  key InvoiceList.InvoiceList,

      
      InvoiceList.PayerParty,
      
      

      @Semantics.businessDate.at: true
      InvoiceList.InvoiceListBillingDate as BillingDocumentDate,
      InvoiceList.TotalNetAmount,
      InvoiceList.TotalTaxAmount,

      InvoiceList.TransactionCurrency,

      InvoiceList.CompanyCode,

      InvoiceList.SalesOrganization,

      InvoiceList.DocumentReferenceID,

      InvoiceList.CustomerPaymentTerms,

      InvoiceList.AccountingTransferStatus,

      InvoiceList.InvoiceListType as BillingDocumentType,
      
      InvoiceList._InvoiceListType._Text[1: Language = $session.system_language ].InvoiceListTypeName                                                               as BillingDocumentTypeName,

      @Semantics.amount.currencyCode: 'TransactionCurrency'
      _InvoiceListRemuneration.TotalRemunerationNetAmount                                                                                                           as TotalRemunerationNetAmount,

      @Semantics.amount.currencyCode: 'TransactionCurrency'
      _InvoiceListRemuneration.TotalRemunerationTaxAmount                                                                                                           as TotalRemunerationTaxAmount,

      @Semantics.amount.currencyCode: 'TransactionCurrency'
      cast( TotalTaxAmount + TotalNetAmount + _InvoiceListRemuneration.TotalRemunerationNetAmount + _InvoiceListRemuneration.TotalRemunerationTaxAmount  as sum_rl) as TotalGrossAmount,
      //InvoiceList.TotalGrossAmount,


      InvoiceList._PayerParty,
      InvoiceList._InvoiceListType as _BillingDocumentType,      
      InvoiceList._SalesOrganization,
      InvoiceList._CompanyCode,
      InvoiceList._CustomerPaymentTerms,
      InvoiceList._AccountingTransferStatus,

      @ObjectModel.association.type:  [ #TO_COMPOSITION_CHILD ]
      _Item,

      _SDDocumentPartnerCard

}