P_RU_VatSPLedgerCust1

DDL: P_RU_VATSPLEDGERCUST1 SQL: PRUVATSPLDCUST1 Type: view CONSUMPTION Package: GLO_FIN_IS_VAT_RU

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)

SourceAliasJoin Type
I_RU_VATSubScenarioItem VatSubscenarioItem from

Annotations (10)

NameValueLevelField
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)

KeyFieldSource TableSource FieldDescription
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
;