<?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/2899263#M681756</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;using type pools you can create global data declarations of an ABAP program.&lt;/P&gt;&lt;P&gt;TYPE Pools can be thought of as an include having TYPE declarations.&lt;/P&gt;&lt;P&gt;The use of this in your program gives your program access to these TYPE declarations which can then be used directly in your program when declaring new data declaration&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 15 Oct 2007 13:26:50 GMT</pubDate>
    <dc:creator>suredarreddy_pulimamidi</dc:creator>
    <dc:date>2007-10-15T13:26:50Z</dc:date>
    <item>
      <title>Type pools</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/type-pools/m-p/2899262#M681755</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is type pools and y its used in ALv&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Oct 2007 13:22:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/type-pools/m-p/2899262#M681755</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-15T13:22:43Z</dc:date>
    </item>
    <item>
      <title>Re: Type pools</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/type-pools/m-p/2899263#M681756</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;using type pools you can create global data declarations of an ABAP program.&lt;/P&gt;&lt;P&gt;TYPE Pools can be thought of as an include having TYPE declarations.&lt;/P&gt;&lt;P&gt;The use of this in your program gives your program access to these TYPE declarations which can then be used directly in your program when declaring new data declaration&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Oct 2007 13:26:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/type-pools/m-p/2899263#M681756</guid>
      <dc:creator>suredarreddy_pulimamidi</dc:creator>
      <dc:date>2007-10-15T13:26:50Z</dc:date>
    </item>
    <item>
      <title>Re: Type pools</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/type-pools/m-p/2899264#M681757</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 pool is a collection of pre defined data types..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Frequently used data types in programming are clubbed into a type pool so that if u write in ur code:&lt;/P&gt;&lt;P&gt;TYPE-POOLS: slis.&lt;/P&gt;&lt;P&gt;the declarations in SLIS will apply to ur code also..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SLIS contains data definitions for ALV structures &amp;amp; internal tables. so that u dont need to declare alv data everytime in ur program..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check out type pools: ICON, etc.. In SE11, type groups.. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We can use ABAP ALV LIST and GRID function modules to display Normal LIST and Hiearchical LISTS .&lt;/P&gt;&lt;P&gt;All the definitions TYPES and STRUCTURES and CONSTANTS are defined&lt;/P&gt;&lt;P&gt;in the TYPE-POOL 'SLIS' ,so it should be declared first.&lt;/P&gt;&lt;P&gt;TYPE-POOLS : 'SLIS' .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To display ALV LISTS the function module used are :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REUSE_ALV_LIST_DISPLAY "For Normal LIST&lt;/P&gt;&lt;P&gt;REUSE_ALV_HIERARCHICAL_LIST_DISPLAY "For Hierarchical LIST&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To display ALV GRID the function module used are :&lt;/P&gt;&lt;P&gt;REUSE_ALV_GRID_DISPLAY . "For GRID display&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The most important component of the ALV is the FIELDCATALOG which is of&lt;/P&gt;&lt;P&gt;TYPE SLIS_T_FIEDLCAT_ALV &lt;/P&gt;&lt;P&gt;or of&lt;/P&gt;&lt;P&gt;TYPE STANDARD TABLE OF SLIS_FIELDCAT_ALV .&lt;/P&gt;&lt;P&gt;The line items of the field catalog are of &lt;/P&gt;&lt;P&gt;TYPE SLIS_FIELDCAT_ALV . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FIELDCATALOG&lt;/P&gt;&lt;P&gt;To prepare field catalog certain fields are essential .There are various other fields allowing for vaarious possibilities and display options.&lt;/P&gt;&lt;P&gt;TABNAME&lt;/P&gt;&lt;P&gt;FIELDNAME&lt;/P&gt;&lt;P&gt;REF_TABNAME&lt;/P&gt;&lt;P&gt;SELTECT_M&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;e.g.&lt;/P&gt;&lt;P&gt;DATA: WS_FCAT TYPE SLIS_FIELDCAT_ALV . "LINE ITEM OF FCAT&lt;/P&gt;&lt;P&gt;DATA: IN_FCAT TYPE SLIS_T_FIELDCAT_ALV.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WS_FCAT-TABNAME = 'MARA'.&lt;/P&gt;&lt;P&gt;WS_FCAT-FIELDNAME = 'MATNR'.&lt;/P&gt;&lt;P&gt;WS_FCAT-SELTEXT_M = 'Material Number'.&lt;/P&gt;&lt;P&gt;APPEND WS_FCAT TO IN_FCAT .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLEAR WS_FCAT.&lt;/P&gt;&lt;P&gt;WS_FCAT-TABNAME = 'MAKT'.&lt;/P&gt;&lt;P&gt;WS_FCAT-FIELDNAME = 'MAKTX'.&lt;/P&gt;&lt;P&gt;WS_FCAT-SELTEXT_M = 'Material Description'.&lt;/P&gt;&lt;P&gt;APPEND WS_FCAT TO IN_FCAT .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will create fieldcatalog with two columns for displaying material and material description . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RESUSE_ALV_LIST_DISPLAY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The following FM is used to display the data in the internal table in the form of ALV&lt;/P&gt;&lt;P&gt;LIST. The Event table is only required if event handling is being done.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'RESUSE_ALV_LIST_DISPLAY'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;I_CALLBACK_PROGRAM = W_REPID "of TYPE SY-REPID and &lt;/P&gt;&lt;P&gt;" value SY-REPID&lt;/P&gt;&lt;P&gt;IS_LAYOUT = W_LAYOUT "of TYPE SLIS_LAYOUT_ALV &lt;/P&gt;&lt;P&gt;IT_FIELDCAT = IN_FCAT "of TYPE SLIS_T_FIELDCAT_ALV&lt;/P&gt;&lt;P&gt;I_SAVE = W_SAVE "of TYPE C ,values A ,U ,' '&lt;/P&gt;&lt;P&gt;IT_EVENTS = IN_EVENTS " of TYPE SLIS_T_EVENT&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;T_OUTTAB = IN_DATA "internal table conatining data&lt;/P&gt;&lt;P&gt;"corresponding to IN_FCAT&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;PROGRAM_ERROR = 1&lt;/P&gt;&lt;P&gt;OTHERS = 2 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF SY-SUBRC NE 0.&lt;/P&gt;&lt;P&gt;MESSAGE ENNN .&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REUSE_ALV_EVENTS_GET.&lt;/P&gt;&lt;P&gt;This FM is used to get the default event table of the ALV LIST DISPLAY.&lt;/P&gt;&lt;P&gt;The IN_EVENTS internal table is of TYPE SLIS_T_EVENT. This table contains&lt;/P&gt;&lt;P&gt;all the events wrapped up in the ALV LIST or ALV GRID and consistsof two fields&lt;/P&gt;&lt;P&gt;NAME and FORM .The NAME corresponds to names of the events like TOP_OF_PAGE and END_OF_PAGE ,USER_COMMAND and FORM will contain the name of the FORM ROUTINE that will be called dynamically through callback mechanism when the particular event will fire and is initial for all events bt default and has to be filled for&lt;/P&gt;&lt;P&gt;events for which handling is required.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'REUSE_ALV_EVENTS_GET'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;I_LIST_TYPE = 0&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;ET_EVENTS = IN_EVENTS[].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;e.g.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: W_EVENT TYPE SLSI_ALV_EVENT "LINE ITEM OF EVENT TABLE&lt;/P&gt;&lt;P&gt;DATA: IN_EVENTS TYPE SLSI_T_EVENT . "Internal table containing events&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'REUSE_ALV_EVENTS_GET'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;I_LIST_TYPE = 0&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;ET_EVENTS = IN_EVENTS[].&lt;/P&gt;&lt;P&gt;RTEAD TABLE IN_EVENTS WITH KEY NAME = 'TOP_OG_PAGE'&lt;/P&gt;&lt;P&gt;INTO W_EVENT.&lt;/P&gt;&lt;P&gt;IF SY-SUBRC EQ 0.&lt;/P&gt;&lt;P&gt;MOVE 'F3000_TOP_OF_PAGE' TO W_EVENT -FORM.&lt;/P&gt;&lt;P&gt;MODIFY IN_EVENTS FROM W_EVENT INDEX SY-TABIX.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here the FORM ROUTINE 'F3000_TOP_OF_PAGE' is being set up for the&lt;/P&gt;&lt;P&gt;event TOP_OF_PAGE which will fire when the ALV LIST will be displayed ,This form&lt;/P&gt;&lt;P&gt;will be called dynamically by th ALV LIST display during top_of_page event and for this the modified Events internal table has to be passed to the FM 'REUSE_ALV_LIST_DISPLAY' in the exporting parameter IT_EVENTS. Failing this the form '3000_TOP_OF_PAGE' will not be called . This event is used for placing heading information like Current date and time and the name of the report. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For Sample programs..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check this link.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;http://www.sapdevelopment.co.uk/reporting/alv/alvgrid.htm&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Padmam.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Oct 2007 13:28:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/type-pools/m-p/2899264#M681757</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-15T13:28:01Z</dc:date>
    </item>
    <item>
      <title>Re: Type pools</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/type-pools/m-p/2899265#M681758</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 &amp;lt;pool&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This statement allows you to use all the data types and constants defined in the type group &amp;lt;pool&amp;gt; in your program. You can use several type groups in the same program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sriram Ponna.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Oct 2007 14:33:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/type-pools/m-p/2899265#M681758</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-15T14:33:48Z</dc:date>
    </item>
  </channel>
</rss>

