一句话,调用FUNCTION_EXISTS可以判断函数或者method是否存在,
代码:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
DATA:l_kgfunction TYPE rs38l-name. l_kgfunction = 'ZTEST'. * Check existence of function module CALL FUNCTION 'FUNCTION_EXISTS' EXPORTING funcname = l_kgfunction * IMPORTING * GROUP = * INCLUDE = * NAMESPACE = * STR_AREA = EXCEPTIONS function_not_exist = 1 OTHERS = 2. |
以上。
发表评论