CRMS4_SERV_I_SEARCH

DDL: CRMS4_SERV_I_SEARCH SQL: CRMS4_SERVISRCH Type: view Package: CRMS4_REPORT

Service Items

CRMS4_SERV_I_SEARCH is a CDS View that provides data about "Service Items" in SAP S/4HANA. It reads from 1 data source (crms4d_serv_i) and exposes 179 fields with key fields object_type, object_id, number_int. It has 31 associations to related views. Part of development package CRMS4_REPORT.

Data Sources (1)

SourceAliasJoin Type
crms4d_serv_i _SRVI from

Associations (31)

CardinalityTargetAliasCondition
[0..1] I_BusinessPartner _sold _SRVI.sold_to_party = _sold.BusinessPartner
[0..1] I_BusinessPartner _ship _SRVI.ship_to_party = _ship.BusinessPartner
[0..1] I_BusinessPartner _bill _SRVI.bill_to_party = _bill.BusinessPartner
[0..1] I_BusinessPartner _payr _SRVI.payer = _payr.BusinessPartner
[0..1] I_BusinessPartner _resp _SRVI.person_resp = _resp.BusinessPartner
[0..1] I_BusinessPartner _cont _SRVI.contact_person = _cont.BusinessPartner
[0..1] I_BusinessPartner _rgrp _SRVI.resp_group = _rgrp.BusinessPartner
[0..1] I_BusinessPartner _srvt _SRVI.service_team = _srvt.BusinessPartner
[0..1] I_BusinessPartner _semp _SRVI.service_employee = _semp.BusinessPartner
[0..1] I_BusinessPartner _cacc _SRVI.contract_account = _cacc.BusinessPartner
[0..1] scpriot _prio _SRVI.priority = _prio.priority and _prio.langu = $session.system_language
[0..1] CRMS4_PROC_TYPE _proc _SRVI.process_type = _proc.Process_Type
[0..1] CRMS4_LFCY_STATUS _lfcy _SRVI.stat_lifecycle = _lfcy.domvalue_l
[0..1] I_SrvcDocCreditStatusText _credit _SRVI.stat_credit = _credit.DomainValue and _credit.Language = $session.system_language
[0..1] I_SrvcDocExecutionStatusText _maint _SRVI.stat_maintenance = _maint.DomainValue and _maint.Language = $session.system_language
[0..1] CRMS4_CANC_STATUS _canc _SRVI.stat_cancelled = _canc.domvalue_l
[0..1] CRMS4_RELE_STATUS _rele _SRVI.stat_released = _rele.domvalue_l
[0..1] CRMS4_QUOT_STATUS _quot _SRVI.stat_quotation = _quot.domvalue_l
[0..1] CRMS4_DELI_STATUS _deli _SRVI.stat_delivery = _deli.domvalue_l
[0..1] CRMS4_ERRO_STATUS _erro _SRVI.stat_error = _erro.domvalue_l
[0..1] CRMS4_GDIS_STATUS _gdis _SRVI.stat_goods_issue = _gdis.domvalue_l
[0..1] CRMS4_BILL_STATUS _bili _SRVI.stat_billing = _bili.domvalue_l
[0..1] CRMS4_FBIL_STATUS _fbil _SRVI.stat_for_billing = _fbil.domvalue_l
[0..1] CRMS4_OPEN_STATUS _open _SRVI.stat_open = _open.domvalue_l
[0..1] CRMS4_CHKLST_EXEC_STATUS _chkl _SRVI.stat_chklst_exec = _chkl.domvalue_l
[0..1] CRMS4_ACTIVATION_STATUS _acti _SRVI.stat_activation = _acti.domvalue_l
[0..1] CRMS4_COTS_STATUS _cots _SRVI.stat_cont_ts = _cots.domvalue_l
[0..1] CRMS4_ACPT_STATUS _acpt _SRVI.stat_cont_ts = _acpt.domvalue_l
[0..*] CRMS4_REF_OBJECT _refobj _SRVI.object_id = _refobj.object_id and _SRVI.objtype_h = _refobj.objtype_h and _SRVI.number_int = _refobj.number_int
[0..1] E_ServiceDocumentItem _ServiceDocItemExt _SRVI.objtype_h = _ServiceDocItemExt.ServiceCategory and _SRVI.object_id = _ServiceDocItemExt.ServiceOrderItem and _SRVI.number_int = _ServiceDocItemExt.ServiceLineExternalID
[0..1] I_SitnInstceIndicator _Situation _SRVI.item_guid_char = _Situation.SitnInstceAnchorObjectKey

