CRMS4_ACTV_SEARCH

DDL: CRMS4_ACTV_SEARCH SQL: CRMS4_ACTVSEARCH Type: view

Activity Search

CRMS4_ACTV_SEARCH is a CDS View that provides data about "Activity Search" in SAP S/4HANA. It has 25 associations to related views.

Associations (25)

CardinalityTargetAliasCondition
[0..1] I_BusinessPartner _actp _actv.activity_partner = _actp.BusinessPartner
[0..1] I_BusinessPartner _cont _actv.contact_person = _cont.BusinessPartner
[0..1] I_BusinessPartner _resp _actv.person_resp = _resp.BusinessPartner
[0..1] I_BusinessPartner _inbxasgnto _actv.inbox_assigned_to = _inbxasgnto.BusinessPartner
[0..1] I_BusinessPartner _inbxgrpasgn _actv.inbox_group_assigned = _inbxgrpasgn.BusinessPartner
[0..1] I_BusinessPartner _inbxacct _actv.inbox_account = _inbxacct.BusinessPartner
[0..1] I_BusinessPartner _inbxcustcont _actv.inbox_contact_person = _inbxcustcont.BusinessPartner
[0..1] crmc_act_cat_t _actc _actv.category = _actc.category and _actc.langu = $session.system_language
[0..1] scpriot _prio _actv.priority = _prio.priority and _prio.langu = $session.system_language
[0..1] crmc_act_obj_t _acto _actv.objective = _acto.objective and _acto.langu = $session.system_language
[0..1] CRMS4_PROC_TYPE _proc _actv.process_type = _proc.Process_Type
[0..*] CRMS4_DIRECTION_TEXT _dire _actv.stat_lifecycle = _dire.domvalue_l and _dire.ddlanguage = $session.system_language
[0..*] CRMS4_LFCY_STATUS _lfcy _actv.stat_lifecycle = _lfcy.domvalue_l
[0..*] CRMS4_CANC_STATUS _canc _actv.stat_cancelled = _canc.domvalue_l
[0..*] CRMS4_RELE_STATUS _rele _actv.stat_released = _rele.domvalue_l
[0..*] CRMS4_ERRO_STATUS _erro _actv.stat_error = _erro.domvalue_l
[0..*] CRMS4_OPEN_STATUS _open _actv.stat_open = _open.domvalue_l
[0..*] CRMS4_ARCB_STATUS _arcb _actv.stat_archivable = _arcb.domvalue_l
[0..*] CRMS4_ARCD_STATUS _arcd _actv.stat_archived = _arcd.domvalue_l
[0..*] CRMS4_OBJECT_LINKAGE_SUCCESSOR _linkequi _actv.header_guid = _linkequi.predecessor_guid and _linkequi.successor_object_type = 'EQUI'
[0..*] CRMS4_OBJECT_LINKAGE_PREDECESR _linklead _actv.header_guid = _linklead.successor_guid
[0..*] CRMS4_OBJECT_LINKAGE_PREDECESR _linkoppt _actv.header_guid = _linkoppt.successor_guid
[0..*] CRMS4_SKWG_ATTACHMENT _attach _actv.header_guid = _attach.object_guid and _actv.objtype_h = _attach.typeid_a and _attach.instid_b is not null
[0..*] crmd_lawref_h _lawref _actv.header_guid = _lawref.header_guid and _lawref.main_ref = 'X'
[0..1] E_ActivityDocument _ActivityDocExt _actv.objtype_h = _ActivityDocExt.BusinessObjectType and _actv.object_id = _ActivityDocExt.ActivityDocument

Annotations (10)

NameValueLevelField
AbapCatalog.sqlViewName CRMS4_ACTVSEARCH 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.sizeCategory #XXL view
ObjectModel.usageType.dataClass #MIXED view
AccessControl.personalData.blocking #NOT_REQUIRED view
EndUserText.label Activity Search view

Fields (75)

