<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: GENERATE_SUBPOOL_DIR_FULL in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/generate-subpool-dir-full/m-p/1797243#M342521</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Klaus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is not the problem about creating the structure! The routine is also geenrating EXEC SQL statament!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;stephan,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 18 Dec 2006 13:38:35 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-12-18T13:38:35Z</dc:date>
    <item>
      <title>GENERATE_SUBPOOL_DIR_FULL</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/generate-subpool-dir-full/m-p/1797237#M342515</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I do have such message!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know there is a limit in the GENERATE_SUBROUTINE_POOL but I'm only generating 13...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sap dump say :&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt; An exception occurred that is explained in detail below.
 The exception, which is assigned to class 'CX_SY_GENERATE_SUBPO
  not caught and
 therefore caused a runtime error.
 The reason for the exception is:
 No more than 36 temporary subroutine pools can be generated.
 This maximum value has been exceeded.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But 13 is lower than 36 !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Dec 2006 09:57:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/generate-subpool-dir-full/m-p/1797237#M342515</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-18T09:57:09Z</dc:date>
    </item>
    <item>
      <title>Re: GENERATE_SUBPOOL_DIR_FULL</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/generate-subpool-dir-full/m-p/1797238#M342516</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can u explain bit more as to what u are doing which gave this error?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Dec 2006 10:09:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/generate-subpool-dir-full/m-p/1797238#M342516</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-18T10:09:33Z</dc:date>
    </item>
    <item>
      <title>Re: GENERATE_SUBPOOL_DIR_FULL</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/generate-subpool-dir-full/m-p/1797239#M342517</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm generating EXEC SQL statement&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Dec 2006 10:22:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/generate-subpool-dir-full/m-p/1797239#M342517</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-18T10:22:48Z</dc:date>
    </item>
    <item>
      <title>Re: GENERATE_SUBPOOL_DIR_FULL</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/generate-subpool-dir-full/m-p/1797240#M342518</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;form sr_gen_exec_sql.

  data : lwt_fcat like line of lit_fcat.
** internal table of the field catalog

  data : lwt_abap(72)  ,
         lit_abap like lwt_abap occurs 0,
         l_field like line of lit_abap.

  data l_report type programm  .

  append 'report dummy.' to lit_abap .

  append 'types : begin of ty_data ,' to lit_abap.
  loop at lit_fcat into lwt_fcat.
    if lwt_fcat-decimals ne 0.
      lwt_fcat-intlen = lwt_fcat-intlen - lwt_fcat-decimals + 1.
    endif.

    concatenate lwt_fcat-fieldname
                '('
                lwt_fcat-intlen
                ') TYPE@'
                lwt_fcat-inttype into l_field.
** if there are decimals generate the decimals
    if lwt_fcat-decimals ne 0.
      concatenate l_field
                  ' decimals@'
                  lwt_fcat-decimals
                  into l_field.
    endif.
** the end of the statement
    concatenate   l_field
                  ','
                  into l_field.
** replace all occurences of the @
    do.
      replace '@' with space into l_field.
      if sy-subrc ne 0.
        exit.
      endif.
    enddo.
