<?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: three different output tables in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/three-different-output-tables/m-p/5267605#M1216216</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;in SE51 when you create a container, split the container to three parts and use the class or OO ABAP to code by using three different container names and pass the values.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 17 Mar 2009 12:57:24 GMT</pubDate>
    <dc:creator>former_member156446</dc:creator>
    <dc:date>2009-03-17T12:57:24Z</dc:date>
    <item>
      <title>three different output tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/three-different-output-tables/m-p/5267600#M1216211</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what has to be done if you have three different output tables which you would like &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;display by the ALV.  How can you change between those three  tables .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If possible I wold like to use the same alv reference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data &lt;STRONG&gt;ref_alv&lt;/STRONG&gt; TYPE REF TO cl_gui_alv_grid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; If this is not possible&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please tell me the other way ?&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;Regards&lt;/P&gt;&lt;P&gt;sas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Mar 2009 12:49:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/three-different-output-tables/m-p/5267600#M1216211</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-17T12:49:52Z</dc:date>
    </item>
    <item>
      <title>Re: three different output tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/three-different-output-tables/m-p/5267601#M1216212</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please be more clear with your requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On what conditions would you decide which table to display?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Mar 2009 12:51:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/three-different-output-tables/m-p/5267601#M1216212</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-17T12:51:22Z</dc:date>
    </item>
    <item>
      <title>Re: three different output tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/three-different-output-tables/m-p/5267602#M1216213</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;e.g. on klick on a button&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Mar 2009 12:52:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/three-different-output-tables/m-p/5267602#M1216213</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-17T12:52:16Z</dc:date>
    </item>
    <item>
      <title>Re: three different output tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/three-different-output-tables/m-p/5267603#M1216214</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;At the time of creation of Field Catalog&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;first create the Field Catalog for first internal table, then for second one and then for the third one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Mar 2009 12:55:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/three-different-output-tables/m-p/5267603#M1216214</guid>
      <dc:creator>sarbajitm</dc:creator>
      <dc:date>2009-03-17T12:55:01Z</dc:date>
    </item>
    <item>
      <title>Re: three different output tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/three-different-output-tables/m-p/5267604#M1216215</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;need help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Mar 2009 12:57:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/three-different-output-tables/m-p/5267604#M1216215</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-17T12:57:05Z</dc:date>
    </item>
    <item>
      <title>Re: three different output tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/three-different-output-tables/m-p/5267605#M1216216</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;in SE51 when you create a container, split the container to three parts and use the class or OO ABAP to code by using three different container names and pass the values.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Mar 2009 12:57:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/three-different-output-tables/m-p/5267605#M1216216</guid>
      <dc:creator>former_member156446</dc:creator>
      <dc:date>2009-03-17T12:57:24Z</dc:date>
    </item>
    <item>
      <title>Re: three different output tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/three-different-output-tables/m-p/5267606#M1216217</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;is that the only way&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Mar 2009 12:58:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/three-different-output-tables/m-p/5267606#M1216217</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-17T12:58:08Z</dc:date>
    </item>
    <item>
      <title>Re: three different output tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/three-different-output-tables/m-p/5267607#M1216218</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 believe that u want to show the output of all the tables in alv format...&lt;/P&gt;&lt;P&gt;if that is show r these tables interelated to eachother ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u need to develop an interactive alv report...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pls refer to the wiki that may help in your issue!!&lt;/P&gt;&lt;P&gt;Link:[https://www.sdn.sap.com/irj/sdn/wiki?path=/display/snippets/interactive%2balv%2breport%2busing%2bhotspot%2bevent]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Mar 2009 12:58:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/three-different-output-tables/m-p/5267607#M1216218</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-17T12:58:39Z</dc:date>
    </item>
    <item>
      <title>Re: three different output tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/three-different-output-tables/m-p/5267608#M1216219</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Handle the Click on the Button is PAI:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EX:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IN PAI:&lt;/P&gt;&lt;P&gt;MODULE USER_COMMAND.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CASE SY_UCOMM.&lt;/P&gt;&lt;P&gt;WHEN BUTTON.&lt;/P&gt;&lt;P&gt;REFRESH GRID USING:&lt;/P&gt;&lt;P&gt;CL_GUI_ALV_GRID-&amp;gt;REFRESH_TABLE_DISPLAY&lt;/P&gt;&lt;P&gt;SET AL FLAG VALUE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IN PBO:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WHEN FLAG = 'X'.&lt;/P&gt;&lt;P&gt;Build FIELD Catlog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CL_GUI_ALV_GRID-&amp;gt;SET_TABLE_FOR_FIRST_DISPLAY&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Gurpreet&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Mar 2009 13:00:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/three-different-output-tables/m-p/5267608#M1216219</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-17T13:00:04Z</dc:date>
    </item>
    <item>
      <title>Re: three different output tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/three-different-output-tables/m-p/5267609#M1216220</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Block ALV is used if you have to display more than one report on the output. Technically speaking if you have multiple internal table with data to be displayed as separate blocks then we go for block report of ALV.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The important functions used for creating this report are in sequence:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;1.  REUSE_ALV_BLOCK_LIST_INIT&lt;/STRONG&gt; - First Call this FM. This function module is used to set the default  GUI status etc&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;2.  REUSE_ALV_BLOCK_LIST_APPEND&lt;/STRONG&gt; - &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     The next function module used for block display is REUSE_ALV_BLOCK_LIST_APPEND&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Export :&lt;/P&gt;&lt;P&gt;        a. is_layout    :  layout settings for block&lt;/P&gt;&lt;P&gt;        b. it_fieldcat   :  field catalog&lt;/P&gt;&lt;P&gt;        c. I_tabname :   internal table name with all possible events&lt;/P&gt;&lt;P&gt;Tables : &lt;/P&gt;&lt;P&gt;       a. t_outtab      :  internal table with output data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  This function module adds the data to the block&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;3. REUSE_ALV_BLOCK_LIST_DISPLAY&lt;/STRONG&gt; -&lt;/P&gt;&lt;P&gt;Parameters : All the parameters are optional.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This function module display the list with data appended by the &lt;/P&gt;&lt;P&gt;above function.&lt;/P&gt;&lt;P&gt;&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;Sachin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Mar 2009 13:02:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/three-different-output-tables/m-p/5267609#M1216220</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-17T13:02:14Z</dc:date>
    </item>
    <item>
      <title>Re: three different output tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/three-different-output-tables/m-p/5267610#M1216221</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;It is possible to display three different output using single reference variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;consider the following points,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) initially display first display&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) At the end of PAI event you free you reference variable which is belongs to the custom container and control reference using free statement&lt;/P&gt;&lt;P&gt;3) in PBO module of screen you have to fetch the data to internal tablle based on OK_CODE&lt;/P&gt;&lt;P&gt;4) Generate field catalog based on internal table fields&lt;/P&gt;&lt;P&gt;4) Create reference variable for custome container and control and pass your internal table data.&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;Peranandam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Mar 2009 13:05:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/three-different-output-tables/m-p/5267610#M1216221</guid>
      <dc:creator>Peranandam</dc:creator>
      <dc:date>2009-03-17T13:05:39Z</dc:date>
    </item>
    <item>
      <title>Re: three different output tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/three-different-output-tables/m-p/5267611#M1216222</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;dear Experts I have followed your steps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is still unsolved. I have the same outputtable like inital screen when the windows &lt;/P&gt;&lt;P&gt;was displayed the first time&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did I maybe forget a refresh method ?????&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;sas&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: erdem sas on Mar 17, 2009 3:10 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Mar 2009 14:10:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/three-different-output-tables/m-p/5267611#M1216222</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-17T14:10:02Z</dc:date>
    </item>
    <item>
      <title>Re: three different output tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/three-different-output-tables/m-p/5267612#M1216223</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;If you need to display an another table in the grid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Step1:&lt;/P&gt;&lt;P&gt; Use CL_GUI_ALV_GRID-&amp;gt;REFRESH_TABLE_DISPLAY                    " Mandatory&lt;/P&gt;&lt;P&gt;Step2:&lt;/P&gt;&lt;P&gt; Build the catalog for the new table and pass the table and catalog to Method:&lt;/P&gt;&lt;P&gt;  CL_GUI_ALV_GRID-&amp;gt;SET_TABLE_FOR_FIRST_DIAPLAY&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: Use Flag to check conditions to refresh and Pass new Catalogs and tables.&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;Gurpreet&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Mar 2009 14:15:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/three-different-output-tables/m-p/5267612#M1216223</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-17T14:15:09Z</dc:date>
    </item>
    <item>
      <title>Re: three different output tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/three-different-output-tables/m-p/5267613#M1216224</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Gurpreet the command &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL METHOD ref_alv-&amp;gt;REFRESH_TABLE_DISPLAY&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;didnt help I have still the same output table.&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;sas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Mar 2009 14:36:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/three-different-output-tables/m-p/5267613#M1216224</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-17T14:36:27Z</dc:date>
    </item>
    <item>
      <title>Re: three different output tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/three-different-output-tables/m-p/5267614#M1216225</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;When the button is clicked set the flag in PAI.

