H_HU_StRpInvoiceChainNode
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)
| Source | Alias | Join Type |
|---|---|---|
| I_JournalEntry | JournalEntry | from |
| P_HU_STRPINVOICECOUNTRY | P_HU_STRPINVOICECOUNTRY | inner |
Parameters (1)
| Name | Type | Default |
|---|---|---|
| p_CompanyCode | bukrs |
Associations (1)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..*] | H_HU_StRpInvoiceChainNode | _Recursion | $projection.PreceedingInvoice = _Recursion.InvoiceNumber and $projection.CompanyCode = _Recursion.CompanyCode |
Annotations (12)
| Name | Value | Level | Field |
|---|---|---|---|
| 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)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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..*]
;
Learn More
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- 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