Chinaunix首页 | 论坛 | 博客
  • 博客访问: 688235
  • 博文数量: 145
  • 博客积分: 3446
  • 博客等级: 中校
  • 技术积分: 1567
  • 用 户 组: 普通用户
  • 注册时间: 2006-08-30 13:58
文章分类

全部博文(145)

文章存档

2021年(1)

2020年(1)

2019年(1)

2018年(6)

2017年(1)

2016年(10)

2015年(12)

2014年(10)

2013年(15)

2012年(33)

2011年(21)

2010年(9)

2009年(18)

2008年(2)

2006年(5)

我的朋友

分类: 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

How to set a default value for the number of Recent Objects

Check out the instructions here: .

How to customize the id/description of links shown on Recent items

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.

Settings for Account, Contact and Employee

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

 

How to find the correct Object Types and Ext. Object Names for CRMC_REC_OBJ_AC

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:

  • In the WebUI open the business object for which you want to change the description in the recent items
  • Navigate to the homepage so you see the business object in the recent items
  • Log-out from the WebUI
  • Set a external breakpoint in the Method GET_DESCRIPTION of class CL_BSP_WD_OBJECT_DESCR at the first occurence of crmc_rec_obj_ac
  • Log-in to the WebUI again
  • You should see the Object Type in the variable lv_object_type
  • Use this value to search in the column OBJECT_TYPE of table BSP_DLC_OBJ_TYPE
  • You will find the OBJECT_NAME (= Ext. Object Name of Table CRMC_REC_OBJ_AC) and also the COMPONENT which you can use for the GENIL_MODEL_BROWSER or GENIL_BOL_BROWSER
阅读(1383) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~