INSTEAD OF PAI USE IT IN PBO:
Data:t_stbl type lvc_s_stbl.


if FLAG = 'X'.                                 " For second table

CLear W_FCAT.

    call method t_grid-&amp;gt;refresh_table_display
      exporting
        is_stable      = t_stbl
*      i_soft_refresh =
*    EXCEPTIONS
*      finished       = 1
*      others         = 2
            .
    if sy-subrc &amp;lt;&amp;gt; 0.
*   MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*              WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    endif.


  w_fcat-fieldname = 'CARRID'.                " Field catlog
  w_fcat-coltext = 'CARRID'.
  w_fcat-col_pos = 1.
  w_fcat-emphasize = 5.
  append w_fcat to t_fcat.


 call method t_grid-&amp;gt;set_table_for_first_display
    exporting
*    i_buffer_active               =
*    i_bypassing_buffer            =
*    i_consistency_check           =
*      i_structure_name              = 
*    is_variant                    =
*    i_save                        =
*    i_default                     = 'X'
      is_layout                     = w_layo
*    is_print                      =
*    it_special_groups             =
*      it_toolbar_excluding          = lt_exclude
*    it_hyperlink                  =
*    it_alv_graphics               =
*    it_except_qinfo               =
*    ir_salv_adapter               =
    changing
      it_outtab                     = &amp;lt;Second table name&amp;gt;
      it_fieldcatalog               = t_fcat
