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:
替换后问题解决: