二维码

[教程] UI OBJECT TYPE AND DESIGN OBJECT

Twilight发表于 2015-12-08 00:09Twilight 最后回复于 2015-12-08 00:09 [复制链接] 2914 0

With the help of UI object types in CRM, we can do following things.
  • We can make different VIEW CONFIGURATIONS
  • We can create DYNAMIC NAVIGATION
  • We can CONTROL FIELD LABELS, VALUE HELPS FROM DESIGN LAYER.
  • We can control the visibility of attributes of BOL objects.
  • We can give access to our Z components from navigation bar.

One UI object type will have design objects grouped under it and each design object can control attributes of BOL objects.

As a first step,
We will create one call back class. Go to the transaction SE24 and create one new class. This class should have interface IF_BSP_DLC_OBJ_TYPE_CALLBACK.
UI object types 1.jpg

Let us make one new UI object type. Follow the below path in the SPRO transaction. In the next screen choose new entries.
UI object types 7.jpg

Enter the entries as shown below and save them.
UI object types 2.jpg

Call back class is used to provide sub object types which will be useful in creating view configurations. Give the class name that we have created above. We will implement required method later point of time.
Next we are going to use this UI object type on service contracts, give the genil component name (BT).

BTOrder is main root object of BT component.

BUS2000112 BOR refers to service contract type.  SAVE the entries.

We have created new UI object type.  As next step, we need to create a design objects under this new UI object type.

Follow the below path in spro Customer Relationship Management-> UI Framework-> UI Framework Definition->Design Layer-> Define Design Objects.
It will ask for UI object type. Give the new UI object type that we have just created.
UI object types 3.jpg

Click on new entries. Enter the following information and save the entries.
UI object types 4.jpg

Once you save the entries, click on DESIGN on the same screen. it will open a new screen like below.
UI object types 5.jpg

Click on new entries.  In the next screen fill up the entries as shown below.
UI object types 6.jpg

Here I want to control the OBJECT_ID attribute of BOL object BTAdminH. So I have chosen the OBJECT_ID.

In the LINK TO BUSINESS OBJECT LAYER, we can mention any another BOL object and its attribute if we want.

I also added the new field label.  If we choose HIDDEN, then this field won’t be available for any configuration (it won’t be shown in the available section on configuration tab in the view).

We can also make particular field as a drop down or check box if it has some value range by selecting the check box VALUEHELP from ABAP dictionary. (We will see it later). Once data entry is done, then save the entries.
We are ready with UI OBJECT TYPE and design object. In the next step, we need to assign it to the required context node with base entity BTAdminH. We will do it in the next chapter.
回复

使用道具 举报

快速回帖

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

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