P_CONSACCINCOA

DDL: P_CONSACCINCOA SQL: PCONSACCINCOA Type: view BASIC

P_CONSACCINCOA is a Basic CDS View in SAP S/4HANA. It reads from 2 data sources (rtc_ext_ska1, ska1) and exposes 17 fields.

Data Sources (2)

SourceAliasJoin Type
rtc_ext_ska1 _BPCExtension left_outer
ska1 ska1 from

Annotations (3)

NameValueLevelField
AbapCatalog.sqlViewName PCONSACCINCOA view
VDM.private true view
VDM.viewType #BASIC view

Fields (17)

KeyFieldSource TableSource FieldDescription
mandt ska1 mandt Editing Client
ChartOfAccounts ska1 ktopl G/L Chart of Accounts
GLAccount ska1 saknr G/L Account
IsBalanceSheetAccount ska1 xbilk Checkbox
GLAccountGroup ska1 ktoks GL Grp
ProfitLossAccountType ska1 gvtyp P&L state. acct
SampleGLAccount ska1 mustr Sample table
PartnerCompany ska1 vbund Trading Partner
FunctionalArea ska1 func_area Receiving Func. Area
GLAccountType ska1 glaccount_type G/L Account Type
GLAccountExternal ska1 sakan G/L Account
xbilkXthenelseXendasIsProfitLossAccount
EliminationAccount rtc_ext_ska1 elimacct BPC Elim Acc Prop.
EnableJournal rtc_ext_ska1 enjnr BPC Enable Journal
EliminationType rtc_ext_ska1 tyelm TYPELIM
ExchangeRateType rtc_ext_ska1 rkrst Exch. Rate Type
BPCAccountType rtc_ext_ska1 acctype BPC Account Type

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_CONSACCINCOA.
-- 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.
-- SQL view name: PCONSACCINCOA

CREATE VIEW P_CONSACCINCOA AS
SELECT
  ska1.mandt AS mandt,
  ska1.ktopl AS ChartOfAccounts,
  ska1.saknr AS GLAccount,
  ska1.xbilk AS IsBalanceSheetAccount,
  ska1.ktoks AS GLAccountGroup,
  ska1.gvtyp AS ProfitLossAccountType,
  ska1.mustr AS SampleGLAccount,
  ska1.vbund AS PartnerCompany,
  ska1.func_area AS FunctionalArea,
  ska1.glaccount_type AS GLAccountType,
  ska1.sakan AS GLAccountExternal,
  case when ska1.xbilk = 'X' then ' ' else 'X' end as IsProfitLossAccount AS xbilkXthenelseXendasIsProfitLossAccount,
  _BPCExtension.elimacct AS EliminationAccount,
  _BPCExtension.enjnr AS EnableJournal,
  _BPCExtension.tyelm AS EliminationType,
  _BPCExtension.rkrst AS ExchangeRateType,
  _BPCExtension.acctype AS BPCAccountType
FROM ska1
LEFT OUTER JOIN rtc_ext_ska1 AS _BPCExtension ON /* join condition not captured in parsed metadata */
;