前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >How to find where settype DB table COMM_PRMAT is accessed without debugging

How to find where settype DB table COMM_PRMAT is accessed without debugging

作者头像
Jerry Wang
发布2020-02-17 15:28:03
3910
发布2020-02-17 15:28:03
举报

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.

本文参与 腾讯云自媒体分享计划,分享自作者个人站点/博客。
原始发表:2020-01-31 ,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体分享计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档