Skip to Content

Trace type-pool usage in ABAP program

Hi,

I have quite a complex function group with multiple external includes in the group's top include. The code of some functional modules of the group relies on VRM type-pool (and I can see that in 'Environment Analysis' results - Shift-F4). There is no corresponding TYPE-POOLS: VRM statement in the group code,  so I deduce that this statement is somewhere in the external includes.

I would like to find out, through which include (or, possibly, chain of includes) this type pool is available in my function group.

My idea is to comment out includes gradually until the types from the type-pool become unavailable. It seems to me quite a clumsy way.

Can you probably recommend an easier, smarter way to do that?

Thanks in advance!

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    avatar image
    Former Member
    Jan 13, 2015 at 05:48 PM

    Maybe I'm missing something, but it sounds like you just need to do a WHERE USED list.

    Rob

    Add comment
    10|10000 characters needed characters exceeded

    • Hi, Angelo,

      Thank you for your advice! Unfortunately, in my case source scan of this kind returns too many results - because the project's code base  is quite big and the type-pools is used a lot.

      What I was hoping to find is some formal way to determine, due to which include the type-pool is visible. The system was able to compile the code, so the system somehow found the link to this type pool. I just wanted to get to this very information, but looks like lt is impossible.

      Thanks again!

  • Jan 14, 2015 at 09:31 AM

    Hi,

    please edit the main program of your function group in SE38 or SE80. Then call menu function

    Utilities (M) -> Update Navigation Index.

    Now you should be able to find the TYPE-POOL statement with the FIND ... IN MAIN PROGRAM search option.

    Regards,

    Klaus

    Add comment
    10|10000 characters needed characters exceeded

    • Hi, Klaus,

      Thank you for your advice! Unfortunately, I didn't see more 'TYPE-POOLS' entries in search results after index update.

      Possibly, the issue depends on the platform version. In my version (7.0, no EhP) this statement is necessary. But  it is considered obsolete as of 7.0 EhP2 or 7.2 (As I see from 'Official ABAP Programming Guidelines'). Probably this change somehow affects what is seen in search results...