/DCO/I_AccountingDocumentVH

DDL: /DCO/I_ACCOUNTINGDOCUMENTVH Type: view_entity COMPOSITE Package: /DCO/COMMONS_REC_ITEM

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)

SourceAliasJoin Type
/DCO/I_AccountingDocument /DCO/I_AccountingDocument from

Annotations (13)

NameValueLevelField
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)

ServiceBindingVersionContractRelease
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)

KeyFieldSource TableSource FieldDescription
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
;