<?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: Where to set up a TYPE-POOL Declaration in a Function Group ? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/where-to-set-up-a-type-pool-declaration-in-a-function-group/m-p/8011380#M1607734</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Martin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First off:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;TABLES I_T_SELECT TYPE SBIWA_T_SELECT.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Correct me if I'm mistaken here, but tables is expecting a name of a DDIC structure. It is then creating a work area using that structure.&lt;/P&gt;&lt;P&gt;If you have to declare an internal table, the correct code would be:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA i_t_select TYPE TABLE OF sbiwa_t_select.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;TABLES sbiwa_t_select.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regarding your questions:&lt;/P&gt;&lt;P&gt;A global data declaration of a function group is just what it says, a point where you can declare your data usable for the whole function group.&lt;/P&gt;&lt;P&gt;This is usually an Include.&lt;/P&gt;&lt;P&gt;That said, you can fix your issue by creating an Include in your function group.&lt;/P&gt;&lt;P&gt;Within that include you have to write:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;TYPE-POOLS: pool1, pool2, pool3.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or, in case you only have one type pool:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;TYPE-POOLsbiwa
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After creating the include, you have to point your function module to that file.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;INCLUDE include_name.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 08 Aug 2011 13:33:46 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-08-08T13:33:46Z</dc:date>
    <item>
      <title>Where to set up a TYPE-POOL Declaration in a Function Group ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/where-to-set-up-a-type-pool-declaration-in-a-function-group/m-p/8011379#M1607733</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I ve got a Function Group.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I set up a Function Module in the Function Group.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I must use  TABLES I_T_SELECT TYPE SBIWA_T_SELECT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I get the error:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Type pool SBIWA has not been declared&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Message no. FL031&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Diagnosis&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;You used a type from type pool &amp;amp; in the interface of a function module.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Procedure&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;For the program to be syntactically correct, you must&lt;/EM&gt; &lt;/P&gt;&lt;P&gt;&lt;EM&gt;declare the type pool in the global data declaration of the&lt;/EM&gt;&lt;/P&gt;&lt;P&gt; &lt;EM&gt;function group using the 'TYPE-POOLS: &amp;amp;.' statement.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;"&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Where / How do I set up a Type Pool in the global data declaration of the&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;function group ?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Where / what is the global data Declaration of the Function Group ?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Thank You&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Wishes&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Martin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Aug 2011 13:18:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/where-to-set-up-a-type-pool-declaration-in-a-function-group/m-p/8011379#M1607733</guid>
      <dc:creator>former_member560074</dc:creator>
      <dc:date>2011-08-08T13:18:22Z</dc:date>
    </item>
    <item>
      <title>Re: Where to set up a TYPE-POOL Declaration in a Function Group ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/where-to-set-up-a-type-pool-declaration-in-a-function-group/m-p/8011380#M1607734</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Martin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First off:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;TABLES I_T_SELECT TYPE SBIWA_T_SELECT.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Correct me if I'm mistaken here, but tables is expecting a name of a DDIC structure. It is then creating a work area using that structure.&lt;/P&gt;&lt;P&gt;If you have to declare an internal table, the correct code would be:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA i_t_select TYPE TABLE OF sbiwa_t_select.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;TABLES sbiwa_t_select.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regarding your questions:&lt;/P&gt;&lt;P&gt;A global data declaration of a function group is just what it says, a point where you can declare your data usable for the whole function group.&lt;/P&gt;&lt;P&gt;This is usually an Include.&lt;/P&gt;&lt;P&gt;That said, you can fix your issue by creating an Include in your function group.&lt;/P&gt;&lt;P&gt;Within that include you have to write:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;TYPE-POOLS: pool1, pool2, pool3.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or, in case you only have one type pool:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;TYPE-POOLsbiwa
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After creating the include, you have to point your function module to that file.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;INCLUDE include_name.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Aug 2011 13:33:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/where-to-set-up-a-type-pool-declaration-in-a-function-group/m-p/8011380#M1607734</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-08-08T13:33:46Z</dc:date>
    </item>
  </channel>
</rss>

