Created by Jerry Wang, last modified on Oct 03, 2014
在ui上找到function id:

使用如下report根據function id取instance時遇到如下錯誤:
REPORT ZFDT_CASE.
START-OF-SELECTION.
DATA(lo_factory) = cl_fdt_factory=>if_fdt_factory~get_instance(
if_fdt_constants=>gc_application_tmp ).
TRY.
DATA(lo_function) = lo_factory->GET_FUNCTION( iv_id = 'FDT5I3Y60ETN4M1WALY37GGHYHPZ' ).
CATCH cx_root INTO data(cx_root).
WRITE: / cx_root->get_text( ).
ENDTRY.
實際上ui上顯示的id并不是function的technical id,而是function name。需要通過如下table 通過輸入name得到function id:
替換後問題解決:
9