Вы находитесь на странице: 1из 5

ABAP Development: A Small tip to get all

transparent tables used in ABAP code

Posted by Jerry Wang Jun 15, 2015


Summary on page 3
Further reading on page 3

If you need a list of all transparent tables used in a given ABAP class ( or function module, objects which
belong to a given transport request, etc ) for analysis usage, you could follow the tips below, it is very simple
but efficient.

Suppose you need to scan ABAP class CL_CRM_OPPORTUNITY_IMPL to find out all transparent tables used
by this class.

1. use tcode SCI, create a new check variant:

Enable "Table Names from SELECT statements" and save variant.

2. create a new inspection:

Generated by Jive on 2016-02-02+01:00


1
ABAP Development: A Small tip to get all transparent tables used in ABAP code

Specify the class to be scanned, and load the check variant created in step one, then execute the inspection.

3. Once inspection is done, you see a green light and could get the inspection result by clicking button below:

All accessed tables are listed there:

Generated by Jive on 2016-02-02+01:00


2
ABAP Development: A Small tip to get all transparent tables used in ABAP code

Double click on each entry and the ABAP code will automatically be opened. Quite easy, isn't it?

Summary
As we know that the code inspection is done statically by scanning source code so any other tables which are
accessed dynamically by dynamic SQL in the runtime will not appear in the scan result of code inspector. If you
need to get the COMPLETE list of the tables involved within a given part of ABAP codes, it is recommended to
use transaction code ST05, ST12 or SAT to trace the scenario in the runtime.

Further reading
1. ABAP Code inspector is far more than a static code scanner but in my opinion a powerful weapon which
is for every ABAPer worth adding it to your toolbox. For more extensive usage on it to make your life easier,
please read this document Useful tips regarding ABAP code inspector that you may not know .

2. Besides the approach to get accessed table list introduced in this blog, there is another approach using
transaction code SQF, which is also done based on static code scan. For details please read ABAP static
analysis tool SQF.
2086 Views Tags: tip, abap, beginner, toolbox, efficiency, code_inspector, toolset, sci, table_access,
code_scan, sqf, codeinspector, code_inspection

swadhin ghatuary
Jun 15, 2015 1:06 PM
Good Job. Keep Posting.

Mohd Fakruddin
Jun 15, 2015 11:47 AM

Generated by Jive on 2016-02-02+01:00


3
ABAP Development: A Small tip to get all transparent tables used in ABAP code

Hi ,

thanks for sharing the information.


this is usefull information....

Jerry Wang in response to Christian Drumm on page 4


Jun 15, 2015 8:43 AM
Hi Christian,

Thanks a lot for pointing it out. Now I add it to the summary part in order not to cause any misunderstanding

about this usage

Best regards,
Jerry

Aadhil Salim
Jun 15, 2015 8:39 AM
simply suprb

Christian Drumm
Jun 15, 2015 8:34 AM
Hi Jerry,

the code inspector performs a static code analysis. Therefore, this approach won't be able to list all tables. Any
table that is dynamically read during runtime won't be in the result list.
If you really want to get all tables used during run time you need to trace the object e.g. using ST01.

Best,
Christian

Kumar PS
Jun 15, 2015 7:36 AM
Good Post and thanks for sharing the informaiton..

Suresh G S
Jun 15, 2015 6:05 AM
Yes, It is very useful. Good thinking Jerry.

Jerry Wang in response to Dengyong Zhang on page 5


Jun 15, 2015 5:33 AM
Hi Dengyong,

I know the Jerry you mentioned. However, I am the Jerry located in CD, CRM dev

Best regards,

Generated by Jive on 2016-02-02+01:00


4
ABAP Development: A Small tip to get all transparent tables used in ABAP code

Jerry

Dengyong Zhang
Jun 15, 2015 5:31 AM
Cool, man.

And which Jerry Wang you are? we have same one in SH .

regards,
Archer

Generated by Jive on 2016-02-02+01:00


5

Вам также может понравиться