且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何使用ABAP Restful API进行代码的全文搜索

更新时间:2022-08-13 11:29:31

使用这个代码全文搜索的前提条件,是在事务码SFW5里激活业务功能:SRIS_SOURCE_SEARCH

如何使用ABAP Restful API进行代码的全文搜索

如何使用ABAP Restful API进行代码的全文搜索

只需要把这个url贴到浏览器里:

https://:44355/sap/bc/adt/repository/informationsystem/textsearch?searchString=Jerry&searchFromIndex=1&searchToIndex=10

意思是搜索host指定的服务器上所有包含了字符串Jerry的ABAP代码。

浏览器里显示的结果:

如何使用ABAP Restful API进行代码的全文搜索

随便验证几个结果,证明搜索是准确的。

如何使用ABAP Restful API进行代码的全文搜索

如何使用ABAP Restful API进行代码的全文搜索

如何使用ABAP Restful API进行代码的全文搜索

要获取更多Jerry的原创文章,请关注公众号"汪子熙":

如何使用ABAP Restful API进行代码的全文搜索