P_RU_CommissionTradeInvoice12
P_RU_CommissionTradeInvoice12 is a Consumption CDS View in SAP S/4HANA. It reads from 2 data sources (P_RU_CommissionTradeInvoice11, P_RU_VATReportingCust) and exposes 29 fields.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| P_RU_CommissionTradeInvoice11 | VatReporting | from |
| P_RU_VATReportingCust | VatReportingCust | inner |
Annotations (3)
| Name | Value | Level | Field |
|---|---|---|---|
| VDM.private | true | view | |
| VDM.viewType | #CONSUMPTION | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view |
Fields (29)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| CompanyCode | P_RU_CommissionTradeInvoice11 | CompanyCode | Receiver Company Code | |
| AccountingDocument | P_RU_CommissionTradeInvoice11 | AccountingDocument | Journal Entry | |
| FiscalYear | P_RU_CommissionTradeInvoice11 | FiscalYear | G/L Fiscal Year | |
| AccountingDocumentType | P_RU_CommissionTradeInvoice11 | AccountingDocumentType | Journal Entry Type | |
| PostingDate | P_RU_CommissionTradeInvoice11 | PostingDate | Posting Date for GR | |
| TaxReportingDate | P_RU_CommissionTradeInvoice11 | TaxReportingDate | Tax Reporting Date | |
| IsReversal | P_RU_CommissionTradeInvoice11 | IsReversal | Reversal doc. | |
| IsReversed | P_RU_CommissionTradeInvoice11 | IsReversed | Reversed? | |
| ReverseDocument | P_RU_CommissionTradeInvoice11 | ReverseDocument | Reversed With | |
| ReverseDocumentFiscalYear | P_RU_CommissionTradeInvoice11 | ReverseDocumentFiscalYear | Year | |
| ReverseDocumentTaxRepDate | P_RU_CommissionTradeInvoice11 | ReverseDocumentTaxRepDate | ||
| TaxItem | P_RU_CommissionTradeInvoice11 | TaxItem | Tax Item | |
| TaxItemGroup | P_RU_CommissionTradeInvoice11 | TaxItemGroup | Tax doc. item number | |
| TaxCode | P_RU_CommissionTradeInvoice11 | TaxCode | Tax Code | |
| TaxCountry | P_RU_CommissionTradeInvoice11 | TaxCountry | Tax Ctry/Reg. | |
| TaxJurisdiction | P_RU_CommissionTradeInvoice11 | TaxJurisdiction | Tax Jurisdiction | |
| DebitCreditCode | P_RU_CommissionTradeInvoice11 | DebitCreditCode | Single-Character Flag | |
| DebitCreditCodeCust | P_RU_VATReportingCust | DebitCreditCode | Single-Character Flag | |
| IsNegativePosting | P_RU_CommissionTradeInvoice11 | IsNegativePosting | Negative Posting | |
| TransactionTypeDetermination | P_RU_CommissionTradeInvoice11 | TransactionTypeDetermination | Transaction Key | |
| RU_VATReturnVersion | P_RU_VATReportingCust | RU_VATReturnVersion | VAT Return Version | |
| RU_VATSubScenarioVersion | P_RU_VATReportingCust | RU_VATSubScenarioVersion | Subscenario Version | |
| RU_VATReturnSectionType | P_RU_VATReportingCust | RU_VATReturnSectionType | Section Type | |
| RU_VATReturnLine | P_RU_VATReportingCust | RU_VATReturnLine | Line | |
| RU_VATSubScenario | P_RU_VATReportingCust | RU_VATSubScenario | Subscenario | |
| RU_VATScenario | P_RU_VATReportingCust | RU_VATScenario | VAT Scenario | |
| RU_VATSubScenarioItem | P_RU_VATReportingCust | RU_VATSubScenarioItem | ||
| IsCorrectionInvoice | P_RU_VATReportingCust | IsCorrectionInvoice | ||
| RU_SourceDocumentType | P_RU_VATReportingCust | RU_SourceDocumentType |
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 P_RU_CommissionTradeInvoice12.
-- 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.
CREATE VIEW P_RU_CommissionTradeInvoice12 AS
SELECT
VatReporting.CompanyCode AS CompanyCode,
VatReporting.AccountingDocument AS AccountingDocument,
VatReporting.FiscalYear AS FiscalYear,
VatReporting.AccountingDocumentType AS AccountingDocumentType,
VatReporting.PostingDate AS PostingDate,
VatReporting.TaxReportingDate AS TaxReportingDate,
VatReporting.IsReversal AS IsReversal,
VatReporting.IsReversed AS IsReversed,
VatReporting.ReverseDocument AS ReverseDocument,
VatReporting.ReverseDocumentFiscalYear AS ReverseDocumentFiscalYear,
VatReporting.ReverseDocumentTaxRepDate AS ReverseDocumentTaxRepDate,
VatReporting.TaxItem AS TaxItem,
VatReporting.TaxItemGroup AS TaxItemGroup,
VatReporting.TaxCode AS TaxCode,
VatReporting.TaxCountry AS TaxCountry,
VatReporting.TaxJurisdiction AS TaxJurisdiction,
VatReporting.DebitCreditCode AS DebitCreditCode,
VatReportingCust.DebitCreditCode AS DebitCreditCodeCust,
VatReporting.IsNegativePosting AS IsNegativePosting,
VatReporting.TransactionTypeDetermination AS TransactionTypeDetermination,
VatReportingCust.RU_VATReturnVersion AS RU_VATReturnVersion,
VatReportingCust.RU_VATSubScenarioVersion AS RU_VATSubScenarioVersion,
VatReportingCust.RU_VATReturnSectionType AS RU_VATReturnSectionType,
VatReportingCust.RU_VATReturnLine AS RU_VATReturnLine,
VatReportingCust.RU_VATSubScenario AS RU_VATSubScenario,
VatReportingCust.RU_VATScenario AS RU_VATScenario,
VatReportingCust.RU_VATSubScenarioItem AS RU_VATSubScenarioItem,
VatReportingCust.IsCorrectionInvoice AS IsCorrectionInvoice,
VatReportingCust.RU_SourceDocumentType AS RU_SourceDocumentType
FROM P_RU_CommissionTradeInvoice11 AS VatReporting
INNER JOIN P_RU_VATReportingCust AS VatReportingCust 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