P_GB_PAYTPRACTICEPERF1
GB PPPR Layer 1
P_GB_PAYTPRACTICEPERF1 is a Composite CDS View that provides data about "GB PPPR Layer 1" in SAP S/4HANA. It reads from 1 data source (I_OperationalAcctgDocItem) and exposes 65 fields with key fields CompanyCode, Supplier, SpecialGLTransactionType, SpecialGLCode, ClearingDate. Part of development package GLO_FIN_IS_GB_AP.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_OperationalAcctgDocItem | I_OperationalAcctgDocItem | from |
Annotations (10)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PGBPPPR1 | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #MANDATORY | view | |
| ObjectModel.usageType.sizeCategory | #XXL | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| AccessControl.personalData.blocking | #BLOCKED_DATA_INCLUDED | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| VDM.viewType | #COMPOSITE | view | |
| VDM.private | true | view |
Fields (65)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CompanyCode | CompanyCode | ||
| KEY | Supplier | Supplier | ||
| KEY | SpecialGLTransactionType | SpecialGLTransactionType | ||
| KEY | SpecialGLCode | SpecialGLCode | ||
| KEY | ClearingDate | ClearingDate | ||
| KEY | ClearingJournalEntry | ClearingJournalEntry | ||
| KEY | AssignmentReference | AssignmentReference | ||
| KEY | FiscalYear | FiscalYear | ||
| KEY | AccountingDocument | AccountingDocument | ||
| KEY | AccountingDocumentItem | AccountingDocumentItem | ||
| PostingDate | PostingDate | |||
| DocumentDate | DocumentDate | |||
| DueCalculationBaseDate | DueCalculationBaseDate | |||
| AccountingDocumentType | AccountingDocumentType | |||
| FiscalPeriod | FiscalPeriod | |||
| PostingKey | PostingKey | |||
| BusinessArea | BusinessArea | |||
| DebitCreditCode | DebitCreditCode | |||
| TransactionCurrency | TransactionCurrency | |||
| AmountInTransactionCurrency | AmountInTransactionCurrency | |||
| CompanyCodeCurrency | CompanyCodeCurrency | |||
| AmountInCompanyCodeCurrency | AmountInCompanyCodeCurrency | |||
| AmountInAdditionalCurrency1 | AmountInAdditionalCurrency1 | |||
| AdditionalCurrency1 | AdditionalCurrency1 | |||
| AmountInAdditionalCurrency2 | AmountInAdditionalCurrency2 | |||
| AdditionalCurrency2 | AdditionalCurrency2 | |||
| GLAccount | GLAccount | |||
| PaymentMethod | PaymentMethod | |||
| ClearingJournalEntryFiscalYear | ClearingJournalEntryFiscalYear | |||
| PaymentTerms | PaymentTerms | |||
| CashDiscount1Days | CashDiscount1Days | |||
| CashDiscount2Days | CashDiscount2Days | |||
| NetPaymentDays | NetPaymentDays | |||
| CashDiscount1Percent | CashDiscount1Percent | |||
| CashDiscount2Percent | CashDiscount2Percent | |||
| WithholdingTaxCode | WithholdingTaxCode | |||
| WithholdingTaxBaseAmount | WithholdingTaxBaseAmount | |||
| WithholdingTaxAmount | WithholdingTaxAmount | |||
| JointVentureCostRecoveryCode | JointVentureCostRecoveryCode | |||
| DocumentItemText | DocumentItemText | |||
| TaxCode | TaxCode | |||
| InvoiceReference | InvoiceReference | |||
| InvoiceReferenceFiscalYear | InvoiceReferenceFiscalYear | |||
| InvoiceItemReference | InvoiceItemReference | |||
| _FinancialAccountType | _FinancialAccountType | |||
| _SpecialGLCode | _SpecialGLCode | |||
| _Supplier | _Supplier | |||
| _CompanyCode | _CompanyCode | |||
| _JournalEntry | _JournalEntry | |||
| _FiscalPeriod | _FiscalPeriod | |||
| _AccountingDocumentType | _AccountingDocumentType | |||
| FinancialAccountType | I_OperationalAcctgDocItem | FinancialAccountType | ||
| _ClearingJournalEntry | _ClearingJournalEntry | |||
| _FiscalYear | _FiscalYear | |||
| _ClearingJrnlEntryFiscalYear | _ClearingJrnlEntryFiscalYear | |||
| ChartOfAccounts | I_OperationalAcctgDocItem | ChartOfAccounts | ||
| _ChartOfAccounts | _ChartOfAccounts | |||
| _GLAccountInChartOfAccounts | _GLAccountInChartOfAccounts | |||
| _AdditionalCurrency1 | _AdditionalCurrency1 | |||
| _AdditionalCurrency2 | _AdditionalCurrency2 | |||
| _PostingKey | _PostingKey | |||
| _BusinessArea | _BusinessArea | |||
| _DebitCreditCode | _DebitCreditCode | |||
| _CompanyCodeCurrency | _CompanyCodeCurrency | |||
| _TransactionCurrency | _TransactionCurrency |
@AbapCatalog.sqlViewName: 'PGBPPPR1'
@AbapCatalog.compiler.compareFilter: true
@AccessControl.authorizationCheck: #MANDATORY
//@EndUserText.label: 'GB PPPR Layer 1'
@ObjectModel.usageType.sizeCategory: #XXL // XL
@ObjectModel.usageType.serviceQuality: #C // D
@ObjectModel.usageType.dataClass: #MIXED
@AccessControl.personalData.blocking: #BLOCKED_DATA_INCLUDED
@ClientHandling.algorithm: #SESSION_VARIABLE
@VDM.viewType: #COMPOSITE
@VDM.private: true
define view P_GB_PAYTPRACTICEPERF1
as select from I_OperationalAcctgDocItem
{
@ObjectModel.foreignKey.association: '_CompanyCode'
key CompanyCode,
key Supplier,
key SpecialGLTransactionType,
@ObjectModel.foreignKey.association: '_SpecialGLCode'
key SpecialGLCode,
key ClearingDate,
@ObjectModel.foreignKey.association: '_ClearingJournalEntry'
key ClearingJournalEntry, // AUGBL!
key AssignmentReference,
@ObjectModel.foreignKey.association: '_FiscalYear'
key FiscalYear,
key AccountingDocument,
key AccountingDocumentItem,
// ENTRY DATE -> CPUDT -> get from journal_entry
PostingDate,
DocumentDate,
DueCalculationBaseDate,
@ObjectModel.foreignKey.association: '_AccountingDocumentType'
AccountingDocumentType,
@ObjectModel.foreignKey.association: '_FiscalPeriod'
FiscalPeriod,
@ObjectModel.foreignKey.association: '_PostingKey'
PostingKey,
@ObjectModel.foreignKey.association: '_BusinessArea'
BusinessArea,
@ObjectModel.foreignKey.association: '_DebitCreditCode'
DebitCreditCode,
@ObjectModel.foreignKey.association: '_TransactionCurrency'
@Semantics.currencyCode:true
TransactionCurrency, // waers
@Semantics: { amount : {currencyCode: 'TransactionCurrency'} }
AmountInTransactionCurrency, // wrbtr
@ObjectModel.foreignKey.association: '_CompanyCodeCurrency'
@Semantics.currencyCode:true
CompanyCodeCurrency, // hwaer
@Semantics: { amount : {currencyCode: 'CompanyCodeCurrency'} }
AmountInCompanyCodeCurrency, // dmbtr
@Semantics: { amount : {currencyCode: 'AdditionalCurrency1'} }
AmountInAdditionalCurrency1, // dmbe2
@ObjectModel.foreignKey.association: '_AdditionalCurrency1'
@Semantics.currencyCode:true
AdditionalCurrency1, // hwae2
@Semantics: { amount : {currencyCode: 'AdditionalCurrency2'} }
AmountInAdditionalCurrency2, // dmbe3
@ObjectModel.foreignKey.association: '_AdditionalCurrency2'
@Semantics.currencyCode:true
AdditionalCurrency2, // hwae3
@ObjectModel.foreignKey.association: '_GLAccountInChartOfAccounts'
GLAccount,
PaymentMethod,
@ObjectModel.foreignKey.association: '_ClearingJrnlEntryFiscalYear'
ClearingJournalEntryFiscalYear,
PaymentTerms,
CashDiscount1Days,
CashDiscount2Days,
NetPaymentDays,
CashDiscount1Percent,
CashDiscount2Percent,
WithholdingTaxCode,
@Semantics.amount.currencyCode: 'CompanyCodeCurrency'
WithholdingTaxBaseAmount,
@Semantics.amount.currencyCode: 'CompanyCodeCurrency'
WithholdingTaxAmount,
JointVentureCostRecoveryCode,
DocumentItemText,
TaxCode,
// landl not needed
// TargetSpecialGLCode, zumsk, not needed?
// ClearingDocFiscalYear, // auggj
// DocumentReferenceID, xblnr
case
when ClearingJournalEntry <> '' then '' // BSAK
when ClearingJournalEntry = '' then 'O' // BSIK
else 'N' // figure out else branch
end as StatusFlagValue,
case
when ClearingJournalEntry <> '' then '1' // BSAK cleared
when ClearingJournalEntry = '' then '0' // BSIK open
else '2' // figure out else branch
end as IsCleared,
InvoiceReference,
InvoiceReferenceFiscalYear,
InvoiceItemReference,
_FinancialAccountType,
_SpecialGLCode,
_Supplier,
_CompanyCode,
_JournalEntry,
_FiscalPeriod,
_AccountingDocumentType,
I_OperationalAcctgDocItem.FinancialAccountType,
_ClearingJournalEntry,
_FiscalYear,
_ClearingJrnlEntryFiscalYear,
I_OperationalAcctgDocItem.ChartOfAccounts,
_ChartOfAccounts,
_GLAccountInChartOfAccounts,
_AdditionalCurrency1,
_AdditionalCurrency2,
_PostingKey,
_BusinessArea,
_DebitCreditCode,
_CompanyCodeCurrency,
_TransactionCurrency
}
where
AccountingDocumentCategory <> 'M'
and AccountingDocumentCategory <> 'D'
and AccountingDocumentCategory <> 'S'
and AccountingDocumentCategory <> 'V'
and AccountingDocumentCategory <> 'W'
and AccountingDocumentCategory <> 'Z'
and FinancialAccountType = 'K'
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