Skip to Content
author's profile photo Former Member
Former Member

Can GENERATE SUBROUTINE-POOL be used to declare globally visible variables?

Dear experts,

I'm dreaming of using the GENERATE SUBROUTINE-POOL statement for data declarations in a function module that are supposed to be visible afterwards globally in the entire function group. Is that possible?

In fact the problem that I'm trying to solve is about creating internal tables(declarations) dynamically in a 4.6-System where "CREATE DATA xyz TYPE TABLE OF xyz" as well as the newer RTTI-methods do not exist yet and where the "standard" way of doing it with CL_ALV_TABLE_CREATE=>CREATE_DYNAMIC_TABLE does not fit my needs because it may well be possible that we're exceeding the limitation, that this method can only be called 36 times during one program run.

There's a lot to read about this topic in the forum and I actually searched and read a lot. In case there should already be an answer that I just haven't found, please have mercy with me.

Thanks in advance


Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Posted on Nov 07, 2008 at 02:12 PM

    It is possible, if you save that data table to Global Field-Symbols in your Function Group.


      assign ep_table->* to <lt_destination>.


    Naimesh Patel

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Dear Naimesh,

      that sounded like a great idea and I tried it out at once.

      Unfortunetaly my function group globally declared data references and field-symbols are not known "on the other side", where the dynamic subroutine-pool is generated and executed.

      best regards


Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.