C_RO_SAFTPaymentItemC
Payment Data for RO SAFT - Cube
C_RO_SAFTPaymentItemC is a Consumption CDS View (Cube) that provides data about "Payment Data for RO SAFT - Cube" in SAP S/4HANA. It reads from 2 data sources (I_JournalEntry, P_RO_SAFTPaymnetItemNew) and exposes 37 fields with key fields StatryRptCategory, StatryRptgEntity, StatryRptRunID, SourceLedger, CompanyCode. Part of development package GLO_FIN_IS_SAFT_RO.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| I_JournalEntry | Bkpf | inner |
| P_RO_SAFTPaymnetItemNew | P_RO_SAFTPaymnetItemNew | from |
Parameters (3)
| Name | Type | Default |
|---|---|---|
| P_VATRegistration | stceg | |
| P_UserSystemIdentifier | sysid | |
| P_AlternativeGLAccountIsUsed | saft_ro_alt_gl_account_flag |
Annotations (14)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | CROSAFTPAYITEMC | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| VDM.viewType | #CONSUMPTION | view | |
| Analytics.dataCategory | #CUBE | view | |
| Analytics.internalName | #LOCAL | view | |
| ObjectModel.usageType.serviceQuality | #X | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| AccessControl.personalData.blocking | #BLOCKED_DATA_INCLUDED | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| Metadata.allowExtensions | true | view | |
| EndUserText.label | Payment Data for RO SAFT - Cube | view |
Fields (37)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | StatryRptCategory | Item | StatryRptCategory | Report ID |
| KEY | StatryRptgEntity | Item | StatryRptgEntity | Reporting Entity |
| KEY | StatryRptRunID | Item | StatryRptRunID | Report Run ID |
| KEY | SourceLedger | Item | SourceLedger | Source Ledger |
| KEY | CompanyCode | Item | CompanyCode | Receiver Company Code |
| KEY | AccountingDocument | Item | AccountingDocument | Journal Entry |
| KEY | FiscalYear | Item | FiscalYear | G/L Fiscal Year |
| KEY | LedgerGLLineItem | Item | LedgerGLLineItem | Journal Entry Item |
| KEY | Ledger | Item | Ledger | Ledger |
| AccountingDocumentType | Item | AccountingDocumentType | Journal Entry Type | |
| PostingDate | Item | PostingDate | Posting Date for GR | |
| FiscalPeriod | Item | FiscalPeriod | Tax period | |
| DocumentDate | Item | DocumentDate | Journal Entry Date | |
| TaxReportingDate | Item | TaxReportingDate | Tax Reporting Date | |
| RO_SAFTJournalTransDescription | Item | RO_SAFTJournalTransDescription | ||
| Customer | Item | Customer | Sold-to Party | |
| CustomerTaxID5endendasCustomerTaxID5 | ||||
| Supplier | Item | Supplier | Supplier | |
| SupplierTaxID5endendasSupplierTaxID5 | ||||
| GLAccount | Item | GLAccount | General Ledger | |
| AlternativeGLAccount | Item | AlternativeGLAccount | Group Account | |
| RO_SAFTStandardAccount | Item | RO_SAFTStandardAccount | ||
| RO_SAFTPaymentMethod | Item | RO_SAFTPaymentMethod | ||
| AmountInCompanyCodeCurrency | Item | AmountInCompanyCodeCurrency | Local Crcy Amt | |
| DebitAmountInCoCodeCrcy | Item | DebitAmountInCoCodeCrcy | Debit Amount in Company Code Currency | |
| CreditAmountInCoCodeCrcy | Item | CreditAmountInCoCodeCrcy | Credit Amount in Company Code Currency | |
| CompanyCodeCurrency | Item | CompanyCodeCurrency | Local Currency | |
| AmountInTransactionCurrency | Item | AmountInTransactionCurrency | Pt Crcy Amt | |
| DebitAmountInTransCrcy | Item | DebitAmountInTransCrcy | Debit Amt in DC | |
| CreditAmountInTransCrcy | Item | CreditAmountInTransCrcy | Credit Amt in DC | |
| TransactionCurrency | Item | TransactionCurrency | Transaction Currency | |
| TaxCode | Item | TaxCode | Tax Code | |
| TaxType | ||||
| RO_SAFTJournalTransaction | Item | RO_SAFTJournalTransaction | ||
| DocumentItemText | Item | DocumentItemText | Text | |
| AccountingDocCreatedByUser | Item | AccountingDocCreatedByUser | User which created overhead document | |
| RO_SAFTSystemID |
Derived SQL interpretation, reconstructed from the parsed view metadata (data sources, associations, and field mappings). SAP annotations are omitted and the structure is reformulated as SQL — this is a functional approximation, not the verbatim SAP source.
-- Derived SQL interpretation of CDS view C_RO_SAFTPaymentItemC.
-- Reconstructed from parsed metadata (data sources, associations, fields).
-- SAP annotations are omitted and the structure is reformulated as SQL;
-- this is a functional approximation, not the verbatim SAP source. Some join
-- conditions may be unavailable and a few CDS constructs are kept as-is.
-- SQL view name: CROSAFTPAYITEMC
-- Parameters: P_VATRegistration : stceg, P_UserSystemIdentifier : sysid, P_AlternativeGLAccountIsUsed : saft_ro_alt_gl_account_flag
CREATE VIEW C_RO_SAFTPaymentItemC AS
SELECT
Item.StatryRptCategory AS StatryRptCategory,
Item.StatryRptgEntity AS StatryRptgEntity,
Item.StatryRptRunID AS StatryRptRunID,
Item.SourceLedger AS SourceLedger,
Item.CompanyCode AS CompanyCode,
Item.AccountingDocument AS AccountingDocument,
Item.FiscalYear AS FiscalYear,
Item.LedgerGLLineItem AS LedgerGLLineItem,
Item.Ledger AS Ledger,
Item.AccountingDocumentType AS AccountingDocumentType,
Item.PostingDate AS PostingDate,
Item.FiscalPeriod AS FiscalPeriod,
Item.DocumentDate AS DocumentDate,
Item.TaxReportingDate AS TaxReportingDate,
Item.RO_SAFTJournalTransDescription AS RO_SAFTJournalTransDescription,
Item.Customer AS Customer,
case when Item.Customer is initial and Item.Supplier is initial and Item.DebitCreditCode = 'S' then cast( :P_VATRegistration as stceg ) else case when Item.CustomerTaxID5 = '0' and Item.SupplierTaxID5 = '0' then cast( $parameters.P_VATRegistration as stcd5 ) else Item.CustomerTaxID5 end end as CustomerTaxID5 AS CustomerTaxID5endendasCustomerTaxID5,
Item.Supplier AS Supplier,
case when Item.Customer is initial and Item.Supplier is initial and Item.DebitCreditCode = 'H' then cast( :P_VATRegistration as stceg ) else case when Item.CustomerTaxID5 = '0' and Item.SupplierTaxID5 = '0' then cast( $parameters.P_VATRegistration as stcd5 ) else Item.SupplierTaxID5 end end as SupplierTaxID5 AS SupplierTaxID5endendasSupplierTaxID5,
Item.GLAccount AS GLAccount,
Item.AlternativeGLAccount AS AlternativeGLAccount,
Item.RO_SAFTStandardAccount AS RO_SAFTStandardAccount,
Item.RO_SAFTPaymentMethod AS RO_SAFTPaymentMethod,
Item.AmountInCompanyCodeCurrency AS AmountInCompanyCodeCurrency,
Item.DebitAmountInCoCodeCrcy AS DebitAmountInCoCodeCrcy,
Item.CreditAmountInCoCodeCrcy AS CreditAmountInCoCodeCrcy,
Item.CompanyCodeCurrency AS CompanyCodeCurrency,
Item.AmountInTransactionCurrency AS AmountInTransactionCurrency,
Item.DebitAmountInTransCrcy AS DebitAmountInTransCrcy,
Item.CreditAmountInTransCrcy AS CreditAmountInTransCrcy,
Item.TransactionCurrency AS TransactionCurrency,
Item.TaxCode AS TaxCode,
cast(Item.TaxType as mwart) AS TaxType,
Item.RO_SAFTJournalTransaction AS RO_SAFTJournalTransaction,
Item.DocumentItemText AS DocumentItemText,
Item.AccountingDocCreatedByUser AS AccountingDocCreatedByUser,
cast(concat( $parameters.P_UserSystemIdentifier, concat( concat( concat( '/', cast( $session.client as char3 )), '/' ) , Item.AccountingDocument ) ) as text18) AS RO_SAFTSystemID
FROM P_RO_SAFTPaymnetItemNew
INNER JOIN I_JournalEntry AS Bkpf ON /* join condition not captured in parsed metadata */
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- 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
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA