C_SupDmndOvwPgCustRetsQ

DDL: C_SUPDMNDOVWPGCUSTRETSQ Type: view CONSUMPTION

View for Customer Returns Query

C_SupDmndOvwPgCustRetsQ is a Consumption CDS View that provides data about "View for Customer Returns Query" in SAP S/4HANA. It reads from 1 data source (I_SupDmndOvwPgCustRetsC) and exposes 43 fields with key fields Material, Plant, Batch, StorageLocation, SupplyNumber. It has 14 associations to related views.

Data Sources (1)

SourceAliasJoin Type
I_SupDmndOvwPgCustRetsC I_SupDmndOvwPgCustRetsC from

Parameters (1)

NameTypeDefault
P_DisplayCurrency vdm_v_display_currency

Associations (14)

CardinalityTargetAliasCondition
[0..1] I_SupDmndAllDocSupTypeT _SupText $projection.AssignedSupplyType = _SupText.AssignedSupplyType and _SupText.Language = $session.system_language
[0..1] I_SupDmndAllDocSupSourceT _SupSrceText $projection.SupAssgmtSource = _SupSrceText.SupAssgmtSource and _SupSrceText.Language = $session.system_language
[0..1] I_ProductText _ProductText $projection.Material = _ProductText.Product and _ProductText.Language = $session.system_language
[0..1] I_ProductGroupText_2 _ProductGroupText $projection.MaterialGroup = _ProductGroupText.ProductGroup and _ProductGroupText.Language = $session.system_language
[0..1] I_ProductTypeText _ProductTypeText $projection.MaterialType = _ProductTypeText.ProductType and _ProductTypeText.Language = $session.system_language
[0..1] I_Plant _Plant $projection.Plant = _Plant.Plant
[0..1] I_SalesOrganizationText _SalesOrgText $projection.SalesOrganization = _SalesOrgText.SalesOrganization and _SalesOrgText.Language = $session.system_language
[0..1] I_DistributionChannelText _DistrChnlText $projection.DistributionChannel = _DistrChnlText.DistributionChannel and _DistrChnlText.Language = $session.system_language
[0..1] I_DivisionText _DivnText $projection.Division = _DivnText.Division and _DivnText.Language = $session.system_language
[0..1] I_SalesDistrictText _SalesDistText $projection.SalesDistrict = _SalesDistText.SalesDistrict and _SalesDistText.Language = $session.system_language
[0..1] I_CompanyCode _CompanyCode $projection.CompanyCode = _CompanyCode.CompanyCode
[0..1] I_Customer _Customer $projection.Customer = _Customer.Customer
[0..1] I_SalesDocumentRjcnReasonText _SalesDocumentRjcnReasonT $projection.SalesDocumentRjcnReason = _SalesDocumentRjcnReasonT.SalesDocumentRjcnReason and _SalesDocumentRjcnReasonT.Language = $session.system_language
[0..1] I_SDDocumentReasonText _SDDocumentReasonT $projection.SDDocumentReason = _SDDocumentReasonT.SDDocumentReason and _SDDocumentReasonT.Language = $session.system_language

Annotations (12)

NameValueLevelField
ClientHandling.algorithm #SESSION_VARIABLE view
ClientHandling.type #INHERITED view
VDM.viewType #CONSUMPTION view
AccessControl.authorizationCheck #CHECK view
AccessControl.personalData.blocking #REQUIRED view
AbapCatalog.sqlViewName CSDOPCUSTRETSQ view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #XXL view
EndUserText.label View for Customer Returns Query view

Fields (43)

