P_InvcAmtPerPurgDocItem

DDL: P_INVCAMTPERPURGDOCITEM SQL: PGRCINVAMTPDI Type: view CONSUMPTION

Invoice Amount

P_InvcAmtPerPurgDocItem is a Consumption CDS View that provides data about "Invoice Amount" in SAP S/4HANA. It reads from 1 data source (I_PurchasingDocumentHistoryBsc) and exposes 4 fields with key fields PurchasingDocument, PurchasingDocumentItem.

Data Sources (1)

SourceAliasJoin Type
I_PurchasingDocumentHistoryBsc I_PurchasingDocumentHistoryBsc from

Annotations (12)

NameValueLevelField
AbapCatalog.sqlViewName PGRCINVAMTPDI view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #CHECK view
EndUserText.label Invoice Amount view
VDM.viewType #CONSUMPTION view
VDM.private true view
AbapCatalog.buffering.status #NOT_ALLOWED view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.sizeCategory #XXL view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.dataClass #MIXED view

Fields (4)

KeyFieldSource TableSource FieldDescription
KEY PurchasingDocument PurchasingDocument
KEY PurchasingDocumentItem PurchasingDocumentItem
Currency Currency
InvoicedAmount
@AbapCatalog.sqlViewName: 'PGRCINVAMTPDI'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true
@AccessControl.authorizationCheck: #CHECK
@EndUserText.label: 'Invoice Amount'
@VDM.viewType: #CONSUMPTION
@VDM.private: true
@AbapCatalog.buffering.status: #NOT_ALLOWED
@ClientHandling.algorithm: #SESSION_VARIABLE
@ObjectModel.usageType.sizeCategory: #XXL
@ObjectModel.usageType.serviceQuality: #D
@ObjectModel.usageType.dataClass: #MIXED
define view P_InvcAmtPerPurgDocItem as select from I_PurchasingDocumentHistoryBsc
{
    
  key PurchasingDocument,
  key PurchasingDocumentItem,
      Currency,
      @Semantics.amount.currencyCode: 'Currency'
      sum (PurOrdAmountInCompanyCodeCrcy) as InvoicedAmount
}

where PurchasingHistoryDocumentType = '2'
group by 
  PurchasingDocument,
  PurchasingDocumentItem,
  Currency
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_PURCHASINGDOCUMENTHISTORYBSC"
],
"ASSOCIATED":
[],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/