P_RU_VatSalesPurchaseLedgers1

DDL: P_RU_VATSALESPURCHASELEDGERS1 SQL: PRUVATSPLD1 Type: view CONSUMPTION

P_RU_VatSalesPurchaseLedgers1 is a Consumption CDS View in SAP S/4HANA. It reads from 1 data source (I_RU_StRpJournalEntryLog). It has 1 association to related views.

Data Sources (1)

SourceAliasJoin Type
I_RU_StRpJournalEntryLog Main from

Parameters (3)

NameTypeDefault
P_StatryRptgEntity srf_reporting_entity
P_StatryRptCategory srf_rep_cat_id
P_StatryRptRunID srf_report_run_id

Associations (1)

CardinalityTargetAliasCondition
[0..1] I_TaxBasisBalancesGrp _TaxBasisBalancesGrp _TaxBasisBalancesGrp.Country = 'RU' and _TaxBasisBalancesGrp.TaxItemGroupingVersion = 'PAY' and _TaxBasisBalancesGrp.TaxCode = VatSPLedgerCust.TaxCode

Annotations (5)

NameValueLevelField
VDM.private true view
VDM.viewType #CONSUMPTION view
AbapCatalog.sqlViewName PRUVATSPLD1 view
ClientHandling.algorithm #SESSION_VARIABLE view
AccessControl.authorizationCheck #NOT_REQUIRED view

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_VatSalesPurchaseLedgers1.
-- 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: PRUVATSPLD1
-- Parameters: P_StatryRptgEntity : srf_reporting_entity, P_StatryRptCategory : srf_rep_cat_id, P_StatryRptRunID : srf_report_run_id

CREATE VIEW P_RU_VatSalesPurchaseLedgers1 AS
SELECT *  -- field list not available in parsed metadata
FROM I_RU_StRpJournalEntryLog AS Main
LEFT OUTER JOIN I_TaxBasisBalancesGrp AS _TaxBasisBalancesGrp ON _TaxBasisBalancesGrp.Country = 'RU' AND _TaxBasisBalancesGrp.TaxItemGroupingVersion = 'PAY' AND _TaxBasisBalancesGrp.TaxCode = VatSPLedgerCust.TaxCode  -- association [0..1]
;