天天看点

如何使用代码获得一个function module的Where Used List

如果要获得一个function module的Where Used List,我们通常用的办法是使用ABAP workbench里提供的功能。

如何使用代码获得一个function module的Where Used List

where used list显示结果如下:

如何使用代码获得一个function module的Where Used List

但我接到一个任务,在结果列表里还需要显示出使用了指定的function module的代码所属的Package, Application Component和Software Component。

如下图所示:

如何使用代码获得一个function module的Where Used List

因此我只能自己开发一个工具ZCL_CRM_PROD_API_WHERE_USED。执行class的run方法:

如何使用代码获得一个function module的Where Used List

输入要查询的function module名称,执行即得结果。

如何使用代码获得一个function module的Where Used List

要获取更多Jerry的原创技术文章,请关注公众号"汪子熙"或者扫描下面二维码:

如何使用代码获得一个function module的Where Used List
如何使用代码获得一个function module的Where Used List

继续阅读