I_InvoiceListItem

DDL: I_INVOICELISTITEM Type: view_entity BASIC Package: VDM_SD_BIL_IL

Invoice List Item

I_InvoiceListItem is a Basic CDS View (Dimension) that provides data about "Invoice List Item" in SAP S/4HANA. It reads from 1 data source (vbrl) and exposes 17 fields with key fields InvoiceList, InvoiceListItem. It has 5 associations to related views. Part of development package VDM_SD_BIL_IL.

Data Sources (1)

SourceAliasJoin Type
vbrl vbrl from

Associations (5)

CardinalityTargetAliasCondition
[1..1] I_InvoiceList _InvoiceList $projection.InvoiceList = _InvoiceList.InvoiceList
[0..1] I_BillingDocument _BillingDocument $projection.BillingDocument = _BillingDocument.BillingDocument
[0..1] I_Currency _TransactionCurrency $projection.TransactionCurrency = _TransactionCurrency.Currency
[0..1] I_Customer _SoldToParty $projection.SoldToParty = _SoldToParty.Customer
[0..1] I_LogicalSystem _LogicalSystem $projection.LogicalSystem = _LogicalSystem.LogicalSystem

Annotations (15)

NameValueLevelField
AccessControl.authorizationCheck #MANDATORY view
Analytics.dataCategory #DIMENSION view
Analytics.dataExtraction.enabled true view
Analytics.internalName #LOCAL view
Analytics.technicalName ISDINVOICELISTIT view
EndUserText.label Invoice List Item view
Metadata.allowExtensions true view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.modelingPattern #ANALYTICAL_DIMENSION view
ObjectModel.representativeKey InvoiceListItem view
ObjectModel.sapObjectNodeType.name InvoiceListItem view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.sizeCategory #L view
VDM.viewType #BASIC view

Fields (17)

KeyFieldSource TableSource FieldDescription
KEY InvoiceList vbeln
KEY InvoiceListItem posnr
BillingDocument vbeln_vf
NetAmount netwr
TaxAmount mwsbp
GrossAmount
RemunerationNetAmount kwert_rl
RemunerationTaxAmount mwsbp_rl
TransactionCurrency _BillingDocument TransactionCurrency
PricingIsIncomplete uvprs
SoldToParty kunag
LogicalSystem logsys
_InvoiceList _InvoiceList
_BillingDocument _BillingDocument
_TransactionCurrency _TransactionCurrency
_SoldToParty _SoldToParty
_LogicalSystem _LogicalSystem
@AccessControl.authorizationCheck: #MANDATORY
@AccessControl.personalData.blocking: #('TRANSACTIONAL_DATA')

@Analytics.dataCategory: #DIMENSION

@Analytics.dataExtraction: { enabled: true,
                             delta.changeDataCapture.mapping: [ { table: 'vbrl',
                                                                  role: #MAIN,
                                                                  viewElement: [ 'InvoiceList', 'InvoiceListItem' ],
                                                                  tableElement: [ 'vbeln', 'posnr' ] } ] }

@Analytics.internalName: #LOCAL
@Analytics.technicalName: 'ISDINVOICELISTIT'

@EndUserText.label: 'Invoice List Item'

@Metadata.allowExtensions: true
@Metadata.ignorePropagatedAnnotations: true

@ObjectModel.modelingPattern: #ANALYTICAL_DIMENSION
@ObjectModel.representativeKey: 'InvoiceListItem'
@ObjectModel.sapObjectNodeType.name: 'InvoiceListItem'

@ObjectModel.supportedCapabilities: [ #ANALYTICAL_DIMENSION,
                                      #CDS_MODELING_DATA_SOURCE,
                                      #CDS_MODELING_ASSOCIATION_TARGET,
                                      #SQL_DATA_SOURCE,
                                      #EXTRACTION_DATA_SOURCE ]

@ObjectModel.usageType: { dataClass: #TRANSACTIONAL, serviceQuality: #A, sizeCategory: #L }

@VDM.viewType: #BASIC

define view entity I_InvoiceListItem
  as select from vbrl

  /* start suppress warning calculated_field_check */
  association [1..1] to I_InvoiceList     as _InvoiceList         on $projection.InvoiceList = _InvoiceList.InvoiceList
  /* end suppress warning calculated_field_check */

  association [0..1] to I_BillingDocument as _BillingDocument     on $projection.BillingDocument = _BillingDocument.BillingDocument

  association [0..1] to I_Currency        as _TransactionCurrency on $projection.TransactionCurrency = _TransactionCurrency.Currency
  association [0..1] to I_Customer        as _SoldToParty         on $projection.SoldToParty = _SoldToParty.Customer
  association [0..1] to I_LogicalSystem   as _LogicalSystem       on $projection.LogicalSystem = _LogicalSystem.LogicalSystem

{
      // Key

      @Consumption.valueHelpDefinition: [ { entity: { name: 'I_InvoiceListStdVH', element: 'InvoiceList' } } ]
      @ObjectModel.foreignKey.association: '_InvoiceList'
  key vbeln                                                   as InvoiceList,

  key posnr                                                   as InvoiceListItem,

      // Billing

      @Consumption.valueHelpDefinition: [ { entity: { name: 'I_BillingDocumentStdVH', element: 'BillingDocument' } } ]
      @ObjectModel.foreignKey.association: '_BillingDocument'
      vbeln_vf                                                as BillingDocument,

      // Pricing

      @Semantics.amount.currencyCode: 'TransactionCurrency'
      netwr                                                   as NetAmount,

      @Semantics.amount.currencyCode: 'TransactionCurrency'
      mwsbp                                                   as TaxAmount,

      @Semantics.amount.currencyCode: 'TransactionCurrency'
      cast(netwr + mwsbp + kwert_rl + mwsbp_rl as brtwert_rl) as GrossAmount,


      @Semantics.amount.currencyCode: 'TransactionCurrency'
      kwert_rl                                                as RemunerationNetAmount,

      @Semantics.amount.currencyCode: 'TransactionCurrency'
      mwsbp_rl                                                as RemunerationTaxAmount,

      @ObjectModel.foreignKey.association: '_TransactionCurrency'
      _BillingDocument.TransactionCurrency                    as TransactionCurrency,

      uvprs                                                   as PricingIsIncomplete,

      // Sales

      @Consumption.valueHelpDefinition: [ { entity: { name: 'I_Customer_VH', element: 'Customer' } } ]
      @ObjectModel.foreignKey.association: '_SoldToParty'
      kunag                                                   as SoldToParty,

      // Admin

      @ObjectModel.foreignKey.association: '_LogicalSystem'
      logsys                                                  as LogicalSystem,

      // Association

      @ObjectModel.association.type: [ #TO_COMPOSITION_PARENT, #TO_COMPOSITION_ROOT ]
      _InvoiceList,

      _BillingDocument,
      _TransactionCurrency,
      _SoldToParty,
      _LogicalSystem
}