*    it_sort                       = t_sort
*    it_filter                     =
*  EXCEPTIONS
*    invalid_parameter_combination = 1
*    program_error                 = 2
*    too_many_lines                = 3
*    others                        = 4
          .
  if sy-subrc &amp;lt;&amp;gt; 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
  endif.


endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Gurpreet&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Mar 2009 14:52:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/three-different-output-tables/m-p/5267614#M1216225</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-17T14:52:47Z</dc:date>
    </item>
    <item>
      <title>Re: three different output tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/three-different-output-tables/m-p/5267615#M1216226</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My suggestion you need to use TABSTRIP + ALV for display of 3 different tables&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check this Uwe's example program&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; a®&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Mar 2009 15:03:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/three-different-output-tables/m-p/5267615#M1216226</guid>
      <dc:creator>former_member194669</dc:creator>
      <dc:date>2009-03-17T15:03:16Z</dc:date>
    </item>
    <item>
      <title>Re: three different output tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/three-different-output-tables/m-p/5267616#M1216227</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;Have you deleted you control instances from presentation server by using free statement.&lt;/P&gt;&lt;P&gt;in PAI.&lt;/P&gt;&lt;P&gt;free ref_custom_control.&lt;/P&gt;&lt;P&gt;free ref_grid_control.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;following above statement you have to flush changes immediately from automatic handler(presentation server) and CFW in application program by using FLUSH method.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Peranandam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Mar 2009 15:35:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/three-different-output-tables/m-p/5267616#M1216227</guid>
      <dc:creator>Peranandam</dc:creator>
      <dc:date>2009-03-17T15:35:56Z</dc:date>
    </item>
    <item>
      <title>Re: three different output tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/three-different-output-tables/m-p/5267617#M1216228</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;maybe it helps to understand me better!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;&amp;lt;outtab2&amp;gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;&amp;lt;outtab3&amp;gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;might be also dislayed as like as  &amp;lt;outtab&amp;gt;&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;PROCESS BEFORE OUTPUT.
  MODULE alvgrid_out.


PROCESS AFTER INPUT.
  MODULE user_command_0600.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;MODULE alvgrid_out OUTPUT.
  PERFORM init.