Annotations (10)

NameValueLevelField
AbapCatalog.sqlViewName CRMS4_SERVISRCH view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #NOT_REQUIRED view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #MIXED view
AccessControl.personalData.blocking #NOT_REQUIRED view
EndUserText.label Service Items view

Fields (179)

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.
period_date period_date Start Date
settl_from settl_from SettlementStart
settl_to settl_to Settlement End
bill_date bill_date Billing Date
invcr_date invcr_date Billing Date
value_date value_date Value date
sepa_on sepa_on SEPA Relevant
mandate_id mandate_id Mandate Id
kind_date_to kind_date_to Date type
chkl_step_id chkl_step_id Checklist Step ID
CHKLST_STEP_ID chkl_step_id Checklist Step ID
chkl_step_no chkl_step_no Checklist Step No.
chkl_prev_no chkl_prev_no Prev. Group No.
gi_quantity gi_quantity Goods Issue Quantity
billed_value billed_value Invoice Value
dlv_quantity dlv_quantity Delivered Quantity
clientNULLasvalid_from
clientNULLasvalid_to
quot_start quot_start Quot: Valid from Dat
quot_end quot_end Quot: Valid to Date
srv_cust_beg srv_cust_beg Start Date/Time
srv_cust_end srv_cust_end Service Request Due
srq_tot_unit srq_tot_unit Total Drtn Unit ST
srv_rfirst srv_rfirst First Response By
srv_rready srv_rready Due By
srv_close srv_close Closing Date
contstart contstart Contract Start Date
contend contend Contract End Date
cont_end_ts cont_end_ts End of Contract TS
item_guid item_guid Push ItemGU
GUID item_guid Push ItemGU
created_at_i created_at_i Created On
created_at created_at_i Created On
created_by_i created_by_i Created By
created_by created_by_i Created By
changed_at_i changed_at_i Changed On
changed_at changed_at_i Changed On
changed_by_i changed_by_i Changed By
changed_by changed_by_i Changed By
objtype_i objtype_i Object Type
header_guid header_guid Unique Identifier
sit_num_itm _Situation SitnNumberOfInstances
equipment_id _refobj equipment_id Equipment ID
batch batch Lot No.
parent parent UUID
alternative alternative Usage
product product Product Sold
ordered_prod ordered_prod Product
partner_prod partner_prod Partner Product
description description_i Short Text
itm_language itm_language Language
number_ext number_ext Ext. Item No.
itm_type itm_type Item Category
order_date order_date Posting Date
itm_usage itm_usage Usage HL Item
product_kind product_kind Prod. Tech. Typ
revacc_refid revacc_refid Rev.Acc. Ref ID
tr_type
tr_type_desc
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.
payer payer Payer
payer_list _payr BusinessPartnerFullName Broker Name
person_resp person_resp Employee Responsible
resp_group resp_group Responsible Group
service_team service_team Service Team
exchg_type exchg_type Exch. Rate Type
exchg_date exchg_date Exch. Rate Date
taxjurcode taxjurcode Tax Jurisdiction
ref_currency ref_currency Ref. Currency
currency currency Valuation Crcy
price_date price_date Pricing Date
pmnttrms pmnttrms Terms of Paymnt
price_grp price_grp Price Group
cust_group cust_group Customer Group
exchg_rate exchg_rate Exchange Rate
tax_dest_cty tax_dest_cty Dest.Ctry/Reg.
tax_dest_reg tax_dest_reg Region
vat_reg_no vat_reg_no VAT Reg. No.
ac_indicator ac_indicator Account. Indic.
statistical statistical Statist.value
net_value net_value_i Net Value
net_price_i net_price_i Net price
tax_amount_i tax_amount_i Tax amount
freight_i freight_i Shipment costs
subtotal1 subtotal1 Subtotal 1
subtotal2 subtotal2 Subtotal 2
subtotal3 subtotal3 Subtotal 3
subtotal4 subtotal4 Subtotal 4
subtotal5 subtotal5 Subtotal 5
subtotal6 subtotal6 Subtotal 6
netpr_uom netpr_uom Condition Unit
rec_duration rec_duration Recur. Dura.
target_value target_value Target Value
net_weight_i net_weight_i Net Weight
volume_i volume_i Volume
exponent10 exponent10 Exponent
comm_group comm_group Commission Grp
rebate_group rebate_group Vol. Rebate Grp
cash_disc cash_disc Qual.for Cash Discnt
prc_group1 prc_group1 Product Group 1
prc_group2 prc_group2 Product Group 2
prc_group3 prc_group3 Product Group 3
prc_group4 prc_group4 Product Group 4
prc_group5 prc_group5 Product Group 5
region region Venue Region
industry industry Industry Sector
cust_group1 cust_group1 Customer Grp 1
cust_group2 cust_group2 Customer Grp 2
cust_group3 cust_group3 Customer Grp 3
cust_group4 cust_group4 Customer Grp 4
cust_group5 cust_group5 Customer Grp 5
po_date_sold po_date_sold Reference Date
po_date_ship po_date_ship Reference Doc SH
usage_type usage_type Usage Type
submission submission Collective No.
rejection rejection Rejection Reason
probability probability Probability %
order_qty order_qty PO Quantity
quantity order_qty PO Quantity
dispo_flg dispo_flg Resrce Planning
service_type service_type Type of Ext. Service
srv_escal srv_escal Response Prof.
srv_serwi srv_serwi Service Profile
srv_rule_id srv_rule_id Rule ID
incoterms1 incoterms1 Incoterms
incoterms2 incoterms2 Incoterms 2
ship_cond ship_cond Shipping Cond.
over_dlv_tol over_dlv_tol Overdeliv. Tol
dlv_prio dlv_prio Priority
ordercombind ordercombind Order Combin.
part_dlv part_dlv DeliveryControl
dlv_group dlv_group Delivery Group
part_dlv_itm part_dlv_itm Del. Control Item
stat_credit stat_credit Item Credit Status
stat_error stat_error Error Status
stat_billing stat_billing Billing Status
stat_open stat_open Open
stat_cont_ts stat_cont_ts Time Slice Status
asp_id_01 asp_id_01 Schema ID
cat_id_01 cat_id_01 Schema ID
asp_id_02 asp_id_02 Schema ID
cat_id_02 cat_id_02 Category ID
priority priority Workflow priority
priority_txt _prio txt_long Description
process_type process_type Type of Data
posting_date posting_date Posting Date
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
btx_class btx_class Trans.Classification
auth_scope auth_scope Authorization Scope
item_no_appt item_no_appt Item Number in Doc.
a3seltype prod_sel_type Prod.Selection Type
a3extref ci_contract_id Contract Number
btmf_process btmf_process Process of Maint. FW
sc_group sc_group Sol. Conf. Group
sc_doc_guid sc_doc_guid SC: Doc. GUID
ccm_version ccm_version Version
pool_agr_ref pool_agr_ref Sharing Contract
int_obj_no int_obj_no Int. object no.
exist_vckey exist_vckey IndicVariantKey
root_config root_config RtCnfIndic
rule_horizon rule_horizon Horizon
rule_date_to rule_date_to DetermineDateTo
cancproc cancproc Cancellation
cancparty cancparty Cancelling Party
canc_reason canc_reason Cancell.Reason
ma_prod_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_SERV_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.
-- SQL view name: CRMS4_SERVISRCH

