CRMS4_REPA_I_SEARCH

DDL: CRMS4_REPA_I_SEARCH Type: view_entity

Search for In-House Service Object

CRMS4_REPA_I_SEARCH is a CDS View that provides data about "Search for In-House Service Object" in SAP S/4HANA. It reads from 1 data source (crms4d_repa_i) and exposes 45 fields with key fields object_type, object_id, number_int. It has 13 associations to related views.

Data Sources (1)

SourceAliasJoin Type
crms4d_repa_i _repai from

Associations (13)

CardinalityTargetAliasCondition
[0..1] CRMS4_PROC_TYPE _proc _repai.process_type = _proc.Process_Type
[0..1] CRMS4_LFCY_STATUS _lfcy _repai.stat_lifecycle = _lfcy.domvalue_l and _lfcy.domname = 'CRMS4_STAT_LIFECYCLE'
[0..1] I_InhRepairItemStatusText _lfcy_usr _repai.stat_lifecycle = _lfcy_usr.InhRepairItemStatus and _repai.itm_type = _lfcy_usr.InhRepairItemCategory and _lfcy_usr.Language = $session.system_language
[0..1] CRMS4_ERRO_STATUS _erro _repai.stat_error = _erro.domvalue_l
[0..1] CRMS4_OPEN_STATUS _open _repai.stat_open = _open.domvalue_l
[0..1] I_InhRepairItemAvailyStatusTxt _avail _repai.stat_repair_availability = _avail.InhRepairItemAvailyStatus and _avail.Language = $session.system_language
[0..*] CRMS4_REF_OBJECT _refobj _repai.object_id = _refobj.object_id and _repai.objtype_h = _refobj.objtype_h and _repai.number_int = _refobj.number_int
[0..1] I_MaterialText _material _repai.ordered_prod = _material.Material and _material.Language = $session.system_language
[0..1] crms4d_repa_i _parent _repai.parent = _parent.item_guid
[0..*] I_EquipmentText _EquipmentText _EquipmentText.Equipment = _repai.equipment_id and _EquipmentText.Language = $session.system_language
[0..1] I_SrvcMgmtObjectStatus _SystemStatus _SystemStatus.SrvcMgmtObjectUUID = _repai.item_guid and _SystemStatus.SrvcMgmtObjectStatus = 'I1002' and _SystemStatus.SrvcMgmtObjectStatusIsInactive = ' '
[1..1] CRMS4_REPA_H_SEARCH _repa _repa.header_guid = _repai.header_guid
[0..1] I_BusinessPartner _ship _repai.ship_to_party = _ship.BusinessPartner

Annotations (6)

NameValueLevelField
AccessControl.authorizationCheck #NOT_REQUIRED view
AccessControl.personalData.blocking #NOT_REQUIRED view
EndUserText.label Search for In-House Service Object view
ObjectModel.usageType.serviceQuality #X view
ObjectModel.usageType.sizeCategory #S view
ObjectModel.usageType.dataClass #MIXED view

Fields (45)

KeyFieldSource TableSource FieldDescription
KEY object_type objtype_h Trans. Cat.
KEY object_id object_id Transaction ID
KEY number_int number_int Item Number in Doc.
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
changed_at_h changed_at_h Changed On
changed_by_h changed_by_h Changed By
item_guid item_guid Push ItemGU
created_at_i created_at_i Created On
created_by_i created_by_i Created By
changed_at_i changed_at_i Changed On
changed_by_i changed_by_i Changed By
created_at created_at_i Created On
clientNULLascreated_on_repa
created_by created_by_i Created By
changed_at changed_at_i Changed On
changed_by changed_by_i Changed By
objtype_i objtype_i Object Type
header_guid header_guid Unique Identifier
parent parent UUID
product product Product Sold
ordered_prod ordered_prod Product
product_name
partner_prod partner_prod Partner Product
itm_language itm_language Language
itm_type itm_type Item Category
itm_usage itm_usage Usage HL Item
product_kind product_kind Prod. Tech. Typ
person_resp _repa person_resp Employee Responsible
equipment_id equipment_id Equipment ID
exponent10 exponent10 Exponent
stat_error stat_error Error Status
stat_open stat_open Open
order_qty order_qty PO Quantity
ref_msr_item ref_msr_item Item in Process
dis_channel _repa dis_channel Distribution Channel
division _repa division Internal Division ID
division_ori _repa division_ori Origin: Division
sales_org _repa sales_org Sales Organization
sales_office _repa sales_office Sales Office
sales_group _repa sales_group Sales Group
sales_org_sd _repa 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_REPA_I_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.

