Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Accessing ITABs with Memory Use

peter_atkin
Active Contributor
0 Likes
688

Guys,

When debugging, I can see the internal table via menu:

Display conditions->Memory use->Memoru use - ranked list (tab)

If I double-click on this itab I can see the record entries.

The table name is given as 148. If I re-run the TCode, the same itab may have a different name e.g. 193

I have tried searching the database, but to be honest I don't know what to search on...

Can I access this table with ABAP code?

Guys,

When debugging, I can see the internal table via menu:

Display conditions->Memory use->Memoru use - ranked list (tab)

If I double-click on this itab I can see the record entries.

The table name is given as 148. If I re-run the TCode, the same itab may have a different name e.g. 193

I have tried searching the database, but to be honest I don't know what to search on...

Can I access this table with ABAP code?

4 REPLIES 4
Read only

Former Member
0 Likes
648

Have you tried using FIELD-SYMBOLS?

sample:

FIELD-SYMBOLS: <fs> TYPE ANY TABLE.

ASSIGN ('(SAPLMIGO)xmseg[]') TO <fs>.

...

Regards.

Read only

0 Likes
648

Bruno,

Yeah, we've tied that.

Unfortunately the program is not in the call-stack.

The memory-use displays the following:

\FUNCTION-POOL=COBC\DATA=RESB_BT[]

Read only

0 Likes
648

Unfortunately, I guess it's not possible.

You will need to find another way.

Regards.

Read only

0 Likes
648

Cracked it...

Managed to find the solution myself:

*************************************

MEMORY USE: Goto->Display condition->Memory use

You can usually get data from the Memory Use list as follows:

1. In debug, go to the Ranked List via the menu path above

2. For those items with FUNCTION-POOL, take the 4 letter Function Group and Table Name

3. Go to TCode SE80, and enter the Function Group from above

4. Navigate to one of the Function Modules, and get the Main Program (Goto->Main program)

5. Cut & paste the Main Program name

6. Return to the debug screen and enter (MainProgram)TableName[] e.g. (SALPLCOIH)resb_bt[]

*************************************

SYSTEM AREAS - DSEG: Goto->System Areas->SAP Memory (enter DSEG,ITAB-HEADS)

You can also use the same technique for the following System Areas: DSEG, ITAB-HEADS