C_CustomerReturnImportHistory

DDL: C_CUSTOMERRETURNIMPORTHISTORY Type: view_entity CONSUMPTION Package: VDM_SD_SLS_IMPORT_CRT

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)

SourceAliasJoin Type
I_CustomerReturnImportHistory _ImportHist from

Associations (4)

CardinalityTargetAliasCondition
[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)

NameValueLevelField
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)

ServiceBindingVersionContractRelease
ASQL_F8641 ASQL_F8641 C2 NOT_RELEASED

Fields (26)

KeyFieldSource TableSource FieldDescription
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..*]
;