P_UNSETTLEDREFUNDS
P_UNSETTLEDREFUNDS is a Composite CDS View in SAP S/4HANA. It reads from 1 data source (I_AcctgDocPaymentCardData) and exposes 3 fields with key field AuthorizationByPaytSrvcPrvdr. It has 1 association to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_AcctgDocPaymentCardData | AcctgDoc | from |
Associations (1)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | I_OperationalAcctgDocItem | _AcctgDocItem | AcctgDoc.CompanyCode = _AcctgDocItem.CompanyCode and AcctgDoc.AccountingDocument = _AcctgDocItem.AccountingDocument and AcctgDoc.FiscalYear = _AcctgDocItem.FiscalYear and AcctgDoc.PaymentCardItem = _AcctgDocItem.PaymentCardItem |
Annotations (7)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #PRIVILEGED_ONLY | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| ObjectModel.usageType.serviceQuality | #X | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| VDM.private | true | view | |
| VDM.viewType | #COMPOSITE | view |
Fields (3)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | AuthorizationByPaytSrvcPrvdr | AuthorizationByPaytSrvcPrvdr | ||
| PaymentAmount | ||||
| AuthorizationCurrency | AuthorizationCurrency |
@AbapCatalog.viewEnhancementCategory: [#NONE]
@AccessControl.authorizationCheck: #PRIVILEGED_ONLY
//@EndUserText.label: 'Unsettled refunds'
@Metadata.ignorePropagatedAnnotations: true
@ObjectModel.usageType:{
serviceQuality: #X,
sizeCategory: #XL,
dataClass: #MIXED
}
@VDM: {
private: true,
viewType: #COMPOSITE
}
define view entity P_UNSETTLEDREFUNDS
as select from I_AcctgDocPaymentCardData as AcctgDoc
association [1..1] to I_OperationalAcctgDocItem as _AcctgDocItem on AcctgDoc.CompanyCode = _AcctgDocItem.CompanyCode
and AcctgDoc.AccountingDocument = _AcctgDocItem.AccountingDocument
and AcctgDoc.FiscalYear = _AcctgDocItem.FiscalYear
and AcctgDoc.PaymentCardItem = _AcctgDocItem.PaymentCardItem
{
key AuthorizationByPaytSrvcPrvdr,
@Semantics.amount.currencyCode: 'AuthorizationCurrency'
sum(_AcctgDocItem.AmountInTransactionCurrency) as PaymentAmount, // is a negative value
AuthorizationCurrency
}
where
AuthorizationByPaytSrvcPrvdr <> ''
and PaytCardSettlementIsCarriedOut = ' '
and _AcctgDocItem._JournalEntry.IsReversed <> 'X'
and _AcctgDocItem.AmountInTransactionCurrency < 0
group by
AuthorizationByPaytSrvcPrvdr,
AuthorizationCurrency
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_ACCTGDOCPAYMENTCARDDATA",
"I_JOURNALENTRY",
"I_OPERATIONALACCTGDOCITEM"
],
"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