ICode9

精准搜索请尝试: 精确搜索
首页 > 其他分享> 文章详细

Service Request subject value determination

2019-08-06 11:38:35  阅读:369  来源: 互联网

标签:category TYPE Request value determination aspect guid type schema


When a new Service Request is created, the multi-level drop down list for Service Request subject is available.

Where do the value for those drop down list come from?

Here below is what I found via debugging:

  1. get allowed category type from table CRMC_PROC_CATTYP based on transaction type:

    Two entries found in CRMC_PROC_CATTYP:

    These two entries are inserted here:
Then check for the given combination of Transaction type plus Catalog category, whether there is existing schema defined. The check is done by API CL_CRM_ML_CATEGORY_UTIL=>GET_ASPECT. I wrote a small report to check whether a schema is available for corresponding category: ```abap REPORT zdetermine_schema.

PARAMETERS: guid TYPE crmt_object_guid OBLIGATORY DEFAULT ‘6C0B84B75FAB1ED7BC85AA545271F98C’,
cat TYPE crmt_catalogtype OBLIGATORY DEFAULT ‘C’.

DATA: lv_guid TYPE crmt_object_guid.

lv_guid = guid.

DATA: lr_aspect TYPE REF TO if_crm_erms_catego_aspect,
ls_detail TYPE crmt_erms_cat_as_buf.

CALL METHOD cl_crm_ml_category_util=>get_aspect
EXPORTING
iv_ref_guid = lv_guid
iv_ref_kind = ‘A’
iv_profile_type = ‘A’
iv_catalog_type = cat
IMPORTING
er_aspect = lr_aspect.
IF lr_aspect IS BOUND.
lr_aspect->get_details( IMPORTING ev_asp = ls_detail ).
WRITE:/ ‘ASP id:’, ls_detail-asp-asp_id.
ELSE.
WRITE:/ ‘No detail data found’.
ENDIF.

In my example, no schema exists for category C:
<img src="https://user-images.githubusercontent.com/5669954/34657258-5a95c35a-f45f-11e7-9045-8b220d3c42d9.png">

<img src="https://user-images.githubusercontent.com/5669954/34657259-5ac4481a-f45f-11e7-8d18-db7883b7e918.png">
But a schema exists for type D:
<img src="https://user-images.githubusercontent.com/5669954/34657260-5af5e622-f45f-11e7-8df7-82c8af018893.png">

<img src="https://user-images.githubusercontent.com/5669954/34657261-5b2580b2-f45f-11e7-998c-e3a08a40fdc7.png">
the ASP ID YBP_SERVICE comes from here:
<img src="https://user-images.githubusercontent.com/5669954/34657262-5b53622a-f45f-11e7-8669-98a0b211fa8d.png">

要获取更多Jerry的原创文章,请关注公众号"汪子熙":
<img src="https://user-images.githubusercontent.com/5669954/61616089-2a87e180-ac9a-11e9-861d-c29c2cf897af.png">

标签:category,TYPE,Request,value,determination,aspect,guid,type,schema
来源: https://blog.csdn.net/i042416/article/details/98599237

本站声明: 1. iCode9 技术分享网(下文简称本站)提供的所有内容,仅供技术学习、探讨和分享;
2. 关于本站的所有留言、评论、转载及引用,纯属内容发起人的个人观点,与本站观点和立场无关;
3. 关于本站的所有言论和文字,纯属内容发起人的个人观点,与本站观点和立场无关;
4. 本站文章均是网友提供,不完全保证技术分享内容的完整性、准确性、时效性、风险性和版权归属;如您发现该文章侵犯了您的权益,可联系我们第一时间进行删除;
5. 本站为非盈利性的个人网站,所有内容不会用来进行牟利,也不会利用任何形式的广告来间接获益,纯粹是为了广大技术爱好者提供技术内容和技术思想的分享性交流网站。

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有