P_InvcAmtPerPurgDocItem
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)
| Source | Alias | Join Type |
|---|---|---|
| I_PurchasingDocumentHistoryBsc | I_PurchasingDocumentHistoryBsc | from |
Annotations (12)
| Name | Value | Level | Field |
|---|---|---|---|
| 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)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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":""
}
}*/
Learn More
- What Is a CDS View in SAP S/4HANA?
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- CDS View Annotations — A Complete Guide
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA