C_CustomerReturnDeliveryFS

DDL: C_CUSTOMERRETURNDELIVERYFS SQL: CCUSTRETDELFS Type: view CONSUMPTION Package: ODATA_LE_SHP_OBDLV_OBJPAGE

Returns Delivery Object Page

C_CustomerReturnDeliveryFS is a Consumption CDS View that provides data about "Returns Delivery Object Page" in SAP S/4HANA. It reads from 1 data source (I_CustomerReturnDelivery) and exposes 42 fields with key field ReturnsDelivery. It has 5 associations to related views. Part of development package ODATA_LE_SHP_OBDLV_OBJPAGE.

Data Sources (1)

SourceAliasJoin Type
I_CustomerReturnDelivery _CustomerReturnDelivery from

Associations (5)

CardinalityTargetAliasCondition
[0..*] C_SDDocumentPartnerCard _Partner $projection.ReturnsDelivery = _Partner.SDDocument and _Partner.SDDocumentItem = '000000'
[0..*] C_CustomerReturnDeliveryItemFS _CustomerReturnDeliveryItemFs $projection.ReturnsDelivery = _CustomerReturnDeliveryItemFs.CustomerReturnDelivery
[1] E_DeliveryDocument _Extension $projection.ReturnsDelivery = _Extension.DeliveryDocument
[0..1] C_SDDocumentPartnerCard _ShipToPartyPartnerCard _CustomerReturnDelivery.CustomerReturnDelivery = _ShipToPartyPartnerCard.SDDocument and _ShipToPartyPartnerCard.PartnerFunction = 'WE' and _ShipToPartyPartnerCard.SDDocumentItem is initial
[0..1] C_SDDocumentPartnerCard _SoldToPartyPartnerCard _CustomerReturnDelivery.CustomerReturnDelivery = _SoldToPartyPartnerCard.SDDocument and _SoldToPartyPartnerCard.PartnerFunction = 'AG' and _SoldToPartyPartnerCard.SDDocumentItem is initial

Annotations (19)

NameValueLevelField
AbapCatalog.sqlViewName CCUSTRETDELFS view
ClientHandling.algorithm #SESSION_VARIABLE view
VDM.viewType #CONSUMPTION view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #CHECK view
AccessControl.personalData.blocking #BLOCKED_DATA_EXCLUDED view
EndUserText.label Returns Delivery Object Page view
Search.searchable true view
ObjectModel.compositionRoot true view
ObjectModel.representativeKey ReturnsDelivery view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #XL view
UI.headerInfo.typeName Customer Returns Delivery view
UI.headerInfo.typeNamePlural Customer Returns Delivery view
UI.headerInfo.title.type #STANDARD view
UI.headerInfo.title.value ReturnsDelivery view
UI.headerInfo.description.value DeliveryDocumentTypeName view
Consumption.semanticObject ReturnsDelivery view

Fields (42)

KeyFieldSource TableSource FieldDescription
KEY ReturnsDelivery CustomerReturnDelivery
DeliveryDocumentTypeName
ShipToParty ShipToParty Ship-To Party (obsolete)
ShipToPartyFullName Full Name Ship-to Party
SoldToParty SoldToParty Sold-to Party
SoldToPartyFullName Full Name Sold-to Party
ShippingPoint ShippingPoint Shipping Point
OverallSDProcessStatus OverallSDProcessStatus
int1asOvrlSDProcessStatusCriticality
DeliveryDate DeliveryDate Delivery Date
SalesOrganization SalesOrganization Sales Organization
HeaderGrossWeight
HeaderNetWeight HeaderNetWeight
HeaderWeightUnit HeaderWeightUnit
HeaderVolume HeaderVolume
HeaderVolumeUnit HeaderVolumeUnit
DocumentDate DocumentDate Journal Entry Date
DeliveryDocumentType
PlannedGoodsIssueDate Planned Goods Movement Date
ActualGoodsMovementDate ActualGoodsMovementDate Actual Goods Movement Date
OverallPutawayStatus OverallPutawayStatus Putaway Status
OverallPickingConfStatus OverallPickingConfStatus Putaway Confirmation Status
OverallWarehouseActivityStatus OverallWarehouseActivityStatus Warehouse Management Status
OverallGoodsMovementStatus OverallGoodsMovementStatus Goods Movement Status
int1asOvrlGdsMovementStsCriticality
DelivAdvncdShipgRcvgRlvnce DelivAdvncdShipgRcvgRlvnce Advanced Shipping and Receiving Relevance
ReadyForWarehouseExecStatus ReadyForWarehouseExecStatus Warehouse Execution Status
_Partner _Partner
_ShipToPartyPartnerCard _ShipToPartyPartnerCard
_SoldToPartyPartnerCard _SoldToPartyPartnerCard
_ShipToParty _ShipToParty
_SoldToParty _SoldToParty
_ShippingPoint _ShippingPoint
_SalesOrganization _SalesOrganization
_OverallPutawayStatus _OverallPutawayStatus
_OvrlWarehouseActyStatus _OvrlWarehouseActyStatus
_OverallPickingConfStatus _OverallPickingConfStatus
_OverallGoodsMovementStatus _OverallGoodsMovementStatus
_OverallSDProcessStatus _OverallSDProcessStatus
_CustomerReturnDeliveryItemFs _CustomerReturnDeliveryItemFs
_WarehouseExecutionStatus _WarehouseExecutionStatus
_DelivAdvncdShipgRcvgRlvnce _DelivAdvncdShipgRcvgRlvnce

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_CustomerReturnDeliveryFS.
-- 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.
-- SQL view name: CCUSTRETDELFS

