CRMS4_KNAR_SEARCH
Knowledge Article Search
CRMS4_KNAR_SEARCH is a CDS View that provides data about "Knowledge Article Search" in SAP S/4HANA. It reads from 1 data source (crms4d_knar_h) and exposes 52 fields with key fields object_type, object_id. It has 21 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| crms4d_knar_h | _knar | from |
Associations (21)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_BusinessPartner | _resp | _knar.person_resp = _resp.BusinessPartner |
| [0..1] | I_BusinessPartner | _inbxasgnto | _knar.inbox_assigned_to = _inbxasgnto.BusinessPartner |
| [0..1] | I_BusinessPartner | _inbxgrpasgn | _knar.inbox_group_assigned = _inbxgrpasgn.BusinessPartner |
| [0..1] | I_BusinessPartner | _inbxacct | _knar.inbox_account = _inbxacct.BusinessPartner |
| [0..1] | I_BusinessPartner | _inbxcustcont | _knar.inbox_contact_person = _inbxcustcont.BusinessPartner |
| [0..1] | crmc_act_cat_t | _actc | _knar.category = _actc.category and _actc.langu = $session.system_language |
| [0..1] | scpriot | _prio | _knar.priority = _prio.priority and _prio.langu = $session.system_language |
| [0..1] | CRMS4_PROC_TYPE | _proc | _knar.process_type = _proc.Process_Type |
| [0..1] | crmd_srv_subject | _subj | _knar.header_guid = _subj.guid_ref |
| [0..1] | crmd_srv_refobj | _refo | _knar.header_guid = _refo.guid_ref |
| [0..1] | hrp1000 | _slso | _knar.sales_org = _slso.otjid |
| [0..1] | hrp1000 | _srvo | _knar.service_org = _srvo.otjid |
| [0..1] | CRMS4_LFCY_STATUS | _lfcy | _knar.stat_lifecycle = _lfcy.domvalue_l |
| [0..1] | CRMS4_CANC_STATUS | _canc | _knar.stat_cancelled = _canc.domvalue_l |
| [0..1] | CRMS4_RELE_STATUS | _rele | _knar.stat_released = _rele.domvalue_l |
| [0..1] | CRMS4_ERRO_STATUS | _erro | _knar.stat_error = _erro.domvalue_l |
| [0..1] | CRMS4_OPEN_STATUS | _open | _knar.stat_open = _open.domvalue_l |
| [0..1] | CRMS4_ARCB_STATUS | _arcb | _knar.stat_archivable = _arcb.domvalue_l |
| [0..1] | CRMS4_ARCD_STATUS | _arcd | _knar.stat_archived = _arcd.domvalue_l |
| [0..1] | crm_rating_table | _rate | _knar.header_guid = _rate.doc_guid |
| [0..1] | E_KnowledgeArticle | _KnowledgeArticleExt | _knar.objtype_h = _KnowledgeArticleExt.KnowledgeProviderObjectCat and _knar.object_id = _KnowledgeArticleExt.KnowledgeProvider |
Annotations (10)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | CRMS4_KNARSEARCH | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| AccessControl.personalData.blocking | #NOT_REQUIRED | view | |
| ObjectModel.usageType.serviceQuality | #X | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| EndUserText.label | Knowledge Article Search | view |
Fields (52)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | object_type | objtype_h | Trans. Cat. | |
| KEY | object_id | object_id | Transaction ID | |
| category | category | Violation Category | ||
| category_txt | _actc | description | Well Code Des. | |
| priority | priority | Workflow priority | ||
| priority_txt | _prio | txt_long | Description | |
| class | class | User Group | ||
| clientNULLasvalid_from | ||||
| clientNULLasvalid_to | ||||
| 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 | ||
| clientNULLascreated_at_date | ||||
| clientNULLascreated_on | ||||
| created_by_h | created_by_h | Created By | ||
| created_at_h | created_at_h | Created On | ||
| created_by | created_by_h | Created By | ||
| created_at | created_at_h | Created On | ||
| changed_at_h | changed_at_h | Changed On | ||
| changed_by_h | changed_by_h | Changed By | ||
| changed_by | changed_by_h | Changed By | ||
| changed_at | changed_at_h | Changed On | ||
| 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_ORG_SHORT | _slso | short | Shortened form | |
| sales_office | sales_office | Sales Office | ||
| sales_group | sales_group | Sales Group | ||
| service_org | service_org | Service Organization | ||
| SERVICE_ORG_SHORT | _srvo | short | Shortened form | |
| person_resp | person_resp | Employee Responsible | ||
| 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 | |
| stat_error | stat_error | Error Status | ||
| stat_open | stat_open | Open | ||
| inbox_status | inbox_status | Status | ||
| REF_PRODUCT | _refo | product_id | Simulated Product ID | |
| average_rate | _rate | rating | Use of Data | |
| asp_id_01 | asp_id_01 | Schema ID | ||
| cat_id_01 | cat_id_01 | Schema ID | ||
| cat_schema | cat_id_01 | Schema ID | ||
| asp_id_02 | asp_id_02 | Schema ID | ||
| cat_id_02 | cat_id_02 | Category 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_KNAR_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_KNARSEARCH
CREATE VIEW CRMS4_KNAR_SEARCH AS
SELECT
objtype_h AS object_type,
object_id,
category,
_actc.description AS category_txt,
priority,
_prio.txt_long AS priority_txt,
class,
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,
header_guid AS guid,
header_guid,
process_type,
posting_date,
description_h AS description,
tstmp_to_dats( created_at_h, abap_system_timezone( $session.client,'NULL' ), $session.client, 'NULL' ) as created_at_date AS clientNULLascreated_at_date,
tstmp_to_dats( created_at_h, abap_system_timezone( $session.client,'NULL' ), $session.client, 'NULL' ) as created_on AS clientNULLascreated_on,
created_by_h,
created_at_h,
created_by_h AS created_by,
created_at_h AS created_at,
changed_at_h,
changed_by_h,
changed_by_h AS changed_by,
changed_at_h AS changed_at,
btx_class,
auth_scope,
object_id_ok,
verify_date,
dis_channel,
division,
division_ori,
sales_org,
_slso.short AS SALES_ORG_SHORT,
sales_office,
sales_group,
service_org,
_srvo.short AS SERVICE_ORG_SHORT,
person_resp,
_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,
stat_error,
stat_open,
inbox_status,
_refo.product_id AS REF_PRODUCT,
_rate.rating AS average_rate,
asp_id_01,
cat_id_01,
cat_id_01 AS cat_schema,
asp_id_02,
cat_id_02
FROM crms4d_knar_h AS _knar
LEFT OUTER JOIN I_BusinessPartner AS _resp ON _knar.person_resp = _resp.BusinessPartner -- association [0..1]
LEFT OUTER JOIN I_BusinessPartner AS _inbxasgnto ON _knar.inbox_assigned_to = _inbxasgnto.BusinessPartner -- association [0..1]
LEFT OUTER JOIN I_BusinessPartner AS _inbxgrpasgn ON _knar.inbox_group_assigned = _inbxgrpasgn.BusinessPartner -- association [0..1]
LEFT OUTER JOIN I_BusinessPartner AS _inbxacct ON _knar.inbox_account = _inbxacct.BusinessPartner -- association [0..1]
LEFT OUTER JOIN I_BusinessPartner AS _inbxcustcont ON _knar.inbox_contact_person = _inbxcustcont.BusinessPartner -- association [0..1]
LEFT OUTER JOIN crmc_act_cat_t AS _actc ON _knar.category = _actc.category AND _actc.langu = $session.system_language -- association [0..1]
LEFT OUTER JOIN scpriot AS _prio ON _knar.priority = _prio.priority AND _prio.langu = $session.system_language -- association [0..1]
LEFT OUTER JOIN CRMS4_PROC_TYPE AS _proc ON _knar.process_type = _proc.Process_Type -- association [0..1]
LEFT OUTER JOIN crmd_srv_subject AS _subj ON _knar.header_guid = _subj.guid_ref -- association [0..1]
LEFT OUTER JOIN crmd_srv_refobj AS _refo ON _knar.header_guid = _refo.guid_ref -- association [0..1]
LEFT OUTER JOIN hrp1000 AS _slso ON _knar.sales_org = _slso.otjid -- association [0..1]
LEFT OUTER JOIN hrp1000 AS _srvo ON _knar.service_org = _srvo.otjid -- association [0..1]
LEFT OUTER JOIN CRMS4_LFCY_STATUS AS _lfcy ON _knar.stat_lifecycle = _lfcy.domvalue_l -- association [0..1]
LEFT OUTER JOIN CRMS4_CANC_STATUS AS _canc ON _knar.stat_cancelled = _canc.domvalue_l -- association [0..1]
LEFT OUTER JOIN CRMS4_RELE_STATUS AS _rele ON _knar.stat_released = _rele.domvalue_l -- association [0..1]
LEFT OUTER JOIN CRMS4_ERRO_STATUS AS _erro ON _knar.stat_error = _erro.domvalue_l -- association [0..1]
LEFT OUTER JOIN CRMS4_OPEN_STATUS AS _open ON _knar.stat_open = _open.domvalue_l -- association [0..1]
LEFT OUTER JOIN CRMS4_ARCB_STATUS AS _arcb ON _knar.stat_archivable = _arcb.domvalue_l -- association [0..1]
LEFT OUTER JOIN CRMS4_ARCD_STATUS AS _arcd ON _knar.stat_archived = _arcd.domvalue_l -- association [0..1]
LEFT OUTER JOIN crm_rating_table AS _rate ON _knar.header_guid = _rate.doc_guid -- association [0..1]
LEFT OUTER JOIN E_KnowledgeArticle AS _KnowledgeArticleExt ON _knar.objtype_h = _KnowledgeArticleExt.KnowledgeProviderObjectCat AND _knar.object_id = _KnowledgeArticleExt.KnowledgeProvider -- association [0..1]
;
Learn More
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA