CRM呼叫中心inbox的调试步骤

版权声明:本文为博主汪子熙原创文章,未经博主允许不得转载。 https://jerry.blog.csdn.net/article/details/89788041

From: 庞统

Sent: Wednesday, January 2, 2013 4:46 PM

Frist we can find when search executed, it calls view ‘ICCMP_INBOX/InboxSearch’ inside component ICCMP_INBOX, Event handler: ONSEARCH. Let’s test this with category ERP Sales Order TA

First it calls search event here you can see parameter for category is TA:

Here query object is ref to CL_CRM_AUI_QUERY_SERVICE

When perform search, first it checks if underlying DB is HANA or not, as my test is running on QD3, so it’s not HANA. 施瓦性格 maybe you need2 look into this section, see if we gonna use this block of code to retrieve data on HANA.

For normal DB search, first it gets generic BADI definition and get all class definition for all categories:

Next it determines filed used for ordering, if no specific column specified, posing data will be used for ordering:

Next you will find several section for different types of categories, first one is OneOrder and second one is workflow workItem, so in our implementation we may need to add one more block of code to handle social data.

In our testing case, category falls into section “ERP Sales order”, so it calls method get_erp_query_result to get search data (This method is defined in class CL_CRM_AUI_QUERY_SERVICE, so if we need to add our social data in, must define new method in this class to call internally.

Inside get_erp_query_result method, it first calls badi for customizing.

Next it calls bol query service to get bol entity collection having category defined as ‘TA’, here it only get item uuid for each item. Later on it calls badi for after search customizing before retrieving detailed info for each item. As category ‘TA’ falls into ERP Order, so next it create object with class type CL_CRM_AUI_ERP

And next you can see the object class type ‘CL_CRM_AUI_ERP’ is actually our bol object used to retrieve ERP Order.

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

本文参与腾讯云自媒体分享计划,欢迎正在阅读的你也加入,一起分享。

发表于

我来说两句

0 条评论
登录 后参与评论

扫码关注云+社区

领取腾讯云代金券