二维码

[教程] LOOKING AT DATA OF CL CRM BOL ENTITY IN DEBUGGING

Twilight发表于 2015-12-05 00:56Twilight 最后回复于 2015-12-05 00:56 [复制链接] 2337 0

It is worth to take a look at this most important class.

Every record in the BOL will be represented by this class CL_CRM_BOL_ENTITY.  We have coded some event handlers so far and we have worked on this class directly or indirectly.
In the business scenario, we may work with contracts, orders, leads, service orders, confirmations and etc….


At the WEB UI level, all these business objects information can be represented using this class. This is the flexibility of BOL (Business object layer). There may be 100 of different objects, but we use one single class to represent the information.

Let us see the data in the debugging.

Place an external break point in the search event handler in the search page. Run the application and carry on the search.
DEBUGGING 1.jpg

Once break point is triggered, double click on the lr_result. Execute the line no 14 by pressing F6. It is a collection that holds all records.
DEBUGGING 2.jpg

Double click on it. This is collection class holds ENTITY LIST, which stores the records. Double click on it.
DEBUGGING 3.jpg

can see the list of object references. Each reference is type of CL CRM BOL ENTITY.  
DEBUGGING 4.jpg

Here collection holds 10 records. Double click on any record. We can see the container proxy property as shown. Double click on it.
DEBUGGING 5.jpg

You can see the DATA_REF property. Double click on it. You will get following screen.Double click on highlighted part.
DEBUGGING 6.jpg

In the next screen, we can notice the object name BTQRSrvcon. There is one attribute ATTRIBUTE_REF. double click on it.
DEBUGGING 7.jpg

We can see the data now.
DEBUGGING 8.jpg

We need to traverse a couple of screens to see the data.  This is the flow.
CL CRM BOL ENTITY ->CONTAINER_PROXY->DATA_REF->ATTRIBUTE_REF.
This is how we can see the data of any object. Let us discuss most important methods of this class in the next chapter.
回复

使用道具 举报

快速回帖

本版积分规则
您需要登录后才可以回帖 登录 | 注册有礼

快速回复 返回顶部 返回列表