H_HU_StRpInvoiceChainNode

DDL: H_HU_STRPINVOICECHAINNODE SQL: HHUSTRPINVCHNN Type: view

Hungary VAT: Definition Of Parent-Child Relationship

H_HU_StRpInvoiceChainNode is a CDS View of category Dimension that provides data about "Hungary VAT: Definition Of Parent-Child Relationship" in SAP S/4HANA. It reads from 2 data sources (I_JournalEntry, P_HU_STRPINVOICECOUNTRY) and exposes 16 fields with key fields CompanyCode, FiscalYear, AccountingDocument. It has 1 association to related views.

Data Sources (2)

SourceAliasJoin Type
I_JournalEntry JournalEntry from
P_HU_STRPINVOICECOUNTRY P_HU_STRPINVOICECOUNTRY inner

Parameters (1)

NameTypeDefault
p_CompanyCode bukrs

Associations (1)

CardinalityTargetAliasCondition
[0..*] H_HU_StRpInvoiceChainNode _Recursion $projection.PreceedingInvoice = _Recursion.InvoiceNumber and $projection.CompanyCode = _Recursion.CompanyCode

Annotations (12)

NameValueLevelField
EndUserText.label Hungary VAT: Definition Of Parent-Child Relationship view
AbapCatalog.sqlViewName HHUSTRPINVCHNN view
ClientHandling.algorithm #SESSION_VARIABLE view
Analytics.dataCategory #DIMENSION view
ObjectModel.representativeKey Invoice view
AccessControl.authorizationCheck #NOT_ALLOWED view
ObjectModel.dataCategory #HIERARCHY view
AbapCatalog.preserveKey true view
AbapCatalog.compiler.compareFilter true view
ObjectModel.usageType.sizeCategory #S view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.dataClass #MIXED view

Fields (16)

KeyFieldSource TableSource FieldDescription
KEY CompanyCode I_JournalEntry CompanyCode Receiver Company Code
KEY FiscalYear I_JournalEntry FiscalYear G/L Fiscal Year
KEY AccountingDocument I_JournalEntry AccountingDocument Journal Entry
ReferenceDocumentType I_JournalEntry ReferenceDocumentType Reference Document Type
OriginalReferenceDocument I_JournalEntry OriginalReferenceDocument Reference Key
LogicalSystem I_JournalEntry LogicalSystem Logical System
IssuedInvoiceGuid
InvoiceNumber
InvoiceDate I_JournalEntry JrnlEntryCntrySpecificDate4 Country/Region Specific Date 4
TaxReportingDate I_JournalEntry TaxReportingDate Tax Reporting Date
PostingDate I_JournalEntry PostingDate Posting Date for GR
DocumentDate I_JournalEntry DocumentDate Journal Entry Date
TaxFulfillmentDate I_JournalEntry TaxFulfillmentDate Tax Settlement Date
RootNode
DocumentReferenceID I_JournalEntry DocumentReferenceID Reference
_Recursion _Recursion

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 H_HU_StRpInvoiceChainNode.
-- 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: HHUSTRPINVCHNN
-- Parameters: p_CompanyCode : bukrs

CREATE VIEW H_HU_StRpInvoiceChainNode AS
SELECT
  JournalEntry.CompanyCode AS CompanyCode,
  JournalEntry.FiscalYear AS FiscalYear,
  JournalEntry.AccountingDocument AS AccountingDocument,
  JournalEntry.ReferenceDocumentType AS ReferenceDocumentType,
  JournalEntry.OriginalReferenceDocument AS OriginalReferenceDocument,
  JournalEntry.LogicalSystem AS LogicalSystem,
  concat(concat(JournalEntry.CompanyCode, JournalEntry.FiscalYear), JournalEntry.AccountingDocument) AS IssuedInvoiceGuid,
  case when JournalEntry.JrnlEntryCntrySpecificRef4 = '' then JournalEntry.DocumentReferenceID else JrnlEntryCntrySpecificRef4 end AS InvoiceNumber,
  JournalEntry.JrnlEntryCntrySpecificDate4 AS InvoiceDate,
  JournalEntry.TaxReportingDate AS TaxReportingDate,
  JournalEntry.PostingDate AS PostingDate,
  JournalEntry.DocumentDate AS DocumentDate,
  JournalEntry.TaxFulfillmentDate AS TaxFulfillmentDate,
  ' ' AS RootNode,
  JournalEntry.DocumentReferenceID AS DocumentReferenceID
FROM I_JournalEntry AS JournalEntry
INNER JOIN P_HU_STRPINVOICECOUNTRY ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN H_HU_StRpInvoiceChainNode AS _Recursion ON PreceedingInvoice = _Recursion.InvoiceNumber AND CompanyCode = _Recursion.CompanyCode  -- association [0..*]
;