I_CAWriteOffDocumentVH
Ausbuchungsbeleg
I_CAWriteOffDocumentVH is a Composite CDS View that provides data about "Ausbuchungsbeleg" in SAP S/4HANA. It reads from 1 data source (I_CADocumentHeader) and exposes 15 fields with key field CAWriteOffDocumentNumber. It has 1 association to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_CADocumentHeader | I_CADocumentHeader | from |
Associations (1)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_UserContactCard | _UserContactCard | $projection.CreatedByUser = _UserContactCard.ContactCardID |
Annotations (11)
| Name | Value | Level | Field |
|---|---|---|---|
| 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)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CAWriteOffDocumentNumber | |||
| CADocumentType | CADocumentType | |||
| CADocumentTypeName | ||||
| CAReconciliationKey | CAReconciliationKey | |||
| CAPostingDate | CAPostingDate | |||
| CADocumentOriginCode | CADocumentOriginCode | |||
| CADocumentOriginCodeName | ||||
| CreatedByUser | CreatedByUser | |||
| CreatedByUserName | _UserContactCard | FullName | ||
| CreationDate | CreationDate | |||
| CAReferenceDocument | CAReferenceDocument | |||
| CAApplicationArea | CAApplicationArea | |||
| CATaxCompanyCode | CATaxCompanyCode | |||
| _DocType | _DocType | |||
| _DocOriginCode | _DocOriginCode |
@AbapCatalog.sqlViewName: 'ICAWRITEOFFDOCVH'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true
@AccessControl.authorizationCheck: #CHECK
@ObjectModel.usageType.serviceQuality: #C
@ObjectModel.usageType.sizeCategory: #XXL
@ObjectModel.usageType.dataClass: #TRANSACTIONAL
@EndUserText.label: 'Ausbuchungsbeleg'
@Search.searchable: true
@VDM.viewType: #COMPOSITE
@ClientHandling.algorithm: #SESSION_VARIABLE
define view I_CAWriteOffDocumentVH
as select from I_CADocumentHeader
association [0..1] to I_UserContactCard as _UserContactCard on $projection.CreatedByUser = _UserContactCard.ContactCardID
{
@Search: { defaultSearchElement: true, fuzzinessThreshold: 0.95, ranking: #HIGH }
key cast (CADocumentNumber as abbel_gfn_kk preserving type) as CAWriteOffDocumentNumber,
@ObjectModel: { text.element: [ 'CADocumentTypeName' ] }
CADocumentType,
@Semantics.text
_DocType._Text[1:Language = $session.system_language].CADocumentTypeName,
@Search: { defaultSearchElement: true, fuzzinessThreshold: 0.9, ranking: #MEDIUM }
CAReconciliationKey,
CAPostingDate,
@ObjectModel: { text.element: [ 'CADocumentOriginCodeName' ] }
CADocumentOriginCode,
@Semantics.text
cast (_DocOriginCode._Text[1: Language=$session.system_language].CADocumentOriginCodeName as htext_gfn_kk) as CADocumentOriginCodeName,
@Search: { defaultSearchElement: true, fuzzinessThreshold: 0.8, ranking: #MEDIUM }
@ObjectModel: { text.element: [ 'CreatedByUserName' ] }
CreatedByUser,
@Semantics.text
_UserContactCard.FullName as CreatedByUserName,
CreationDate,
@Search: { defaultSearchElement: true, fuzzinessThreshold: 0.94, ranking: #MEDIUM }
CAReferenceDocument,
@UI.hidden: true
CAApplicationArea,
@UI.hidden: true
CATaxCompanyCode,
_DocType,
_DocOriginCode
}
where
CADocumentOriginCode = '16'
or CADocumentOriginCode = '17'
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_CADOCUMENTHEADER",
"I_CADOCUMENTORIGINCODE",
"I_CADOCUMENTORIGINCODETEXT",
"I_CADOCUMENTTYPE",
"I_CADOCUMENTTYPETEXT",
"I_USERCONTACTCARD"
],
"ASSOCIATED":
[
"I_CADOCUMENTORIGINCODE",
"I_CADOCUMENTTYPE",
"I_USERCONTACTCARD"
],
"BASE":
[
"I_CADOCUMENTHEADER"
],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/
Learn More
- What Is a CDS View in SAP S/4HANA?
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- CDS View Annotations — A Complete Guide
- 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