I_MKT_ImportHeader

DDL: I_MKT_IMPORTHEADER Type: view_entity BASIC

Marketing: Import Header

I_MKT_ImportHeader is a Basic CDS View (Dimension) that provides data about "Marketing: Import Header" in SAP S/4HANA. It reads from 1 data source (hpa_d_import_hdr) and exposes 26 fields with key field ImportHeaderUUID. It has 3 associations to related views.

Data Sources (1)

SourceAliasJoin Type
hpa_d_import_hdr Persistence from

Associations (3)

CardinalityTargetAliasCondition
[0..1] I_MKT_ImportMode _MKT_ImportMode $projection.ImportHeaderImportMode = _MKT_ImportMode.ImportHeaderImportMode
[0..1] I_MKT_SourceSystemType _MKT_SourceSystemType $projection.ImportHeaderSourceSystemType = _MKT_SourceSystemType.ImportHeaderSourceSystemType
[0..1] I_MKT_ImportStatus _MKT_ImportStatus $projection.ImportHeaderStatus = _MKT_ImportStatus.ImportHeaderStatus

Annotations (10)

NameValueLevelField
EndUserText.label Marketing: Import Header view
AccessControl.authorizationCheck #NOT_REQUIRED view
Analytics.dataCategory #DIMENSION view
Analytics.technicalName IMKTIMPORTHDR view
VDM.viewType #BASIC view
ObjectModel.representativeKey ImportHeaderUUID view
Metadata.allowExtensions true view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #XXL view
ObjectModel.usageType.dataClass #MIXED view

Fields (26)

KeyFieldSource TableSource FieldDescription
KEY ImportHeaderUUID
ImportHeaderObjectType hpa_d_import_hdr object_type Type
ImportHeaderObjectSubType hpa_d_import_hdr object_sub_type
ImportHeaderImportMode hpa_d_import_hdr import_mode Import Mode
ImportHeaderFileName hpa_d_import_hdr file_name Uploaded File Name
ImportHeaderUTCDateTime hpa_d_import_hdr timestamp UTC Time Stamp in Short Form (YYYYMMDDhhmmss)
ImportHeaderSourceSystemType hpa_d_import_hdr source_system_type
ImportHeaderSourceSystem hpa_d_import_hdr source_system_id System ID
ImportHeaderCommentary hpa_d_import_hdr commentary Comment
NmbrOfImprtHdrImportedRecords hpa_d_import_hdr imported_records_count
NmbrOfImprtHeaderFailedRecords hpa_d_import_hdr failed_records_count
ImportHeaderStatus hpa_d_import_hdr status Workflow Status
ImportHeaderRefMessageUUID hpa_d_import_hdr ref_message_id GUID 16
ImportHeaderServiceName hpa_d_import_hdr service_name Service Name
NmbrOfImportHeaderRecords hpa_d_import_hdr total_records_count
ImportHeaderHasStagingArea hpa_d_import_hdr staging_area TRUE
SynchronousImportIsForced hpa_d_import_hdr force_sync_processing TRUE
ImportHeaderUserName hpa_d_import_hdr username User who owns item
ImprtHeaderCreationUTCDateTime hpa_d_import_hdr crea_date_time Time Stamp
ImportHeaderCreatedByUser hpa_d_import_hdr crea_uname User Name
ImprtHdrLastChangedUTCDateTime hpa_d_import_hdr lchg_date_time Time Stamp
ImportHeaderLastChangedByUser hpa_d_import_hdr lchg_uname User Name
ImportHeaderCreationDate
_MKT_ImportMode _MKT_ImportMode
_MKT_SourceSystemType _MKT_SourceSystemType
_MKT_ImportStatus _MKT_ImportStatus

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 I_MKT_ImportHeader.
-- 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 I_MKT_ImportHeader AS
SELECT
  cast(Persistence.db_key as cuan_key_ext) AS ImportHeaderUUID,
  Persistence.object_type AS ImportHeaderObjectType,
  Persistence.object_sub_type AS ImportHeaderObjectSubType,
  Persistence.import_mode AS ImportHeaderImportMode,
  Persistence.file_name AS ImportHeaderFileName,
  Persistence.timestamp AS ImportHeaderUTCDateTime,
  Persistence.source_system_type AS ImportHeaderSourceSystemType,
  Persistence.source_system_id AS ImportHeaderSourceSystem,
  Persistence.commentary AS ImportHeaderCommentary,
  Persistence.imported_records_count AS NmbrOfImprtHdrImportedRecords,
  Persistence.failed_records_count AS NmbrOfImprtHeaderFailedRecords,
  Persistence.status AS ImportHeaderStatus,
  Persistence.ref_message_id AS ImportHeaderRefMessageUUID,
  Persistence.service_name AS ImportHeaderServiceName,
  Persistence.total_records_count AS NmbrOfImportHeaderRecords,
  Persistence.staging_area AS ImportHeaderHasStagingArea,
  Persistence.force_sync_processing AS SynchronousImportIsForced,
  Persistence.username AS ImportHeaderUserName,
  Persistence.crea_date_time AS ImprtHeaderCreationUTCDateTime,
  Persistence.crea_uname AS ImportHeaderCreatedByUser,
  Persistence.lchg_date_time AS ImprtHdrLastChangedUTCDateTime,
  Persistence.lchg_uname AS ImportHeaderLastChangedByUser,
  tstmp_to_dats(cast(Persistence.crea_date_time as timestamp),abap_user_timezone($session.user,$session.client,'NULL'),$session.client,'NULL') AS ImportHeaderCreationDate
FROM hpa_d_import_hdr AS Persistence
LEFT OUTER JOIN I_MKT_ImportMode AS _MKT_ImportMode ON ImportHeaderImportMode = _MKT_ImportMode.ImportHeaderImportMode  -- association [0..1]
LEFT OUTER JOIN I_MKT_SourceSystemType AS _MKT_SourceSystemType ON ImportHeaderSourceSystemType = _MKT_SourceSystemType.ImportHeaderSourceSystemType  -- association [0..1]
LEFT OUTER JOIN I_MKT_ImportStatus AS _MKT_ImportStatus ON ImportHeaderStatus = _MKT_ImportStatus.ImportHeaderStatus  -- association [0..1]
;