How to find where settype DB table COMM_PRMAT is accessed without debugging
发布日期:2021-06-30 14:07:59 浏览次数:2 分类:技术文章

本文共 1190 字,大约阅读时间需要 3 分钟。

We know settype table COMM_PRMAT is used to store attribute data modelled in product settype COMM_PR_MAT. In this table, there is one field FRG_GUID.

I would like to figure out how this field is used in ABAP code when this table is accessed.

How to find the ABAP code where this table is read with FRG_GUID in a most efficient way?

Approach1:
Write a utility method to read sales data via function module CRM_PRODUCT_SALES_READ_API:

Write a simple report to consume this method:

Use tcode SAT, click execute button:

Once done, expand trace data:

Click DB tables, all accessed database tables are listed in this tab. Choose “Position in the Hit List Tool” from context menu:

Double click statement:

Then it automatically navigates to the code position where this table is accessed.

Set a breakpoint:

Then confirm it in the runtime via debugging. Now we can also know the reason why this code place could not be found in where used list on table COMM_PRMAT : it is accessed dynamically via SELECT SINGLE * FROM (gc_set_table).

Approach2: run the report under ST05, and click button highlighted below, it can bring you to code where this table is accessed as well.

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

转载地址:https://jerry.blog.csdn.net/article/details/104124237 如侵犯您的版权,请留言回复原文章的地址,我们会给您删除此文章,给您带来不便请您谅解!

上一篇:SAP CRM页面assignment block动态显示与否的控制逻辑
下一篇:数据库表CRMD_ORDERADM_I里字段OBJECT_TYPE的计算逻辑

发表评论

最新留言

不错!
[***.144.177.141]2024年04月10日 16时17分25秒