P_RU_VatSPLedgerCust1
S/P Ledgers Customizing Data: Ranks
P_RU_VatSPLedgerCust1 is a Consumption CDS View that provides data about "S/P Ledgers Customizing Data: Ranks" in SAP S/4HANA. It reads from 1 data source (I_RU_VATSubScenarioItem) and exposes 10 fields with key fields RU_VATSubScenarioVersion, RU_VATSubScenario, TaxItem. Part of development package GLO_FIN_IS_VAT_RU.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_RU_VATSubScenarioItem | VatSubscenarioItem | from |
Annotations (10)
| Name | Value | Level | Field |
|---|---|---|---|
| VDM.private | true | view | |
| VDM.viewType | #CONSUMPTION | view | |
| AbapCatalog.sqlViewName | PRUVATSPLDCUST1 | view | |
| AbapCatalog.preserveKey | true | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| ObjectModel.usageType.sizeCategory | #M | view | |
| ObjectModel.usageType.dataClass | #CUSTOMIZING | view | |
| ObjectModel.usageType.serviceQuality | #A | view |
Fields (10)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | RU_VATSubScenarioVersion | I_RU_VATSubScenarioItem | RU_VATSubScenarioVersion | Subscenario Version |
| KEY | RU_VATSubScenario | I_RU_VATSubScenarioItem | RU_VATSubScenario | Subscenario |
| KEY | TaxItem | I_RU_VATSubScenarioItem | RU_VATSubScenarioItem | Transfer Item No. |
| TaxCode | I_RU_VATSubScenarioItem | TaxCode | Tax Code | |
| AccountingDocumentType | I_RU_VATSubScenarioItem | AccountingDocumentType | Journal Entry Type | |
| DebitCreditCode | I_RU_VATSubScenarioItem | DebitCreditCode | Single-Character Flag | |
| TaxItemClassification | I_RU_VATSubScenarioItem | TaxItemClassification | Transaction | |
| IsCorrectionInvoice | I_RU_VATSubScenarioItem | IsCorrectionInvoice | Correction Type | |
| VATReturnOperation | I_RU_VATSubScenarioItem | VATReturnOperation | Operation Code | |
| int1endasRank |
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_VatSPLedgerCust1.
-- 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: PRUVATSPLDCUST1
CREATE VIEW P_RU_VatSPLedgerCust1 AS
SELECT
VatSubscenarioItem.RU_VATSubScenarioVersion AS RU_VATSubScenarioVersion,
VatSubscenarioItem.RU_VATSubScenario AS RU_VATSubScenario,
VatSubscenarioItem.RU_VATSubScenarioItem AS TaxItem,
VatSubscenarioItem.TaxCode AS TaxCode,
VatSubscenarioItem.AccountingDocumentType AS AccountingDocumentType,
VatSubscenarioItem.DebitCreditCode AS DebitCreditCode,
VatSubscenarioItem.TaxItemClassification AS TaxItemClassification,
VatSubscenarioItem.IsCorrectionInvoice AS IsCorrectionInvoice,
VatSubscenarioItem.VATReturnOperation AS VATReturnOperation,
case when VatSubscenarioItem.IsCorrectionInvoice <> '' and VatSubscenarioItem.DebitCreditCode <> '' and VatSubscenarioItem.AccountingDocumentType <> '' then cast( '7' as abap.int1) when VatSubscenarioItem.IsCorrectionInvoice <> '' and VatSubscenarioItem.DebitCreditCode <> '' and VatSubscenarioItem.AccountingDocumentType = '' then cast( '6' as abap.int1) when VatSubscenarioItem.IsCorrectionInvoice <> '' and VatSubscenarioItem.DebitCreditCode = '' and VatSubscenarioItem.AccountingDocumentType <> '' then cast( '5' as abap.int1) when VatSubscenarioItem.IsCorrectionInvoice <> '' and VatSubscenarioItem.DebitCreditCode = '' and VatSubscenarioItem.AccountingDocumentType = '' then cast( '4' as abap.int1) when VatSubscenarioItem.IsCorrectionInvoice = '' and VatSubscenarioItem.DebitCreditCode <> '' and VatSubscenarioItem.AccountingDocumentType <> '' then cast( '3' as abap.int1) when VatSubscenarioItem.IsCorrectionInvoice = '' and VatSubscenarioItem.DebitCreditCode <> '' and VatSubscenarioItem.AccountingDocumentType = '' then cast( '2' as abap.int1) when VatSubscenarioItem.IsCorrectionInvoice = '' and VatSubscenarioItem.DebitCreditCode = '' and VatSubscenarioItem.AccountingDocumentType <> '' then cast( '1' as abap.int1) else cast( '0' as abap.int1) end as Rank AS int1endasRank
FROM I_RU_VATSubScenarioItem AS VatSubscenarioItem
;
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