C_CreditMemoReqRefInvoiceVH

DDL: C_CREDITMEMOREQREFINVOICEVH Type: view_entity CONSUMPTION Package: ODATA_SD_CREDITMEMOREQUEST

Credit Memo Request Reference Invoice

C_CreditMemoReqRefInvoiceVH is a Consumption CDS View that provides data about "Credit Memo Request Reference Invoice" in SAP S/4HANA. It reads from 1 data source (I_BillingDocument) and exposes 17 fields with key field BillingDocument. It has 2 associations to related views. It is exposed through 1 OData service (UI_CREDITMEMOREQUESTMANAGE). Part of development package ODATA_SD_CREDITMEMOREQUEST.

Data Sources (1)

SourceAliasJoin Type
I_BillingDocument BillingDocument from

Associations (2)

CardinalityTargetAliasCondition
[0..*] I_OverallBillingStatusText _OverallBillingStatusText $projection.OverallBillingStatus = _OverallBillingStatusText.OverallBillingStatus
[0..1] C_SalesOrganizationVH _SalesOrganization $projection.SalesOrganization = _SalesOrganization.SalesOrganization

Annotations (11)

NameValueLevelField
VDM.viewType #CONSUMPTION view
AccessControl.authorizationCheck #MANDATORY view
EndUserText.label Credit Memo Request 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

OData Services (1)

ServiceBindingVersionContractRelease
UI_CREDITMEMOREQUESTMANAGE UI_CREDITMEMOREQUESTMANAGE V4 C1 NOT_RELEASED

Fields (17)

KeyFieldSource TableSource FieldDescription
KEY BillingDocument
BillingDocumentType I_BillingDocument BillingDocumentType Billing Type
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
SalesOrganization I_BillingDocument SalesOrganization Sales Organization
DistributionChannel I_BillingDocument DistributionChannel RefDistCh-Cust/Mat.
Division I_BillingDocument Division Internal Division ID
_BillingDocumentType _BillingDocumentType
_SalesOrganization _SalesOrganization
_DistributionChannel _DistributionChannel
_Division _Division

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_CreditMemoReqRefInvoiceVH.
-- 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_CreditMemoReqRefInvoiceVH AS
SELECT
  cast(BillingDocument.BillingDocument as vdm_invoice preserving type) AS BillingDocument,
  BillingDocument.BillingDocumentType AS BillingDocumentType,
  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.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..*]
LEFT OUTER JOIN C_SalesOrganizationVH AS _SalesOrganization ON SalesOrganization = _SalesOrganization.SalesOrganization  -- association [0..1]
;