I_CACorrespondenceHistory
Correspondence History
I_CACorrespondenceHistory is a Basic CDS View that provides data about "Correspondence History" in SAP S/4HANA. It reads from 1 data source (dfkkcohi) and exposes 50 fields with key fields CACorrespondenceType, ContractAccount, BusinessPartner, CACorrespondence. It has 13 associations to related views. Part of development package FKKC.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| dfkkcohi | dfkkcohi | from |
Associations (13)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_ContractAccountHeader | _ContractAccount | $projection.ContractAccount = _ContractAccount.ContractAccount |
| [0..1] | I_ContractAccountPartner | _ContractAccountPartner | $projection.BusinessPartner = _ContractAccountPartner.BusinessPartner and $projection.ContractAccount = _ContractAccountPartner.ContractAccount |
| [1..1] | I_BusinessPartner | _BusinessPartner | $projection.BusinessPartner = _BusinessPartner.BusinessPartner |
| [1..1] | I_BusinessPartner | _OriglCorrespondenceRecipient | $projection.OriglCorrespondenceRecipient = _OriglCorrespondenceRecipient.BusinessPartner |
| [1..1] | I_CACorrespncDispatchControl_2 | _CACorrespncDispatchControl | $projection.CACorrespncDispatchControl = _CACorrespncDispatchControl.CACorrespncDispatchControl |
| [0..1] | I_CACorrespondenceStatus | _CACorrespondenceStatus | $projection.CACorrespondenceStatus = _CACorrespondenceStatus.CACorrespondenceStatus |
| [1..1] | I_CACorrespondenceType | _CACorrespondenceType | $projection.CACorrespondenceType = _CACorrespondenceType.CACorrespondenceType |
| [0..1] | I_CAProviderContractHeader | _CAProviderContract | $projection.CASubApplication = 'P' and $projection.CAContract = _CAProviderContract.CAProviderContract |
| [0..1] | I_CASubApplication | _CASubApplication | $projection.CASubApplication = _CASubApplication.CASubApplication |
| [1..1] | I_CATechCorrespondenceStatus | _CATechCorrespondenceStatus | $projection.CATechCorrespondenceStatus = _CATechCorrespondenceStatus.CATechCorrespondenceStatus |
| [0..1] | I_CompanyCode | _CompanyCode | $projection.CompanyCode = _CompanyCode.CompanyCode |
| [0..1] | I_User | _CorrespondenceIssuedByUser | $projection.CorrespondenceIssuedByUser = _CorrespondenceIssuedByUser.UserID |
| [0..1] | I_User | _CorrespondencePrintedByUser | $projection.CorrespondencePrintedByUser = _CorrespondencePrintedByUser.UserID |
Annotations (10)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | ICACORRESPNCHIST | view | |
| AccessControl.authorizationCheck | #MANDATORY | view | |
| AccessControl.personalData.blocking | #REQUIRED | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| EndUserText.label | Correspondence History | view | |
| ObjectModel.modelingPattern | #NONE | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| ObjectModel.usageType.serviceQuality | #A | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| VDM.viewType | #BASIC | view |
Fields (50)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CACorrespondenceType | cotyp | Destin. Type | |
| KEY | ContractAccount | vkont | Tech. CtrAcct | |
| KEY | BusinessPartner | gpart | Tech. BPartner | |
| KEY | CACorrespondence | cokey | Correspond. Key | |
| CAContract | vtref | Contract | ||
| CompanyCode | bukrs | Value | ||
| CreationDate | cdate | Modification date | ||
| CorrespondencePrintDate | copri | Print Date | ||
| CorrespondenceIssueDate | coidt | Issue Date | ||
| CorrespondenceIssueTime | coitm | Issue Time | ||
| Currency | salwa | Currency | ||
| CAAmountInLocalCurrency | salbe | Local Crcy Amt | ||
| CACorrespondenceStatus | corr_status | Corr. Status | ||
| InboundCorrespncDueDate | incorr_faedn | Corr. Due Date | ||
| InboundCorrespncReceivedDate | incorr_indate | Date Received | ||
| BusinessPartnerUUID | gpart_guid | Recipient GUID | ||
| OriglCorrespondenceRecipient | org_gpart | Orig. Recipient | ||
| OriglCorrespncRecipientUUID | org_gpart_guid | OrigRcp. GUID | ||
| CreationDateTime | coisststmp | Crt. Time Stamp | ||
| CorrespondenceIssueDateTime | coisststmpnew | Issue Time | ||
| CorrespondenceIssuedByUser | coissuser | Issue User | ||
| CorrespondencePrintDateTime | copritstmp | Print Timestamp | ||
| CorrespondencePrintedByUser | copriuser | Print User | ||
| CorrespondenceCreationYear | cocyr | Year | ||
| CACorrespondenceRecurrence | coper | Periods | ||
| CACorrespondenceRecurrencePerd | copnr | Period no. | ||
| CorrespondenceIsEmpty | coemp | Blank Corresp. | ||
| TransferPostgHasBeenCarriedOut | umbuch | Transfer | ||
| CAPrintRunDate | copri_laufd | Date ID | ||
| CAPrintRunID | copri_laufi | Identification | ||
| CASubApplication | subap | Subapplication | ||
| CorrespondenceIsTest | xtrial | Test | ||
| CATechCorrespondenceStatus | tech_status | Techn. Status | ||
| ApplicationForm | formkey | Forms | ||
| RawDataInterfaceApplForm | formkey_rdi | RDI Appl. Form | ||
| CACorrespncDispatchControl | sendcontrol_oc | |||
| IsInboundCorrespondence | incorr | Inbound Corres. | ||
| _BusinessPartner | _BusinessPartner | |||
| _CACorrespncDispatchControl | _CACorrespncDispatchControl | |||
| _CACorrespondenceStatus | _CACorrespondenceStatus | |||
| _CACorrespondenceType | _CACorrespondenceType | |||
| _CAProviderContract | _CAProviderContract | |||
| _CASubApplication | _CASubApplication | |||
| _CATechCorrespondenceStatus | _CATechCorrespondenceStatus | |||
| _CompanyCode | _CompanyCode | |||
| _ContractAccount | _ContractAccount | |||
| _ContractAccountPartner | _ContractAccountPartner | |||
| _CorrespondenceIssuedByUser | _CorrespondenceIssuedByUser | |||
| _CorrespondencePrintedByUser | _CorrespondencePrintedByUser | |||
| _OriglCorrespondenceRecipient | _OriglCorrespondenceRecipient |
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_CACorrespondenceHistory.
-- 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.
-- SQL view name: ICACORRESPNCHIST
CREATE VIEW I_CACorrespondenceHistory AS
SELECT
cotyp AS CACorrespondenceType,
vkont AS ContractAccount,
gpart AS BusinessPartner,
cokey AS CACorrespondence,
vtref AS CAContract,
bukrs AS CompanyCode,
cdate AS CreationDate,
copri AS CorrespondencePrintDate,
coidt AS CorrespondenceIssueDate,
coitm AS CorrespondenceIssueTime,
salwa AS Currency,
salbe AS CAAmountInLocalCurrency,
corr_status AS CACorrespondenceStatus,
incorr_faedn AS InboundCorrespncDueDate,
incorr_indate AS InboundCorrespncReceivedDate,
gpart_guid AS BusinessPartnerUUID,
org_gpart AS OriglCorrespondenceRecipient,
org_gpart_guid AS OriglCorrespncRecipientUUID,
coisststmp AS CreationDateTime,
coisststmpnew AS CorrespondenceIssueDateTime,
coissuser AS CorrespondenceIssuedByUser,
copritstmp AS CorrespondencePrintDateTime,
copriuser AS CorrespondencePrintedByUser,
cocyr AS CorrespondenceCreationYear,
coper AS CACorrespondenceRecurrence,
copnr AS CACorrespondenceRecurrencePerd,
coemp AS CorrespondenceIsEmpty,
umbuch AS TransferPostgHasBeenCarriedOut,
copri_laufd AS CAPrintRunDate,
copri_laufi AS CAPrintRunID,
subap AS CASubApplication,
xtrial AS CorrespondenceIsTest,
tech_status AS CATechCorrespondenceStatus,
formkey AS ApplicationForm,
formkey_rdi AS RawDataInterfaceApplForm,
sendcontrol_oc AS CACorrespncDispatchControl,
incorr AS IsInboundCorrespondence
FROM dfkkcohi
LEFT OUTER JOIN I_ContractAccountHeader AS _ContractAccount ON ContractAccount = _ContractAccount.ContractAccount -- association [0..1]
LEFT OUTER JOIN I_ContractAccountPartner AS _ContractAccountPartner ON BusinessPartner = _ContractAccountPartner.BusinessPartner AND ContractAccount = _ContractAccountPartner.ContractAccount -- association [0..1]
LEFT OUTER JOIN I_BusinessPartner AS _BusinessPartner ON BusinessPartner = _BusinessPartner.BusinessPartner -- association [1..1]
LEFT OUTER JOIN I_BusinessPartner AS _OriglCorrespondenceRecipient ON OriglCorrespondenceRecipient = _OriglCorrespondenceRecipient.BusinessPartner -- association [1..1]
LEFT OUTER JOIN I_CACorrespncDispatchControl_2 AS _CACorrespncDispatchControl ON CACorrespncDispatchControl = _CACorrespncDispatchControl.CACorrespncDispatchControl -- association [1..1]
LEFT OUTER JOIN I_CACorrespondenceStatus AS _CACorrespondenceStatus ON CACorrespondenceStatus = _CACorrespondenceStatus.CACorrespondenceStatus -- association [0..1]
LEFT OUTER JOIN I_CACorrespondenceType AS _CACorrespondenceType ON CACorrespondenceType = _CACorrespondenceType.CACorrespondenceType -- association [1..1]
LEFT OUTER JOIN I_CAProviderContractHeader AS _CAProviderContract ON CASubApplication = 'P' AND CAContract = _CAProviderContract.CAProviderContract -- association [0..1]
LEFT OUTER JOIN I_CASubApplication AS _CASubApplication ON CASubApplication = _CASubApplication.CASubApplication -- association [0..1]
LEFT OUTER JOIN I_CATechCorrespondenceStatus AS _CATechCorrespondenceStatus ON CATechCorrespondenceStatus = _CATechCorrespondenceStatus.CATechCorrespondenceStatus -- association [1..1]
LEFT OUTER JOIN I_CompanyCode AS _CompanyCode ON CompanyCode = _CompanyCode.CompanyCode -- association [0..1]
LEFT OUTER JOIN I_User AS _CorrespondenceIssuedByUser ON CorrespondenceIssuedByUser = _CorrespondenceIssuedByUser.UserID -- association [0..1]
LEFT OUTER JOIN I_User AS _CorrespondencePrintedByUser ON CorrespondencePrintedByUser = _CorrespondencePrintedByUser.UserID -- 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