C_DebitMemoReqRefInvoiceVH
Debit Memo Request Reference Invoice
C_DebitMemoReqRefInvoiceVH is a Consumption CDS View that provides data about "Debit Memo Request Reference Invoice" in SAP S/4HANA. It reads from 1 data source (I_BillingDocument) and exposes 21 fields with key field BillingDocument. It has 6 associations to related views. It is exposed through 1 OData service (UI_DEBITMEMOREQUESTMANAGE). Part of development package ODATA_SD_DEBITMEMOREQUEST.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_BillingDocument | BillingDocument | from |
Associations (6)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..*] | I_OverallBillingStatusText | _OverallBillingStatusText | $projection.OverallBillingStatus = _OverallBillingStatusText.OverallBillingStatus |
| [0..1] | I_BillingDocumentType | _BillingDocumentType | $projection.BillingDocumentType = _BillingDocumentType.BillingDocumentType |
| [0..1] | I_SalesOrganization | _SalesOrganizationText | $projection.SalesOrganization = _SalesOrganizationText.SalesOrganization |
| [0..1] | I_DistributionChannel | _DistributionChannel | $projection.DistributionChannel = _DistributionChannel.DistributionChannel |
| [0..1] | I_Division | _Division | $projection.Division = _Division.Division |
| [0..1] | C_SalesOrganizationVH | _SalesOrganization | $projection.SalesOrganization = _SalesOrganization.SalesOrganization |
Annotations (11)
| Name | Value | Level | Field |
|---|---|---|---|
| VDM.viewType | #CONSUMPTION | view | |
| AccessControl.authorizationCheck | #MANDATORY | view | |
| EndUserText.label | Debit 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)
| Service | Binding | Version | Contract | Release |
|---|---|---|---|---|
| UI_DEBITMEMOREQUESTMANAGE | UI_DEBITMEMOREQUESTMANAGE | V4 | C1 | NOT_RELEASED |
Fields (21)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | BillingDocument | |||
| BillingDocumentType | I_BillingDocument | BillingDocumentType | Billing Type | |
| BillingDocumentTypeName | ||||
| 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 | |
| SalesOrganizationName | ||||
| DistributionChannel | I_BillingDocument | DistributionChannel | RefDistCh-Cust/Mat. | |
| DistributionChannelName | ||||
| Division | I_BillingDocument | Division | Internal Division ID | |
| DivisionName | ||||
| _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_DebitMemoReqRefInvoiceVH.
-- 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_DebitMemoReqRefInvoiceVH AS
SELECT
cast(BillingDocument.BillingDocument as vdm_invoice preserving type) AS BillingDocument,
BillingDocument.BillingDocumentType AS BillingDocumentType,
_BillingDocumentType._Text[1: Language=$session.system_language].BillingDocumentTypeName AS BillingDocumentTypeName,
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,
_SalesOrganizationText._Text[1: Language=$session.system_language].SalesOrganizationName AS SalesOrganizationName,
BillingDocument.DistributionChannel AS DistributionChannel,
_DistributionChannel._Text[1: Language=$session.system_language].DistributionChannelName AS DistributionChannelName,
BillingDocument.Division AS Division,
_Division._Text[1: Language=$session.system_language].DivisionName AS DivisionName
FROM I_BillingDocument AS BillingDocument
LEFT OUTER JOIN I_OverallBillingStatusText AS _OverallBillingStatusText ON OverallBillingStatus = _OverallBillingStatusText.OverallBillingStatus -- association [0..*]
LEFT OUTER JOIN I_BillingDocumentType AS _BillingDocumentType ON BillingDocumentType = _BillingDocumentType.BillingDocumentType -- association [0..1]
LEFT OUTER JOIN I_SalesOrganization AS _SalesOrganizationText ON SalesOrganization = _SalesOrganizationText.SalesOrganization -- association [0..1]
LEFT OUTER JOIN I_DistributionChannel AS _DistributionChannel ON DistributionChannel = _DistributionChannel.DistributionChannel -- association [0..1]
LEFT OUTER JOIN I_Division AS _Division ON Division = _Division.Division -- association [0..1]
LEFT OUTER JOIN C_SalesOrganizationVH AS _SalesOrganization ON SalesOrganization = _SalesOrganization.SalesOrganization -- association [0..1]
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- OData Services in SAP S/4HANA Explained
- Service Bindings and Service Definitions in SAP S/4HANA
- 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