分类: Web开发
2016-09-18 12:03:09
根对象 BuilHeader 字段ACCOUNT_NAME 取值逻辑
调用函数 CRM_ACCOUNT_DESCRIPTION_GET 获得.
函数 BUPA_DESCRIPTION_GET中默认 逻辑
CASE i_but000-type.
WHEN gc_type_group.
CONCATENATE i_but000-name_grp1 i_but000-name_grp2
INTO e_name
SEPARATED BY space.
WHEN gc_type_organ.
CONCATENATE i_but000-name_org1 i_but000-name_org2
INTO e_name
SEPARATED BY space.
CONDENSE e_name.
可在 Badi: BUPA_DESCRIPTION_GET 修改逻辑
METHOD if_ex_bupa_description_get~modify.
CHECK is_but000-partner IS NOT INITIAL .
ev_description = is_but000-name_org1 .
ev_description_name = is_but000-name_org1 .
ENDMETHOD.
2, 配置 实现.
IMG->Customer Relationship Management->UI Framework->UI Framework Definition->Define Recent Items Description
Check out the instructions here: .
There are customizing tables for controlling the description which is displayed for a particular object in the recent items list.
The SAP-delivery customizing table is CRMC_REC_OBJ_A, the corresponding customer customizing table is CRMC_REC_OBJ_AC which overrules the
entries made in the SAP table. In these tables attribute paths are maintained for different object types which determine the description in the recent items.
You can set up different attribute paths for different UI object types (but with the same object name).
For example, the following screen shot shows how to show description of Task instead of ID.
It is also possible to show both id and description by maintaining two attribute paths.
Ext. Object Name |
Object Type |
Object Action |
Attribute Path 1 |
Attribute Path 2 |
Attribute Path 3 |
---|---|---|---|---|---|
BuilContactPerson |
BP_CONTACT |
Display |
//BuilGetPersonforContactRel/ACCOUNT_NAME |
//CONP_NUMBER |
//BP_NUMBER |
BuilEmp |
BP_EMPLOYEE |
Display |
//ACCOUNT_NAME |
//BP_NUMBER |
|
BuilHeader |
BP_ACCOUNT |
Display |
//ACCOUNT_NAME |
//BP_NUMBER |
|
Sometimes it's not trivial to find out what Object Type and Ext. Object Name must be used for CRMC_REC_OBJ_AC. You can use this steps to find out what the correct settings are: