C_CustRetRefDocSrlNmbr

DDL: C_CUSTRETREFDOCSRLNMBR Type: view_entity CONSUMPTION

Returns Order Reference Document Serial Number

C_CustRetRefDocSrlNmbr is a Consumption CDS View that provides data about "Returns Order Reference Document Serial Number" in SAP S/4HANA. It reads from 4 data sources (I_SerialNmbrDelivery, I_MaintenanceItemObject, I_MaintenanceItemObject, I_SerialNmbrSalesOrder) and exposes 14 fields with key fields SerialNumber, ReferenceSDDocument, ReferenceSDDocumentItem, ReferenceSDDocument.

Data Sources (4)

SourceAliasJoin Type
I_SerialNmbrDelivery DeliverySerialNmbr inner
I_MaintenanceItemObject MaintenanceItemObject inner
I_MaintenanceItemObject MaintenanceItemObject inner
I_SerialNmbrSalesOrder SerialNumberSalesOrder from

Annotations (9)

NameValueLevelField
VDM.viewType #CONSUMPTION view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #XL view
Search.searchable true view
Metadata.ignorePropagatedAnnotations true view
AccessControl.authorizationCheck #CHECK view
AccessControl.personalData.blocking #NOT_REQUIRED view
EndUserText.label Returns Order Reference Document Serial Number view

Fields (14)

KeyFieldSource TableSource FieldDescription
KEY SerialNumber I_MaintenanceItemObject SerialNumber Serial Number
KEY ReferenceSDDocument
KEY ReferenceSDDocumentItem
Product Product Sold
SDDocumentCategory I_SerialNmbrSalesOrder SDDocumentCategory Document Cat.
OrganizationDivision Org. Division
SalesOrganization Sales Organization
SerialNumber Serial Number
KEY ReferenceSDDocument
Product BillingItem Product Product Sold
SDDocumentCategory BillingItem SDDocumentCategory Document Cat.
OrganizationDivision BillingItem OrganizationDivision Org. Division
SalesOrganization BillingItem SalesOrganization Sales Organization
DistributionChannel BillingItem DistributionChannel RefDistCh-Cust/Mat.

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_CustRetRefDocSrlNmbr.
-- 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_CustRetRefDocSrlNmbr AS
SELECT
  MaintenanceItemObject.SerialNumber AS SerialNumber,
  cast(SerialNumberSalesOrder.SalesOrder as vgbel) AS ReferenceSDDocument,
  cast(SerialNumberSalesOrder.SalesOrderItem as vgpos) AS ReferenceSDDocumentItem,
  SerialNumberSalesOrder._SalesOrderItem.Product AS Product,
  SerialNumberSalesOrder.SDDocumentCategory AS SDDocumentCategory,
  SerialNumberSalesOrder._SalesOrder.OrganizationDivision AS OrganizationDivision,
  SerialNumberSalesOrder._SalesOrder.SalesOrganization AS SalesOrganization,
  BillingItem.DistributionChannel AS DistributionChannel
FROM I_SerialNmbrSalesOrder AS SerialNumberSalesOrder
INNER JOIN I_MaintenanceItemObject AS MaintenanceItemObject ON /* join condition not captured in parsed metadata */
INNER JOIN I_SerialNmbrDelivery AS DeliverySerialNmbr ON /* join condition not captured in parsed metadata */
;