CRMS4_PSOA_H_SEARCH

DDL: CRMS4_PSOA_H_SEARCH SQL: CRMS4_PSOAHSRCH Type: view

Social Application Header

CRMS4_PSOA_H_SEARCH is a CDS View that provides data about "Social Application Header" in SAP S/4HANA. It reads from 1 data source (crms4d_psoa_h) and exposes 35 fields with key fields object_type, object_id. It has 10 associations to related views.

Data Sources (1)

SourceAliasJoin Type
crms4d_psoa_h _psoa from

Associations (10)

CardinalityTargetAliasCondition
[1..1] crms4_proctype _proc _psoa.process_type = _proc.process_type
[0..1] CRMS4_PS_REQ_TYPE _reqt _psoa.process_type = _reqt.ProcessType
[0..1] CRMS4_PS_DEC_TYPE _dect _psoa.btx_class = _dect.domvalue_l
[0..1] I_BusinessPartner _appl _psoa.applicant = _appl.BusinessPartner
[0..1] I_BusinessPartner _resp _psoa.person_resp = _resp.BusinessPartner
[0..1] I_BusinessPartner _appr _psoa.approved_by = _appr.BusinessPartner
[0..1] I_BusinessPartner _rejct _psoa.rejected_by = _rejct.BusinessPartner
[0..1] CRMS4_PS_LFCY_STATUS _lfcy _psoa.stat_lifecycle = _lfcy.domvalue_l
[0..1] CRMS4_PS_APPR_STATUS _appv _psoa.stat_approval_h = _appv.domvalue_l
[0..1] E_SocialApplication _SOAExt _psoa.objtype_h = _SOAExt.BusinessObjectType and _psoa.object_id = _SOAExt.SocialApplication

Annotations (10)

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

Fields (35)

KeyFieldSource TableSource FieldDescription
KEY object_type objtype_h Trans. Cat.
KEY object_id object_id Transaction ID
GUID header_guid Unique Identifier
header_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_h created_at_h Created On
CREATED_AT created_at_h Created On
clientNULLasCREATED_ON
CREATED_BY created_by_h Created By
CHANGED_AT changed_at_h Changed On
clientNULLasCHANGED_ON
private_flag
changed_by changed_by_h Changed By
btx_class btx_class Trans.Classification
dec_type_txt _dect ddtext Short text
auth_scope auth_scope Authorization Scope
object_id_ok object_id_ok ID Valid
verify_date verify_date Verify Date
req_type _reqt RequestCategory
req_group _reqt RequestCategoryGroup
contstart_h contstart_h Contract Start
contend_h contend_h Contract End
clientNULLasvalid_from
clientNULLasvalid_to
SOLD_TO_PARTY_LIST _appl BusinessPartnerFullName Broker Name
person_resp person_resp Employee Responsible
PERSON_RESP_LIST _resp BusinessPartnerFullName Broker Name
approved_by approved_by Step Completed By
APPROVED_BY_LIST _appr BusinessPartnerFullName Broker Name
rejected_by rejected_by Rejected By
REJECTED_BY_LIST _rejct BusinessPartnerFullName Broker Name
inbox_status inbox_status Status

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_PSOA_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_PSOAHSRCH

CREATE VIEW CRMS4_PSOA_H_SEARCH AS
SELECT
  objtype_h AS object_type,
  object_id,
  header_guid AS GUID,
  header_guid,
  process_type,
  posting_date,
  description_h AS description,
  UPPER(_psoa.description_h) AS DESCRIPTION_UC,
  created_at_h,
  created_at_h AS CREATED_AT,
  tstmp_to_dats( _psoa.created_at_h, abap_system_timezone( $session.client,'NULL' ), $session.client, 'NULL' ) as CREATED_ON AS clientNULLasCREATED_ON,
  created_by_h AS CREATED_BY,
  changed_at_h AS CHANGED_AT,
  tstmp_to_dats( _psoa.changed_at_h, abap_system_timezone( $session.client,'NULL' ), $session.client, 'NULL' ) as CHANGED_ON AS clientNULLasCHANGED_ON,
  cast( '' as crmt_privat) AS private_flag,
  changed_by_h AS changed_by,
  btx_class,
  _dect.ddtext AS dec_type_txt,
  auth_scope,
  object_id_ok,
  verify_date,
  _reqt.RequestCategory AS req_type,
  _reqt.RequestCategoryGroup AS req_group,
  contstart_h,
  contend_h,
  tstmp_to_dats( _psoa.contstart_h, abap_system_timezone( $session.client,'NULL' ), $session.client, 'NULL' ) as valid_from AS clientNULLasvalid_from,
  tstmp_to_dats( _psoa.contend_h, abap_system_timezone( $session.client,'NULL' ), $session.client, 'NULL' ) as valid_to AS clientNULLasvalid_to,
  _appl.BusinessPartnerFullName AS SOLD_TO_PARTY_LIST,
  person_resp,
  _resp.BusinessPartnerFullName AS PERSON_RESP_LIST,
  approved_by,
  _appr.BusinessPartnerFullName AS APPROVED_BY_LIST,
  rejected_by,
  _rejct.BusinessPartnerFullName AS REJECTED_BY_LIST,
  inbox_status
FROM crms4d_psoa_h AS _psoa
LEFT OUTER JOIN crms4_proctype AS _proc ON _psoa.process_type = _proc.process_type  -- association [1..1]
LEFT OUTER JOIN CRMS4_PS_REQ_TYPE AS _reqt ON _psoa.process_type = _reqt.ProcessType  -- association [0..1]
LEFT OUTER JOIN CRMS4_PS_DEC_TYPE AS _dect ON _psoa.btx_class = _dect.domvalue_l  -- association [0..1]
LEFT OUTER JOIN I_BusinessPartner AS _appl ON _psoa.applicant = _appl.BusinessPartner  -- association [0..1]
LEFT OUTER JOIN I_BusinessPartner AS _resp ON _psoa.person_resp = _resp.BusinessPartner  -- association [0..1]
LEFT OUTER JOIN I_BusinessPartner AS _appr ON _psoa.approved_by = _appr.BusinessPartner  -- association [0..1]
LEFT OUTER JOIN I_BusinessPartner AS _rejct ON _psoa.rejected_by = _rejct.BusinessPartner  -- association [0..1]
LEFT OUTER JOIN CRMS4_PS_LFCY_STATUS AS _lfcy ON _psoa.stat_lifecycle = _lfcy.domvalue_l  -- association [0..1]
LEFT OUTER JOIN CRMS4_PS_APPR_STATUS AS _appv ON _psoa.stat_approval_h = _appv.domvalue_l  -- association [0..1]
LEFT OUTER JOIN E_SocialApplication AS _SOAExt ON _psoa.objtype_h = _SOAExt.BusinessObjectType AND _psoa.object_id = _SOAExt.SocialApplication  -- association [0..1]
;