Deprecated
This CDS view is deprecated in S/4HANA. Use NoSuccessor instead. View all deprecated CDS views →

P_PT_SAFTIsAlternateAccount

DDL: P_PT_SAFTISALTERNATEACCOUNT SQL: PPTISALTACCT Type: view COMPOSITE

P_PT_SAFTIsAlternateAccount is a Composite CDS View in SAP S/4HANA. It reads from 3 data sources (I_PT_SAFTGenericSettings, I_FinancialStatementVersion, I_CompanyCode) and exposes 2 fields with key field CompanyCode.

Data Sources (3)

SourceAliasJoin Type
I_PT_SAFTGenericSettings a from
I_FinancialStatementVersion b inner
I_CompanyCode c inner

Annotations (13)

NameValueLevelField
AbapCatalog.sqlViewName PPTISALTACCT view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #CHECK view
VDM.private true view
VDM.viewType #COMPOSITE view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.usageType.serviceQuality #D view
ClientHandling.algorithm #SESSION_VARIABLE view
AccessControl.personalData.blocking #NOT_REQUIRED view
VDM.lifecycle.status #DEPRECATED view
VDM.lifecycle.successor NoSuccessor view

Fields (2)

KeyFieldSource TableSource FieldDescription
KEY CompanyCode I_PT_SAFTGenericSettings CompanyCode Receiver Company Code
ChartOfAccountsthenXelseendasIsAltAcct

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_PT_SAFTIsAlternateAccount.
-- 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: PPTISALTACCT

CREATE VIEW P_PT_SAFTIsAlternateAccount AS
SELECT
  a.CompanyCode AS CompanyCode,
  case when b.ChartOfAccounts <> c.ChartOfAccounts then 'X' else '' end as IsAltAcct AS ChartOfAccountsthenXelseendasIsAltAcct
FROM I_PT_SAFTGenericSettings AS a
INNER JOIN I_FinancialStatementVersion AS b ON /* join condition not captured in parsed metadata */
INNER JOIN I_CompanyCode AS c ON /* join condition not captured in parsed metadata */
;