CRMS4_OPPT_SEARCH

DDL: CRMS4_OPPT_SEARCH SQL: CRMS4_OPPTSEARCH Type: view

Opportunity/Lead Search

CRMS4_OPPT_SEARCH is a CDS View that provides data about "Opportunity/Lead Search" in SAP S/4HANA. It reads from 1 data source (CRMS4_OPPT_H_SEARCH) and exposes 91 fields with key fields object_type, object_id, number_int. It has 1 association to related views.

Data Sources (1)

SourceAliasJoin Type
CRMS4_OPPT_H_SEARCH _oppth from

Associations (1)

CardinalityTargetAliasCondition
[1..*] CRMS4_OPPT_I_SEARCH _oppti _oppth.header_guid = _oppti.header_guid

Annotations (10)

NameValueLevelField
AbapCatalog.sqlViewName CRMS4_OPPTSEARCH view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #NOT_REQUIRED view
ObjectModel.usageType.serviceQuality #X view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #MIXED view
AccessControl.personalData.blocking #NOT_REQUIRED view
ClientHandling.algorithm #SESSION_VARIABLE view
EndUserText.label Opportunity/Lead Search view

Fields (91)

KeyFieldSource TableSource FieldDescription
KEY object_type object_type Type
KEY object_id object_id Transaction ID
KEY number_int _oppti number_int Item Number in Doc.
number_ext _oppti number_ext Ext. Item No.
item_guid _oppti item_guid Push ItemGU
itm_type _oppti itm_type Item Category
net_weight_h net_weight_h Net Weight
volume_h volume_h Volume
net_value_h net_value_h Net Value
tax_amount_h tax_amount_h Tax Amount
freight_h freight_h Shipment Costs
number_items number_items Number of items
lead_id lead_id
lead_des lead_des
lead_guid lead_guid
lead_type lead_type Lead Group
lead_end lead_end End Date
lead_start lead_start Start Date
valid_to valid_to Validity End Time
valid_from valid_from Validity Start Time
exp_revenue exp_revenue Expected Sales Vol.
budget_bp budget_bp Budget Prospect
startdate startdate Valid From
expect_end expect_end Closing Date
curr_phase curr_phase Sales Stage
phase_since phase_since Stage Since
source source ViolationSource
salescycle salescycle Sales Cycle
type type Worklist Type
status_since status_since Status Since
header_guid header_guid Unique Identifier
guid guid UUID 22 char.
process_type process_type Type of Data
posting_date posting_date Posting Date
description description Well Code Des.
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
CREATED_AT CREATED_AT Uploaded On
created_on created_on Variant created on
CREATED_BY CREATED_BY Version Created By
CHANGED_AT CHANGED_AT Timestamp
changed_by changed_by User Name
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_rep sales_rep Sales Rep
payer payer Payer
payer_list payer_list Broker Name
person_resp person_resp Employee Responsible
competitor competitor Competitor
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.
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 %
stat_error stat_error Error Status
ordered_prod _oppti ordered_prod Product
product _oppti ordered_prod Product
product_id _oppti ordered_prod Product

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_OPPT_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_OPPTSEARCH

CREATE VIEW CRMS4_OPPT_SEARCH AS
SELECT
  object_type,
  object_id,
  _oppti.number_int AS number_int,
  _oppti.number_ext AS number_ext,
  _oppti.item_guid AS item_guid,
  _oppti.itm_type AS itm_type,
  net_weight_h,
  volume_h,
  net_value_h,
  tax_amount_h,
  freight_h,
  number_items,
  lead_id,
  lead_des,
  lead_guid,
  lead_type,
  lead_end,
  lead_start,
  valid_to,
  valid_from,
  exp_revenue,
  budget_bp,
  startdate,
  expect_end,
  curr_phase,
  phase_since,
  source,
  salescycle,
  type,
  status_since,
  header_guid,
  guid,
  process_type,
  posting_date,
  description,
  created_at_h,
  created_by_h,
  changed_at_h,
  changed_by_h,
  CREATED_AT,
  created_on,
  CREATED_BY,
  CHANGED_AT,
  changed_by,
  btx_class,
  auth_scope,
  object_id_ok,
  verify_date,
  dis_channel,
  division,
  division_ori,
  sales_org,
  sales_office,
  sales_group,
  service_org,
  sales_rep,
  payer,
  payer_list,
  person_resp,
  competitor,
  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,
  region,
  industry,
  cust_group1,
  cust_group2,
  cust_group3,
  cust_group4,
  cust_group5,
  po_date_sold,
  po_date_ship,
  usage_type,
  submission,
  rejection,
  probability,
  stat_error,
  _oppti.ordered_prod AS ordered_prod,
  _oppti.ordered_prod AS product,
  _oppti.ordered_prod AS product_id
FROM CRMS4_OPPT_H_SEARCH AS _oppth
LEFT OUTER JOIN CRMS4_OPPT_I_SEARCH AS _oppti ON _oppth.header_guid = _oppti.header_guid  -- association [1..*]
;