KeyFieldSource TableSource FieldDescription
KEY Material Material Product
KEY Plant Plant Valuation Area
KEY Batch Batch Lot No.
KEY StorageLocation StorageLocation StorageLocation
KEY SupplyNumber SupplyNumber Supply Document No.
KEY SupplyItem SupplyItem Supply Document Item
KEY SupplyScheduleLine SupplyScheduleLine Supply Schedule Line
KEY ProductAvailabilityDate ProductAvailabilityDate Supply Delivery Date
KEY AssignedSupplyType AssignedSupplyType Supply Type
SupAssgmtSource SupAssgmtSource Supply Source
RequestedDeliveryDate RequestedDeliveryDate Requested Delivery Date
OpenSupplyQuantity OpenSupplyQuantity Open Supply Quantity
AssignedQuantityInBaseUnit AssignedQuantityInBaseUnit Total Assigned Quantity
BaseUnit BaseUnit Unit of Measure
SupAssgmtAggrgQtyUnit SupAssgmtAggrgQtyUnit
SDDocumentReason SDDocumentReason Order Reason
SalesDocumentRjcnReason SalesDocumentRjcnReason RejectionReason
MaterialGroup MaterialGroup Product Group
MaterialType MaterialType Product Type
CrossPlantConfigurableProduct CrossPlantConfigurableProduct Generic Article
StockSegment StockSegment Stock Segment
SalesOrganization SalesOrganization Sales Organization
DistributionChannel DistributionChannel RefDistCh-Cust/Mat.
Division Division Internal Division ID
SalesDistrict SalesDistrict Sales District
Customer Customer Sold-to Party
CompanyCode CompanyCode Receiver Company Code
DisplayCurrency DisplayCurrency Display Currency
TotActualAmtInDisplayCurrency TotActualAmtInDisplayCurrency Amount
_SupText _SupText
_SupSrceText _SupSrceText
_SalesDocumentRjcnReasonT _SalesDocumentRjcnReasonT
_SDDocumentReasonT _SDDocumentReasonT
_ProductText _ProductText
_ProductGroupText _ProductGroupText
_ProductTypeText _ProductTypeText
_Plant _Plant
_SalesOrgText _SalesOrgText
_DistrChnlText _DistrChnlText
_DivnText _DivnText
_SalesDistText _SalesDistText
_CompanyCode _CompanyCode
_Customer _Customer

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_SupDmndOvwPgCustRetsQ.
-- 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_SupDmndOvwPgCustRetsQ AS
SELECT
  Material,
  Plant,
  Batch,
  StorageLocation,
  SupplyNumber,
  SupplyItem,
  SupplyScheduleLine,
  ProductAvailabilityDate,
  AssignedSupplyType,
  SupAssgmtSource,
  RequestedDeliveryDate,
  OpenSupplyQuantity,
  AssignedQuantityInBaseUnit,
  BaseUnit,
  SupAssgmtAggrgQtyUnit,
  SDDocumentReason,
  SalesDocumentRjcnReason,
  MaterialGroup,
  MaterialType,
  CrossPlantConfigurableProduct,
  StockSegment,
  SalesOrganization,
  DistributionChannel,
  Division,
  SalesDistrict,
  Customer,
  CompanyCode,
  DisplayCurrency,
  TotActualAmtInDisplayCurrency
FROM I_SupDmndOvwPgCustRetsC
LEFT OUTER JOIN I_SupDmndAllDocSupTypeT AS _SupText ON AssignedSupplyType = _SupText.AssignedSupplyType AND _SupText.Language = $session.system_language  -- association [0..1]
LEFT OUTER JOIN I_SupDmndAllDocSupSourceT AS _SupSrceText ON SupAssgmtSource = _SupSrceText.SupAssgmtSource AND _SupSrceText.Language = $session.system_language  -- association [0..1]
LEFT OUTER JOIN I_ProductText AS _ProductText ON Material = _ProductText.Product AND _ProductText.Language = $session.system_language  -- association [0..1]
LEFT OUTER JOIN I_ProductGroupText_2 AS _ProductGroupText ON MaterialGroup = _ProductGroupText.ProductGroup AND _ProductGroupText.Language = $session.system_language  -- association [0..1]
LEFT OUTER JOIN I_ProductTypeText AS _ProductTypeText ON MaterialType = _ProductTypeText.ProductType AND _ProductTypeText.Language = $session.system_language  -- association [0..1]
LEFT OUTER JOIN I_Plant AS _Plant ON Plant = _Plant.Plant  -- association [0..1]
LEFT OUTER JOIN I_SalesOrganizationText AS _SalesOrgText ON SalesOrganization = _SalesOrgText.SalesOrganization AND _SalesOrgText.Language = $session.system_language  -- association [0..1]
LEFT OUTER JOIN I_DistributionChannelText AS _DistrChnlText ON DistributionChannel = _DistrChnlText.DistributionChannel AND _DistrChnlText.Language = $session.system_language  -- association [0..1]
LEFT OUTER JOIN I_DivisionText AS _DivnText ON Division = _DivnText.Division AND _DivnText.Language = $session.system_language  -- association [0..1]
LEFT OUTER JOIN I_SalesDistrictText AS _SalesDistText ON SalesDistrict = _SalesDistText.SalesDistrict AND _SalesDistText.Language = $session.system_language  -- association [0..1]
LEFT OUTER JOIN I_CompanyCode AS _CompanyCode ON CompanyCode = _CompanyCode.CompanyCode  -- association [0..1]
LEFT OUTER JOIN I_Customer AS _Customer ON Customer = _Customer.Customer  -- association [0..1]
LEFT OUTER JOIN I_SalesDocumentRjcnReasonText AS _SalesDocumentRjcnReasonT ON SalesDocumentRjcnReason = _SalesDocumentRjcnReasonT.SalesDocumentRjcnReason AND _SalesDocumentRjcnReasonT.Language = $session.system_language  -- association [0..1]
LEFT OUTER JOIN I_SDDocumentReasonText AS _SDDocumentReasonT ON SDDocumentReason = _SDDocumentReasonT.SDDocumentReason AND _SDDocumentReasonT.Language = $session.system_language  -- association [0..1]
;