/DCO/I_AccountingDocumentVH
Accounting Document
/DCO/I_AccountingDocumentVH is a Composite CDS View that provides data about "Accounting Document" in SAP S/4HANA. It reads from 1 data source (/DCO/I_AccountingDocument) and exposes 45 fields with key field DCoAccountingDocumentID. It is exposed through 5 OData services (ASQL_F7876, ASQL_F7877, ASQL_F8607, ...). Part of development package /DCO/COMMONS_REC_ITEM.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| /DCO/I_AccountingDocument | /DCO/I_AccountingDocument | from |
Annotations (13)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #MANDATORY | view | |
| AccessControl.personalData.blocking | #BLOCKED_DATA_EXCLUDED | view | |
| EndUserText.label | Accounting Document | view | |
| VDM.viewType | #COMPOSITE | view | |
| VDM.lifecycle.contract.type | #PUBLIC_LOCAL_API | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| ObjectModel.dataCategory | #VALUE_HELP | view | |
| ObjectModel.representativeKey | DCoAccountingDocumentID | view | |
| Consumption.valueHelpDefault.fetchValues | #ON_EXPLICIT_REQUEST | view | |
| Consumption.ranked | true | view | |
| Search.searchable | true | view |
OData Services (5)
| Service | Binding | Version | Contract | Release |
|---|---|---|---|---|
| ASQL_F7876 | ASQL_F7876 | C2 | NOT_RELEASED | |
| ASQL_F7877 | ASQL_F7877 | C2 | NOT_RELEASED | |
| ASQL_F8607 | ASQL_F8607 | C2 | NOT_RELEASED | |
| ASQL_F8608 | ASQL_F8608 | C2 | NOT_RELEASED | |
| ASQL_F8609 | ASQL_F8609 | C2 | NOT_RELEASED |
Fields (45)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | DCoAccountingDocumentID | DCoAccountingDocumentID | ||
| BusinessPartner | BusinessPartner | Issuing Authority | ||
| DebtCollectionsCompanyCode | _CompanyCodeMapping | DebtCollectionsCompanyCode | ||
| CompanyCode | CompanyCode | Receiver Company Code | ||
| DCoAccountingDocumentOrigin | DCoAccountingDocumentOrigin | Task Origin | ||
| PostingClassification | _RblPyblTransactionItem | PostingClassification | ||
| PostingSubclassification | _RblPyblTransactionItem | PostingSubclassification | ||
| PaymentDifferenceReason | _RblPyblTransactionItem | PaymentDifferenceReason | Reason Code | |
| DCoAccountingDocumentDate | DCoAccountingDocumentDate | Reversal Doc Date | ||
| DCoAcctgDocOriginalDueDate | DCoAcctgDocOriginalDueDate | |||
| DCoAccountingDocumentDueDate | DCoAccountingDocumentDueDate | |||
| DCoAcctgDocLastPaymentDate | DCoAcctgDocLastPaymentDate | |||
| DCoAccountingDocumentCurrency | DCoAccountingDocumentCurrency | Currency | ||
| DCoAcctgDocumentOriginalAmount | DCoAcctgDocumentOriginalAmount | Original Amount | ||
| DCoAcctgDocumentOpenAmount | DCoAcctgDocumentOpenAmount | Open Amount | ||
| DCoAcctgDocumentPaidAmount | DCoAcctgDocumentPaidAmount | Paid | ||
| DCoAcctgDocumentCreditedAmount | DCoAcctgDocumentCreditedAmount | Credited | ||
| DCoAcctgDocWriteOffAmount | DCoAcctgDocWriteOffAmount | |||
| DCoAcctgDocCshDiscUsedAmount | DCoAcctgDocCshDiscUsedAmount | |||
| DCoAccountingDocumentBranch | DCoAccountingDocumentBranch | |||
| DCoDocumentReference | DCoDocumentReference | Reference No. | ||
| DCoAltvDocumentReference | DCoAltvDocumentReference | |||
| DCoAcctgDocumentReference1ID | DCoAcctgDocumentReference1ID | |||
| DCoAcctgDocumentReference2ID | DCoAcctgDocumentReference2ID | |||
| DCoAcctgDocumentReference3ID | DCoAcctgDocumentReference3ID | |||
| DCoAcctgDocIsBlockedForPayment | DCoAcctgDocIsBlockedForPayment | |||
| DCoAccountingDocumentIsCleared | DCoAccountingDocumentIsCleared | |||
| DCoAcctgDocHierarchyLevelValue | DCoAcctgDocHierarchyLevelValue | |||
| DCoAcctgDocumentIsReversed | DCoAcctgDocumentIsReversed | |||
| DCoOriginalReferenceDocument | DCoOriginalReferenceDocument | |||
| DCoOriglReferenceDocumentType | DCoOriglReferenceDocumentType | |||
| DCoAcctgDocumentLogicalSystem | DCoAcctgDocumentLogicalSystem | |||
| DCoAcctgDocLastChgdByUsrName | ||||
| DCoAcctgDocCreationUserName | ||||
| DCoAcctgDocumentBranchName | ||||
| DCoAcctgDocumentCurrencyName | ||||
| PaymentDifferenceReasonName | ||||
| PostingSubclassificationName | ||||
| PostingClassificationName | ||||
| CompanyCodeDescription | ||||
| DCoCompanyCodeName | ||||
| BusinessPartnerName | _BusinessPartner | BusinessPartnerName | Extracted Customer Name | |
| _BusinessPartner | _BusinessPartner | |||
| _BranchAccount | _BranchAccount | |||
| _RblPyblTransactionItem | _RblPyblTransactionItem |
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 /DCO/I_AccountingDocumentVH.
-- 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.
CREATE VIEW /DCO/I_AccountingDocumentVH AS
SELECT
DCoAccountingDocumentID,
BusinessPartner,
_CompanyCodeMapping.DebtCollectionsCompanyCode AS DebtCollectionsCompanyCode,
CompanyCode,
DCoAccountingDocumentOrigin,
_RblPyblTransactionItem.PostingClassification AS PostingClassification,
_RblPyblTransactionItem.PostingSubclassification AS PostingSubclassification,
_RblPyblTransactionItem.PaymentDifferenceReason AS PaymentDifferenceReason,
DCoAccountingDocumentDate,
DCoAcctgDocOriginalDueDate,
DCoAccountingDocumentDueDate,
DCoAcctgDocLastPaymentDate,
DCoAccountingDocumentCurrency,
DCoAcctgDocumentOriginalAmount,
DCoAcctgDocumentOpenAmount,
DCoAcctgDocumentPaidAmount,
DCoAcctgDocumentCreditedAmount,
DCoAcctgDocWriteOffAmount,
DCoAcctgDocCshDiscUsedAmount,
DCoAccountingDocumentBranch,
DCoDocumentReference,
DCoAltvDocumentReference,
DCoAcctgDocumentReference1ID,
DCoAcctgDocumentReference2ID,
DCoAcctgDocumentReference3ID,
DCoAcctgDocIsBlockedForPayment,
DCoAccountingDocumentIsCleared,
DCoAcctgDocHierarchyLevelValue,
DCoAcctgDocumentIsReversed,
DCoOriginalReferenceDocument,
DCoOriglReferenceDocumentType,
DCoAcctgDocumentLogicalSystem,
cast ( _AcctgDocumentLastChangedBy.UserDescription as /dco/acctg_doc_last_chng_usn ) AS DCoAcctgDocLastChgdByUsrName,
cast ( _AccountingDocumentCreatedBy.UserDescription as /dco/acctg_doc_crtn_user_name ) AS DCoAcctgDocCreationUserName,
cast ( _BranchAccount.BusinessPartnerName as /dco/acctg_doc_branch_name ) AS DCoAcctgDocumentBranchName,
cast ( _AccountingDocumentCurrency._Text[ 1:Language = $session.system_language ].CurrencyName as /dco/acctg_doc_currency_name ) AS DCoAcctgDocumentCurrencyName,
_RblPyblTransactionItem._PaymentDifferenceReason._Text[ 1:Language = $session.system_language ].PaymentDifferenceReasonName AS PaymentDifferenceReasonName,
_RblPyblTransactionItem._PostingSubclassification._Text[ 1:Language = $session.system_language ].PostingSubclassificationName AS PostingSubclassificationName,
_RblPyblTransactionItem._PostingClass._Text[ 1:Language = $session.system_language ].PostingClassificationName AS PostingClassificationName,
_CompanyCode._Text[ 1:Language = $session.system_language ].CompanyCodeDescription AS CompanyCodeDescription,
_CompanyCodeMapping._CompanyCode._Text[ 1:Language = $session.system_language ].DCoCompanyCodeName AS DCoCompanyCodeName,
_BusinessPartner.BusinessPartnerName AS BusinessPartnerName
FROM /DCO/I_AccountingDocument
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- OData Services in SAP S/4HANA Explained
- Service Bindings and Service Definitions in SAP S/4HANA
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- 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
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA