P_AuditComponent

DDL: P_AUDITCOMPONENT SQL: PAUDITCOMP Type: view BASIC

Audit Component

P_AuditComponent is a Basic CDS View that provides data about "Audit Component" in SAP S/4HANA. It reads from 1 data source (cgpl_hierarchy) and exposes 3 fields with key field AuditComponentUUID.

Data Sources (1)

SourceAliasJoin Type
cgpl_hierarchy cgpl_hierarchy from

Annotations (11)

NameValueLevelField
AbapCatalog.sqlViewName PAUDITCOMP view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
ClientHandling.algorithm #SESSION_VARIABLE view
AccessControl.authorizationCheck #NOT_REQUIRED view
VDM.private true view
VDM.viewType #BASIC view
EndUserText.label Audit Component view
ObjectModel.usageType.serviceQuality #B view
ObjectModel.usageType.sizeCategory #M view
ObjectModel.usageType.dataClass #TRANSACTIONAL view

Fields (3)

KeyFieldSource TableSource FieldDescription
KEY AuditComponentUUID cgpl_hierarchy guid UUID 22 char.
LongTextKey
external_idelseendasAuditComponent

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_AuditComponent.
-- 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: PAUDITCOMP

CREATE VIEW P_AuditComponent AS
SELECT
  cgpl_hierarchy.guid AS AuditComponentUUID,
  bintohex( cgpl_hierarchy.guid ) AS LongTextKey,
  case when cgpl_project.guid is not null then cgpl_project.external_id when cgpl_task.guid is not null then cgpl_task.external_id else '' end as AuditComponent AS external_idelseendasAuditComponent
FROM cgpl_hierarchy
;