/APE/C_ExceptionHeader_UI
Exception Document
/APE/C_ExceptionHeader_UI is a Consumption CDS View that provides data about "Exception Document" in SAP S/4HANA. It reads from 1 data source (/APE/I_ExceptionHeader_TP) and exposes 86 fields with key field ExceptionDocumentKey. It has 25 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| /APE/I_ExceptionHeader_TP | ExceptionDocument | from |
Associations (25)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..*] | /APE/C_ExceptionParameter_UI | _ExcpPara | _ExcpPara.ExcepionDocumentKey = $projection.ExceptionDocumentKey |
| [0..*] | /APE/C_ExceptionSolution_UI | _ExcpSolv | _ExcpSolv.ExceptionDocumentKey = $projection.ExceptionDocumentKey |
| [0..*] | /APE/C_ExceptionLinkBO_UI | _ExcpLinkBO | _ExcpLinkBO.ExceptionDocumentKey = $projection.ExceptionDocumentKey |
| [0..*] | /APE/C_ExceptionPriority_VH | _ExceptionPriority | _ExceptionPriority.Value = $projection.Priority |
| [0..*] | /APE/C_ExceptionStatus_VH | _ExceptionStatus | _ExceptionStatus.Value = $projection.ExceptionStatus |
| [0..1] | /APE/C_ExceptionID_VH | _ExceptionCode | _ExceptionCode.ExceptionID = $projection.ExceptionCode |
| [0..1] | /APE/C_BusObjTypeOfEExDoc_VH | _BOType | _BOType.BusinessObjectType = $projection.BusinessObjectType |
| [0..*] | /APE/C_Client | _Client | _Client.client_uuid = $projection.ClientUUID |
| [0..1] | /APE/C_BusinessPartner | _BP | _BP.BusinessPartnerNumber = $projection.BusinessPartner |
| [0..1] | /APE/C_ProcessCluster_VH | _ProcessCluster | _ProcessCluster.proc_cluster = $projection.ProcessCluster |
| [0..*] | /APE/C_PersonalData_VH | _PersonalDataInd | _PersonalDataInd.Value = $projection.PersonalDataIndicator |
| [0..1] | /APE/C_DomainValueTexts | _Remote | _Remote.Domname = '/APE/D_REMOTE_RAISE' and _Remote.Domvalue = $projection.Remote |
| [0..1] | /APE/C_LogLevel_VH | _LogLevel | _LogLevel.Value = $projection.LogLevel |
| [0..*] | /APE/C_TestInd_VH | _TestInd | _TestInd.Value = $projection.Test |
| [0..1] | /APE/C_ExceptionPDocTDoc_UI | _PDocTDoc | _PDocTDoc.ExceptionDocumentKey = $projection.ExceptionDocumentKey |
| [0..*] | /APE/C_DomainValueTexts | _Archived | _Archived.Domname = '/APE/D_ARCHIVE_INDICATOR' and _Archived.Domvalue = $projection.Archived |
| [0..1] | /APE/C_HistoricalData_VH | _HistoricalData | _HistoricalData.Value = $projection.HistoricalData and _HistoricalData.Language = $session.system_language |
| [0..*] | /APE/C_EXCPHDRTRBO | _TRBO | _TRBO.excp_uuid = $projection.ExceptionDocumentKey |
| [0..1] | /APE/C_ProcessID_VH | _ProcessID | _ProcessID.ProcessID = $projection.BusinessObjectCharacteristic |
| [0..1] | /APE/I_BusStatus | _BusStatusCC | _BusStatusCC.config_key = $projection.BusinessStatusKey |
| [0..1] | /APE/C_BusStatus_Excp_VH | _BusStatus | _BusStatus.BusinessStatusKey = $projection.BusinessStatusKey |
| [1..*] | /APE/C_EXCPHDTRHD | _TRHD | _TRHD.excp_uuid = $projection.ExceptionDocumentKey |
| [0..1] | /APE/C_ExceptionType_VH | _ExceptionTypeVH | _ExceptionTypeVH.Value = $projection.ExcpType |
| [0..1] | /APE/C_PDoc_CONV | _PDocBOUUID | _PDocBOUUID.ProcessDocumentBOUUID = $projection.BusinessObjectUUID |
| [0..1] | /APE/C_TDoc_CONV | _TDocBOUUID | _TDocBOUUID.TransferDocumentBOUUID = $projection.BusinessObjectUUID |
Annotations (16)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | /APE/C_EXHDRUI | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #MANDATORY | view | |
| EndUserText.label | Exception Document | view | |
| VDM.viewType | #CONSUMPTION | view | |
| ObjectModel.compositionRoot | true | view | |
| ObjectModel.transactionalProcessingDelegated | true | view | |
| ObjectModel.createEnabled | false | view | |
| ObjectModel.deleteEnabled | false | view | |
| ObjectModel.updateEnabled | true | view | |
| ObjectModel.draftEnabled | false | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| ObjectModel.usageType.sizeCategory | #XXL | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| Metadata.allowExtensions | true | view | |
| Metadata.ignorePropagatedAnnotations | true | view |
Fields (86)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | ExceptionDocumentKey | /APE/I_ExceptionHeader_TP | db_key | UUID |
| ExceptionDocumentNumber | /APE/I_ExceptionHeader_TP | excp_doc_no | ||
| ClientUUID | /APE/I_ExceptionHeader_TP | client_uuid | ||
| CommonAccessUUID | /APE/I_ExceptionHeader_TP | com_acc_uuid | ||
| ProcessCluster | /APE/I_ExceptionHeader_TP | proc_cluster | ||
| Overdue | ||||
| OverdueCriticality | 1 | |||
| ExceptionCode | /APE/I_ExceptionHeader_TP | excp_code | ||
| BusinessPartner | /APE/I_ExceptionHeader_TP | bu_partner_uuid | ||
| clientNULLasDueDate | ||||
| ExceptionStatus | /APE/I_ExceptionHeader_TP | excp_status | ||
| clientNULLasStatusDate | ||||
| BusinessStatusKey | /APE/I_ExceptionHeader_TP | bus_status_uuid | ||
| BusinessStatus | /APE/I_ExceptionHeader_TP | bus_status | ||
| BusinessStatusDescription | _BusStatus | BusStatusDescriptionISL | ||
| BusinessStatusCriticality | _BusStatusCC | color_code | Color Code | |
| BusinessObjectType | /APE/I_ExceptionHeader_TP | bo_type | SOT Name | |
| BusinessObjectUUID | /APE/I_ExceptionHeader_TP | bo_uuid | ||
| BusinessObjectNumber | ||||
| BusinessObjectCharacteristic | /APE/I_ExceptionHeader_TP | bo_character | ||
| ProcessIDDescription | _ProcessID | ProcessIDDescription | ||
| Priority | /APE/I_ExceptionHeader_TP | priority | Workflow priority | |
| Processor | /APE/I_ExceptionHeader_TP | processor | User Name | |
| Note | /APE/I_ExceptionHeader_TP | note | TradeRequest Comment | |
| Remote | /APE/I_ExceptionHeader_TP | remote | Remote possible | |
| OriginSystemUUID | /APE/I_ExceptionHeader_TP | origin_syst_uuid | ||
| OriginSystemType | /APE/I_ExceptionHeader_TP | origin_syst_type | ||
| Test | /APE/I_ExceptionHeader_TP | test | Test | |
| PersonalDataIndicator | /APE/I_ExceptionHeader_TP | person_data_ind | ||
| PersonalDataIndicatorDescr | _PersonalDataInd | Description | Well Code Des. | |
| Blocked | /APE/I_ExceptionHeader_TP | blocked | Complaint Locked | |
| AuthorizationGroup | /APE/I_ExceptionHeader_TP | auth_grp | AuthorizGroup | |
| archivedelseEendasArchived | ||||
| LogLevel | /APE/I_ExceptionHeader_TP | log_level | Problem Class | |
| clientNULLasCreatedAtBf | ||||
| CreatedBy | /APE/I_ExceptionHeader_TP | created_by | Version Created By | |
| clientNULLasChangedAtBf | ||||
| ChangedBy | /APE/I_ExceptionHeader_TP | changed_by | User Name | |
| ClientName | _Client | name | Zone name | |
| client_uuid | /APE/I_ExceptionHeader_TP | client_uuid | ||
| bo_type | /APE/I_ExceptionHeader_TP | bo_type | SOT Name | |
| bo_character | /APE/I_ExceptionHeader_TP | bo_character | ||
| auth_grp | /APE/I_ExceptionHeader_TP | auth_grp | AuthorizGroup | |
| _ExcpCode | /APE/I_ExceptionHeader_TP | _ExcpCode | ||
| ExcpType | ExcpType | Exception Type | ||
| ExceptionTypeDescription | _ExceptionTypeVH | Description | Well Code Des. | |
| changed_at | /APE/I_ExceptionHeader_TP | changed_at | Timestamp | |
| ReferenceType | ||||
| ReferenceID | ||||
| TechnicalMessageID | _TRHD | tech_msg_id | ||
| TechnicalMessageVersion | _TRHD | tech_msg_version | ||
| BusinessMessageID | _TRHD | bus_msg_id | ||
| Editable_mc | ||||
| Addrefrence_mc | ||||
| RetryCounter | /APE/I_ExceptionHeader_TP | retry_counter | Retry Counter | |
| OwnerMarketPartner | /APE/I_ExceptionHeader_TP | owner_uuid | ||
| OwnerMarketPartnerName | ||||
| CommunicationPartner | Communication Market Partner | |||
| CommunicationPartnerName | ||||
| TransferDocumentServiceType | ||||
| SemanticAction | _BOType | SemanticAction | ||
| SemanticObject | _BOType | SemanticObject | Semantic Object | |
| KeyFieldName | _BOType | KeyFieldName | ||
| BusinessObjectTypeDescription | _BOType | BusinessObjectTypeDescription | ||
| _ExcpPara | _ExcpPara | |||
| _ExcpSolv | _ExcpSolv | |||
| _ExcpLinkBO | _ExcpLinkBO | |||
| _ExceptionPriority | _ExceptionPriority | |||
| _ExceptionStatus | _ExceptionStatus | |||
| _ExceptionCode | _ExceptionCode | |||
| _BOType | _BOType | |||
| _Client | _Client | |||
| _BP | _BP | |||
| _ProcessCluster | _ProcessCluster | |||
| _PersonalDataInd | _PersonalDataInd | |||
| _LogLevel | _LogLevel | |||
| _TestInd | _TestInd | |||
| _Remote | _Remote | |||
| _Archived | _Archived | |||
| _TRBO | _TRBO | |||
| _TRHD | _TRHD | |||
| _PDocTDoc | _PDocTDoc | |||
| _BusStatus | _BusStatus | |||
| _PDocBOUUID | _PDocBOUUID | |||
| _TDocBOUUID | _TDocBOUUID | |||
| _HistoricalData | _HistoricalData |
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 /APE/C_ExceptionHeader_UI.
-- 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 /APE/C_ExceptionHeader_UI AS
SELECT
ExceptionDocument.db_key AS ExceptionDocumentKey,
ExceptionDocument.excp_doc_no AS ExceptionDocumentNumber,
ExceptionDocument.client_uuid AS ClientUUID,
ExceptionDocument.com_acc_uuid AS CommonAccessUUID,
ExceptionDocument.proc_cluster AS ProcessCluster,
cast( '' as abap.char( 15 ) ) AS Overdue,
1 AS OverdueCriticality,
ExceptionDocument.excp_code AS ExceptionCode,
ExceptionDocument.bu_partner_uuid AS BusinessPartner,
tstmp_to_dats( ExceptionDocument.due_timestamp, abap_user_timezone($session.user, $session.client,'NULL' ), $session.client, 'NULL' ) as DueDate AS clientNULLasDueDate,
ExceptionDocument.excp_status AS ExceptionStatus,
tstmp_to_dats( ExceptionDocument.due_timestamp, abap_user_timezone($session.user, $session.client,'NULL' ), $session.client, 'NULL' ) as StatusDate AS clientNULLasStatusDate,
ExceptionDocument.bus_status_uuid AS BusinessStatusKey,
ExceptionDocument.bus_status AS BusinessStatus,
_BusStatus.BusStatusDescriptionISL AS BusinessStatusDescription,
_BusStatusCC.color_code AS BusinessStatusCriticality,
ExceptionDocument.bo_type AS BusinessObjectType,
ExceptionDocument.bo_uuid AS BusinessObjectUUID,
cast('' as /ape/de_bo_uuid_ext) AS BusinessObjectNumber,
ExceptionDocument.bo_character AS BusinessObjectCharacteristic,
_ProcessID.ProcessIDDescription AS ProcessIDDescription,
ExceptionDocument.priority AS Priority,
ExceptionDocument.processor AS Processor,
ExceptionDocument.note AS Note,
ExceptionDocument.remote AS Remote,
ExceptionDocument.origin_syst_uuid AS OriginSystemUUID,
ExceptionDocument.origin_syst_type AS OriginSystemType,
ExceptionDocument.test AS Test,
ExceptionDocument.person_data_ind AS PersonalDataIndicator,
_PersonalDataInd.Description AS PersonalDataIndicatorDescr,
ExceptionDocument.blocked AS Blocked,
ExceptionDocument.auth_grp AS AuthorizationGroup,
case ExceptionDocument._dataaging when '00000000' then ExceptionDocument.archived else 'E' end as Archived AS archivedelseEendasArchived,
ExceptionDocument.log_level AS LogLevel,
tstmp_to_dats( ExceptionDocument.created_at, abap_user_timezone($session.user, $session.client,'NULL' ), $session.client, 'NULL' ) as CreatedAtBf AS clientNULLasCreatedAtBf,
ExceptionDocument.created_by AS CreatedBy,
tstmp_to_dats( ExceptionDocument.changed_at, abap_user_timezone($session.user, $session.client,'NULL' ), $session.client, 'NULL' ) as ChangedAtBf AS clientNULLasChangedAtBf,
ExceptionDocument.changed_by AS ChangedBy,
_Client.name AS ClientName,
ExceptionDocument.client_uuid AS client_uuid,
ExceptionDocument.bo_type AS bo_type,
ExceptionDocument.bo_character AS bo_character,
ExceptionDocument.auth_grp AS auth_grp,
ExceptionDocument._ExcpCode AS _ExcpCode,
ExcpType,
_ExceptionTypeVH.Description AS ExceptionTypeDescription,
ExceptionDocument.changed_at AS changed_at,
cast( '' as /ape/de_bo_type ) AS ReferenceType,
cast( '' as /ape/de_bo_uuid_ext ) AS ReferenceID,
_TRHD.tech_msg_id AS TechnicalMessageID,
_TRHD.tech_msg_version AS TechnicalMessageVersion,
_TRHD.bus_msg_id AS BusinessMessageID,
cast('true' as /ape/de_boolean_flag ) AS Editable_mc,
cast('true' as /ape/de_boolean_flag ) AS Addrefrence_mc,
ExceptionDocument.retry_counter AS RetryCounter,
ExceptionDocument.owner_uuid AS OwnerMarketPartner,
cast( '' as /ape/de_description ) AS OwnerMarketPartnerName,
cast( '' as /ape/de_bo_uuid_ext ) AS CommunicationPartner,
cast( '' as /ape/de_description ) AS CommunicationPartnerName,
cast('' as /ape/de_service_type) AS TransferDocumentServiceType,
_BOType.SemanticAction AS SemanticAction,
_BOType.SemanticObject AS SemanticObject,
_BOType.KeyFieldName AS KeyFieldName,
_BOType.BusinessObjectTypeDescription AS BusinessObjectTypeDescription
FROM /APE/I_ExceptionHeader_TP AS ExceptionDocument
LEFT OUTER JOIN /APE/C_ExceptionParameter_UI AS _ExcpPara ON _ExcpPara.ExcepionDocumentKey = ExceptionDocumentKey -- association [0..*]
LEFT OUTER JOIN /APE/C_ExceptionSolution_UI AS _ExcpSolv ON _ExcpSolv.ExceptionDocumentKey = ExceptionDocumentKey -- association [0..*]
LEFT OUTER JOIN /APE/C_ExceptionLinkBO_UI AS _ExcpLinkBO ON _ExcpLinkBO.ExceptionDocumentKey = ExceptionDocumentKey -- association [0..*]
LEFT OUTER JOIN /APE/C_ExceptionPriority_VH AS _ExceptionPriority ON _ExceptionPriority.Value = Priority -- association [0..*]
LEFT OUTER JOIN /APE/C_ExceptionStatus_VH AS _ExceptionStatus ON _ExceptionStatus.Value = ExceptionStatus -- association [0..*]
LEFT OUTER JOIN /APE/C_ExceptionID_VH AS _ExceptionCode ON _ExceptionCode.ExceptionID = ExceptionCode -- association [0..1]
LEFT OUTER JOIN /APE/C_BusObjTypeOfEExDoc_VH AS _BOType ON _BOType.BusinessObjectType = BusinessObjectType -- association [0..1]
LEFT OUTER JOIN /APE/C_Client AS _Client ON _Client.client_uuid = ClientUUID -- association [0..*]
LEFT OUTER JOIN /APE/C_BusinessPartner AS _BP ON _BP.BusinessPartnerNumber = BusinessPartner -- association [0..1]
LEFT OUTER JOIN /APE/C_ProcessCluster_VH AS _ProcessCluster ON _ProcessCluster.proc_cluster = ProcessCluster -- association [0..1]
LEFT OUTER JOIN /APE/C_PersonalData_VH AS _PersonalDataInd ON _PersonalDataInd.Value = PersonalDataIndicator -- association [0..*]
LEFT OUTER JOIN /APE/C_DomainValueTexts AS _Remote ON _Remote.Domname = '/APE/D_REMOTE_RAISE' AND _Remote.Domvalue = Remote -- association [0..1]
LEFT OUTER JOIN /APE/C_LogLevel_VH AS _LogLevel ON _LogLevel.Value = LogLevel -- association [0..1]
LEFT OUTER JOIN /APE/C_TestInd_VH AS _TestInd ON _TestInd.Value = Test -- association [0..*]
LEFT OUTER JOIN /APE/C_ExceptionPDocTDoc_UI AS _PDocTDoc ON _PDocTDoc.ExceptionDocumentKey = ExceptionDocumentKey -- association [0..1]
LEFT OUTER JOIN /APE/C_DomainValueTexts AS _Archived ON _Archived.Domname = '/APE/D_ARCHIVE_INDICATOR' AND _Archived.Domvalue = Archived -- association [0..*]
LEFT OUTER JOIN /APE/C_HistoricalData_VH AS _HistoricalData ON _HistoricalData.Value = HistoricalData AND _HistoricalData.Language = $session.system_language -- association [0..1]
LEFT OUTER JOIN /APE/C_EXCPHDRTRBO AS _TRBO ON _TRBO.excp_uuid = ExceptionDocumentKey -- association [0..*]
LEFT OUTER JOIN /APE/C_ProcessID_VH AS _ProcessID ON _ProcessID.ProcessID = BusinessObjectCharacteristic -- association [0..1]
LEFT OUTER JOIN /APE/I_BusStatus AS _BusStatusCC ON _BusStatusCC.config_key = BusinessStatusKey -- association [0..1]
LEFT OUTER JOIN /APE/C_BusStatus_Excp_VH AS _BusStatus ON _BusStatus.BusinessStatusKey = BusinessStatusKey -- association [0..1]
LEFT OUTER JOIN /APE/C_EXCPHDTRHD AS _TRHD ON _TRHD.excp_uuid = ExceptionDocumentKey -- association [1..*]
LEFT OUTER JOIN /APE/C_ExceptionType_VH AS _ExceptionTypeVH ON _ExceptionTypeVH.Value = ExcpType -- association [0..1]
LEFT OUTER JOIN /APE/C_PDoc_CONV AS _PDocBOUUID ON _PDocBOUUID.ProcessDocumentBOUUID = BusinessObjectUUID -- association [0..1]
LEFT OUTER JOIN /APE/C_TDoc_CONV AS _TDocBOUUID ON _TDocBOUUID.TransferDocumentBOUUID = BusinessObjectUUID -- 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