CRMS4_GRAP_H_SEARCH

DDL: CRMS4_GRAP_H_SEARCH SQL: CRMS4_GRAPHSRCH Type: view

Grantor Application Header Search

CRMS4_GRAP_H_SEARCH is a CDS View that provides data about "Grantor Application Header Search" in SAP S/4HANA. It reads from 1 data source (crms4d_grap_h) and exposes 39 fields with key fields object_type, object_id. It has 17 associations to related views.

Data Sources (1)

SourceAliasJoin Type
crms4d_grap_h crms4d_grap_h from

Associations (17)

CardinalityTargetAliasCondition
[0..1] I_BusinessPartner _grantee $projection.sold_to_party = _grantee.BusinessPartner
[0..1] I_BusinessPartner _per_resp $projection.person_resp = _per_resp.BusinessPartner
[0..1] I_BusinessPartner _cont_pers $projection.contact_person = _cont_pers.BusinessPartner
[0..1] I_BusinessPartner _bill $projection.bill_to_party = _bill.BusinessPartner
[0..1] I_BusinessPartner _inbxasgnto $projection.inbox_assigned_to = _inbxasgnto.BusinessPartner
[0..1] I_BusinessPartner _inbxgrpasgn $projection.inbox_group_assigned = _inbxgrpasgn.BusinessPartner
[0..1] I_BusinessPartner _inbxacct $projection.inbox_account = _inbxacct.BusinessPartner
[0..1] I_BusinessPartner _inbxcustcont $projection.inbox_contact_person = _inbxcustcont.BusinessPartner
[0..1] CRMS4_PROC_TYPE _proctype $projection.process_type = _proctype.Process_Type
[0..1] CRMS4_LFCY_STATUS _lifecycle $projection.stat_lifecycle = _lifecycle.domvalue_l
[0..1] CRMS4_OPEN_STATUS _open $projection.stat_open = _open.domvalue_l
[0..1] CRMS4_ERRO_STATUS _error $projection.stat_error = _error.domvalue_l
[0..1] CRMS4_ARCB_STATUS _archivable $projection.stat_archivable = _archivable.domvalue_l
[0..1] CRMS4_ARCD_STATUS _archived $projection.stat_archived = _archived.domvalue_l
[0..1] CRMS4_CANC_STATUS _cancelled $projection.stat_cancelled = _cancelled.domvalue_l
[0..1] CRMS4_RELE_STATUS _released $projection.stat_released = _released.domvalue_l
[0..1] E_GrantorApplication _GRAPExt $projection.object_type = _GRAPExt.BusinessObjectType and $projection.object_id = _GRAPExt.GrantorApplication

Annotations (10)

NameValueLevelField
AbapCatalog.sqlViewName CRMS4_GRAPHSRCH 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.dataClass #MIXED view
ObjectModel.usageType.sizeCategory #XL view
AccessControl.personalData.blocking #NOT_REQUIRED view
EndUserText.label Grantor Application Header Search view

Fields (39)

KeyFieldSource TableSource FieldDescription
KEY object_type objtype_h Trans. Cat.
KEY object_id object_id Transaction ID
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
DESCRIPTION_UC
created_at created_at_h Created On
created_by created_by_h Created By
changed_at changed_at_h Changed On
changed_by changed_by_h Changed By
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
SOLD_TO_PARTY_LIST _grantee BusinessPartnerFullName Broker Name
person_resp employee_resp Employee Responsible
PERSON_RESP_LIST _per_resp BusinessPartnerFullName Broker Name
CONTACT_PERSON_LIST _cont_pers BusinessPartnerFullName Broker Name
BILL_TO_PARTY_LIST _bill BusinessPartnerFullName Broker Name
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
clientNULLasvalid_from
clientNULLasvalid_to
stat_open stat_open Open
stat_error stat_error Error Status
inbox_status inbox_status Status
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.
program_id grantor_program_id Number

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_GRAP_H_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_GRAPHSRCH

