P_RU_VATOriginalDocument

DDL: P_RU_VATORIGINALDOCUMENT SQL: PRUVATORIGDOC Type: view CONSUMPTION

P_RU_VATOriginalDocument is a Consumption CDS View in SAP S/4HANA. It reads from 1 data source (P_RU_VATOriginalDocument1) and exposes 12 fields.

Data Sources (1)

SourceAliasJoin Type
P_RU_VATOriginalDocument1 P_RU_VATOriginalDocument1 from

Annotations (6)

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

Fields (12)

KeyFieldSource TableSource FieldDescription
CompanyCode CompanyCode Receiver Company Code
AccountingDocument AccountingDocument Journal Entry
FiscalYear FiscalYear G/L Fiscal Year
IsReversal IsReversal Reversal doc.
IsReversed IsReversed Reversed?
TaxItem Tax Item
OriginalDocument Original Document
OriginalDocumentYear Orig. Doc. Year
OriginalDocumentType Journal Entry Type
RU_VATScenario VAT Scenario
OriginalDocumentIsReversal OriginalDocumentIsReversal Reversal doc.
OriginalDocumentIsReversed OriginalDocumentIsReversed Reversed?

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_VATOriginalDocument.
-- 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: PRUVATORIGDOC

CREATE VIEW P_RU_VATOriginalDocument AS
SELECT
  CompanyCode,
  AccountingDocument,
  FiscalYear,
  IsReversal,
  IsReversed,
  cast( TaxItem as taxitem preserving type ) AS TaxItem,
  cast( OriginalDocument as firu_original_document preserving type ) AS OriginalDocument,
  cast( OriginalDocumentYear as firu_original_document_year preserving type ) AS OriginalDocumentYear,
  cast( OriginalDocumentType as firu_original_document_type preserving type ) AS OriginalDocumentType,
  cast( RU_VATScenario as firu_vatscen preserving type ) AS RU_VATScenario,
  OriginalDocumentIsReversal,
  OriginalDocumentIsReversed
FROM P_RU_VATOriginalDocument1
;