C_FldLogsProdReturnHistory
Return history of a Product
C_FldLogsProdReturnHistory is a Consumption CDS View that provides data about "Return history of a Product" in SAP S/4HANA. It reads from 1 data source (I_FldLogsReturnItem) and exposes 17 fields with key fields Material, FldLogsRemotePlant, FldLogsMaintenanceOrder, RemoteStorageLocation, FldLogsReferenceDocumentNumber. It has 4 associations to related views. It is exposed through 2 OData services (ASQL_F4682, UI_RETURNSWORKORDERVIEW). It is used in 1 Fiori application: Initiate Returns - By order. Part of development package FLOG_RETURN_WOV.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_FldLogsReturnItem | I_FldLogsReturnItem | from |
Associations (4)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_Plant | _PlantText | $projection.FldLogsRemotePlant = _PlantText.Plant |
| [0..1] | I_StorageLocation | _RemoteStorageLocationText | $projection.RemoteStorageLocation = _RemoteStorageLocationText.StorageLocation and $projection.FldLogsRemotePlant = _RemoteStorageLocationText.Plant |
| [0..1] | I_RecommendedActionText | _RecActionText | $projection.FldLogsRecommendedAction = _RecActionText.FldLogsRecommendedAction |
| [0..1] | I_FldLogsReturnStatusT | _RetStatText | $projection.FldLogsReturnStatus = _RetStatText.FldLogsReturnStatus |
Annotations (11)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | CFLPRODRETHISTRY | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| AccessControl.personalData.blocking | #NOT_REQUIRED | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| EndUserText.label | Return history of a Product | view | |
| VDM.viewType | #CONSUMPTION | view | |
| Metadata.allowExtensions | true | view |
OData Services (2)
| Service | Binding | Version | Contract | Release |
|---|---|---|---|---|
| ASQL_F4682 | ASQL_F4682 | C2 | NOT_RELEASED | |
| UI_RETURNSWORKORDERVIEW | UI_RETURNSWORKORDERVIEW | V2 | C1 | NOT_TO_BE_RELEASED_STABLE |
Fiori Apps (1)
| App ID | App Name | Type | Description |
|---|---|---|---|
| F4682 | Initiate Returns - By order | Transactional | An application to initiate Returns from a remote location in Field Logistics via the Maintenance Order List View. |
Initiate Returns - By order
Business Role: Warehouse Clerk (Oil & Gas)
This feature enables you as a warehouse clerk (IOG) to post the products back to remote stock, which can then be returned. This is allowed for a single reservation as well as for multiple products assigned to a particular maintenance order.
Fields (17)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | Material | Material | Vehicle Model | |
| KEY | FldLogsRemotePlant | FldLogsRemotePlant | Plant | |
| KEY | FldLogsMaintenanceOrder | FldLogsMaintenanceOrder | ||
| KEY | RemoteStorageLocation | RemoteStorageLocation | ||
| KEY | FldLogsReferenceDocumentNumber | FldLogsReferenceDocumentNumber | Reference Doc Number | |
| KEY | ReferenceDocumentItem | ReferenceDocumentItem | Reference item | |
| FldLogsReferenceDocCategory | FldLogsReferenceDocCategory | Ref. Document Type | ||
| FldLogsReturnStatus | FldLogsReturnStatus | |||
| FldLogsReturnStatusText | _RetStatText | FldLogsReturnStatusText | ||
| RetblQtyInOrderUnit | RetblQtyInOrderUnit | |||
| RetblQtyOrderUnit | RetblQtyOrderUnit | |||
| FldLogsRecommendedActionText | _RecActionText | FldLogsRecommendedActionText | ||
| FldLogsRecommendedAction | FldLogsRecommendedAction | Recommended Action | ||
| ReturnRecordChangeDateTime | ReturnRecordChangeDateTime | |||
| IsMarkedForDeletion | IsMarkedForDeletion | Purch.org. data | ||
| PlantName | _PlantText | PlantName | Plant Name | |
| StorageLocationName | _RemoteStorageLocationText | StorageLocationName | Storage Loc. Name |
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_FldLogsProdReturnHistory.
-- 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: CFLPRODRETHISTRY
CREATE VIEW C_FldLogsProdReturnHistory AS
SELECT
Material,
FldLogsRemotePlant,
FldLogsMaintenanceOrder,
RemoteStorageLocation,
FldLogsReferenceDocumentNumber,
ReferenceDocumentItem,
FldLogsReferenceDocCategory,
FldLogsReturnStatus,
_RetStatText.FldLogsReturnStatusText AS FldLogsReturnStatusText,
RetblQtyInOrderUnit,
RetblQtyOrderUnit,
_RecActionText.FldLogsRecommendedActionText AS FldLogsRecommendedActionText,
FldLogsRecommendedAction,
ReturnRecordChangeDateTime,
IsMarkedForDeletion,
_PlantText.PlantName AS PlantName,
_RemoteStorageLocationText.StorageLocationName AS StorageLocationName
FROM I_FldLogsReturnItem
LEFT OUTER JOIN I_Plant AS _PlantText ON FldLogsRemotePlant = _PlantText.Plant -- association [0..1]
LEFT OUTER JOIN I_StorageLocation AS _RemoteStorageLocationText ON RemoteStorageLocation = _RemoteStorageLocationText.StorageLocation AND FldLogsRemotePlant = _RemoteStorageLocationText.Plant -- association [0..1]
LEFT OUTER JOIN I_RecommendedActionText AS _RecActionText ON FldLogsRecommendedAction = _RecActionText.FldLogsRecommendedAction -- association [0..1]
LEFT OUTER JOIN I_FldLogsReturnStatusT AS _RetStatText ON FldLogsReturnStatus = _RetStatText.FldLogsReturnStatus -- 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
- SAP Fiori Apps Architecture — How Fiori Apps Connect to Data
- 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