Created by Jerry Wang on Aug 03, 2014
已知UI上客户自己创建了一个work center “RTL test(使用business role TPM_PRO登陆).
使用下列report,可以在不需要登陆后台进SPRO里检查的情况下,直接找出ui component name.
只需指定navigation profile 名称:
即可返回结果:
REPORT TOOL_FIND_CUSTOM_WORK_CENTER. PARAMETERS: np TYPE CRMC_UI_NB_A_WC-profile OBLIGATORY DEFAULT 'TPM-PRO'. DATA: lt_work TYPE STANDARD TABLE OF crmc_ui_nb_a_wc, lt_wc_link TYPE STANDARD TABLE OF crmc_ui_llink, lt_link_t TYPE STANDARD TABLE OF CRMC_UI_CMP_IP_T. START-OF-SELECTION. SELECT * INTO TABLE lt_work FROM CRMC_UI_NB_A_WC WHERE profile = np. CHECK sy-subrc = 0. SELECT * INTO TABLE lt_wc_link FROM crmc_ui_wc FOR ALL ENTRIES IN lt_work WHERE wc_id = lt_Work-wc_id. CHECK sy-subrc = 0. SELECT * INTO TABLE lt_link_t FROM CRMC_UI_CMP_IP_T FOR ALL ENTRIES IN lt_wc_link WHERE target_id = lt_wc_link-link_id AND LANGUAGE = sy-langu. LOOP AT lt_link_t ASSIGNING FIELD-SYMBOL(<item>). WRITE:/ 'component name: ' , <item>-component COLOR COL_NEGATIVE, 'window name: ' , <item>-window COLOR COL_POSITIVE. ENDLOOP.