P_LstMiFIAcctgDocItmByDocument
P_LstMiFIAcctgDocItmByDocument is a Composite CDS View in SAP S/4HANA. It reads from 1 data source (I_OperationalAcctgDocItem) and exposes 6 fields with key fields FiscalYear, CompanyCode, AccountingDocument.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_OperationalAcctgDocItem | I_OperationalAcctgDocItem | from |
Annotations (7)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PLSTMIRTACCDOC | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| VDM.viewType | #COMPOSITE | view | |
| VDM.private | true | view |
Fields (6)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | FiscalYear | FiscalYear | ||
| KEY | CompanyCode | CompanyCode | ||
| KEY | AccountingDocument | AccountingDocument | ||
| BillingDocument | BillingDocument | |||
| Min_ClearingDocument | ||||
| Max_ClearingDocument |
@AbapCatalog.sqlViewName: 'PLSTMIRTACCDOC'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true
@AccessControl.authorizationCheck: #NOT_REQUIRED
//@EndUserText.label: 'Last Mile FI Accounting Item by Document'
@ClientHandling.algorithm: #SESSION_VARIABLE
@VDM.viewType: #COMPOSITE
@VDM.private: true
define view P_LstMiFIAcctgDocItmByDocument
as select from I_OperationalAcctgDocItem
{
key FiscalYear,
key CompanyCode,
key AccountingDocument,
BillingDocument,
min (ClearingAccountingDocument) as Min_ClearingDocument,
max (ClearingAccountingDocument) as Max_ClearingDocument
}
where
FinancialAccountType = #farp_koart.'D'
// and DebitCreditCode = #shkzg.'S'
group by
FiscalYear,
CompanyCode,
AccountingDocument,
BillingDocument
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