如何使用代碼獲得一個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

工具類的源代碼在我github上。

要獲取更多Jerry的原創技術文章,請關注公衆號"汪子熙"或者掃描下面二維碼:

如何使用代碼獲得一個function module的Where Used List

如何使用代碼獲得一個function module的Where Used List

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章