I_EntSrchCustCDSModel

DDL: I_ENTSRCHCUSTCDSMODEL Type: view_entity TRANSACTIONAL

Custom Search Models

I_EntSrchCustCDSModel is a Transactional CDS View that provides data about "Custom Search Models" in SAP S/4HANA. It reads from 2 data sources (ddldependency, esh_cds_mdl) and exposes 7 fields with key field EntSrchModelName. It has 1 association to related views.

Data Sources (2)

SourceAliasJoin Type
ddldependency _cdsmapping inner
esh_cds_mdl _eshsrchcdsmdl from

Associations (1)

CardinalityTargetAliasCondition
[0..*] I_CDSEntityHeaderAnnotation _cdsheaderanno $projection.EntSrchModelName = _cdsheaderanno.CDSView and _cdsheaderanno.CDSViewAnnotationName = 'UI.HEADERINFO.TYPENAMEPLURAL'

Annotations (6)

NameValueLevelField
VDM.viewType #TRANSACTIONAL view
ObjectModel.usageType.dataClass #MASTER view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #S view
EndUserText.label Custom Search Models view
AccessControl.authorizationCheck #NOT_REQUIRED view

Fields (7)

KeyFieldSource TableSource FieldDescription
KEY EntSrchModelName esh_cds_mdl cds_entity CDS-Entity
EntSrchModelScope esh_cds_mdl scope_dependent Scope Dependent
EntSrchModelCreatedByUser esh_cds_mdl created_by Version Created By
EntSrchModelLastChangedByUser esh_cds_mdl changed_by User Name
EntSrchModAppID
ABAPLanguageVersion esh_cds_mdl abap_language_version Language Version
EntSrchModelConnectorID _eshconnector sc_id Search Connector ID

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 I_EntSrchCustCDSModel.
-- 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.

CREATE VIEW I_EntSrchCustCDSModel AS
SELECT
  _eshsrchcdsmdl.cds_entity AS EntSrchModelName,
  _eshsrchcdsmdl.scope_dependent AS EntSrchModelScope,
  _eshsrchcdsmdl.created_by AS EntSrchModelCreatedByUser,
  _eshsrchcdsmdl.changed_by AS EntSrchModelLastChangedByUser,
  cast( '' as sch_de_iam_app_id ) AS EntSrchModAppID,
  _eshsrchcdsmdl.abap_language_version AS ABAPLanguageVersion,
  _eshconnector.sc_id AS EntSrchModelConnectorID
FROM esh_cds_mdl AS _eshsrchcdsmdl
INNER JOIN ddldependency AS _cdsmapping ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_CDSEntityHeaderAnnotation AS _cdsheaderanno ON EntSrchModelName = _cdsheaderanno.CDSView AND _cdsheaderanno.CDSViewAnnotationName = 'UI.HEADERINFO.TYPENAMEPLURAL'  -- association [0..*]
;