P_CACUSTTRIALBALITEM2
CA Customer Trial Balance Item2
P_CACUSTTRIALBALITEM2 is a Composite CDS View that provides data about "CA Customer Trial Balance Item2" in SAP S/4HANA. It reads from 1 data source (P_CACUSTTRIALBALITEM1) and exposes 26 fields with key fields CompanyCode, FiscalYear, CADocumentNumber, CARepetitionItemNumber, CABPItemNumber. Part of development package GLO_FIN_IS_GEN.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| P_CACUSTTRIALBALITEM1 | P_CACUSTTRIALBALITEM1 | from |
Parameters (5)
| Name | Type | Default |
|---|---|---|
| P_FromPostingDate | fis_budat_from | |
| P_ToPostingDate | fis_budat_to | |
| P_FromFiscalPeriod | fis_period_from | |
| P_ToFiscalPeriod | fis_period_to | |
| P_FiscalYear | fis_gjahr |
Annotations (7)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| ObjectModel.usageType.serviceQuality | #X | view | |
| ObjectModel.usageType.sizeCategory | #XXL | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| VDM.viewType | #COMPOSITE | view | |
| VDM.private | true | view |
Fields (26)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CompanyCode | CompanyCode | Receiver Company Code | |
| KEY | FiscalYear | FiscalYear | G/L Fiscal Year | |
| KEY | CADocumentNumber | CADocumentNumber | Document Number | |
| KEY | CARepetitionItemNumber | CARepetitionItemNumber | Repetition Item | |
| KEY | CABPItemNumber | CABPItemNumber | Item | |
| KEY | CASubItemNumber | CASubItemNumber | Subitem | |
| KEY | GLAccount | GLAccount | General Ledger | |
| KEY | BusinessPartner | BusinessPartner | Issuing Authority | |
| KEY | CompanyCodeCurrency | CompanyCodeCurrency | Local Currency | |
| KEY | TransactionCurrency | TransactionCurrency | Transaction Currency | |
| FiscalPeriod | FiscalPeriod | Tax period | ||
| PostingDate | PostingDate | Posting Date for GR | ||
| DocumentDate | DocumentDate | Journal Entry Date | ||
| BusinessPartnerName | BusinessPartnerName | Extracted Customer Name | ||
| FinancialAccountType | FinancialAccountType | Fin. Account Type | ||
| ChartOfAccounts | ChartOfAccounts | Node Class | ||
| CAReferenceDocument | CAReferenceDocument | Reference | ||
| DebitCreditCode | DebitCreditCode | Single-Character Flag | ||
| DocumentCategory | DocumentCategory | Document Category | ||
| CreatedByUser | CreatedByUser | User Name | ||
| PostingKey | PostingKey | Posting Key | ||
| BusinessPartnerCountry | BusinessPartnerCountry | BP Ctry/Reg. | ||
| GLAccountLongName | GLAccountLongName | Long Text | ||
| TaxType0 | ||||
| TaxType2 | ||||
| char1endendasIsSelected |
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_CACUSTTRIALBALITEM2.
-- 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_FromPostingDate : fis_budat_from, P_ToPostingDate : fis_budat_to, P_FromFiscalPeriod : fis_period_from, P_ToFiscalPeriod : fis_period_to, P_FiscalYear : fis_gjahr
CREATE VIEW P_CACUSTTRIALBALITEM2 AS
SELECT
CompanyCode,
FiscalYear,
CADocumentNumber,
CARepetitionItemNumber,
CABPItemNumber,
CASubItemNumber,
GLAccount,
BusinessPartner,
CompanyCodeCurrency,
TransactionCurrency,
FiscalPeriod,
PostingDate,
DocumentDate,
BusinessPartnerName,
FinancialAccountType,
ChartOfAccounts,
CAReferenceDocument,
DebitCreditCode,
DocumentCategory,
CreatedByUser,
PostingKey,
BusinessPartnerCountry,
GLAccountLongName,
concat(BusinessPartnerCountry,'0') AS TaxType0,
concat(BusinessPartnerCountry,'2') AS TaxType2,
case $parameters.P_FromFiscalPeriod when '000' then 'X' else case when FiscalPeriod <= $parameters.P_ToFiscalPeriod then 'X' else cast( ' ' as abap.char(1)) end end as IsSelected AS char1endendasIsSelected
FROM P_CACUSTTRIALBALITEM1
;
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