C_CustomerReturnImportHistory
Customer Return Import History
C_CustomerReturnImportHistory is a Consumption CDS View that provides data about "Customer Return Import History" in SAP S/4HANA. It reads from 1 data source (I_CustomerReturnImportHistory) and exposes 26 fields with key field SalesDocumentImportID. It has 4 associations to related views. It is exposed through 1 OData service (ASQL_F8641). Part of development package VDM_SD_SLS_IMPORT_CRT.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_CustomerReturnImportHistory | _ImportHist | from |
Associations (4)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..*] | C_CustReturnImportHistoryItem | _ImportHistItem | $projection.SalesDocumentImportID = _ImportHistItem.SalesDocumentImportID |
| [0..*] | I_SalesDocImportStatusText | _ImportStatusText | $projection.SalesDocumentImportStatus = _ImportStatusText.SalesDocumentImportStatus |
| [0..*] | I_SDDocumentCategoryText | _SDDocCategoryText | $projection.SDDocumentCategory = _SDDocCategoryText.SDDocumentCategory |
| [0..*] | I_SlsDocImprtProcgStatusText | _ProcessingStatusText | $projection.SlsDocImprtProcessingStatus = _ProcessingStatusText.SlsDocImprtProcessingStatus |
Annotations (8)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #MANDATORY | view | |
| EndUserText.label | Customer Return Import History | view | |
| Metadata.allowExtensions | true | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| VDM.viewType | #CONSUMPTION | view |
OData Services (1)
| Service | Binding | Version | Contract | Release |
|---|---|---|---|---|
| ASQL_F8641 | ASQL_F8641 | C2 | NOT_RELEASED |
Fields (26)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | SalesDocumentImportID | SalesDocumentImportID | ||
| SalesDocumentImportName | SalesDocumentImportName | |||
| CreatedByUser | CreatedByUser | User Name | ||
| CreatedByUserName | _CreatedByUser | UserDescription | Full Name | |
| SalesDocumentImportStatus | SalesDocumentImportStatus | |||
| SlsDocImprtProcessingStatus | SlsDocImprtProcessingStatus | |||
| SalesDocumentImportDateTime | SalesDocumentImportDateTime | |||
| SlsDocImprtProcgStsCriticality | SlsDocImprtProcgStsCriticality | |||
| SlsDocImprtNumberOfCreated | SlsDocImprtNumberOfCreated | |||
| SlsDocImprtNumberOfFailed | SlsDocImprtNumberOfFailed | |||
| SlsDocImprtNrOfMnllyCmpltd | SlsDocImprtNrOfMnllyCmpltd | |||
| SlsDocImprtNrOfFailedCritlty | SlsDocImprtNrOfFailedCritlty | |||
| SDDocumentCategory | SDDocumentCategory | Document Cat. | ||
| LastChangeByUser | LastChangeByUser | User Name | ||
| LastChangeByUserName | _LastChangeByUser | UserDescription | Full Name | |
| LastChangeDateTime | LastChangeDateTime | Timestamp | ||
| SlsDocImprtdFileContentHash | SlsDocImprtdFileContentHash | Hash | ||
| FileShareSupplierType | FileShareSupplierType | |||
| _ImportHistItem | _ImportHistItem | |||
| _SlsDocImportStatus | _SlsDocImportStatus | |||
| _ImportStatusText | _ImportStatusText | |||
| _CreatedByUser | _CreatedByUser | |||
| _LastChangeByUser | _LastChangeByUser | |||
| _ProcessingStatus | _ProcessingStatus | |||
| _ProcessingStatusText | _ProcessingStatusText | |||
| _SDDocCategoryText | _SDDocCategoryText |
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_CustomerReturnImportHistory.
-- 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_CustomerReturnImportHistory AS
SELECT
SalesDocumentImportID,
SalesDocumentImportName,
CreatedByUser,
_CreatedByUser.UserDescription AS CreatedByUserName,
SalesDocumentImportStatus,
SlsDocImprtProcessingStatus,
SalesDocumentImportDateTime,
SlsDocImprtProcgStsCriticality,
SlsDocImprtNumberOfCreated,
SlsDocImprtNumberOfFailed,
SlsDocImprtNrOfMnllyCmpltd,
SlsDocImprtNrOfFailedCritlty,
SDDocumentCategory,
LastChangeByUser,
_LastChangeByUser.UserDescription AS LastChangeByUserName,
LastChangeDateTime,
SlsDocImprtdFileContentHash,
FileShareSupplierType
FROM I_CustomerReturnImportHistory AS _ImportHist
LEFT OUTER JOIN C_CustReturnImportHistoryItem AS _ImportHistItem ON SalesDocumentImportID = _ImportHistItem.SalesDocumentImportID -- association [1..*]
LEFT OUTER JOIN I_SalesDocImportStatusText AS _ImportStatusText ON SalesDocumentImportStatus = _ImportStatusText.SalesDocumentImportStatus -- association [0..*]
LEFT OUTER JOIN I_SDDocumentCategoryText AS _SDDocCategoryText ON SDDocumentCategory = _SDDocCategoryText.SDDocumentCategory -- association [0..*]
LEFT OUTER JOIN I_SlsDocImprtProcgStatusText AS _ProcessingStatusText ON SlsDocImprtProcessingStatus = _ProcessingStatusText.SlsDocImprtProcessingStatus -- association [0..*]
;
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
- 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