I_CACorrespondenceHistory
Korrespondenzhistorie
I_CACorrespondenceHistory is a Basic CDS View that provides data about "Korrespondenzhistorie" in SAP S/4HANA. It reads from 1 data source (dfkkcohi) and exposes 48 fields with key fields CACorrespondenceType, ContractAccount, BusinessPartner, CACorrespondence. It has 11 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| dfkkcohi | dfkkcohi | from |
Associations (11)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_ContractAccountHeader | _ContrAcc | $projection.ContractAccount = _ContrAcc.ContractAccount |
| [0..1] | I_ContractAccountPartner | _CAPartner | $projection.BusinessPartner = _CAPartner.BusinessPartner and $projection.ContractAccount = _CAPartner.ContractAccount |
| [1..1] | I_BusinessPartner | _BusinessPartner | $projection.BusinessPartner = _BusinessPartner.BusinessPartner |
| [1..1] | I_BusinessPartner | _OriginalBusinessPartner | $projection.OriglCorrespondenceRecipient = _OriginalBusinessPartner.BusinessPartner |
| [0..1] | I_CAProviderContractHeader | _ProviderContract | $projection.CASubApplication = 'P' and $projection.CAContract = _ProviderContract.CAProviderContract |
| [0..1] | I_CASubApplication | _SubApplication | $projection.CASubApplication = _SubApplication.CASubApplication |
| [0..1] | I_CompanyCode | _CompCode | $projection.CompanyCode = _CompCode.CompanyCode |
| [0..1] | I_CACorrespondenceStatus | _CorrespncStatus | $projection.CACorrespondenceStatus = _CorrespncStatus.CACorrespondenceStatus |
| [1..1] | I_CATechCorrespondenceStatus | _CorrespncTechStatus | $projection.CATechCorrespondenceStatus = _CorrespncTechStatus.CATechCorrespondenceStatus |
| [1..1] | I_CACorrespondenceType | _CorrespncType | $projection.CACorrespondenceType = _CorrespncType.CACorrespondenceType |
| [1..1] | I_CACorrespncDispatchControl | _CorrespncDispContr | $projection.CACorrespncDispatchControl = _CorrespncDispContr.CACorrespncDispatchControl |
Annotations (9)
| Name | Value | Level | Field |
|---|---|---|---|
| EndUserText.label | Korrespondenzhistorie | view | |
| VDM.viewType | #BASIC | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| ObjectModel.usageType.dataClass | #MASTER | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| AccessControl.personalData.blocking | #REQUIRED | view | |
| AbapCatalog.sqlViewName | ICACORRESPNCHIST | view |
Fields (48)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CACorrespondenceType | cotyp | Destin. Type | |
| KEY | ContractAccount | Tech. CtrAcct | ||
| KEY | BusinessPartner | Tech. BPartner | ||
| KEY | CACorrespondence | cokey | Correspond. Key | |
| CAContract | Contract | |||
| CompanyCode | bukrs | Value | ||
| CreationDate | Modification date | |||
| CorrespondencePrintDate | copri | Print Date | ||
| CorrespondenceIssueDate | coidt | Issue Date | ||
| CorrespondenceIssueTime | coitm | Issue Time | ||
| Currency | Currency | |||
| CAAmountInLocalCurrency | 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 | Period no. | |||
| CorrespondenceIsEmpty | coemp | Blank Corresp. | ||
| TransferPostgHasBeenCarriedOut | umbuch | Transfer | ||
| CAPrintRunDate | Date ID | |||
| CAPrintRunID | Identification | |||
| CASubApplication | subap | Subapplication | ||
| CorrespondenceIsTest | xtrial | Test | ||
| CATechCorrespondenceStatus | tech_status | Techn. Status | ||
| ApplicationForm | formkey | Forms | ||
| RawDataInterfaceApplForm | formkey_rdi | RDI Appl. Form | ||
| CACorrespncDispatchControl | sendcontrol | Disp. Control | ||
| IsInboundCorrespondence | incorr | Inbound Corres. | ||
| _ContrAcc | _ContrAcc | |||
| _CAPartner | _CAPartner | |||
| _ProviderContract | _ProviderContract | |||
| _SubApplication | _SubApplication | |||
| _BusinessPartner | _BusinessPartner | |||
| _OriginalBusinessPartner | _OriginalBusinessPartner | |||
| _CompCode | _CompCode | |||
| _CorrespncStatus | _CorrespncStatus | |||
| _CorrespncTechStatus | _CorrespncTechStatus | |||
| _CorrespncType | _CorrespncType | |||
| _CorrespncDispContr | _CorrespncDispContr |
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,
cast(vkont as vkont_gfn_kk preserving type ) AS ContractAccount,
cast(gpart as bu_partner preserving type ) AS BusinessPartner,
cokey AS CACorrespondence,
cast(vtref as vtref_kk preserving type ) AS CAContract,
bukrs AS CompanyCode,
cast(cdate as fis_cpdat preserving type ) AS CreationDate,
copri AS CorrespondencePrintDate,
coidt AS CorrespondenceIssueDate,
coitm AS CorrespondenceIssueTime,
cast(salwa as waers preserving type ) AS Currency,
cast(salbe as betrh_kk preserving type ) 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,
cast(copnr as copnr_gfn_kk) AS CACorrespondenceRecurrencePerd,
coemp AS CorrespondenceIsEmpty,
umbuch AS TransferPostgHasBeenCarriedOut,
cast(copri_laufd as copri_laufd_gfn_kk) AS CAPrintRunDate,
cast(copri_laufi as copri_laufi_gfn_kk) AS CAPrintRunID,
subap AS CASubApplication,
xtrial AS CorrespondenceIsTest,
tech_status AS CATechCorrespondenceStatus,
formkey AS ApplicationForm,
formkey_rdi AS RawDataInterfaceApplForm,
sendcontrol AS CACorrespncDispatchControl,
incorr AS IsInboundCorrespondence
FROM dfkkcohi
LEFT OUTER JOIN I_ContractAccountHeader AS _ContrAcc ON ContractAccount = _ContrAcc.ContractAccount -- association [0..1]
LEFT OUTER JOIN I_ContractAccountPartner AS _CAPartner ON BusinessPartner = _CAPartner.BusinessPartner AND ContractAccount = _CAPartner.ContractAccount -- association [0..1]
LEFT OUTER JOIN I_BusinessPartner AS _BusinessPartner ON BusinessPartner = _BusinessPartner.BusinessPartner -- association [1..1]
LEFT OUTER JOIN I_BusinessPartner AS _OriginalBusinessPartner ON OriglCorrespondenceRecipient = _OriginalBusinessPartner.BusinessPartner -- association [1..1]
LEFT OUTER JOIN I_CAProviderContractHeader AS _ProviderContract ON CASubApplication = 'P' AND CAContract = _ProviderContract.CAProviderContract -- association [0..1]
LEFT OUTER JOIN I_CASubApplication AS _SubApplication ON CASubApplication = _SubApplication.CASubApplication -- association [0..1]
LEFT OUTER JOIN I_CompanyCode AS _CompCode ON CompanyCode = _CompCode.CompanyCode -- association [0..1]
LEFT OUTER JOIN I_CACorrespondenceStatus AS _CorrespncStatus ON CACorrespondenceStatus = _CorrespncStatus.CACorrespondenceStatus -- association [0..1]
LEFT OUTER JOIN I_CATechCorrespondenceStatus AS _CorrespncTechStatus ON CATechCorrespondenceStatus = _CorrespncTechStatus.CATechCorrespondenceStatus -- association [1..1]
LEFT OUTER JOIN I_CACorrespondenceType AS _CorrespncType ON CACorrespondenceType = _CorrespncType.CACorrespondenceType -- association [1..1]
LEFT OUTER JOIN I_CACorrespncDispatchControl AS _CorrespncDispContr ON CACorrespncDispatchControl = _CorrespncDispContr.CACorrespncDispatchControl -- association [1..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