P_PurReqTrkGRInv
GR and Invoices without parameter
P_PurReqTrkGRInv is a Consumption CDS View that provides data about "GR and Invoices without parameter" in SAP S/4HANA. It reads from 1 data source (I_PurchaseOrderHistory) and exposes 4 fields with key fields PurchaseOrder, PurchaseOrderItem.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_PurchaseOrderHistory | I_PurchaseOrderHistory | from |
Annotations (6)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PREQTRKGRINV | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #PRIVILEGED_ONLY | view | |
| EndUserText.label | GR and Invoices without parameter | view | |
| VDM.private | true | view | |
| VDM.viewType | #CONSUMPTION | view |
Fields (4)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | PurchaseOrder | PurchaseOrder | ||
| KEY | PurchaseOrderItem | PurchaseOrderItem | ||
| curr182endasGoodsReceiptAmountInDspCrcy | ||||
| curr182endasInvoicedAmountInDspCurrency |
@AbapCatalog.sqlViewName: 'PREQTRKGRINV'
@AbapCatalog.compiler.compareFilter: true
@AccessControl.authorizationCheck: #PRIVILEGED_ONLY
@EndUserText.label: 'GR and Invoices without parameter'
@VDM.private: true
@VDM.viewType: #CONSUMPTION
define view P_PurReqTrkGRInv as select from I_PurchaseOrderHistory
{
key PurchaseOrder,
key PurchaseOrderItem,
case PurchaseOrderTransactionType
when '1'
then
case DebitCreditCode
when 'S' then Quantity
else (-1 * Quantity)
end
else cast(0 as menge_d)
end as GoodsReceiptQty,
case PurchaseOrderTransactionType
when '1'
then
case DebitCreditCode
when 'S'
then PurchaseOrderAmount
else
-1 * PurchaseOrderAmount
end
else cast(0 as abap.curr(18, 2))
end as GoodsReceiptAmountInDspCrcy,
case PurchaseOrderTransactionType
when '2'
then
case DebitCreditCode
when 'S'
then Quantity
else (-1 * Quantity)
end
else cast(0 as menge_d)
end as InvoiceReceiptQty,
case PurchaseOrderTransactionType
when '2'
then
case DebitCreditCode
when 'S'
then PurchaseOrderAmount
else
- 1 * PurchaseOrderAmount
end
else cast(0 as abap.curr(18, 2))
end as InvoicedAmountInDspCurrency
}
where
PurchaseOrderTransactionType = '1'
or PurchaseOrderTransactionType = '2'
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_PURCHASEORDERHISTORY"
],
"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