CREATE VIEW CRMS4_SERV_I_SEARCH AS
SELECT
  objtype_h AS object_type,
  object_id,
  number_int,
  period_date,
  settl_from,
  settl_to,
  bill_date,
  invcr_date,
  value_date,
  sepa_on,
  mandate_id,
  kind_date_to,
  chkl_step_id,
  chkl_step_id AS CHKLST_STEP_ID,
  chkl_step_no,
  chkl_prev_no,
  gi_quantity,
  billed_value,
  dlv_quantity,
  tstmp_to_dats( valid_from, abap_system_timezone( $session.client,'NULL' ), $session.client, 'NULL' ) as valid_from AS clientNULLasvalid_from,
  tstmp_to_dats( valid_to, abap_system_timezone( $session.client,'NULL' ), $session.client, 'NULL' ) as valid_to AS clientNULLasvalid_to,
  quot_start,
  quot_end,
  srv_cust_beg,
  srv_cust_end,
  srq_tot_unit,
  srv_rfirst,
  srv_rready,
  srv_close,
  contstart,
  contend,
  cont_end_ts,
  item_guid,
  item_guid AS GUID,
  created_at_i,
  created_at_i AS created_at,
  created_by_i,
  created_by_i AS created_by,
  changed_at_i,
  changed_at_i AS changed_at,
  changed_by_i,
  changed_by_i AS changed_by,
  objtype_i,
  header_guid,
  _Situation.SitnNumberOfInstances AS sit_num_itm,
  _refobj.equipment_id AS equipment_id,
  batch,
  parent,
  alternative,
  product,
  ordered_prod,
  partner_prod,
  description_i AS description,
  itm_language,
  number_ext,
  itm_type,
  order_date,
  itm_usage,
  product_kind,
  revacc_refid,
  ' ' AS tr_type,
  ' ' AS tr_type_desc,
  dis_channel,
  division,
  division_ori,
  sales_org,
  sales_office,
  sales_group,
  service_org,
  sales_org_sd,
  payer,
  _payr.BusinessPartnerFullName AS payer_list,
  person_resp,
  resp_group,
  service_team,
  exchg_type,
  exchg_date,
  taxjurcode,
  ref_currency,
  currency,
  price_date,
  pmnttrms,
  price_grp,
  cust_group,
  exchg_rate,
  tax_dest_cty,
  tax_dest_reg,
  vat_reg_no,
  ac_indicator,
  statistical,
  net_value_i AS net_value,
  net_price_i,
  tax_amount_i,
  freight_i,
  subtotal1,
  subtotal2,
  subtotal3,
  subtotal4,
  subtotal5,
  subtotal6,
  netpr_uom,
  rec_duration,
  target_value,
  net_weight_i,
  volume_i,
  exponent10,
  comm_group,
  rebate_group,
  cash_disc,
  prc_group1,
  prc_group2,
  prc_group3,
  prc_group4,
  prc_group5,
  region,
  industry,
  cust_group1,
  cust_group2,
  cust_group3,
  cust_group4,
  cust_group5,
  po_date_sold,
  po_date_ship,
  usage_type,
  submission,
  rejection,
  probability,
  order_qty,
  order_qty AS quantity,
  dispo_flg,
  service_type,
  srv_escal,
  srv_serwi,
  srv_rule_id,
  incoterms1,
  incoterms2,
  ship_cond,
  over_dlv_tol,
  dlv_prio,
  ordercombind,
  part_dlv,
  dlv_group,
  part_dlv_itm,
  stat_credit,
  stat_error,
  stat_billing,
  stat_open,
  stat_cont_ts,
  asp_id_01,
  cat_id_01,
  asp_id_02,
  cat_id_02,
  priority,
  _prio.txt_long AS priority_txt,
  process_type,
  posting_date,
  created_at_h,
  created_by_h,
  changed_at_h,
  changed_by_h,
  btx_class,
  auth_scope,
  item_no_appt,
  prod_sel_type AS a3seltype,
  ci_contract_id AS a3extref,
  btmf_process,
  sc_group,
  sc_doc_guid,
  ccm_version,
  pool_agr_ref,
  int_obj_no,
  exist_vckey,
  root_config,
  rule_horizon,
  rule_date_to,
  cancproc,
  cancparty,
  canc_reason,
  ' ' AS ma_prod_id
