<?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: Type-pools in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/type-pools/m-p/3792980#M912276</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;type-pools :&lt;/P&gt;&lt;P&gt;      we can define global data declarations of an abap program.it is a collection of predefined data types.here we can define our own structures.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       this statement allows u to access all the TYPES and CONSTANTS used in the type group. we can reuse this in other programs to reduce the redundancy.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SLIS is a standard type pool which containd all the internal table structures and constants,work areas which are necessary for alv report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: raji ch on May 15, 2008 10:34 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 15 May 2008 08:34:24 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-05-15T08:34:24Z</dc:date>
    <item>
      <title>Type-pools</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/type-pools/m-p/3792978#M912274</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What are TYPE-POOLS ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ex: while using ALV, we use TYPE-POOLS: SLIS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also what is SLIS. Is there any meaning for that ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 May 2008 08:32:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/type-pools/m-p/3792978#M912274</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-15T08:32:02Z</dc:date>
    </item>
    <item>
      <title>Re: Type-pools</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/type-pools/m-p/3792979#M912275</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;type-pools&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;TYPE-POOLS&lt;/STRONG&gt; are used to declare a type pool to be used in the program.The specified type pool should already exists in the ABAP DICTONARY(SE11).Once the type pool has been declared we can use any of the constants and types declared in that type pool&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The &lt;STRONG&gt;TYPE-POOLS&lt;/STRONG&gt; statement declares the data types and constants of type group tpool You can specify it in the global data declarations of an ABAP program or in the declaration section of a class or interface. The data types and constants of the type group are visible as of this statement in the current context.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In SE11 you create the type-group or type-pool and use it in se38 using type-pools statement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;TYPE-POOL tp&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;  Type-pool statement is used to create a type group in the ABAP dictionary.It is the first statement in the definition.The type group is used to declare constants and types and these must begin with the name of the type pool and underscore.&lt;/P&gt;&lt;P&gt; e.g. TYPE-POOL owntypes.&lt;/P&gt;&lt;P&gt;          TYPES num TYPE P DECIMALS 2.&lt;/P&gt;&lt;P&gt;          TYPES name(14) TYPE C.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  To use these types in the abap program we have to use the statement&lt;/P&gt;&lt;P&gt;TYPE-POOLS .&lt;/P&gt;&lt;P&gt; e.g. TYPE-POOLS owntypes.&lt;/P&gt;&lt;P&gt;         DATA customer TYPE owntypes_num.&lt;/P&gt;&lt;P&gt;         DATA name       TYPE  owntypes_name. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;slis&lt;/STRONG&gt; contains all the structures and tables that are helpful in bulding an alv report&lt;/P&gt;&lt;P&gt;SLIS is the type library for ALV grid. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you'll use the ALV you have to add TYPE-POOLS : SLIS. command at the beginning of your code. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Consider these : &lt;/P&gt;&lt;P&gt;slis_t_fieldcat_alv is containing "_t_" &lt;/P&gt;&lt;P&gt;It means that it is an internal table and slis_fieldcat_alv is header line of that. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is a practical example for alv grid : &lt;/P&gt;&lt;P&gt;Just think that you have an internal table named 'ITAB' to show. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Step1 : First add these lines to your code : &lt;/P&gt;&lt;P&gt;TYPE-POOLS : SLIS. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA ALV_PROG_NAME LIKE SY-REPID. &lt;/P&gt;&lt;P&gt;ALV_PROG_NAME = SY-REPID. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : ALV_ITAB_NAME(30), &lt;/P&gt;&lt;P&gt;L_FIELDCAT TYPE SLIS_T_FIELDCAT_ALV. &lt;/P&gt;&lt;P&gt;ALV_ITAB_NAME = 'ITAB'. "!!Write here the name of your internal table &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Step 2 : Add these two function : &lt;/P&gt;&lt;P&gt;The first function is filling the fieldcat L_FIELDCAT that you described, second is showing it on the screen usinf fms. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE' &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY' &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;prasanth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 May 2008 08:34:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/type-pools/m-p/3792979#M912275</guid>
      <dc:creator>prasanth_kasturi</dc:creator>
      <dc:date>2008-05-15T08:34:19Z</dc:date>
    </item>
    <item>
      <title>Re: Type-pools</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/type-pools/m-p/3792980#M912276</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;type-pools :&lt;/P&gt;&lt;P&gt;      we can define global data declarations of an abap program.it is a collection of predefined data types.here we can define our own structures.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       this statement allows u to access all the TYPES and CONSTANTS used in the type group. we can reuse this in other programs to reduce the redundancy.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SLIS is a standard type pool which containd all the internal table structures and constants,work areas which are necessary for alv report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: raji ch on May 15, 2008 10:34 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 May 2008 08:34:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/type-pools/m-p/3792980#M912276</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-15T08:34:24Z</dc:date>
    </item>
    <item>
      <title>Re: Type-pools</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/type-pools/m-p/3792981#M912277</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;TYPE-POOLS tp&lt;/P&gt;&lt;P&gt;  Type-pools are used to declare a type pool to be used in the program.The specified type pool should already exists in the ABAP DICTONARY(SE11).Once the type pool has been declared we can use any of the constants and types declared in that type pool. &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;TYPE-POOL tp &lt;/P&gt;&lt;P&gt;  Type-pool statement is used to create a type group in the ABAP dictionary.It is the first statement in the definition.The type group is used to declare constants and types and these must begin with the name of the type pool and underscore.&lt;/P&gt;&lt;P&gt; e.g. TYPE-POOL owntypes.&lt;/P&gt;&lt;P&gt;          TYPES num TYPE P DECIMALS 2.&lt;/P&gt;&lt;P&gt;          TYPES name(14) TYPE C.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  To use these types in the abap program we have to use the statement&lt;/P&gt;&lt;P&gt;TYPE-POOLS .&lt;/P&gt;&lt;P&gt; e.g. TYPE-POOLS owntypes.&lt;/P&gt;&lt;P&gt;         DATA customer TYPE owntypes_num.&lt;/P&gt;&lt;P&gt;         DATA name       TYPE  owntypes_name. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;All the definitions of internal tables, structures and constants are declared in a type-pool called SLIS&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward,if useful.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Chandu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 May 2008 08:35:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/type-pools/m-p/3792981#M912277</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-15T08:35:48Z</dc:date>
    </item>
    <item>
      <title>Re: Type-pools</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/type-pools/m-p/3792982#M912278</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Manjunath,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;TYPE-POOLS&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;All the definitions of internal tables, structures  and constants are declared in a type-pool called SLIS.&lt;/P&gt;&lt;P&gt;Declares the types and constants of a type group to a program.&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Syntax&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;TYPE-POOLS &amp;lt;tpool&amp;gt;.&lt;/P&gt;&lt;P&gt;After this statement, you can use all of the data types and constants defined in the type group&lt;/P&gt;&lt;P&gt;&amp;lt;tpool&amp;gt; in your program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thankyou,&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 May 2008 08:42:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/type-pools/m-p/3792982#M912278</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-15T08:42:13Z</dc:date>
    </item>
  </channel>
</rss>