ENDMODULE.                 " ALVGRID_OUT  OUTPUT&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;FORM init.

  IF NOT r_nsize IS INITIAL AND NOT r_normes IS INITIAL AND gv_flag IS INITIAL.
    PERFORM alv_size.
    gv_flag = 'X'.
  ENDIF.
  IF NOT r_slim IS INITIAL AND NOT r_slimes IS INITIAL AND gv_flag IS INITIAL.
    PERFORM alv_slimsize.
    gv_flag = 'X'.
  ENDIF.
  IF NOT r_stocky IS INITIAL AND NOT r_stomes IS INITIAL AND gv_flag IS INITIAL.
    PERFORM alv_stockysize.
    gv_flag = 'X'.
  ENDIF.

  IF NOT r_nsize IS INITIAL AND NOT r_normes IS INITIAL AND gv_paiflag EQ 'NO'.
    PERFORM alv_size.
  ENDIF.
  IF NOT r_slim IS INITIAL AND NOT r_slimes IS INITIAL AND    gv_paiflag EQ 'SL'.
    PERFORM alv_slimsize.
  ENDIF.
  IF NOT r_stocky IS INITIAL AND NOT r_stomes IS INITIAL AND   gv_paiflag EQ 'ST'.
    PERFORM alv_stockysize.
  ENDIF.

ENDFORM.                    "init&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;MODULE user_command_0600 INPUT.

  IF NOT r_nsize IS INITIAL AND NOT r_normes IS INITIAL AND sy-ucomm EQ 'NO'.
    gv_paiflag = 'NO'.
  ENDIF.

  IF NOT r_slim IS INITIAL AND NOT r_slimes IS INITIAL AND sy-ucomm EQ 'SL'.
    gv_paiflag = 'SL'.
  ENDIF.

  IF NOT r_stocky IS INITIAL AND NOT r_stomes IS INITIAL AND sy-ucomm EQ 'ST'.
    gv_paiflag = 'ST'.
  ENDIF.
  FREE: ref_alv, ref_container.

ENDMODULE.                 " USER_COMMAND_0600  INPUT&lt;/CODE&gt;&lt;/PRE&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;PRE&gt;&lt;CODE&gt;FORM alv_size .

  CHECK ref_alv IS INITIAL.

  CREATE OBJECT ref_container
    EXPORTING
      container_name = 'ALV'.

  gv_layout-no_toolbar = 'X'.

  CLEAR: gs_fcat, gs_zpd.

  READ TABLE lt_sgroup INTO ls_sgr INDEX 1.

  gs_fcat-fieldname = 'ORG_SIGN'.
  gs_fcat-coltext = ''.
  gs_fcat-outputlen = 2.
  APPEND gs_fcat TO gt_fcat.
  CLEAR gs_fcat.

  gs_fcat-fieldname = 'DESCRIPTION'.
  gs_fcat-coltext =   ls_sgr-sizegroup_name.
  gs_fcat-outputlen = 30.
  APPEND gs_fcat TO gt_fcat.
  CLEAR gs_fcat.

  SORT r_nsize BY low.

  DELETE ADJACENT DUPLICATES FROM r_nsize.

  LOOP AT r_nsize.
    CONDENSE r_nsize-low NO-GAPS.
    gs_fcat-fieldname =  r_nsize-low.
    gs_fcat-coltext   =  r_nsize-low.
    gs_fcat-outputlen = 5.
    APPEND gs_fcat TO gt_fcat.
  ENDLOOP.

  CLEAR gs_fcat.

  LOOP AT gt_fcat INTO gs_fcat WHERE  fieldname NE refer.
    gs_fcat-edit = 'X'.
    MODIFY gt_fcat FROM gs_fcat TRANSPORTING edit.
  ENDLOOP.

  CLEAR gs_fcat.

  LOOP AT gt_fcat INTO gs_fcat WHERE  fieldname EQ 'DESCRIPTION'.
    gs_fcat-edit = ' '.
    MODIFY gt_fcat FROM gs_fcat TRANSPORTING edit.
  ENDLOOP.

  CLEAR gs_fcat.

  LOOP AT gt_fcat INTO gs_fcat WHERE  fieldname EQ 'ORG_SIGN'.
    gs_fcat-edit = ' '.
    MODIFY gt_fcat FROM gs_fcat TRANSPORTING edit.
  ENDLOOP.


  FIELD-SYMBOLS: &amp;lt;lt_ss&amp;gt; TYPE table,
  &amp;lt;test&amp;gt; TYPE ANY.

  CALL METHOD cl_alv_table_create=&amp;gt;create_dynamic_table
    EXPORTING
      it_fieldcatalog = gt_fcat
    IMPORTING
      ep_table        = new_table.

  ASSIGN new_table-&amp;gt;* TO &amp;lt;outtab&amp;gt;.

  CREATE DATA new_line LIKE LINE OF &amp;lt;outtab&amp;gt;.
  ASSIGN new_line-&amp;gt;* TO &amp;lt;l_line&amp;gt; .

  SORT r_normes BY low.
  DELETE ADJACENT DUPLICATES FROM r_normes.

  LOOP AT r_normes.
    ASSIGN COMPONENT 2 OF STRUCTURE &amp;lt;l_line&amp;gt; TO &amp;lt;test&amp;gt;.
    &amp;lt;test&amp;gt; = r_normes-low.
    APPEND &amp;lt;l_line&amp;gt; TO &amp;lt;outtab&amp;gt;.
  ENDLOOP.


  CLEAR gs_cpmpon.
  REFRESH: gt_compon, gv_comp
  .

  PERFORM read_comp
    TABLES gv_comp
     USING
        'zpd'
        &amp;lt;l_line&amp;gt;.
  CREATE OBJECT ref_alv
    EXPORTING
      i_parent      = ref_container
      i_appl_events = 'X'
    EXCEPTIONS
      OTHERS        = 5.

  CALL METHOD ref_alv-&amp;gt;register_edit_event
    EXPORTING
      i_event_id = cl_gui_alv_grid=&amp;gt;mc_evt_enter.


  CREATE OBJECT ref_alv_events.
  SET HANDLER ref_alv_events-&amp;gt;handle_data_changed FOR ref_alv.