FROM crms4d_serv_i AS _SRVI
LEFT OUTER JOIN I_BusinessPartner AS _sold ON _SRVI.sold_to_party = _sold.BusinessPartner  -- association [0..1]
LEFT OUTER JOIN I_BusinessPartner AS _ship ON _SRVI.ship_to_party = _ship.BusinessPartner  -- association [0..1]
LEFT OUTER JOIN I_BusinessPartner AS _bill ON _SRVI.bill_to_party = _bill.BusinessPartner  -- association [0..1]
LEFT OUTER JOIN I_BusinessPartner AS _payr ON _SRVI.payer = _payr.BusinessPartner  -- association [0..1]
LEFT OUTER JOIN I_BusinessPartner AS _resp ON _SRVI.person_resp = _resp.BusinessPartner  -- association [0..1]
LEFT OUTER JOIN I_BusinessPartner AS _cont ON _SRVI.contact_person = _cont.BusinessPartner  -- association [0..1]
LEFT OUTER JOIN I_BusinessPartner AS _rgrp ON _SRVI.resp_group = _rgrp.BusinessPartner  -- association [0..1]
LEFT OUTER JOIN I_BusinessPartner AS _srvt ON _SRVI.service_team = _srvt.BusinessPartner  -- association [0..1]
LEFT OUTER JOIN I_BusinessPartner AS _semp ON _SRVI.service_employee = _semp.BusinessPartner  -- association [0..1]
LEFT OUTER JOIN I_BusinessPartner AS _cacc ON _SRVI.contract_account = _cacc.BusinessPartner  -- association [0..1]
LEFT OUTER JOIN scpriot AS _prio ON _SRVI.priority = _prio.priority AND _prio.langu = $session.system_language  -- association [0..1]
LEFT OUTER JOIN CRMS4_PROC_TYPE AS _proc ON _SRVI.process_type = _proc.Process_Type  -- association [0..1]
LEFT OUTER JOIN CRMS4_LFCY_STATUS AS _lfcy ON _SRVI.stat_lifecycle = _lfcy.domvalue_l  -- association [0..1]
LEFT OUTER JOIN I_SrvcDocCreditStatusText AS _credit ON _SRVI.stat_credit = _credit.DomainValue AND _credit.Language = $session.system_language  -- association [0..1]
LEFT OUTER JOIN I_SrvcDocExecutionStatusText AS _maint ON _SRVI.stat_maintenance = _maint.DomainValue AND _maint.Language = $session.system_language  -- association [0..1]
LEFT OUTER JOIN CRMS4_CANC_STATUS AS _canc ON _SRVI.stat_cancelled = _canc.domvalue_l  -- association [0..1]
LEFT OUTER JOIN CRMS4_RELE_STATUS AS _rele ON _SRVI.stat_released = _rele.domvalue_l  -- association [0..1]
LEFT OUTER JOIN CRMS4_QUOT_STATUS AS _quot ON _SRVI.stat_quotation = _quot.domvalue_l  -- association [0..1]
LEFT OUTER JOIN CRMS4_DELI_STATUS AS _deli ON _SRVI.stat_delivery = _deli.domvalue_l  -- association [0..1]
LEFT OUTER JOIN CRMS4_ERRO_STATUS AS _erro ON _SRVI.stat_error = _erro.domvalue_l  -- association [0..1]
LEFT OUTER JOIN CRMS4_GDIS_STATUS AS _gdis ON _SRVI.stat_goods_issue = _gdis.domvalue_l  -- association [0..1]
LEFT OUTER JOIN CRMS4_BILL_STATUS AS _bili ON _SRVI.stat_billing = _bili.domvalue_l  -- association [0..1]
LEFT OUTER JOIN CRMS4_FBIL_STATUS AS _fbil ON _SRVI.stat_for_billing = _fbil.domvalue_l  -- association [0..1]
LEFT OUTER JOIN CRMS4_OPEN_STATUS AS _open ON _SRVI.stat_open = _open.domvalue_l  -- association [0..1]
LEFT OUTER JOIN CRMS4_CHKLST_EXEC_STATUS AS _chkl ON _SRVI.stat_chklst_exec = _chkl.domvalue_l  -- association [0..1]
LEFT OUTER JOIN CRMS4_ACTIVATION_STATUS AS _acti ON _SRVI.stat_activation = _acti.domvalue_l  -- association [0..1]
LEFT OUTER JOIN CRMS4_COTS_STATUS AS _cots ON _SRVI.stat_cont_ts = _cots.domvalue_l  -- association [0..1]
LEFT OUTER JOIN CRMS4_ACPT_STATUS AS _acpt ON _SRVI.stat_cont_ts = _acpt.domvalue_l  -- association [0..1]
LEFT OUTER JOIN CRMS4_REF_OBJECT AS _refobj ON _SRVI.object_id = _refobj.object_id AND _SRVI.objtype_h = _refobj.objtype_h AND _SRVI.number_int = _refobj.number_int  -- association [0..*]
LEFT OUTER JOIN E_ServiceDocumentItem AS _ServiceDocItemExt ON _SRVI.objtype_h = _ServiceDocItemExt.ServiceCategory AND _SRVI.object_id = _ServiceDocItemExt.ServiceOrderItem AND _SRVI.number_int = _ServiceDocItemExt.ServiceLineExternalID  -- association [0..1]
LEFT OUTER JOIN I_SitnInstceIndicator AS _Situation ON _SRVI.item_guid_char = _Situation.SitnInstceAnchorObjectKey  -- association [0..1]
;