CRMS4_OPPT_A_SRC

DDL: CRMS4_OPPT_A_SRC SQL: CRMS4_OPPTASRCH Type: view

Opportunity/Lead Search

CRMS4_OPPT_A_SRC 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 95 fields with key fields object_type, object_id. It has 2 associations to related views.

Data Sources (1)

SourceAliasJoin Type
CRMS4_OPPT_H_SEARCH _oppth from

Associations (2)

CardinalityTargetAliasCondition
[1..*] CRMS4_OPPT_I_SEARCH _oppti _oppth.header_guid = _oppti.header_guid
[0..1] E_PresalesDocument _PreSalesDocumentExt _oppth.object_type = _PreSalesDocumentExt.BusinessObjectType and _oppth.object_id = _PreSalesDocumentExt.PresalesDocument

Annotations (10)

NameValueLevelField
AbapCatalog.sqlViewName CRMS4_OPPTASRCH 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 (95)

KeyFieldSource TableSource FieldDescription
KEY object_type object_type Type
KEY object_id object_id Transaction ID
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
due_on due_on Due Date
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
source_txt source_txt Well Code Des.
priority priority Workflow priority
priority_txt priority_txt Description
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
Inbox_Assigned_to_list Inbox_Assigned_to_list Broker Name
Inbox_group_assigned_list Inbox_group_assigned_list Broker Name
Inbox_account_list Inbox_account_list Broker Name
Inbox_contact_person_list Inbox_contact_person_list Broker Name
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
stat_open stat_open Open
inbox_status inbox_status Status
_oppti _oppti

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_A_SRC.
-- 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_OPPTASRCH

CREATE VIEW CRMS4_OPPT_A_SRC AS
SELECT
  object_type,
  object_id,
  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,
  due_on,
  startdate,
  expect_end,
  curr_phase,
  phase_since,
  source,
  source_txt,
  priority,
  priority_txt,
  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,
  Inbox_Assigned_to_list,
  Inbox_group_assigned_list,
  Inbox_account_list,
  Inbox_contact_person_list,
  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,
  stat_open,
  inbox_status
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..*]
LEFT OUTER JOIN E_PresalesDocument AS _PreSalesDocumentExt ON _oppth.object_type = _PreSalesDocumentExt.BusinessObjectType AND _oppth.object_id = _PreSalesDocumentExt.PresalesDocument  -- association [0..1]
;