P_CACUSTTRIALBALITEM2

DDL: P_CACUSTTRIALBALITEM2 Type: view_entity COMPOSITE Package: GLO_FIN_IS_GEN

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)

SourceAliasJoin Type
P_CACUSTTRIALBALITEM1 P_CACUSTTRIALBALITEM1 from

Parameters (5)

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

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

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