专栏首页Jerry的SAP技术分享SAP OData性能分析工具

SAP OData性能分析工具

As mentioned by title, this blog does not introduce the OData trace functionality itself, but shows the way how to find and figure out the usage of trace functionality by yourself, for example, find the corresponding transaction code or report name to launch the trace. Actually this approach is not dedicated to gateway but generically applies to any other scenario: – You have found switch or flag evaluation in some ABAP source code which dynamically controls the enablement of certain functionality. You need to know where and how you can access this switchable function. For example, in gateway system, I found there are two flags which enable or disable the OData trace:

I need to find out how to perform the OData trace by the source code, without any debugging in the runtime.

Step1: perform where-used-list on mv_perf_level:

7 hits. Based on experience, I can judge that the line 100 is fill it with value fetched from DB table via open SQL. Double click the line 100.

Step2: Now I found the configuration table which stores the trace configuration information. Perform where-used-list on the table again:

[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-7Poi9HmS-1596964696846)(https://upload-images.jianshu.io/upload_images/2085791-d82d1d9da89b6864.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)]

The second report, /IWFND/SUTIL_TRACE_CONFIG, is what I am looking for, the one to launch OData trace UI.

[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-MLaMlaiq-1596964696850)(https://upload-images.jianshu.io/upload_images/2085791-fbf574f35cbb11ec.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)]

To verify, simply execute it. And that’s it. After I made the following setting and click save button:

[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-oMIqTLf7-1596964696852)(https://upload-images.jianshu.io/upload_images/2085791-cbb7ae64f3ab62bc.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)]

There is corresponding entry persisted in the table I found in this step.

Step3: I am also curious about at what time the other flag, mv_odata_trace_active, could become true. Still the same approach. Check the result. Based on experience, only the first method ENABLE_ODATA_TRACE performs the write access on the flag, all the left are read access such as IF mv_odata_trace_active = abap_true. ….

Double click on ENABLE_ODATA_TRACE, and we get to know the flag will become true if io_context->debug is true.

So now research /IWCOR/IF_DS_CNTXT instead:

Again the attribute DEBUG of interface only has the opportunity to be true in the constructor method of the implementation class, all other 41 hits are the read access on it and could be ignored.

so perform the where-used-list on constructor method:

Here we are very near to the target:

Just scroll up, and we get the result. The other flag could only become true when the two prerequisites are met:

(1) There is query parameter sap-ds-debug defined in the OData request url. (2) The current user should have debug authorization, that is, should pass the check by function module SYSTEM_DEBUG_AUTHORITY_CHECK.

本文参与腾讯云自媒体分享计划,欢迎正在阅读的你也加入,一起分享。

我来说两句

0 条评论
登录 后参与评论

相关文章

  • 什么是SAP物料主数据里的Batch

    Materials are produced and theoretically have the same properties. Nevertheless ...

    Jerry Wang
  • 如何启用SAP Business by design里的Correction Invoice功能

    Subject: [Tip] How to enable the function Correction Invoice for customer invoic...

    Jerry Wang
  • 使用SAP Transaction Launcher将ABAP Webdynpro嵌入到WebClient UI中

    THINK twice why you want to include an ABAP webdynpro component into CRM UI, as ...

    Jerry Wang
  • TW洞见 | 敏捷回顾7步法

    Paulo和TC一直在收集整理关于敏捷回顾的任何想法和活动。在这篇内容里面,他们分享了7步法来帮助你组织你的下一次回顾。 Agenda structure: 1...

    ThoughtWorks
  • 如何利用深度学习写诗歌(使用Python进行文本生成)

    翻译:李雪冬 编辑:李雪冬 前 言 从短篇小说到写5万字的小说,机器不断涌现出前所未有的词汇。在web上有大量的例子可供开发人员使...

    机器学习算法工程师
  • CC1310空中升级笔记03 CC1350_BLE_OAD_Project0

    如果打不开这个TI的链接,我上传了整个网页,http://download.csdn.net/detail/iotisan/9750301。

    twowinter
  • 什么是SAP物料主数据里的Batch

    Materials are produced and theoretically have the same properties. Nevertheless ...

    Jerry Wang
  • 如何启用SAP Business by design里的Correction Invoice功能

    Subject: [Tip] How to enable the function Correction Invoice for customer invoic...

    Jerry Wang
  • 循环热管的动态状态空间建模与基于模型的控制设计(CS SY)

    对于航空航天、汽车或服务器系统中电子元件的热控制,散热器通常远离热源。因此,热传导系统是有效冷却电子元件所必需的。循环热管(LHPs)就是这样的传热系统,它利用...

    用户6853689
  • 有限闭包系统中的极大闭集和半空间分离(CS AI)

    研究了抽象闭包系统中闭集和半空间分离的一些算法性质。假设基础闭包系统是有限的,并由相应的闭包算子给出,证明了半空间分离问题是np完全的。与此相反,对于极大闭集分...

    RockNPeng

扫码关注云+社区

领取腾讯云代金券