`
JerryWang_SAP
  • 浏览: 1000632 次
  • 性别: Icon_minigender_1
  • 来自: 成都
文章分类
社区版块
存档分类
最新评论
阅读更多

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:

 

 

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

 

 

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

 

 

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.

 

 

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

0
0
分享到:
评论

相关推荐

    Sap Odata ABAP开发教程.zip

    - **ABAP C4C SDK (Cloud for Customer SDK)**:对于与SAP C4C集成的ODATA服务,ABAP C4C SDK提供了一些特定的工具和类库。 3. **ODATA服务创建步骤**: - **创建CDS视图**:使用ABAP CDS语法定义数据模型,包括...

    SAP Gateway and OData

    3. **性能优化**:为了提升性能,SAP Gateway提供了缓存机制、批处理和分页等功能,以减少网络通信量和提高响应速度。 4. **版本管理**:OData服务有版本管理,允许在不中断现有客户端的情况下升级服务,确保向后...

    SAP Gateway – Building OData V2 Services Gw100

    SAP Gateway是一个技术平台,它为开发人员提供了创建和提供基于OData(Open Data Protocol)的服务的工具。这些服务使得非SAP系统能够通过标准接口,如REST(Representational State Transfer)访问SAP数据。这大大...

    OData Framework 3.0 英文

    ### SAP OData Framework 3.0 英文资料解析 #### 概述 根据所提供的文档信息,本资料主要介绍的是SAP Mobile Platform (SMP) 3.0中OData框架的相关特性及其架构设计。SAP Mobile Platform是SAP公司推出的一套用于...

    windows-sapjco3-1-4.zip

    SAP BI(Business Intelligence)是SAP的数据分析和报表工具,它利用JCo与后端系统进行通信,获取并处理大量数据,为决策者提供实时、准确的业务洞察。通过JCo,开发者可以构建自定义的BI解决方案,将SAP系统中的...

    sap 接口文档 比较全

    - SAP接口性能分析:监控接口性能,识别瓶颈并优化。 - 版本控制与变更管理:确保接口改动不会影响现有流程。 总结来说,这个文档集合涵盖了SAP接口开发的多个方面,包括基础理论、实际操作、测试策略和安全性等...

    android 访问 OData

    Android应用开发者可以利用OData库来实现与服务器上的数据源进行通信,如微软的SharePoint、SAP等支持OData的服务。 在给定的资源中,我们看到一个名为"odata_1.jar"的文件,这很可能是用于Android平台的OData...

    在SAP中查询TABLE的18种方法

    在SAP系统中,查询TABLE的数据是日常工作中的一项基本技能,尤其对于开发人员、系统管理员以及数据分析师来说至关重要。本文将深入探讨在SAP中查询TABLE的18种方法,这些方法不仅能够帮助用户快速定位屏幕字段背后的...

    SAP_DotNetConnector3

    2. **SAP Gateway集成**:支持与SAP Gateway进行通信,利用OData服务访问SAP数据,使.NET应用能够轻松地实现对SAP系统的CRUD(创建、读取、更新、删除)操作。 3. **SAP Business Object Repository(BOR)访问**:...

    SAP UI5 OVERVIEW

    - **高性能**:通过优化的技术栈和设计模式,SAP UI5 能够实现高性能的应用体验。 - **国际化支持**:提供了丰富的语言和区域设置支持,便于全球部署。 2. **最新发展**: - **持续更新的组件库**:SAP UI5 不断...

    sapui5-runtime

    4. **OData服务**:SAP UI5与OData协议深度集成,OData是一种面向服务的协议,用于在客户端和服务器之间交换结构化数据,尤其适合企业级应用中的ABAP后端集成。 5. **生命周期管理**:SAP UI5控件有明确的生命周期...

    SAP_Application_Interface_Framework_30_ZH.pdf

    10. 文件适配器、tRFC和qRFC以及OData支持等技术细节体现了SAP AIF与多种SAP和非SAP技术的集成能力。 11. 核心接口后处理、批输入等是AIF的关键概念,确保数据正确性和业务流程的连续性。 12. 性能分析和数据归档...

    SAPUI5-Training

    - **OData绑定**:特别地,SAPUI5还支持与OData服务的数据绑定,实现更高效的数据获取和处理。 - **控件**:SAPUI5提供了丰富的控件库,包括但不限于文本框、按钮、列表等。 - **资源处理**:支持国际化和本地化...

    SAP_ME中文API

    对于SAP ME中文API的使用,开发者需要熟悉SAP NetWeaver Gateway服务,这是一个用于创建和发布OData(Open Data Protocol)服务的平台,它可以将SAP业务数据转换为RESTful服务。OData是一种基于HTTP的协议,专门用于...

    SAP JCo 3 for Windows X64

    在Windows x64环境下,SAP JCo 3提供了针对64位操作系统的支持,确保在高性能计算环境中能够有效地运行。 该压缩包中的文件包含以下几个关键组件: 1. sapjco3.dll:这是SAP JCo 3的核心库文件,是一个动态链接库...

    《SAP高级应用开发》源代码

    7. **SAP HANA Extensions and Native Development**: SAP HANA的高性能内存数据库允许开发者编写原生SQL脚本和存储过程。源代码可能涵盖这些高级特性的使用,以优化数据处理和分析。 通过深入研究这份《SAP高级...

    sap-react-ui5-webcomponents-demo:带有React + UI5 Web组件和SAP oData后端的演示应用程序

    它在生产模式下正确捆绑了React,并优化了构建以获得最佳性能。 生成被最小化,并且文件名包括哈希值。 您的应用已准备好进行部署! 有关更多信息,请参见关于的部分。npm run eject 注意:这是单向操作。 eject ,...

    电力公司sap培训资料

    - SAP HANA:高性能内存数据库,加速SAP应用性能。 - ABAP on HANA:利用HANA的特性,优化ABAP程序,如使用HANA SQL扩展和计算视图。 8. **ABAP开发工具** - ABAP Development Tools for Eclipse:集成开发环境...

    new abap 74 for sap hana end to end development

    除了具体的技术实现外,附录部分提供了安装指南、快捷键指南、SAP HANA开发指南和SAP HANA SQL脚本引用等实用工具和文档,这些都是开发过程中可能会用到的重要资源。 总结以上内容,这份文档详细介绍了在SAP HANA...

Global site tag (gtag.js) - Google Analytics