CREATE VIEW C_CustomerReturnDeliveryFS AS
SELECT
  CustomerReturnDelivery AS ReturnsDelivery,
  cast( _CustomerReturnDelivery._DeliveryDocumentType._Text[1: Language=$session.system_language].DeliveryDocumentTypeName as bezei20) AS DeliveryDocumentTypeName,
  ShipToParty,
  cast('' as ad_namtext ) AS ShipToPartyFullName,
  SoldToParty,
  cast('' as ad_namtext ) AS SoldToPartyFullName,
  ShippingPoint,
  OverallSDProcessStatus,
  cast( case OverallSDProcessStatus when '' then 0 when 'A' then 2 when 'B' then 2 when 'C' then 3 else 0 end as abap.int1 ) as OvrlSDProcessStatusCriticality AS int1asOvrlSDProcessStatusCriticality,
  DeliveryDate,
  SalesOrganization,
  cast(HeaderGrossWeight as le_brgew) AS HeaderGrossWeight,
  HeaderNetWeight,
  HeaderWeightUnit,
  HeaderVolume,
  HeaderVolumeUnit,
  DocumentDate,
  _CustomerReturnDelivery._DeliveryDocumentType.DeliveryDocumentType AS DeliveryDocumentType,
  cast (PlannedGoodsIssueDate as wadak_plan) AS PlannedGoodsIssueDate,
  ActualGoodsMovementDate,
  OverallPutawayStatus,
  OverallPickingConfStatus,
  OverallWarehouseActivityStatus,
  OverallGoodsMovementStatus,
  cast( case OverallGoodsMovementStatus when '' then 0 when 'A' then 2 when 'B' then 2 when 'C' then 3 else 0 end as abap.int1 ) as OvrlGdsMovementStsCriticality AS int1asOvrlGdsMovementStsCriticality,
  DelivAdvncdShipgRcvgRlvnce,
  ReadyForWarehouseExecStatus
FROM I_CustomerReturnDelivery AS _CustomerReturnDelivery
LEFT OUTER JOIN C_SDDocumentPartnerCard AS _Partner ON ReturnsDelivery = _Partner.SDDocument AND _Partner.SDDocumentItem = '000000'  -- association [0..*]
LEFT OUTER JOIN C_CustomerReturnDeliveryItemFS AS _CustomerReturnDeliveryItemFs ON ReturnsDelivery = _CustomerReturnDeliveryItemFs.CustomerReturnDelivery  -- association [0..*]
LEFT OUTER JOIN E_DeliveryDocument AS _Extension ON ReturnsDelivery = _Extension.DeliveryDocument  -- association [1]
LEFT OUTER JOIN C_SDDocumentPartnerCard AS _ShipToPartyPartnerCard ON _CustomerReturnDelivery.CustomerReturnDelivery = _ShipToPartyPartnerCard.SDDocument AND _ShipToPartyPartnerCard.PartnerFunction = 'WE' AND _ShipToPartyPartnerCard.SDDocumentItem is initial  -- association [0..1]
LEFT OUTER JOIN C_SDDocumentPartnerCard AS _SoldToPartyPartnerCard ON _CustomerReturnDelivery.CustomerReturnDelivery = _SoldToPartyPartnerCard.SDDocument AND _SoldToPartyPartnerCard.PartnerFunction = 'AG' AND _SoldToPartyPartnerCard.SDDocumentItem is initial  -- association [0..1]
;