** add the field to the output
    append l_field to lit_abap.
  endloop.
  append 'end of ty_data.'    to lit_abap.
  append 'types : tt_data type standard table of ty_data.' to lit_abap.
  append ' data : it_data type standard table of ty_data,' to lit_abap.
  append '        wt_data like line of it_data.'    to lit_abap.

  append 'data lit_temp type ref to data.' to lit_abap.
  append 'data lwt_temp type ref to data. ' to lit_abap.
  append 'field-symbols &amp;lt;fs_it&amp;gt; type standard table.' to lit_abap.
  append 'field-symbols &amp;lt;fs_wt&amp;gt; type any .' to lit_abap.

  append 'form get_data using ' to lit_abap.
  append '     lit_fcat type lvc_t_fcat.' to lit_abap.

  concatenate 'data l_mandt type mandt value '''
              sy-mandt '''.' into l_field.
  append l_field to lit_abap.

  append 'call method cl_alv_table_create=&amp;gt;create_dynamic_table' to
  lit_abap.
  append 'exporting' to lit_abap.
  append '        it_fieldcatalog           = lit_fcat' to lit_abap.
  append '      importing' to lit_abap.
  append '        ep_table                  = lit_temp' to lit_abap.
  append '      exceptions' to lit_abap.
  append '        generate_subpool_dir_full = 1' to lit_abap.
  append '        others                    = 2' to lit_abap.
  append '            .' to lit_abap.
  append '  assign lit_temp-&amp;gt;* to &amp;lt;fs_it&amp;gt;.' to lit_abap.
  append '    create data lwt_temp like line of &amp;lt;fs_it&amp;gt;.' to lit_abap.
  append '    assign lwt_temp-&amp;gt;* to &amp;lt;fs_wt&amp;gt;.' to lit_abap.

  append '' to lit_abap.

** SELECT STATEMENT
  append 'EXEC SQL PERFORMING sr_store.' to lit_abap.

  append 'SELECT' to lit_abap.

** select clause
  loop at lit_fcat into lwt_fcat.
    append lwt_fcat-fieldname to lit_abap.
    append ',' to lit_abap.
    at last.
      delete lit_abap index sy-tabix.
    endat.
  endloop.
  append 'from'  to lit_abap.
  concatenate  lwt_source-ps_struct
               '@'
               c_db into l_field.
  append l_field to lit_abap.
  append 'INTO   ' to lit_abap.
** into clause
  loop at lit_fcat into lwt_fcat.
    concatenate ':wt_data-' lwt_fcat-fieldname into l_field.
    append l_field to lit_abap.
    append ',' to lit_abap.
    at last.
      delete lit_abap index sy-tabix.
    endat.
  endloop.
  append 'where sb_sap_mandant = :l_mandt' to lit_abap.
  append 'endexec.' to lit_abap.
  append 'export &amp;lt;fs_it&amp;gt; to memory id ''ZTMP''. ' to lit_abap.
  append 'endform.' to lit_abap.

  append 'form sr_store.' to lit_abap.
  append 'move-corresponding wt_data to &amp;lt;fs_wt&amp;gt;.' to lit_abap.
  append 'append &amp;lt;fs_wt&amp;gt; to &amp;lt;fs_it&amp;gt;.' to lit_abap.
  append 'endform.' to lit_abap.

  generate  subroutine pool lit_abap name l_report.

  perform get_data in program (l_report)
      using lit_fcat[]
      if found.
  import &amp;lt;fs_it&amp;gt; from memory id 'ZTMP'.
  free memory id 'ZTMP'.
endform.                    "sr_gen_exec_sql&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Dec 2006 10:39:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/generate-subpool-dir-full/m-p/1797240#M342518</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-18T10:39:15Z</dc:date>
    </item>
    <item>
      <title>Re: GENERATE_SUBPOOL_DIR_FULL</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/generate-subpool-dir-full/m-p/1797241#M342519</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Stephan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;maybe you are not alone in the dark and some mechansim beside yours is using a similar technique. Have you already set a break-point on statement generate? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are on relase 7.00 you may use cl_AbapType_Descr (RTTC) to create types without such a limitation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But as your form seems not to rely on the generated code, encapsulating in a rfc module might be the most easy cure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;  Klaus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Dec 2006 11:21:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/generate-subpool-dir-full/m-p/1797241#M342519</guid>
      <dc:creator>former_member183804</dc:creator>
      <dc:date>2006-12-18T11:21:33Z</dc:date>
    </item>
    <item>
      <title>Re: GENERATE_SUBPOOL_DIR_FULL</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/generate-subpool-dir-full/m-p/1797242#M342520</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Klaus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;its available as of WAS6.40&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check this weblog (subtitle WAS6.40 approach) for code sample&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/people/subramanian.venkateswaran2/blog/2004/11/19/dynamic-internal-table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Raja&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Dec 2006 12:05:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/generate-subpool-dir-full/m-p/1797242#M342520</guid>
      <dc:creator>athavanraja</dc:creator>
      <dc:date>2006-12-18T12:05:57Z</dc:date>
    </item>
    <item>
      <title>Re: GENERATE_SUBPOOL_DIR_FULL</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/generate-subpool-dir-full/m-p/1797243#M342521</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Klaus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is not the problem about creating the structure! The routine is also geenrating EXEC SQL statament!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;stephan,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Dec 2006 13:38:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/generate-subpool-dir-full/m-p/1797243#M342521</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-18T13:38:35Z</dc:date>
    </item>
    <item>
      <title>Re: GENERATE_SUBPOOL_DIR_FULL</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/generate-subpool-dir-full/m-p/1797244#M342522</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Stefan,&lt;/P&gt;&lt;P&gt;if you are only doing the generation stuff due to have an optimal query, dynamic programming might also do. I have attached an according sample.&lt;/P&gt;&lt;P&gt;Good Luck&lt;/P&gt;&lt;P&gt;  Klaus&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
REPORT  x.


start-of-selection.
  perform sub_Main.


form sub_Main.
  types: ty_T_Rows type standard table of TADIR with default key.
  data:
    db_Rows  type ty_T_Rows.
  field-symbols:
    &amp;lt;db_Row&amp;gt; type line of ty_T_Rows.

  perform sub_Query changing db_Rows.
  loop at db_Rows assigning &amp;lt;db_Row&amp;gt;.
    write : /
     &amp;lt;db_Row&amp;gt;-Author,
     &amp;lt;db_Row&amp;gt;-Obj_Name,
     &amp;lt;db_Row&amp;gt;-Object,
     &amp;lt;db_Row&amp;gt;-SrcSystem color col_Positive.
  endloop.
endform.


form sub_Query changing db_Rows type standard table.

   data:
     query_Columns type standard table of sychar32 with default key.

  clear db_Rows.

  append 'AUTHOR'                       to query_columns.
  append 'MIN( OBJECT ) AS OBJECT'      to query_columns.
  append 'MIN( OBJ_NAME ) AS OBJ_NAME'  to query_columns.

  select (query_Columns) from ('TADIR')
    into corresponding fields of table db_Rows
    where
    ('PGMID eq ''R3TR'' AND AUTHOR LIKE ''A%'' AND SRCSYSTEM EQ SY-SYSID')
   group by ('AUTHOR')
   order by ('AUTHOR').

endform.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Dec 2006 14:27:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/generate-subpool-dir-full/m-p/1797244#M342522</guid>
      <dc:creator>former_member183804</dc:creator>
      <dc:date>2006-12-18T14:27:45Z</dc:date>
    </item>
  </channel>
</rss>

