P_CADocumentOpenAmountInTC
Open Amount of a Contr Acctg Document
P_CADocumentOpenAmountInTC is a Composite CDS View that provides data about "Open Amount of a Contr Acctg Document" in SAP S/4HANA. It reads from 1 data source (I_CADocumentBPItem) and exposes 4 fields with key field CADocumentNumber.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_CADocumentBPItem | I_CADocumentBPItem | from |
Annotations (8)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| EndUserText.label | Open Amount of a Contr Acctg Document | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| VDM.viewType | #COMPOSITE | view | |
| VDM.private | true | view |
Fields (4)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CADocumentNumber | CADocumentNumber | ||
| TransactionCurrency | TransactionCurrency | |||
| CAOpenAmountInTransactionCrcy | ||||
| _Currency | _Currency |
@AbapCatalog.viewEnhancementCategory: [#NONE]
@AccessControl.authorizationCheck: #NOT_REQUIRED
@EndUserText.label: 'Open Amount of a Contr Acctg Document'
@Metadata.ignorePropagatedAnnotations: true
@ObjectModel.usageType:{
serviceQuality: #C,
sizeCategory: #XL,
dataClass: #TRANSACTIONAL
}
@VDM.viewType: #COMPOSITE
@VDM.private: true
define view entity P_CADocumentOpenAmountInTC
as select from I_CADocumentBPItem
{
key CADocumentNumber,
@ObjectModel.foreignKey.association: '_Currency'
TransactionCurrency,
@Semantics.amount.currencyCode: 'TransactionCurrency'
cast (sum(CAAmountInTransactionCurrency) as betrw_kk) as CAOpenAmountInTransactionCrcy,
//Association
_Currency
}
where
CAClearingReason = ''
and CANetDueDate > $session.system_date
group by
CADocumentNumber,
TransactionCurrency
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