C_ReturnsReferenceInvoiceVH
Customer Return Reference Invoice
C_ReturnsReferenceInvoiceVH is a Consumption CDS View that provides data about "Customer Return Reference Invoice" in SAP S/4HANA. It reads from 1 data source (I_BillingDocument) and exposes 13 fields with key field BillingDocument. It has 1 association to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_BillingDocument | BillingDocument | from |
Associations (1)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..*] | I_OverallBillingStatusText | _OverallBillingStatusText | $projection.OverallBillingStatus = _OverallBillingStatusText.OverallBillingStatus |
Annotations (11)
| Name | Value | Level | Field |
|---|---|---|---|
| VDM.viewType | #CONSUMPTION | view | |
| AccessControl.authorizationCheck | #MANDATORY | view | |
| EndUserText.label | Customer Return Reference Invoice | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| ObjectModel.dataCategory | #VALUE_HELP | view | |
| ObjectModel.representativeKey | BillingDocument | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| Search.searchable | true | view | |
| Consumption.ranked | true | view |
Fields (13)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | BillingDocument | |||
| SoldToParty | I_BillingDocument | SoldToParty | Sold-to Party | |
| SoldToPartyName | ||||
| PayerParty | I_BillingDocument | PayerParty | Payer | |
| PayerPartyName | ||||
| PurchaseOrderByCustomer | I_BillingDocument | PurchaseOrderByCustomer | Purchase Order Number | |
| BillingDocumentDate | I_BillingDocument | BillingDocumentDate | Billing Date | |
| OverallBillingStatus | ||||
| OverallBillingStatusDesc | ||||
| BillingDocumentType | I_BillingDocument | BillingDocumentType | Billing Type | |
| SalesOrganization | I_BillingDocument | SalesOrganization | Sales Organization | |
| DistributionChannel | I_BillingDocument | DistributionChannel | RefDistCh-Cust/Mat. | |
| Division | I_BillingDocument | Division | Internal Division ID |
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 C_ReturnsReferenceInvoiceVH.
-- 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.
CREATE VIEW C_ReturnsReferenceInvoiceVH AS
SELECT
cast(BillingDocument.BillingDocument as vdm_invoice preserving type) AS BillingDocument,
BillingDocument.SoldToParty AS SoldToParty,
cast (BillingDocument._SoldToParty.CustomerName as ad_namtext) AS SoldToPartyName,
BillingDocument.PayerParty AS PayerParty,
BillingDocument._PayerParty.CustomerName AS PayerPartyName,
BillingDocument.PurchaseOrderByCustomer AS PurchaseOrderByCustomer,
BillingDocument.BillingDocumentDate AS BillingDocumentDate,
cast(BillingDocument.OverallBillingStatus as billing_document_status preserving type ) AS OverallBillingStatus,
_OverallBillingStatusText[1: Language=$session.system_language].OverallBillingStatusDesc AS OverallBillingStatusDesc,
BillingDocument.BillingDocumentType AS BillingDocumentType,
BillingDocument.SalesOrganization AS SalesOrganization,
BillingDocument.DistributionChannel AS DistributionChannel,
BillingDocument.Division AS Division
FROM I_BillingDocument AS BillingDocument
LEFT OUTER JOIN I_OverallBillingStatusText AS _OverallBillingStatusText ON OverallBillingStatus = _OverallBillingStatusText.OverallBillingStatus -- association [0..*]
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- 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