P_OplAcctgDocItemCreditSum
P_OplAcctgDocItemCreditSum is a Composite CDS View in SAP S/4HANA. It reads from 1 data source (I_OperationalAcctgDocItem) and exposes 5 fields with key fields CompanyCode, AccountingDocument, FiscalYear, TaxCode.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_OperationalAcctgDocItem | I_OperationalAcctgDocItem | from |
Annotations (6)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PFIOPACCTGDITCS | view | |
| AbapCatalog.preserveKey | true | view | |
| VDM.viewType | #COMPOSITE | view | |
| VDM.private | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view |
Fields (5)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CompanyCode | CompanyCode | ||
| KEY | AccountingDocument | AccountingDocument | ||
| KEY | FiscalYear | FiscalYear | ||
| KEY | TaxCode | TaxCode | ||
| AmountInCompanyCodeCurrency |
@AbapCatalog.sqlViewName: 'PFIOPACCTGDITCS'
@AbapCatalog.preserveKey:true
@VDM.viewType: #COMPOSITE
@VDM.private: true
//@Analytics: { dataCategory: #DIMENSION }
@AccessControl.authorizationCheck: #NOT_REQUIRED
//@EndUserText.label: 'Operational Acc. Doc. It. - Credit Sum'
@ClientHandling.algorithm: #SESSION_VARIABLE
define view P_OplAcctgDocItemCreditSum as
select from I_OperationalAcctgDocItem
{
key CompanyCode,
key AccountingDocument,
key FiscalYear,
key TaxCode,
sum(AmountInCompanyCodeCurrency) as AmountInCompanyCodeCurrency
}
where
AccountingDocumentItemType <> 'T' and
FinancialAccountType = 'S' and
(DebitCreditCode = 'H' or (DebitCreditCode = 'S' and IsNegativePosting = 'X')) //DebitCreditCode(=shkzg_calc) changed in P_BSEG_COM1 in case XNEGP=X
group by CompanyCode, AccountingDocument, FiscalYear, TaxCode
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"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