C_ARunAnlytsSalesReturnsQry

DDL: C_ARUNANLYTSSALESRETURNSQRY Type: view CONSUMPTION Package: VDM_ARUN_ANALYTICS

Return Sales Orders

C_ARunAnlytsSalesReturnsQry (Consumption)

Package: Explore, extend and adapt the SAP S/4HANA Cloud Public Edition with built-in and side-by-side extension capabilities.

Cross Applications

C_ARunAnlytsSalesReturnsQry is a Consumption CDS View that provides data about "Return Sales Orders" in SAP S/4HANA. It reads from 1 data source (I_ARunAnlytsSlsOrdRetCube) and exposes 35 fields with key fields RequirementDocumentNumber, RequirementDocumentItem, SupplyScheduleLine. Part of development package VDM_ARUN_ANALYTICS.

SAP Help Documentation

CategoryReturn Sales Orders - Cube
Data CategoryConsumption,Query
Corresponding DataSource2CCARNANLYTSRETSOQ
Purpose
This CDS view helps to analyze the data and determine the supply assignment details for return sales orders. This CDS view provides the data to answer the following business questions: What is the amount in sales returns? What is the amount per plant, per sales district, and so on? What is the number of items per plant, per sales district, and so on? To help you decide which CDS view to use for your purposes, SAP has introduced the annotation ObjectModel.supportedCapabilities that indicates the most appropriate use cases for each CDS view. To find out what use cases are best supported by this CDS view, access the entry of the CDS view in the View Browser app and find the values for this annotation under the Annotation tab. For more information, see Supported Capabilities for CDS Views .

Prerequisites
Authorizations Users who want to use this CDS view must have the following authorization objects assigned: ARUN_SDO (Authorization object for supply demand overview)

Structure
Parameters The parameters of the CDS view are as follows: Display Currency (P_DisplayCurrency) : This parameter is used to calculate the amount in the specified currency. Fields Used for Filtering The main filters are as follows: RequestedDeliveryDate : This field is used to filter the data for a range of requested delivery date. Plant : This field is used to filter the data for different plants. DistributionChannel : This field is used to filter the data for different distribution channels. SalesOrganization : This field is used to filter the data by different sales organizations. ReasonForRejection : This field is used to filter the data by different reasons for rejection. OrderReason : This field is used to filter the data by different order reasons. Further Important Fields Important fields in this view include the following: Field Name Description Measure or Attribute TotalQuantity Total Supply Quantity Measure OpenSupplyQuantity Open Supply Quantity Measure NetAmount Net Amount Measure NmbrOfItemsInOrder Number of items in order Attribute

View on SAP Help Portal →

SAP API Hub

CategoryConsumption
StateC1
Line of BusinessCross Applications
Application ComponentLO-RFM-ARN
CapabilitiesAnalytical Query
Extensible (Key User)No
Extensible (Developer)No
Release State (Key User)Released
Release State (Developer)Not Released
PackageCross Applications for SAP S/4HANA Cloud Public Edition

Documentation

Data Sources (1)

SourceAliasJoin Type
I_ARunAnlytsSlsOrdRetCube I_ARunAnlytsSlsOrdRetCube from

Parameters (1)

NameTypeDefault
P_DisplayCurrency vdm_v_display_currency

Annotations (14)

NameValueLevelField
ClientHandling.algorithm #SESSION_VARIABLE view
VDM.viewType #CONSUMPTION view
AccessControl.authorizationCheck #PRIVILEGED_ONLY view
AccessControl.personalData.blocking #REQUIRED view
AbapCatalog.sqlViewName CARNANLYTSRETSOQ view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #L view
Metadata.ignorePropagatedAnnotations true view
Analytics.query true view
EndUserText.label Return Sales Orders view
ObjectModel.supportedCapabilities #ANALYTICAL_QUERY view

Fields (35)

KeyFieldSource TableSource FieldDescription
KEY RequirementDocumentNumber RequirementDocumentNumber Sales Document
KEY RequirementDocumentItem RequirementDocumentItem Sales Document Item
KEY SupplyScheduleLine SupplyScheduleLine Schedule Line Number
AssignedSupplyType AssignedSupplyType
SupAssgmtSource SupAssgmtSource
SupplyDeliveryDate SupplyDeliveryDate Requested Delivery Date
ProductAvailabilityDate ProductAvailabilityDate Requested Delivery Date
RequestedDeliveryDate RequestedDeliveryDate Requested Delivery Date
TotalQuantity TotalQuantity Overall confirmed sales order schedule lines: quantity
OpenSupplyQuantity OpenSupplyQuantity
BaseUnit BaseUnit Base Unit of Measure
Product Product Material Number
ProductGroup ProductGroup Material Group
Plant Plant Plant (Own or External)
OrderType OrderType Sales Document Type
ProductType ProductType Material Type
StockSegment StockSegment Requirement Segment
CrossPlantConfigurableProduct CrossPlantConfigurableProduct Cross-Plant Configurable Material
SalesOrganization SalesOrganization Sales Organization
DistributionChannel DistributionChannel Distribution Channel
Division Division Internal Division ID
SalesDistrict SalesDistrict Sales District
PurchasingOrganization PurchasingOrganization Purchasing Organization
PurchasingGroup PurchasingGroup Purchasing Group
Batch Batch Batch Number
StorageLocation StorageLocation Storage Location
Customer Customer Customer Number
CompanyCode CompanyCode Company Code to Be Billed
SDDocumentReason SDDocumentReason Order Reason (Reason for the Business Transaction)
SalesDocumentRjcnReason SalesDocumentRjcnReason Reason for Rejection of Sales Documents
NetPriceAmount NetPriceAmount Net Price
NetAmount NetAmount Net Value in Display Currency
DocumentCurrency DocumentCurrency SD Document Currency
DisplayCurrency DisplayCurrency Display Currency
NmbrOfItemsInOrder NmbrOfItemsInOrder Item Issues in Order

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_ARunAnlytsSalesReturnsQry.
-- 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.
-- Parameters: P_DisplayCurrency : vdm_v_display_currency

CREATE VIEW C_ARunAnlytsSalesReturnsQry AS
SELECT
  RequirementDocumentNumber,
  RequirementDocumentItem,
  SupplyScheduleLine,
  AssignedSupplyType,
  SupAssgmtSource,
  SupplyDeliveryDate,
  ProductAvailabilityDate,
  RequestedDeliveryDate,
  TotalQuantity,
  OpenSupplyQuantity,
  BaseUnit,
  Product,
  ProductGroup,
  Plant,
  OrderType,
  ProductType,
  StockSegment,
  CrossPlantConfigurableProduct,
  SalesOrganization,
  DistributionChannel,
  Division,
  SalesDistrict,
  PurchasingOrganization,
  PurchasingGroup,
  Batch,
  StorageLocation,
  Customer,
  CompanyCode,
  SDDocumentReason,
  SalesDocumentRjcnReason,
  NetPriceAmount,
  NetAmount,
  DocumentCurrency,
  DisplayCurrency,
  NmbrOfItemsInOrder
FROM I_ARunAnlytsSlsOrdRetCube
;