I_CADocumentUI
Document UI enhancements
I_CADocumentUI is a Composite CDS View that provides data about "Document UI enhancements" in SAP S/4HANA. It reads from 1 data source (R_CADocumentTP) and exposes 55 fields with key field CADocumentNumber. It has 10 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| R_CADocumentTP | R_CADocumentTP | from |
Associations (10)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | P_CADocumentOpenAmountInTC | _OpenAmount | $projection.CADocumentNumber = _OpenAmount.CADocumentNumber |
| [1..1] | P_CADocumentDueAmountInTC | _DueAmount | $projection.CADocumentNumber = _DueAmount.CADocumentNumber |
| [1..1] | P_CADocumentClearedAmountInTC | _ClearedAmount | $projection.CADocumentNumber = _ClearedAmount.CADocumentNumber |
| [0..1] | P_CADocumentBPItemCount | _DocBPItemCount | $projection.CADocumentNumber = _DocBPItemCount.CADocumentNumber |
| [0..1] | P_CADocumentGLItemCount | _DocGLItemCount | $projection.CADocumentNumber = _DocGLItemCount.CADocumentNumber |
| [0..1] | P_CADocumentPaytInfoPaymentLot | _PayInfoLot | $projection.CADocumentNumber = _PayInfoLot.CADocumentNumber and $projection.CADocumentOriginCode = '05' |
| [0..1] | P_CADocumentPaytInfoPaymentRun | _PayInfoRun | $projection.CADocumentNumber = _PayInfoRun.CADocumentNumber and $projection.CADocumentOriginCode = '06' |
| [0..1] | P_CADocumentPaytInfoReturn | _PayInfoReturn | $projection.CADocumentNumber = _PayInfoReturn.CAPaymentDocument and $projection.CADocumentOriginCode = '08' |
| [0..1] | P_CADocumentPaytInfoPaytOrder | _PayInfoOrder | $projection.CADocumentNumber = _PayInfoOrder.CAPaymentDocument and $projection.CADocumentOriginCode = '45' |
| [0..1] | P_CADocumentPaytInfoRpaytReq | _PayInfoRepayReq | $projection.CADocumentNumber = _PayInfoRepayReq.CAPaymentDocument and $projection.CADocumentOriginCode = '35' |
Annotations (8)
| Name | Value | Level | Field |
|---|---|---|---|
| EndUserText.label | Document UI enhancements | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| AccessControl.personalData.blocking | #REQUIRED | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| ObjectModel.usageType.sizeCategory | #XXL | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.representativeKey | CADocumentNumber | view | |
| VDM.viewType | #COMPOSITE | view |
Fields (55)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CADocumentNumber | CADocumentNumber | ||
| CADocumentOriginCode | CADocumentOriginCode | |||
| CAOpenAmountInTransactionCrcy | _OpenAmount | CAOpenAmountInTransactionCrcy | ||
| CADueAmountInTransactionCrcy | _DueAmount | CADueAmountInTransactionCrcy | ||
| CAClrdAmountInTransactionCrcy | _ClearedAmount | CAClrdAmountInTransactionCrcy | ||
| TransactionCurrency | TransactionCurrency | |||
| NumberOfCADocumentBPItems | _DocBPItemCount | NumberOfCADocumentBPItems | ||
| NumberOfCADocumentGLItems | _DocGLItemCount | NumberOfCADocumentGLItems | ||
| HouseBankendasHouseBank | ||||
| HouseBankAccountendasHouseBankAccount | ||||
| CAMassRunDateendasCAMassRunDate | ||||
| CAMassRunIDendasCAMassRunID | ||||
| CAPaymentDocumentendasCAPaymentDocument | ||||
| CAPaymentMethodendasCAPaymentMethod | ||||
| CompanyCodeendasCompanyCode | ||||
| CAPaymentLot | _PayInfoLot | CAPaymentLot | ||
| CAPaymentLotItem | _PayInfoLot | CAPaymentLotItem | ||
| BankNumber | _PayInfoLot | BankNumber | ||
| BankAccount | _PayInfoLot | BankAccount | ||
| BankCountry | _PayInfoLot | BankCountry | ||
| BankDetailReference | _PayInfoLot | BankDetailReference | ||
| CANoteToPayeeInPayment | _PayInfoLot | CANoteToPayeeInPayment | ||
| LastName | _PayInfoRun | LastName | ||
| FirstName | _PayInfoRun | FirstName | ||
| CAPaymentDocumentReference | _PayInfoRun | CAPaymentDocumentReference | ||
| CAPaymentOrder | _PayInfoOrder | CAPaymentOrder | ||
| CAPaymentOrderExternalRef | _PayInfoOrder | CAPaymentOrderExternalRef | ||
| CAPaymentOrderStatus | _PayInfoOrder | CAPaymentOrderStatus | ||
| CANetAmountInTransCurrency | _PayInfoOrder | CANetAmountInTransCurrency | ||
| PaidItemDueDate | _PayInfoOrder | PaidItemDueDate | ||
| ValueDate | _PayInfoOrder | ValueDate | ||
| CAPaymentOrderExpirationDate | _PayInfoOrder | CAPaymentOrderExpirationDate | ||
| BusinessPartner | _PayInfoOrder | BusinessPartner | ||
| CAReturnLot | _PayInfoReturn | CAReturnLot | ||
| CAItemNumberInReturnLot | _PayInfoReturn | CAItemNumberInReturnLot | ||
| CAReturnReasonOfHouseBank | _PayInfoReturn | CAReturnReasonOfHouseBank | ||
| CAReturnCharge1 | _PayInfoReturn | CAReturnCharge1 | ||
| TaxCodeForFirstReturnCharge | _PayInfoReturn | TaxCodeForFirstReturnCharge | ||
| CATaxAmountForReturnCharge1 | _PayInfoReturn | CATaxAmountForReturnCharge1 | ||
| CAChargeAmountFromBank1 | _PayInfoReturn | CAChargeAmountFromBank1 | ||
| TaxCodeForFirstBankCharge | _PayInfoReturn | TaxCodeForFirstBankCharge | ||
| CATaxAmountOfBankCharge1 | _PayInfoReturn | CATaxAmountOfBankCharge1 | ||
| CARepaymentRequest | _PayInfoRepayReq | CARepaymentRequest | ||
| CAAmountInTransactionCurrency | _PayInfoRepayReq | CAAmountInTransactionCurrency | ||
| CANetDueDate | _PayInfoRepayReq | CANetDueDate | ||
| CAPaymentCompanyCode | _PayInfoRepayReq | CAPaymentCompanyCode | ||
| ProfitCenter | _PayInfoRepayReq | ProfitCenter | ||
| CARepaymentRequestDocument | _PayInfoRepayReq | CARepaymentRequestDocument | ||
| CAPostingDate | _PayInfoRepayReq | CAPostingDate | ||
| PayeeBankNumber | _PayInfoRepayReq | PayeeBankNumber | ||
| PayeeBankCountry | _PayInfoRepayReq | PayeeBankCountry | ||
| PayeeBankAccount | _PayInfoRepayReq | PayeeBankAccount | ||
| PayeeIBAN | _PayInfoRepayReq | PayeeIBAN | ||
| PayeeSWIFTCode | _PayInfoRepayReq | PayeeSWIFTCode | ||
| _Currency | _Currency |
@EndUserText.label: 'Document UI enhancements'
@AccessControl.authorizationCheck: #CHECK
@AccessControl.personalData.blocking: #REQUIRED
@ObjectModel.usageType.dataClass: #TRANSACTIONAL
@ObjectModel.usageType.sizeCategory: #XXL
@ObjectModel.usageType.serviceQuality: #C
@ObjectModel.representativeKey: 'CADocumentNumber'
@VDM.viewType: #COMPOSITE
define view entity I_CADocumentUI
as select from R_CADocumentTP
association [1..1] to P_CADocumentOpenAmountInTC as _OpenAmount on $projection.CADocumentNumber = _OpenAmount.CADocumentNumber
association [1..1] to P_CADocumentDueAmountInTC as _DueAmount on $projection.CADocumentNumber = _DueAmount.CADocumentNumber
association [1..1] to P_CADocumentClearedAmountInTC as _ClearedAmount on $projection.CADocumentNumber = _ClearedAmount.CADocumentNumber
association [0..1] to P_CADocumentBPItemCount as _DocBPItemCount on $projection.CADocumentNumber = _DocBPItemCount.CADocumentNumber
association [0..1] to P_CADocumentGLItemCount as _DocGLItemCount on $projection.CADocumentNumber = _DocGLItemCount.CADocumentNumber
association [0..1] to P_CADocumentPaytInfoPaymentLot as _PayInfoLot on $projection.CADocumentNumber = _PayInfoLot.CADocumentNumber and $projection.CADocumentOriginCode = '05'
association [0..1] to P_CADocumentPaytInfoPaymentRun as _PayInfoRun on $projection.CADocumentNumber = _PayInfoRun.CADocumentNumber and $projection.CADocumentOriginCode = '06'
association [0..1] to P_CADocumentPaytInfoReturn as _PayInfoReturn on $projection.CADocumentNumber = _PayInfoReturn.CAPaymentDocument and $projection.CADocumentOriginCode = '08'
association [0..1] to P_CADocumentPaytInfoPaytOrder as _PayInfoOrder on $projection.CADocumentNumber = _PayInfoOrder.CAPaymentDocument and $projection.CADocumentOriginCode = '45'
association [0..1] to P_CADocumentPaytInfoRpaytReq as _PayInfoRepayReq on $projection.CADocumentNumber = _PayInfoRepayReq.CAPaymentDocument and $projection.CADocumentOriginCode = '35'
{
key CADocumentNumber,
CADocumentOriginCode,
@Semantics.amount.currencyCode: 'TransactionCurrency'
_OpenAmount.CAOpenAmountInTransactionCrcy,
@Semantics.amount.currencyCode: 'TransactionCurrency'
_DueAmount.CADueAmountInTransactionCrcy,
@Semantics.amount.currencyCode: 'TransactionCurrency'
_ClearedAmount.CAClrdAmountInTransactionCrcy,
@ObjectModel.foreignKey.association: '_Currency'
TransactionCurrency,
_DocBPItemCount.NumberOfCADocumentBPItems,
_DocGLItemCount.NumberOfCADocumentGLItems,
//Payment Info Common fields
case when CADocumentOriginCode = '05' then _PayInfoLot._BkClrgAcct.HouseBank
when CADocumentOriginCode = '06' then _PayInfoRun.HouseBank
when CADocumentOriginCode = '08' then _PayInfoReturn.HouseBank
when CADocumentOriginCode = '45' then _PayInfoOrder.HouseBank
end as HouseBank,
case when CADocumentOriginCode = '05' then _PayInfoLot._BkClrgAcct.HouseBankAccount
when CADocumentOriginCode = '06' then _PayInfoRun.HouseBankAccount
when CADocumentOriginCode = '08' then _PayInfoReturn.HouseBankAccount
when CADocumentOriginCode = '45' then _PayInfoOrder.HouseBankAccount
end as HouseBankAccount,
case when CADocumentOriginCode = '06' then _PayInfoRun.CAMassRunDate
when CADocumentOriginCode = '45' then _PayInfoOrder.CAMassRunDate
end as CAMassRunDate,
case when CADocumentOriginCode = '06' then _PayInfoRun.CAMassRunID
when CADocumentOriginCode = '45' then _PayInfoOrder.CAMassRunID
end as CAMassRunID,
case when CADocumentOriginCode = '06' then _PayInfoRun.CAMassRunDateAndID
when CADocumentOriginCode = '45' then _PayInfoOrder.CAMassRunDateAndID
end as CAMassRunDateAndID,
case when CADocumentOriginCode = '35' then _PayInfoRepayReq.CAPaymentDocument
when CADocumentOriginCode = '45' then _PayInfoOrder.CAPaymentDocument
end as CAPaymentDocument,
case when CADocumentOriginCode = '06' then _PayInfoRun.CAPaymentMethod
when CADocumentOriginCode = '35' then _PayInfoRepayReq.CAPaymentMethod
when CADocumentOriginCode = '45' then _PayInfoOrder.CAPaymentMethod
end as CAPaymentMethod,
case when CADocumentOriginCode = '35' then _PayInfoRepayReq.CABankClearingAccount
when CADocumentOriginCode = '05' then _PayInfoLot.CABankClearingAccount
end as CABankClearingAccount,
case when CADocumentOriginCode = '35' then _PayInfoRepayReq.CompanyCode
when CADocumentOriginCode = '45' then _PayInfoOrder.CompanyCode
end as CompanyCode,
case when CADocumentOriginCode = '35' then _PayInfoRepayReq.CABankAccountHolderName
when CADocumentOriginCode = '05' then _PayInfoLot.CABankAccountHolderName
end as CABankAccountHolderName,
//Payment Info Payment Lot
_PayInfoLot.CAPaymentLot,
_PayInfoLot.CAPaymentLotItem,
_PayInfoLot.BankNumber,
_PayInfoLot.BankAccount,
_PayInfoLot.BankCountry,
_PayInfoLot.BankDetailReference,
_PayInfoLot.CANoteToPayeeInPayment,
//Payment Info Payment Run
_PayInfoRun.LastName,
_PayInfoRun.FirstName,
_PayInfoRun.CAPaymentDocumentReference,
//Payment Info Payment Order
_PayInfoOrder.CAPaymentOrder,
_PayInfoOrder.CAPaymentOrderExternalRef,
_PayInfoOrder.CAPaymentOrderStatus,
_PayInfoOrder.CANetAmountInTransCurrency,
_PayInfoOrder.PaidItemDueDate,
_PayInfoOrder.ValueDate,
_PayInfoOrder.CAPaymentOrderExpirationDate,
_PayInfoOrder.BusinessPartner,
//Payment Info Return
_PayInfoReturn.CAReturnLot,
_PayInfoReturn.CAItemNumberInReturnLot,
_PayInfoReturn.CAReturnReasonOfHouseBank,
_PayInfoReturn.CAReturnCharge1,
_PayInfoReturn.TaxCodeForFirstReturnCharge,
_PayInfoReturn.CATaxAmountForReturnCharge1,
_PayInfoReturn.CAChargeAmountFromBank1,
_PayInfoReturn.TaxCodeForFirstBankCharge,
_PayInfoReturn.CATaxAmountOfBankCharge1,
//Payment Info Repayment Request
_PayInfoRepayReq.CARepaymentRequest,
_PayInfoRepayReq.CAStatusOfRepaymentRequest,
_PayInfoRepayReq.CAAmountInTransactionCurrency,
_PayInfoRepayReq.CANetDueDate,
_PayInfoRepayReq.CAPaymentCompanyCode,
_PayInfoRepayReq.ProfitCenter,
_PayInfoRepayReq.CARepaymentRequestDocument,
_PayInfoRepayReq.CAPostingDate,
_PayInfoRepayReq.PayeeBankNumber,
_PayInfoRepayReq.PayeeBankCountry,
_PayInfoRepayReq.PayeeBankAccount,
_PayInfoRepayReq.PayeeIBAN,
_PayInfoRepayReq.PayeeSWIFTCode,
_Currency
}
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