I_MKT_ImportHeader
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)
| Source | Alias | Join Type |
|---|---|---|
| hpa_d_import_hdr | Persistence | from |
Associations (3)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [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)
| Name | Value | Level | Field |
|---|---|---|---|
| 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)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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]
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- 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