P_Fa_Groupingstructure

DDL: P_FA_GROUPINGSTRUCTURE SQL: PFAGS Type: view BASIC

P_Fa_Groupingstructure is a Basic CDS View in SAP S/4HANA. It reads from 1 data source (t038) and exposes 9 fields.

Data Sources (1)

SourceAliasJoin Type
t038 t038 from

Annotations (10)

NameValueLevelField
AbapCatalog.sqlViewName PFAGS view
AbapCatalog.compiler.compareFilter true view
ClientHandling.algorithm #SESSION_VARIABLE view
AccessControl.authorizationCheck #NOT_ALLOWED view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #MIXED view
Metadata.ignorePropagatedAnnotations true view
VDM.private true view
VDM.viewType #BASIC view

Fields (9)

KeyFieldSource TableSource FieldDescription
glied glied Grouping
zeilt zeilt Line Type
SELEK
bukrs
ktopl
include
textv textv Sum. Term
ckont ckont Sum. Acct.
cbukr cbukr Summariz. CoCd

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_Fa_Groupingstructure.
-- 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: PFAGS

CREATE VIEW P_Fa_Groupingstructure AS
SELECT
  glied,
  zeilt,
  replace (selek,'+', '_') AS SELEK,
  case when bukrs = '' then '_%' else bukrs end AS bukrs,
  case when ktopl = '' then '___' else ktopl end AS ktopl,
  case when exclude = 'X' then 'E' else 'I' end AS include,
  textv,
  ckont,
  cbukr
FROM t038
;