KeyFieldSource TableSource FieldDescription
KEY object_type objtype_h Trans. Cat.
KEY object_id object_id Transaction ID
lead_guid _linklead lead_guid
lead_id _linklead lead_id
lead_des _linklead lead_des
lead_des_uc _linklead lead_des_uc
oppt_guid _linkoppt oppt_guid
oppt_id _linkoppt oppt_id
oppt_des _linkoppt oppt_des
oppt_des_uc _linkoppt oppt_des_uc
attachment _attach attachment X Flag
category category Violation Category
category_txt _actc description Well Code Des.
priority priority Workflow priority
priority_txt _prio txt_long Description
objective objective Objective
direction direction Long/Short Position
address_id address_id Address ID
private_flag private_flag Private Flag
completion completion Percent Completion
act_location act_location Location
calendar calendar Workdays only
task task Task/Log Entry
class class User Group
clientNULLasvalid_from
clientNULLasvalid_to
orderact_to orderact_to Actual End
orderplan_to orderplan_to Planned End
date_from date_from Validity Start Date
date_to date_to Validity End Date
clientNULLasfromdate
clientNULLastodate
clientNULLasfrom_time
clientNULLasto_time
due_on date_to Validity End Date
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
created_at_h created_at_h Created On
created_by_h created_by_h Created By
created_at created_at_h Created On
clientNULLasCREATED_ON
clientNULLascreated_at_date
created_by created_by_h Created By
changed_at_h changed_at_h Changed On
changed_at changed_at_h Changed On
changed_by_h changed_by_h Changed By
changed_by changed_by_h Changed By
clientNULLaschanged_at_date
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
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.
person_resp person_resp Employee Responsible
INBOX_ASSIGNED_TO_list _inbxasgnto BusinessPartnerFullName Broker Name
INBOX_GROUP_ASSIGNED_list _inbxgrpasgn BusinessPartnerFullName Broker Name
INBOX_ACCOUNT_list _inbxacct BusinessPartnerFullName Broker Name
INBOX_CONTACT_PERSON_list _inbxcustcont BusinessPartnerFullName Broker Name
stat_error _actv stat_error Error Status
stat_open _actv stat_open Open
inbox_status inbox_status Status
equipment_id _linkequi successor_key
asp_id_01 asp_id_01 Schema ID
cat_id_01 cat_id_01 Schema ID
law_id _lawref law_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 CRMS4_ACTV_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_ACTVSEARCH

CREATE VIEW CRMS4_ACTV_SEARCH AS
SELECT
  objtype_h AS object_type,
  object_id,
  _linklead.lead_guid AS lead_guid,
  _linklead.lead_id AS lead_id,
  _linklead.lead_des AS lead_des,
  _linklead.lead_des_uc AS lead_des_uc,
  _linkoppt.oppt_guid AS oppt_guid,
  _linkoppt.oppt_id AS oppt_id,
  _linkoppt.oppt_des AS oppt_des,
  _linkoppt.oppt_des_uc AS oppt_des_uc,
  _attach.attachment AS attachment,
  category,
  _actc.description AS category_txt,
  priority,
  _prio.txt_long AS priority_txt,
  objective,
  direction,
  address_id,
  private_flag,
  completion,
  act_location,
  calendar,
  task,
  class,
  tstmp_to_dats( orderact_from, abap_system_timezone( $session.client,'NULL' ), $session.client, 'NULL' ) as valid_from AS clientNULLasvalid_from,
  tstmp_to_dats( orderact_to, abap_system_timezone( $session.client,'NULL' ), $session.client, 'NULL' ) as valid_to AS clientNULLasvalid_to,
  orderact_to,
  orderplan_to,
  date_from,
  date_to,
  tstmp_to_dats( date_from, abap_user_timezone ( $session.user, $session.client, 'NULL' ), $session.client, 'NULL' ) as fromdate AS clientNULLasfromdate,
  tstmp_to_dats( date_to, abap_user_timezone ( $session.user, $session.client, 'NULL' ), $session.client, 'NULL' ) as todate AS clientNULLastodate,
  tstmp_to_tims( date_from, abap_user_timezone ( $session.user, $session.client, 'NULL' ), $session.client, 'NULL' ) as from_time AS clientNULLasfrom_time,
  tstmp_to_tims( date_to, abap_user_timezone ( $session.user, $session.client, 'NULL' ), $session.client, 'NULL' ) as to_time AS clientNULLasto_time,
  date_to AS due_on,
  header_guid,
  header_guid AS guid,
  process_type,
  posting_date,
  description_h AS description,
  created_at_h,
  created_by_h,
  created_at_h AS created_at,
  tstmp_to_dats( created_at_h, abap_system_timezone( $session.client,'NULL' ), $session.client, 'NULL' ) as CREATED_ON AS clientNULLasCREATED_ON,
  tstmp_to_dats( created_at_h, abap_system_timezone( $session.client,'NULL' ), $session.client, 'NULL' ) as created_at_date AS clientNULLascreated_at_date,
  created_by_h AS created_by,
  changed_at_h,
  changed_at_h AS changed_at,
  changed_by_h,
  changed_by_h AS changed_by,
  tstmp_to_dats( changed_at_h, abap_system_timezone( $session.client,'NULL' ), $session.client, 'NULL' ) as changed_at_date AS clientNULLaschanged_at_date,
  btx_class,
  auth_scope,
  object_id_ok,
  verify_date,
  dis_channel,
  division,
  division_ori,
  sales_org,
  sales_office,
  sales_group,
  service_org,
  sales_org_sd,
  person_resp,
  _inbxasgnto.BusinessPartnerFullName AS INBOX_ASSIGNED_TO_list,
  _inbxgrpasgn.BusinessPartnerFullName AS INBOX_GROUP_ASSIGNED_list,
  _inbxacct.BusinessPartnerFullName AS INBOX_ACCOUNT_list,
  _inbxcustcont.BusinessPartnerFullName AS INBOX_CONTACT_PERSON_list,
  _actv.stat_error AS stat_error,
  _actv.stat_open AS stat_open,
  inbox_status,
  _linkequi.successor_key AS equipment_id,
  asp_id_01,
  cat_id_01,
  _lawref.law_id AS law_id