* &amp;lt;outtab2&amp;gt;
* &amp;lt;outtab3&amp;gt;
* might be also dislayed

  CALL METHOD ref_alv-&amp;gt;set_table_for_first_display
    EXPORTING
      is_layout            = gv_layout
      it_toolbar_excluding = it_toolbar_excluding  " TYPE UI_FUNCTIONS
    CHANGING
      it_fieldcatalog      = gt_fcat
      it_outtab            = &amp;lt;outtab&amp;gt;
    EXCEPTIONS
      OTHERS               = 4.

  CALL METHOD cl_gui_cfw=&amp;gt;flush.

ENDFORM.                    " ALV_SIZE&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Mar 2009 15:39:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/three-different-output-tables/m-p/5267617#M1216228</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-17T15:39:52Z</dc:date>
    </item>
    <item>
      <title>Re: three different output tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/three-different-output-tables/m-p/5267618#M1216229</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;MODULE alvgrid_out OUTPUT.
  If &amp;lt;Set condition&amp;gt;.            " This codes has to be executed only fiest time program executed say all flags are initial
    CREATE OBJECT ref_container
    EXPORTING
      container_name = 'ALV'.

   CREATE OBJECT ref_alv
    EXPORTING
      i_parent      = ref_container
      i_appl_events = 'X'
    EXCEPTIONS
      OTHERS        = 5.

  endif.
  PERFORM init.
ENDMODULE.   

FORM alv_size .
 
  CHECK ref_alv IS INITIAL.


Data:t_stbl type lvc_s_stbl.
 
 
     if &amp;lt;COndition&amp;gt;.                                 " Should not ne excuted for the first time.
 
     call method t_grid-&amp;gt;refresh_table_display
      exporting
        is_stable      = t_stbl
*      i_soft_refresh =
*    EXCEPTIONS
*      finished       = 1
*      others         = 2
            .
    if sy-subrc  0.