CREATE VIEW CRMS4_GRAP_H_SEARCH AS
SELECT
  objtype_h AS object_type,
  object_id,
  header_guid,
  header_guid AS guid,
  process_type,
  posting_date,
  description_h AS description,
  upper(description_h) AS DESCRIPTION_UC,
  created_at_h AS created_at,
  created_by_h AS created_by,
  changed_at_h AS changed_at,
  changed_by_h AS changed_by,
  btx_class,
  auth_scope,
  object_id_ok,
  verify_date,
  _grantee.BusinessPartnerFullName AS SOLD_TO_PARTY_LIST,
  employee_resp AS person_resp,
  _per_resp.BusinessPartnerFullName AS PERSON_RESP_LIST,
  _cont_pers.BusinessPartnerFullName AS CONTACT_PERSON_LIST,
  _bill.BusinessPartnerFullName AS BILL_TO_PARTY_LIST,
  _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,
  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,
  stat_open,
  stat_error,
  inbox_status,
  dis_channel,
  division,
  division_ori,
  sales_org,
  sales_office,
  sales_group,
  service_org,
  sales_org_sd,
  grantor_program_id AS program_id
FROM crms4d_grap_h
LEFT OUTER JOIN I_BusinessPartner AS _grantee ON sold_to_party = _grantee.BusinessPartner  -- association [0..1]
LEFT OUTER JOIN I_BusinessPartner AS _per_resp ON person_resp = _per_resp.BusinessPartner  -- association [0..1]
LEFT OUTER JOIN I_BusinessPartner AS _cont_pers ON contact_person = _cont_pers.BusinessPartner  -- association [0..1]
LEFT OUTER JOIN I_BusinessPartner AS _bill ON bill_to_party = _bill.BusinessPartner  -- association [0..1]
LEFT OUTER JOIN I_BusinessPartner AS _inbxasgnto ON inbox_assigned_to = _inbxasgnto.BusinessPartner  -- association [0..1]
LEFT OUTER JOIN I_BusinessPartner AS _inbxgrpasgn ON inbox_group_assigned = _inbxgrpasgn.BusinessPartner  -- association [0..1]
LEFT OUTER JOIN I_BusinessPartner AS _inbxacct ON inbox_account = _inbxacct.BusinessPartner  -- association [0..1]
LEFT OUTER JOIN I_BusinessPartner AS _inbxcustcont ON inbox_contact_person = _inbxcustcont.BusinessPartner  -- association [0..1]
LEFT OUTER JOIN CRMS4_PROC_TYPE AS _proctype ON process_type = _proctype.Process_Type  -- association [0..1]
LEFT OUTER JOIN CRMS4_LFCY_STATUS AS _lifecycle ON stat_lifecycle = _lifecycle.domvalue_l  -- association [0..1]
LEFT OUTER JOIN CRMS4_OPEN_STATUS AS _open ON stat_open = _open.domvalue_l  -- association [0..1]
LEFT OUTER JOIN CRMS4_ERRO_STATUS AS _error ON stat_error = _error.domvalue_l  -- association [0..1]
LEFT OUTER JOIN CRMS4_ARCB_STATUS AS _archivable ON stat_archivable = _archivable.domvalue_l  -- association [0..1]
LEFT OUTER JOIN CRMS4_ARCD_STATUS AS _archived ON stat_archived = _archived.domvalue_l  -- association [0..1]
LEFT OUTER JOIN CRMS4_CANC_STATUS AS _cancelled ON stat_cancelled = _cancelled.domvalue_l  -- association [0..1]
LEFT OUTER JOIN CRMS4_RELE_STATUS AS _released ON stat_released = _released.domvalue_l  -- association [0..1]
LEFT OUTER JOIN E_GrantorApplication AS _GRAPExt ON object_type = _GRAPExt.BusinessObjectType AND object_id = _GRAPExt.GrantorApplication  -- association [0..1]
;