码迷,mamicode.com
首页 > 其他好文 > 详细

SAP CRM服务请求subject value determination

时间:2020-03-07 11:20:07      阅读:79      评论:0      收藏:0      [点我收藏+]

标签:exp   rom   roc   import   oss   RoCE   ram   ima   port   

SAP CRM Service Request subject value determination

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:

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

技术图片

Two entries found:

技术图片

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:

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:

技术图片
技术图片

But a schema exists for type D:

技术图片
技术图片

the ASP ID YBP_SERVICE comes from here:

技术图片

要获取更多Jerry的原创文章,请关注公众号"汪子熙":
技术图片

SAP CRM服务请求subject value determination

标签:exp   rom   roc   import   oss   RoCE   ram   ima   port   

原文地址:https://www.cnblogs.com/sap-jerry/p/12433127.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!