*   MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*              WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    endif.
  ENDIF.
 
  gv_layout-no_toolbar = 'X'.
 
  CLEAR: gs_fcat, gs_zpd.
 
  READ TABLE lt_sgroup INTO ls_sgr INDEX 1.
 
  gs_fcat-fieldname = 'ORG_SIGN'.
  gs_fcat-coltext = ''.
  gs_fcat-outputlen = 2.
  APPEND gs_fcat TO gt_fcat.
  CLEAR gs_fcat.
 
  gs_fcat-fieldname = 'DESCRIPTION'.
  gs_fcat-coltext =   ls_sgr-sizegroup_name.
  gs_fcat-outputlen = 30.
  APPEND gs_fcat TO gt_fcat.
  CLEAR gs_fcat.
 
  SORT r_nsize BY low.
 
  DELETE ADJACENT DUPLICATES FROM r_nsize.
 
  LOOP AT r_nsize.
    CONDENSE r_nsize-low NO-GAPS.
    gs_fcat-fieldname =  r_nsize-low.
    gs_fcat-coltext   =  r_nsize-low.
    gs_fcat-outputlen = 5.
    APPEND gs_fcat TO gt_fcat.
  ENDLOOP.
 
  CLEAR gs_fcat.
 
  LOOP AT gt_fcat INTO gs_fcat WHERE  fieldname NE refer.
    gs_fcat-edit = 'X'.
    MODIFY gt_fcat FROM gs_fcat TRANSPORTING edit.
  ENDLOOP.
 
  CLEAR gs_fcat.
 
  LOOP AT gt_fcat INTO gs_fcat WHERE  fieldname EQ 'DESCRIPTION'.
    gs_fcat-edit = ' '.
    MODIFY gt_fcat FROM gs_fcat TRANSPORTING edit.
  ENDLOOP.
 
  CLEAR gs_fcat.
 
  LOOP AT gt_fcat INTO gs_fcat WHERE  fieldname EQ 'ORG_SIGN'.
    gs_fcat-edit = ' '.
    MODIFY gt_fcat FROM gs_fcat TRANSPORTING edit.
  ENDLOOP.
 
 
  FIELD-SYMBOLS: &amp;lt;lt_ss&amp;gt; TYPE table,
  &amp;lt;test&amp;gt; TYPE ANY.
 
  CALL METHOD cl_alv_table_create=&amp;gt;create_dynamic_table
    EXPORTING
      it_fieldcatalog = gt_fcat
    IMPORTING
      ep_table        = new_table.
 
  ASSIGN new_table-&amp;gt;* TO &amp;lt;outtab&amp;gt;.
 
  CREATE DATA new_line LIKE LINE OF &amp;lt;outtab&amp;gt;.
  ASSIGN new_line-&amp;gt;* TO &amp;lt;l_line&amp;gt; .
 
  SORT r_normes BY low.
  DELETE ADJACENT DUPLICATES FROM r_normes.
 
  LOOP AT r_normes.
    ASSIGN COMPONENT 2 OF STRUCTURE &amp;lt;l_line&amp;gt; TO &amp;lt;test&amp;gt;.
    &amp;lt;test&amp;gt; = r_normes-low.
    APPEND &amp;lt;l_line&amp;gt; TO &amp;lt;outtab&amp;gt;.
  ENDLOOP.
 
 
  CLEAR gs_cpmpon.
  REFRESH: gt_compon, gv_comp
  .
 
  PERFORM read_comp
    TABLES gv_comp
     USING
        'zpd'
        &amp;lt;l_line&amp;gt;.

 
  CALL METHOD ref_alv-&amp;gt;register_edit_event
    EXPORTING
      i_event_id = cl_gui_alv_grid=&amp;gt;mc_evt_enter.
 
 
  CREATE OBJECT ref_alv_events.
  SET HANDLER ref_alv_events-&amp;gt;handle_data_changed FOR ref_alv.
 
*  CALL METHOD ref_alv-&amp;gt;refresh_table_display.
 
* &amp;lt;outtab2&amp;gt;
* &amp;lt;outtab3&amp;gt;
* might be also dislayed
 
  CALL METHOD ref_alv-&amp;gt;set_table_for_first_display
    EXPORTING
      is_layout            = gv_layout
      it_toolbar_excluding = it_toolbar_excluding  " TYPE UI_FUNCTIONS
    CHANGING
      it_fieldcatalog      = gt_fcat
      it_outtab            = &amp;lt;outtab&amp;gt;
    EXCEPTIONS
      OTHERS               = 4.
 
 * CALL METHOD cl_gui_cfw=&amp;gt;flush.
 
ENDFORM.                    " ALV_SIZE&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Gurpreet&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Mar 2009 15:55:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/three-different-output-tables/m-p/5267618#M1216229</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-17T15:55:32Z</dc:date>
    </item>
    <item>
      <title>Re: three different output tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/three-different-output-tables/m-p/5267619#M1216230</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Gurpreet Singh   &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;You are the best. I thank you very much many times.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is working&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;sas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Mar 2009 16:33:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/three-different-output-tables/m-p/5267619#M1216230</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-17T16:33:07Z</dc:date>
    </item>
  </channel>
</rss>

