P_BOPDbtflRblsCARslt
P_BOPDbtflRblsCARslt is a Composite CDS View in SAP S/4HANA. It reads from 3 data sources (I_CADocument, I_BOPContractAccountFormRule, P_BOPDbtflRblsCA) and exposes 34 fields with key fields COMPANYCODE, FiscalYear, CADocumentNumber, CABPItemNumber, CASubItemNumber.
Data Sources (3)
| Source | Alias | Join Type |
|---|---|---|
| I_CADocument | ficadoc | from |
| I_BOPContractAccountFormRule | fir | inner |
| P_BOPDbtflRblsCA | P_BOPDbtflRblsCA | inner |
Annotations (4)
| Name | Value | Level | Field |
|---|---|---|---|
| VDM.viewType | #COMPOSITE | view | |
| VDM.private | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| Metadata.ignorePropagatedAnnotations | true | view |
Fields (34)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | COMPANYCODE | bp_doubtful | COMPANYCODE | Receiver Company Code |
| KEY | FiscalYear | fiscal_year | FiscalYear | G/L Fiscal Year |
| KEY | CADocumentNumber | |||
| KEY | CABPItemNumber | |||
| KEY | CASubItemNumber | |||
| KEY | CAREPETITIONITEMNUMBER | bp_doubtful | CAREPETITIONITEMNUMBER | Repetition Item |
| KEY | BOPRptgCntry | fica_itm_bp | BOPRptgCntry | Reporting Ctry/Reg. |
| KEY | BOPForm | fica_itm_bp | BOPForm | Form |
| KEY | BOPFormItem | I_BOPContractAccountFormRule | BOPFormItem | Form Item |
| KEY | CAItemIsOffsetting | bp_doubtful | ISOFFSETTING | |
| KEY | CAItemIsDoubtful | |||
| CAReconciliationKey | I_CADocument | CAReconciliationKey | Reconcil. Key | |
| AccountingDocument | ||||
| CompanyCodeCountry | fica_itm_bp | CompanyCodeCountry | Reporting Ctry/Reg. | |
| BOPPartnerCntry | fica_itm_bp | BPCountry | ||
| FinancialAccountType | ||||
| PostingDate | bp_doubtful | CAPOSTINGDATE | Posting Date | |
| ChartOfAccounts | fica_itm_bp | ChartOfAccounts | Node Class | |
| GLACCOUNT | bp_doubtful | GLACCOUNT | General Ledger | |
| TaxCode | fica_itm_bp | TaxCode | Tax Code | |
| CADocumentType | ||||
| AccountingDocumentType | ||||
| SpecialGLCode | ||||
| TransactionCurrency | bp_doubtful | DOCUMENTCURRENCY | Document Currency | |
| AmountInTransactionCurrency | ||||
| CompanyCodeCurrency | fica_itm_bp | CompanyCodeCurrency | Local Currency | |
| CAReversedDocumentNumber | I_CADocument | CAReversedDocumentNumber | Rev. Doc. For | |
| ClearingDate | ||||
| CAClearingAccountingDocument | ||||
| CAReversalDocumentNumber | I_CADocument | CAReversalDocumentNumber | Revers.document | |
| BUSINESSPARTNER | bp_doubtful | BUSINESSPARTNER | Issuing Authority | |
| LedgerGroup | ||||
| OffsettingAccountType | ||||
| PartnerCompany | fica_itm_bp | PartnerCompany | Trading Partner |
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 P_BOPDbtflRblsCARslt.
-- 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 P_BOPDbtflRblsCARslt AS
SELECT
bp_doubtful.COMPANYCODE AS COMPANYCODE,
fiscal_year.FiscalYear AS FiscalYear,
cast( ficadoc.CADocumentNumber as fica_opbel ) AS CADocumentNumber,
cast( bp_doubtful.CABPITEMNUMBER as fica_opupk ) AS CABPItemNumber,
cast( fica_itm_bp.CASubItemNumber as fica_opupz ) AS CASubItemNumber,
bp_doubtful.CAREPETITIONITEMNUMBER AS CAREPETITIONITEMNUMBER,
fica_itm_bp.BOPRptgCntry AS BOPRptgCntry,
fica_itm_bp.BOPForm AS BOPForm,
fir.BOPFormItem AS BOPFormItem,
bp_doubtful.ISOFFSETTING AS CAItemIsOffsetting,
'X' AS CAItemIsDoubtful,
ficadoc.CAReconciliationKey AS CAReconciliationKey,
cast('' as belnr_d) AS AccountingDocument,
fica_itm_bp.CompanyCodeCountry AS CompanyCodeCountry,
fica_itm_bp.BPCountry AS BOPPartnerCntry,
cast('D' as farp_koart ) AS FinancialAccountType,
bp_doubtful.CAPOSTINGDATE AS PostingDate,
fica_itm_bp.ChartOfAccounts AS ChartOfAccounts,
bp_doubtful.GLACCOUNT AS GLACCOUNT,
fica_itm_bp.TaxCode AS TaxCode,
cast( ficadoc.CADocumentType as fica_blart) AS CADocumentType,
cast('' as blart) AS AccountingDocumentType,
cast('' as umskz) AS SpecialGLCode,
bp_doubtful.DOCUMENTCURRENCY AS TransactionCurrency,
cast( bp_doubtful.DOUBTFULRBLPOSTEDAMOUNTINTC as betrw_kk ) AS AmountInTransactionCurrency,
fica_itm_bp.CompanyCodeCurrency AS CompanyCodeCurrency,
ficadoc.CAReversedDocumentNumber AS CAReversedDocumentNumber,
cast('00000000' as augdt_kk) AS ClearingDate,
cast('00000000' as augbl_kk) AS CAClearingAccountingDocument,
ficadoc.CAReversalDocumentNumber AS CAReversalDocumentNumber,
bp_doubtful.BUSINESSPARTNER AS BUSINESSPARTNER,
cast('' as ldgrp_kk ) AS LedgerGroup,
FinancialAccountType AS OffsettingAccountType,
fica_itm_bp.PartnerCompany AS PartnerCompany
FROM I_CADocument AS ficadoc
INNER JOIN P_BOPDbtflRblsCA ON /* join condition not captured in parsed metadata */
INNER JOIN I_BOPContractAccountFormRule AS fir ON /* join condition not captured in parsed metadata */
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- 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