P_CO_DIANStRpCustomerOpenItm
Priv. Cust. Balances for Colombia DIAN
P_CO_DIANStRpCustomerOpenItm is a Consumption CDS View that provides data about "Priv. Cust. Balances for Colombia DIAN" in SAP S/4HANA. It reads from 2 data sources (C_CO_DIANStRpJournalEntryItemC, P_CO_DIANSTRPFRMT1008MinAmount) and exposes 61 fields with key fields StatryRptgEntity, StatryRptCategory, StatryRptRunID, CompanyCode, FiscalYear. Part of development package GLO_FIN_IS_CO_GL.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| C_CO_DIANStRpJournalEntryItemC | C_CO_DIANStRpJournalEntryItemC | from |
| P_CO_DIANSTRPFRMT1008MinAmount | P_CO_DIANSTRPFRMT1008MinAmount | left_outer |
Parameters (3)
| Name | Type | Default |
|---|---|---|
| P_Ledger | fins_ledger | |
| P_KeyDate | vdm_v_key_date | |
| P_ExchangeRateType | kurst |
Annotations (12)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.sqlViewName | PSRCOCUSTOPITM | view | |
| EndUserText.label | Priv. Cust. Balances for Colombia DIAN | view | |
| VDM.private | true | view | |
| VDM.viewType | #CONSUMPTION | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| ObjectModel.usageType.sizeCategory | #XXL | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| ObjectModel.usageType.serviceQuality | #X | view | |
| VDM.lifecycle.status | #DEPRECATED | view | |
| VDM.lifecycle.successor | P_CO_DIANStRpDebtorOpenItem | view |
Fields (61)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | StatryRptgEntity | Journal | StatryRptgEntity | Reporting Entity |
| KEY | StatryRptCategory | Journal | StatryRptCategory | Report ID |
| KEY | StatryRptRunID | Journal | StatryRptRunID | Report Run ID |
| KEY | CompanyCode | Journal | CompanyCode | Receiver Company Code |
| KEY | FiscalYear | FiscalYear | G/L Fiscal Year | |
| KEY | AccountingDocument | AccountingDocument | Journal Entry | |
| KEY | LedgerGLLineItem | LedgerGLLineItem | Journal Entry Item | |
| KEY | CO_DIANReportFormat | Journal | CO_DIANReportFormat | Report Format |
| KEY | CO_DIANReportItemType | Journal | CO_DIANReportItemType | Item Type |
| ReferenceDocument | ReferenceDocument | Reference Document | ||
| ReferenceDocumentItem | ReferenceDocumentItem | Reference item | ||
| CO_DIANAmountClassification | CO_DIANAmountClassification | |||
| TaxNumber1 | Journal | TaxNumber1 | VAT Reg. No. | |
| TaxNumber2 | Journal | TaxNumber2 | Tax Number 2 | |
| TaxNumber3 | Journal | TaxNumber3 | ||
| TaxNumber4 | Journal | TaxNumber4 | ||
| TaxNumber5 | Journal | TaxNumber5 | ||
| TaxNumberType | Journal | TaxNumberType | Tax number type | |
| BusinessPartnerCategory | BusinessPartnerCategory | Partner Cat. | ||
| BusinessPartner | BusinessPartner | Issuing Authority | ||
| BusinessPlace | BusinessPlace | Business place | ||
| AccountingDocumentType | AccountingDocumentType | Journal Entry Type | ||
| IsBelowMinimumAmountThreshold | MinAmtCheck | IsBelowMinimumAmountThreshold | ||
| BusinessPartnerCountry | BusinessPartnerCountry | BP Ctry/Reg. | ||
| GLAccount | GLAccount | General Ledger | ||
| GLAccountName | ||||
| AlternativeGLAccount | AlternativeGLAccount | Group Account | ||
| DebitCreditCode | DebitCreditCode | Single-Character Flag | ||
| FiscalPeriod | FiscalPeriod | Tax period | ||
| PostingDate | PostingDate | Posting Date for GR | ||
| AccountingDocumentItem | AccountingDocumentItem | Posting View Item | ||
| Supplier | Supplier | Supplier | ||
| Customer | Customer | Sold-to Party | ||
| FinancialAccountType | FinancialAccountType | Fin. Account Type | ||
| SpecialGLCode | SpecialGLCode | Special G/L Ind | ||
| ClearingDate | ClearingDate | Clearing Date | ||
| ReportingCurrency | Journal | ReportingCurrency | Currency | |
| BalanceTransactionCurrency | BalanceTransactionCurrency | Currency | ||
| AmountInBalanceTransacCrcy | AmountInBalanceTransacCrcy | Amount in Balance Transaction Currency | ||
| TransactionCurrency | TransactionCurrency | Transaction Currency | ||
| AmountInTransactionCurrency | AmountInTransactionCurrency | Pt Crcy Amt | ||
| CompanyCodeCurrency | CompanyCodeCurrency | Local Currency | ||
| AmountInCompanyCodeCurrency | AmountInCompanyCodeCurrency | Local Crcy Amt | ||
| GlobalCurrency | GlobalCurrency | GM Billing Element: Global Currency | ||
| AmountInGlobalCurrency | AmountInGlobalCurrency | Amount in Global Currency | ||
| FreeDefinedCurrency1 | FreeDefinedCurrency1 | Freely Defined Currency 1 | ||
| AmountInFreeDefinedCurrency1 | AmountInFreeDefinedCurrency1 | Amount in Freely Defined Currency 1 | ||
| FreeDefinedCurrency2 | FreeDefinedCurrency2 | Freely Defined Currency 2 | ||
| AmountInFreeDefinedCurrency2 | AmountInFreeDefinedCurrency2 | Amount in Freely Defined Currency 2 | ||
| FreeDefinedCurrency3 | FreeDefinedCurrency3 | Freely Defined Currency 3 | ||
| AmountInFreeDefinedCurrency3 | AmountInFreeDefinedCurrency3 | Amount in Freely Defined Currency 3 | ||
| FreeDefinedCurrency4 | FreeDefinedCurrency4 | Freely Defined Currency 4 | ||
| AmountInFreeDefinedCurrency4 | AmountInFreeDefinedCurrency4 | Amount in Freely Defined Currency 4 | ||
| FreeDefinedCurrency5 | FreeDefinedCurrency5 | Freely Defined Currency 5 | ||
| AmountInFreeDefinedCurrency5 | AmountInFreeDefinedCurrency5 | Amount in Freely Defined Currency 5 | ||
| FreeDefinedCurrency6 | FreeDefinedCurrency6 | Freely Defined Currency 6 | ||
| AmountInFreeDefinedCurrency6 | AmountInFreeDefinedCurrency6 | Amount in Freely Defined Currency 6 | ||
| FreeDefinedCurrency7 | FreeDefinedCurrency7 | Freely Defined Currency 7 | ||
| AmountInFreeDefinedCurrency7 | AmountInFreeDefinedCurrency7 | Amount in Freely Defined Currency 7 | ||
| FreeDefinedCurrency8 | FreeDefinedCurrency8 | Freely Defined Currency 8 | ||
| AmountInFreeDefinedCurrency8 | AmountInFreeDefinedCurrency8 | Amount in Freely Defined Currency 8 |
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_CO_DIANStRpCustomerOpenItm.
-- 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.
-- Parameters: P_Ledger : fins_ledger, P_KeyDate : vdm_v_key_date, P_ExchangeRateType : kurst
CREATE VIEW P_CO_DIANStRpCustomerOpenItm AS
SELECT
Journal.StatryRptgEntity AS StatryRptgEntity,
Journal.StatryRptCategory AS StatryRptCategory,
Journal.StatryRptRunID AS StatryRptRunID,
Journal.CompanyCode AS CompanyCode,
FiscalYear,
AccountingDocument,
LedgerGLLineItem,
Journal.CO_DIANReportFormat AS CO_DIANReportFormat,
Journal.CO_DIANReportItemType AS CO_DIANReportItemType,
ReferenceDocument,
ReferenceDocumentItem,
CO_DIANAmountClassification,
Journal.TaxNumber1 AS TaxNumber1,
Journal.TaxNumber2 AS TaxNumber2,
Journal.TaxNumber3 AS TaxNumber3,
Journal.TaxNumber4 AS TaxNumber4,
Journal.TaxNumber5 AS TaxNumber5,
Journal.TaxNumberType AS TaxNumberType,
BusinessPartnerCategory,
BusinessPartner,
BusinessPlace,
AccountingDocumentType,
MinAmtCheck.IsBelowMinimumAmountThreshold AS IsBelowMinimumAmountThreshold,
BusinessPartnerCountry,
GLAccount,
cast( _GLAccountInChartOfAccounts._Text[1: Language = $session.system_language].GLAccountName as fis_txt30_skat ) AS GLAccountName,
AlternativeGLAccount,
DebitCreditCode,
FiscalPeriod,
PostingDate,
AccountingDocumentItem,
Supplier,
Customer,
FinancialAccountType,
SpecialGLCode,
ClearingDate,
Journal.ReportingCurrency AS ReportingCurrency,
BalanceTransactionCurrency,
AmountInBalanceTransacCrcy,
TransactionCurrency,
AmountInTransactionCurrency,
CompanyCodeCurrency,
AmountInCompanyCodeCurrency,
GlobalCurrency,
AmountInGlobalCurrency,
FreeDefinedCurrency1,
AmountInFreeDefinedCurrency1,
FreeDefinedCurrency2,
AmountInFreeDefinedCurrency2,
FreeDefinedCurrency3,
AmountInFreeDefinedCurrency3,
FreeDefinedCurrency4,
AmountInFreeDefinedCurrency4,
FreeDefinedCurrency5,
AmountInFreeDefinedCurrency5,
FreeDefinedCurrency6,
AmountInFreeDefinedCurrency6,
FreeDefinedCurrency7,
AmountInFreeDefinedCurrency7,
FreeDefinedCurrency8,
AmountInFreeDefinedCurrency8
FROM C_CO_DIANStRpJournalEntryItemC
LEFT OUTER JOIN P_CO_DIANSTRPFRMT1008MinAmount ON /* join condition not captured in parsed metadata */
;
Learn More
- S/4HANA CDS View Deprecation: What You Need to Know
- 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
- 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