I_CASampleDocHeader

DDL: I_CASAMPLEDOCHEADER SQL: ICASDOCHEADER Type: view BASIC

Kopfdaten zum Musterbeleg

I_CASampleDocHeader is a Basic CDS View that provides data about "Kopfdaten zum Musterbeleg" in SAP S/4HANA. It reads from 1 data source (dfkkmko) and exposes 38 fields with key field CADocumentNumber. It has 7 associations to related views.

Data Sources (1)

SourceAliasJoin Type
dfkkmko dfkkmko from

Associations (7)

CardinalityTargetAliasCondition
[1..1] I_CompanyCode _CompCode $projection.CATaxCompanyCode = _CompCode.CompanyCode
[1..1] I_Currency _Currency $projection.TransactionCurrency = _Currency.Currency
[1..1] I_CAApplicationArea _ApplArea $projection.CAApplicationArea = _ApplArea.CAApplicationArea
[1..1] I_CADocumentType _DocType $projection.CADocumentType = _DocType.CADocumentType and $projection.CAApplicationArea = _DocType.CAApplicationArea
[1..1] I_CADocumentOriginCode _DocOriginCode $projection.CADocumentOriginCode = _DocOriginCode.CADocumentOriginCode
[0..1] I_CAWorkflowCheckReason _WorkflowCheckReason $projection.CAWorkflowCheckReason = _WorkflowCheckReason.CAWorkflowCheckReason
[0..*] I_CAPostingReasonText _PostingReasonText $projection.CADocumentOriginCode = _PostingReasonText.CADocumentOriginCode and $projection.CAPostingReason = _PostingReasonText.CAPostingReason

Annotations (10)

NameValueLevelField
AbapCatalog.sqlViewName ICASDOCHEADER view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #NOT_REQUIRED view
ClientHandling.algorithm #SESSION_VARIABLE view
EndUserText.label Kopfdaten zum Musterbeleg view
ObjectModel.representativeKey CADocumentNumber view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #XXL view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
VDM.viewType #BASIC view

Fields (38)

KeyFieldSource TableSource FieldDescription
KEY CADocumentNumber opbel Reopen
CreatedByUser User Name
CreationDate Imported On
CreationTime Time
CATaxCompanyCode stbuk Tax comp. code
CATaxCodeWasExchanged xtxch New Tax Code
TaxReportingDate Valid From
CAReconciliationKey fikey Reconcil. Key
CASeparateDocIsCreatedInGL xeibh Single Document
CARequestedPeriodForGLTransfer wnper Special Period
CAApplicationArea applk ApplicationArea
CADocumentType blart Rep. rec. doc. type
CADocumentOriginCode herkf Origin
TransactionCurrency Transaction Currency
DocumentDate Journal Entry Date
CAPostingDate budat Posting Date
ExchangeRateDate Translatn Date
CAReferenceDocument xblnr Reference
CAReturnReason rlgrd Returns Reason
CAPostingReason abgrd Write-Off Reas.
ReferenceDocumentType Reference Document Type
OriginalReferenceDocument awkey RefKey GJE
CAReversedDocumentNumber stbel Reversed Doc.
CAClearingInformation aginf Clearing Info
CAReversalDocumentNumber storb Revers.document
CADocumentSupplements appdx Doc supps
LogicalSystem awsys Logical System
CAWorkflowCheckReason c4eye Check Reason
CAWorkflowCheckProcess c4eyp Process
CADocumentTransactionClass tatyp Transaction
CADocContainsCashFlowItems xcsha Cash Flow
_CompCode _CompCode
_Currency _Currency
_ApplArea _ApplArea
_DocType _DocType
_DocOriginCode _DocOriginCode
_WorkflowCheckReason _WorkflowCheckReason
_PostingReasonText _PostingReasonText

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_CASampleDocHeader.
-- 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: ICASDOCHEADER

CREATE VIEW I_CASampleDocHeader AS
SELECT
  opbel AS CADocumentNumber,
  cast(ernam as fclm_bam_created_by) AS CreatedByUser,
  cast(cpudt as fis_cpdat) AS CreationDate,
  cast(cast(cputm as abap.tims) as ttet_dt_cr_time) AS CreationTime,
  stbuk AS CATaxCompanyCode,
  xtxch AS CATaxCodeWasExchanged,
  cast(vatdate as vatdate) AS TaxReportingDate,
  fikey AS CAReconciliationKey,
  xeibh AS CASeparateDocIsCreatedInGL,
  wnper AS CARequestedPeriodForGLTransfer,
  applk AS CAApplicationArea,
  blart AS CADocumentType,
  herkf AS CADocumentOriginCode,
  cast(waers as fis_rwcur) AS TransactionCurrency,
  cast(bldat as fis_bldat) AS DocumentDate,
  budat AS CAPostingDate,
  cast(wwert as vdm_v_exchange_rate_date) AS ExchangeRateDate,
  xblnr AS CAReferenceDocument,
  rlgrd AS CAReturnReason,
  abgrd AS CAPostingReason,
  cast(awtyp as fis_awtyp) AS ReferenceDocumentType,
  awkey AS OriginalReferenceDocument,
  stbel AS CAReversedDocumentNumber,
  aginf AS CAClearingInformation,
  storb AS CAReversalDocumentNumber,
  appdx AS CADocumentSupplements,
  awsys AS LogicalSystem,
  c4eye AS CAWorkflowCheckReason,
  c4eyp AS CAWorkflowCheckProcess,
  tatyp AS CADocumentTransactionClass,
  xcsha AS CADocContainsCashFlowItems
FROM dfkkmko
LEFT OUTER JOIN I_CompanyCode AS _CompCode ON CATaxCompanyCode = _CompCode.CompanyCode  -- association [1..1]
LEFT OUTER JOIN I_Currency AS _Currency ON TransactionCurrency = _Currency.Currency  -- association [1..1]
LEFT OUTER JOIN I_CAApplicationArea AS _ApplArea ON CAApplicationArea = _ApplArea.CAApplicationArea  -- association [1..1]
LEFT OUTER JOIN I_CADocumentType AS _DocType ON CADocumentType = _DocType.CADocumentType AND CAApplicationArea = _DocType.CAApplicationArea  -- association [1..1]
LEFT OUTER JOIN I_CADocumentOriginCode AS _DocOriginCode ON CADocumentOriginCode = _DocOriginCode.CADocumentOriginCode  -- association [1..1]
LEFT OUTER JOIN I_CAWorkflowCheckReason AS _WorkflowCheckReason ON CAWorkflowCheckReason = _WorkflowCheckReason.CAWorkflowCheckReason  -- association [0..1]
LEFT OUTER JOIN I_CAPostingReasonText AS _PostingReasonText ON CADocumentOriginCode = _PostingReasonText.CADocumentOriginCode AND CAPostingReason = _PostingReasonText.CAPostingReason  -- association [0..*]
;