A_CADocumentHeader
Contract Accounting Document
A_CADocumentHeader is a Consumption CDS View that provides data about "Contract Accounting Document" in SAP S/4HANA. It reads from 1 data source (R_CADocumentTP) and exposes 35 fields with key field CADocumentNumber.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| R_CADocumentTP | R_CADocumentTP | projection |
Annotations (10)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #CHECK | view | |
| EndUserText.label | Contract Accounting Document | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| ObjectModel.representativeKey | CADocumentNumber | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #XXL | view | |
| OData.entityType.name | CADocHeader_Type | view | |
| VDM.lifecycle.contract.type | #PUBLIC_REMOTE_API | view | |
| VDM.viewType | #CONSUMPTION | view |
Fields (35)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CADocumentNumber | CADocumentNumber | ||
| CreatedByUser | CreatedByUser | |||
| CreationDate | CreationDate | |||
| CreationTime | CreationTime | |||
| CATaxCompanyCode | CATaxCompanyCode | |||
| CATaxCodeWasExchanged | CATaxCodeWasExchanged | |||
| TaxReportingDate | TaxReportingDate | |||
| CAReconciliationKey | CAReconciliationKey | |||
| CASeparateDocIsCreatedInGL | CASeparateDocIsCreatedInGL | |||
| CARequestedPeriodForGLTransfer | CARequestedPeriodForGLTransfer | |||
| CAApplicationArea | CAApplicationArea | |||
| CADocumentType | CADocumentType | |||
| CADocumentOriginCode | CADocumentOriginCode | |||
| TransactionCurrency | TransactionCurrency | |||
| DocumentDate | DocumentDate | |||
| CAPostingDate | CAPostingDate | |||
| ExchangeRateDate | ExchangeRateDate | |||
| CAReferenceDocument | CAReferenceDocument | |||
| CAReturnReason | CAReturnReason | |||
| CAPostingReason | CAPostingReason | |||
| ReferenceDocumentType | ReferenceDocumentType | |||
| OriginalReferenceDocument | OriginalReferenceDocument | |||
| CAReversedDocumentNumber | CAReversedDocumentNumber | |||
| CAClearingInformation | CAClearingInformation | |||
| CAReversalDocumentNumber | CAReversalDocumentNumber | |||
| CADocumentSupplements | CADocumentSupplements | |||
| LogicalSystem | LogicalSystem | |||
| CAWorkflowCheckReason | CAWorkflowCheckReason | |||
| CAWorkflowCheckProcess | CAWorkflowCheckProcess | |||
| CADocumentTransactionClass | CADocumentTransactionClass | |||
| CADocContainsCashFlowItems | CADocContainsCashFlowItems | |||
| CADocumentClass | CADocumentClass | |||
| CADocumentVersion | CADocumentVersion | |||
| IsIndividualPosting | IsIndividualPosting | |||
| CADocumentIsAged | CADocumentIsAged |
@AccessControl.authorizationCheck: #CHECK
@EndUserText.label: 'Contract Accounting Document'
@Metadata.ignorePropagatedAnnotations: true
@ObjectModel: { representativeKey: 'CADocumentNumber',
usageType: { dataClass: #TRANSACTIONAL,
serviceQuality: #C,
sizeCategory: #XXL } }
@OData.entityType.name: 'CADocHeader_Type'
@VDM: { lifecycle.contract.type: #PUBLIC_REMOTE_API,
usage.type: [#TRANSACTIONAL_PROCESSING_SERVICE],
viewType: #CONSUMPTION }
define root view entity A_CADocumentHeader
provider contract transactional_query
as projection on R_CADocumentTP
{
//R_CADocumentTP
key CADocumentNumber,
CreatedByUser,
CreationDate,
CreationTime,
@ObjectModel.sapObjectNodeTypeReference: 'CompanyCode'
CATaxCompanyCode,
@ObjectModel.sapObjectNodeTypeReference: 'ContrAcctgTaxSupplementStorLoc'
CAStorageLocationOfTaxSuplmnt,
CATaxCodeWasExchanged,
TaxReportingDate,
CAReconciliationKey,
CASeparateDocIsCreatedInGL,
@ObjectModel.sapObjectNodeTypeReference: 'ContrAcctgReqdSpecialPeriod'
CARequestedPeriodForGLTransfer,
@ObjectModel.sapObjectNodeTypeReference: 'ContrAcctgApplicationArea'
CAApplicationArea,
@ObjectModel.sapObjectNodeTypeReference: 'ContrAcctgDocumentType'
CADocumentType,
@ObjectModel.sapObjectNodeTypeReference: 'ContrAcctgDocumentOriginCode'
CADocumentOriginCode,
@ObjectModel.sapObjectNodeTypeReference: 'Currency'
TransactionCurrency,
DocumentDate,
CAPostingDate,
ExchangeRateDate,
CAReferenceDocument,
@ObjectModel.sapObjectNodeTypeReference: 'ContrAcctgReturnReason'
CAReturnReason,
@ObjectModel.sapObjectNodeTypeReference: 'ContrAcctgPostingReason'
CAPostingReason,
@ObjectModel.sapObjectNodeTypeReference: 'ReferenceDocumentType'
ReferenceDocumentType,
OriginalReferenceDocument,
CAReversedDocumentNumber,
@ObjectModel.sapObjectNodeTypeReference: 'ContrAcctgClearingInformation'
CAClearingInformation,
CAReversalDocumentNumber,
@ObjectModel.sapObjectNodeTypeReference: 'ContrAcctgDocumentSupplement'
CADocumentSupplements,
LogicalSystem,
@ObjectModel.sapObjectNodeTypeReference: 'ContrAcctgWorkflowCheckReason'
CAWorkflowCheckReason,
@ObjectModel.sapObjectNodeTypeReference: 'ContrAcctgWorkflowCheckProcess'
CAWorkflowCheckProcess,
@ObjectModel.sapObjectNodeTypeReference: 'ContrAcctgDocTransactionClass'
CADocumentTransactionClass,
CADocContainsCashFlowItems,
@ObjectModel.sapObjectNodeTypeReference: 'ContrAcctgDocumentClass'
CADocumentClass,
@ObjectModel.sapObjectNodeTypeReference: 'ContrAcctgDocumentVersion'
CADocumentVersion,
IsIndividualPosting,
CADocumentIsAged,
/* Associations */
_BPItem : redirected to composition child A_CADocumentBPItem,
_GLItem : redirected to composition child A_CADocumentGLItem
// _LogicalBPItem : redirected to composition child A_CADocumentBPItemLogical,
// _BPItemPaytData : redirected to composition child A_CADocumentBPItemPaymentData,
// _GLItemPaytData : redirected to composition child A_CADocumentGLItemPaymentData
}
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"R_CADOCUMENTTP"
],
"ASSOCIATED":
[
"A_CADOCUMENTBPITEM",
"A_CADOCUMENTGLITEM",
"R_CADOCUMENTBPITEMTP",
"R_CADOCUMENTGLITEMTP"
],
"BASE":
[
"R_CADOCUMENTTP"
],
"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