CRMS4_DMEA_H_SEARCH

DDL: CRMS4_DMEA_H_SEARCH SQL: CRMS4_DMEAHSRCH Type: view

Enforcement Action Header Search

CRMS4_DMEA_H_SEARCH is a CDS View that provides data about "Enforcement Action Header Search" in SAP S/4HANA. It reads from 1 data source (crms4d_dmea_h) and exposes 34 fields with key fields object_type, object_id. It has 10 associations to related views.

Data Sources (1)

SourceAliasJoin Type
crms4d_dmea_h crms4d_dmea_h from

Associations (10)

CardinalityTargetAliasCondition
[0..1] I_BusinessPartner _debtor $projection.sold_to_party = _debtor.BusinessPartner
[0..1] I_BusinessPartner _per_resp $projection.person_resp = _per_resp.BusinessPartner
[0..1] crms4_proctype _proctype $projection.process_type = _proctype.process_type
[0..1] CRMS4_LFCY_STATUS _lifecycle $projection.stat_lifecycle = _lifecycle.domvalue_l
[0..1] CRMS4_OPEN_STATUS _open $projection.stat_open = _open.domvalue_l
[0..1] CRMS4_ERRO_STATUS _error $projection.stat_error = _error.domvalue_l
[0..1] CRMS4_ARCB_STATUS _archivable $projection.stat_archivable = _archivable.domvalue_l
[0..1] CRMS4_ARCD_STATUS _archived $projection.stat_archived = _archived.domvalue_l
[0..1] CRMS4_CANC_STATUS _cancelled $projection.stat_cancelled = _cancelled.domvalue_l
[0..1] E_EnforcementAction _DMEAExt $projection.object_type = _DMEAExt.BusinessObjectType and $projection.object_id = _DMEAExt.EnforcementAction

Annotations (10)

NameValueLevelField
AbapCatalog.sqlViewName CRMS4_DMEAHSRCH view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #NOT_REQUIRED view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.serviceQuality #X view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.usageType.sizeCategory #XL view
AccessControl.personalData.blocking #NOT_REQUIRED view
EndUserText.label Enforcement Action Header Search view

Fields (34)

KeyFieldSource TableSource FieldDescription
KEY object_type objtype_h Trans. Cat.
KEY object_id object_id Transaction ID
header_guid header_guid Unique Identifier
guid header_guid Unique Identifier
process_type process_type Type of Data
posting_date posting_date Posting Date
description description_h Description
DESCRIPTION_UC
created_at created_at_h Created On
created_by created_by_h Created By
changed_at changed_at_h Changed On
changed_by changed_by_h Changed By
btx_class btx_class Trans.Classification
auth_scope auth_scope Authorization Scope
object_id_ok object_id_ok ID Valid
verify_date verify_date Verify Date
person_resp employee_resp Employee Responsible
PERSON_RESP_LIST _per_resp BusinessPartnerFullName Broker Name
SOLD_TO_PARTY_LIST _debtor BusinessPartnerFullName Broker Name
dmea_start_h dmea_start_h EA Start Date
dmea_end_h dmea_end_h EA End Date
stat_open stat_open Open
stat_error stat_error Error Status
by_dunning by_dunning Created by Dunning
by_dun_laufd by_dun_laufd Date ID
by_dun_laufi by_dun_laufi Identification
dis_channel dis_channel Distribution Channel
division division Internal Division ID
division_ori division_ori Origin: Division
sales_org sales_org Sales Organization
sales_office sales_office Sales Office
sales_group sales_group Sales Group
service_org service_org Service Organization
sales_org_sd sales_org_sd Sales Org.

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 CRMS4_DMEA_H_SEARCH.
-- 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: CRMS4_DMEAHSRCH

CREATE VIEW CRMS4_DMEA_H_SEARCH AS
SELECT
  objtype_h AS object_type,
  object_id,
  header_guid,
  header_guid AS guid,
  process_type,
  posting_date,
  description_h AS description,
  upper(description_h) AS DESCRIPTION_UC,
  created_at_h AS created_at,
  created_by_h AS created_by,
  changed_at_h AS changed_at,
  changed_by_h AS changed_by,
  btx_class,
  auth_scope,
  object_id_ok,
  verify_date,
  employee_resp AS person_resp,
  _per_resp.BusinessPartnerFullName AS PERSON_RESP_LIST,
  _debtor.BusinessPartnerFullName AS SOLD_TO_PARTY_LIST,
  dmea_start_h,
  dmea_end_h,
  stat_open,
  stat_error,
  by_dunning,
  by_dun_laufd,
  by_dun_laufi,
  dis_channel,
  division,
  division_ori,
  sales_org,
  sales_office,
  sales_group,
  service_org,
  sales_org_sd
FROM crms4d_dmea_h
LEFT OUTER JOIN I_BusinessPartner AS _debtor ON sold_to_party = _debtor.BusinessPartner  -- association [0..1]
LEFT OUTER JOIN I_BusinessPartner AS _per_resp ON person_resp = _per_resp.BusinessPartner  -- association [0..1]
LEFT OUTER JOIN crms4_proctype AS _proctype ON process_type = _proctype.process_type  -- association [0..1]
LEFT OUTER JOIN CRMS4_LFCY_STATUS AS _lifecycle ON stat_lifecycle = _lifecycle.domvalue_l  -- association [0..1]
LEFT OUTER JOIN CRMS4_OPEN_STATUS AS _open ON stat_open = _open.domvalue_l  -- association [0..1]
LEFT OUTER JOIN CRMS4_ERRO_STATUS AS _error ON stat_error = _error.domvalue_l  -- association [0..1]
LEFT OUTER JOIN CRMS4_ARCB_STATUS AS _archivable ON stat_archivable = _archivable.domvalue_l  -- association [0..1]
LEFT OUTER JOIN CRMS4_ARCD_STATUS AS _archived ON stat_archived = _archived.domvalue_l  -- association [0..1]
LEFT OUTER JOIN CRMS4_CANC_STATUS AS _cancelled ON stat_cancelled = _cancelled.domvalue_l  -- association [0..1]
LEFT OUTER JOIN E_EnforcementAction AS _DMEAExt ON object_type = _DMEAExt.BusinessObjectType AND object_id = _DMEAExt.EnforcementAction  -- association [0..1]
;