I_CAWriteOffDocumentVH

DDL: I_CAWRITEOFFDOCUMENTVH SQL: ICAWRITEOFFDOCVH Type: view COMPOSITE Package: ODATA_O2C_FICA_WRITEOFF_HIST

Ausbuchungsbeleg

I_CAWriteOffDocumentVH is a Composite CDS View that provides data about "Ausbuchungsbeleg" in SAP S/4HANA. It reads from 1 data source (I_CADocument) and exposes 15 fields with key field CAWriteOffDocumentNumber. It has 1 association to related views. Part of development package ODATA_O2C_FICA_WRITEOFF_HIST.

Data Sources (1)

SourceAliasJoin Type
I_CADocument I_CADocument from

Associations (1)

CardinalityTargetAliasCondition
[0..1] I_UserContactCard _UserContactCard $projection.CreatedByUser = _UserContactCard.ContactCardID

Annotations (11)

NameValueLevelField
AbapCatalog.sqlViewName ICAWRITEOFFDOCVH view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #CHECK view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #XXL view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
EndUserText.label Ausbuchungsbeleg view
Search.searchable true view
VDM.viewType #COMPOSITE view
ClientHandling.algorithm #SESSION_VARIABLE view

Fields (15)

KeyFieldSource TableSource FieldDescription
KEY CAWriteOffDocumentNumber 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 _UserContactCard FullName Name
CreationDate CreationDate Time Stamp
CAReferenceDocument CAReferenceDocument Reference
CAApplicationArea CAApplicationArea ApplicationArea
CATaxCompanyCode CATaxCompanyCode Tax comp. code
_CADocumentType _CADocumentType
_CADocumentOriginCode _CADocumentOriginCode

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_CAWriteOffDocumentVH.
-- 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: ICAWRITEOFFDOCVH

CREATE VIEW I_CAWriteOffDocumentVH AS
SELECT
  cast (CADocumentNumber as abbel_gfn_kk preserving type) AS CAWriteOffDocumentNumber,
  CADocumentType,
  _CADocumentType._Text[1:Language = $session.system_language].CADocumentTypeName AS CADocumentTypeName,
  CAReconciliationKey,
  CAPostingDate,
  CADocumentOriginCode,
  cast (_CADocumentOriginCode._Text[1: Language=$session.system_language].CADocumentOriginCodeName as htext_gfn_kk) AS CADocumentOriginCodeName,
  CreatedByUser,
  _UserContactCard.FullName AS CreatedByUserName,
  CreationDate,
  CAReferenceDocument,
  CAApplicationArea,
  CATaxCompanyCode
FROM I_CADocument
LEFT OUTER JOIN I_UserContactCard AS _UserContactCard ON CreatedByUser = _UserContactCard.ContactCardID  -- association [0..1]
;