C_CADocumentHeaderValueHelp

DDL: C_CADOCUMENTHEADERVALUEHELP SQL: CCADOCHEADERVH Type: view CONSUMPTION

Belegnummer

C_CADocumentHeaderValueHelp is a Consumption CDS View that provides data about "Belegnummer" in SAP S/4HANA. It reads from 1 data source (I_CADocumentHeader) and exposes 15 fields with key field CADocumentNumber. It has 1 association to related views.

Data Sources (1)

SourceAliasJoin Type
I_CADocumentHeader I_CADocumentHeader from

Associations (1)

CardinalityTargetAliasCondition
[0..1] I_User _CreatedByContact $projection.CreatedByUser = _CreatedByContact.UserID

Annotations (12)

NameValueLevelField
AbapCatalog.sqlViewName CCADOCHEADERVH view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #CHECK view
ClientHandling.algorithm #SESSION_VARIABLE view
EndUserText.label Belegnummer view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #XXL view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.representativeKey CADocumentNumber view
Search.searchable true view
Consumption.ranked true view
VDM.viewType #CONSUMPTION view

Fields (15)

KeyFieldSource TableSource FieldDescription
KEY CADocumentNumber CADocumentNumber Document Number
CADocumentType CADocumentType Document Type
CADocumentTypeName
CAReconciliationKey CAReconciliationKey Reconcil. Key
CAPostingDate CAPostingDate Posting Date
CADocumentOriginCode CADocumentOriginCode Document Origin
CADocumentOriginCodeName
CreatedByUser CreatedByUser User Name
CreatedByUserName _CreatedByContact UserDescription Vollständiger Name
CreationDate CreationDate Time Stamp
CAReferenceDocument CAReferenceDocument Reference
CAApplicationArea CAApplicationArea ApplicationArea
CATaxCompanyCode CATaxCompanyCode Tax comp. code
_DocType _DocType
_DocOriginCode _DocOriginCode

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 C_CADocumentHeaderValueHelp.
-- 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: CCADOCHEADERVH

CREATE VIEW C_CADocumentHeaderValueHelp AS
SELECT
  CADocumentNumber,
  CADocumentType,
  _DocType._Text[1:Language = $session.system_language].CADocumentTypeName AS CADocumentTypeName,
  CAReconciliationKey,
  CAPostingDate,
  CADocumentOriginCode,
  cast (_DocOriginCode._Text[1: Language = $session.system_language].CADocumentOriginCodeName as htext_gfn_kk) AS CADocumentOriginCodeName,
  CreatedByUser,
  _CreatedByContact.UserDescription AS CreatedByUserName,
  CreationDate,
  CAReferenceDocument,
  CAApplicationArea,
  CATaxCompanyCode
FROM I_CADocumentHeader
LEFT OUTER JOIN I_User AS _CreatedByContact ON CreatedByUser = _CreatedByContact.UserID  -- association [0..1]
;