CREATE VIEW CRMS4_REPA_I_SEARCH AS
SELECT
  objtype_h AS object_type,
  object_id,
  number_int,
  process_type,
  posting_date,
  description_h AS description,
  created_at_h,
  created_by_h,
  changed_at_h,
  changed_by_h,
  item_guid,
  created_at_i,
  created_by_i,
  changed_at_i,
  changed_by_i,
  created_at_i AS created_at,
  tstmp_to_dats( created_at_i, abap_system_timezone( $session.client,'NULL' ), $session.client, 'NULL' ) as created_on_repa AS clientNULLascreated_on_repa,
  created_by_i AS created_by,
  changed_at_i AS changed_at,
  changed_by_i AS changed_by,
  objtype_i,
  header_guid,
  parent,
  product,
  ordered_prod,
  upper(_material.MaterialName) AS product_name,
  partner_prod,
  itm_language,
  itm_type,
  itm_usage,
  product_kind,
  _repa.person_resp AS person_resp,
  equipment_id,
  exponent10,
  stat_error,
  stat_open,
  order_qty,
  ref_msr_item,
  _repa.dis_channel AS dis_channel,
  _repa.division AS division,
  _repa.division_ori AS division_ori,
  _repa.sales_org AS sales_org,
  _repa.sales_office AS sales_office,
  _repa.sales_group AS sales_group,
  _repa.sales_org_sd AS sales_org_sd
FROM crms4d_repa_i AS _repai
LEFT OUTER JOIN CRMS4_PROC_TYPE AS _proc ON _repai.process_type = _proc.Process_Type  -- association [0..1]
LEFT OUTER JOIN CRMS4_LFCY_STATUS AS _lfcy ON _repai.stat_lifecycle = _lfcy.domvalue_l AND _lfcy.domname = 'CRMS4_STAT_LIFECYCLE'  -- association [0..1]
LEFT OUTER JOIN I_InhRepairItemStatusText AS _lfcy_usr ON _repai.stat_lifecycle = _lfcy_usr.InhRepairItemStatus AND _repai.itm_type = _lfcy_usr.InhRepairItemCategory AND _lfcy_usr.Language = $session.system_language  -- association [0..1]
LEFT OUTER JOIN CRMS4_ERRO_STATUS AS _erro ON _repai.stat_error = _erro.domvalue_l  -- association [0..1]
LEFT OUTER JOIN CRMS4_OPEN_STATUS AS _open ON _repai.stat_open = _open.domvalue_l  -- association [0..1]
LEFT OUTER JOIN I_InhRepairItemAvailyStatusTxt AS _avail ON _repai.stat_repair_availability = _avail.InhRepairItemAvailyStatus AND _avail.Language = $session.system_language  -- association [0..1]
LEFT OUTER JOIN CRMS4_REF_OBJECT AS _refobj ON _repai.object_id = _refobj.object_id AND _repai.objtype_h = _refobj.objtype_h AND _repai.number_int = _refobj.number_int  -- association [0..*]
LEFT OUTER JOIN I_MaterialText AS _material ON _repai.ordered_prod = _material.Material AND _material.Language = $session.system_language  -- association [0..1]
LEFT OUTER JOIN crms4d_repa_i AS _parent ON _repai.parent = _parent.item_guid  -- association [0..1]
LEFT OUTER JOIN I_EquipmentText AS _EquipmentText ON _EquipmentText.Equipment = _repai.equipment_id AND _EquipmentText.Language = $session.system_language  -- association [0..*]
LEFT OUTER JOIN I_SrvcMgmtObjectStatus AS _SystemStatus ON _SystemStatus.SrvcMgmtObjectUUID = _repai.item_guid AND _SystemStatus.SrvcMgmtObjectStatus = 'I1002' AND _SystemStatus.SrvcMgmtObjectStatusIsInactive = ' '  -- association [0..1]
LEFT OUTER JOIN CRMS4_REPA_H_SEARCH AS _repa ON _repa.header_guid = _repai.header_guid  -- association [1..1]
LEFT OUTER JOIN I_BusinessPartner AS _ship ON _repai.ship_to_party = _ship.BusinessPartner  -- association [0..1]
;