LEFT OUTER JOIN I_BusinessPartner AS _actp ON _actv.activity_partner = _actp.BusinessPartner  -- association [0..1]
LEFT OUTER JOIN I_BusinessPartner AS _cont ON _actv.contact_person = _cont.BusinessPartner  -- association [0..1]
LEFT OUTER JOIN I_BusinessPartner AS _resp ON _actv.person_resp = _resp.BusinessPartner  -- association [0..1]
LEFT OUTER JOIN I_BusinessPartner AS _inbxasgnto ON _actv.inbox_assigned_to = _inbxasgnto.BusinessPartner  -- association [0..1]
LEFT OUTER JOIN I_BusinessPartner AS _inbxgrpasgn ON _actv.inbox_group_assigned = _inbxgrpasgn.BusinessPartner  -- association [0..1]
LEFT OUTER JOIN I_BusinessPartner AS _inbxacct ON _actv.inbox_account = _inbxacct.BusinessPartner  -- association [0..1]
LEFT OUTER JOIN I_BusinessPartner AS _inbxcustcont ON _actv.inbox_contact_person = _inbxcustcont.BusinessPartner  -- association [0..1]
LEFT OUTER JOIN crmc_act_cat_t AS _actc ON _actv.category = _actc.category AND _actc.langu = $session.system_language  -- association [0..1]
LEFT OUTER JOIN scpriot AS _prio ON _actv.priority = _prio.priority AND _prio.langu = $session.system_language  -- association [0..1]
LEFT OUTER JOIN crmc_act_obj_t AS _acto ON _actv.objective = _acto.objective AND _acto.langu = $session.system_language  -- association [0..1]
LEFT OUTER JOIN CRMS4_PROC_TYPE AS _proc ON _actv.process_type = _proc.Process_Type  -- association [0..1]
LEFT OUTER JOIN CRMS4_DIRECTION_TEXT AS _dire ON _actv.stat_lifecycle = _dire.domvalue_l AND _dire.ddlanguage = $session.system_language  -- association [0..*]
LEFT OUTER JOIN CRMS4_LFCY_STATUS AS _lfcy ON _actv.stat_lifecycle = _lfcy.domvalue_l  -- association [0..*]
LEFT OUTER JOIN CRMS4_CANC_STATUS AS _canc ON _actv.stat_cancelled = _canc.domvalue_l  -- association [0..*]
LEFT OUTER JOIN CRMS4_RELE_STATUS AS _rele ON _actv.stat_released = _rele.domvalue_l  -- association [0..*]
LEFT OUTER JOIN CRMS4_ERRO_STATUS AS _erro ON _actv.stat_error = _erro.domvalue_l  -- association [0..*]
LEFT OUTER JOIN CRMS4_OPEN_STATUS AS _open ON _actv.stat_open = _open.domvalue_l  -- association [0..*]
LEFT OUTER JOIN CRMS4_ARCB_STATUS AS _arcb ON _actv.stat_archivable = _arcb.domvalue_l  -- association [0..*]
LEFT OUTER JOIN CRMS4_ARCD_STATUS AS _arcd ON _actv.stat_archived = _arcd.domvalue_l  -- association [0..*]
LEFT OUTER JOIN CRMS4_OBJECT_LINKAGE_SUCCESSOR AS _linkequi ON _actv.header_guid = _linkequi.predecessor_guid AND _linkequi.successor_object_type = 'EQUI'  -- association [0..*]
LEFT OUTER JOIN CRMS4_OBJECT_LINKAGE_PREDECESR AS _linklead ON _actv.header_guid = _linklead.successor_guid  -- association [0..*]
LEFT OUTER JOIN CRMS4_OBJECT_LINKAGE_PREDECESR AS _linkoppt ON _actv.header_guid = _linkoppt.successor_guid  -- association [0..*]
LEFT OUTER JOIN CRMS4_SKWG_ATTACHMENT AS _attach ON _actv.header_guid = _attach.object_guid AND _actv.objtype_h = _attach.typeid_a AND _attach.instid_b is not null  -- association [0..*]
LEFT OUTER JOIN crmd_lawref_h AS _lawref ON _actv.header_guid = _lawref.header_guid AND _lawref.main_ref = 'X'  -- association [0..*]
LEFT OUTER JOIN E_ActivityDocument AS _ActivityDocExt ON _actv.objtype_h = _ActivityDocExt.BusinessObjectType AND _actv.object_id = _ActivityDocExt.ActivityDocument  -- association [0..1]
;