C_ReturnsReferenceInvoiceVH

DDL: C_RETURNSREFERENCEINVOICEVH Type: view_entity CONSUMPTION

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)

SourceAliasJoin Type
I_BillingDocument BillingDocument from

Associations (1)

CardinalityTargetAliasCondition
[0..*] I_OverallBillingStatusText _OverallBillingStatusText $projection.OverallBillingStatus = _OverallBillingStatusText.OverallBillingStatus

Annotations (11)

NameValueLevelField
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)

KeyFieldSource TableSource FieldDescription
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..*]
;