<?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: Problem with SET_TABLE_FOR_FIRST_DISPLAY in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-set-table-for-first-display/m-p/6278942#M1387922</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE level="1"&gt;&lt;/BLOCKQUOTE&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;only difference between the systems is the name &lt;SPAN __jive_emoticon_name="wink"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and data as well !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is output_tab populated in live system ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 03 Nov 2009 12:14:51 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-11-03T12:14:51Z</dc:date>
    <item>
      <title>Problem with SET_TABLE_FOR_FIRST_DISPLAY</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-set-table-for-first-display/m-p/6278939#M1387919</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;I've got a problem I can't explain:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I call the class SET_TABLE_FOR_FIRST_DISPLAY to set my ALV.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;  CALL METHOD gs_container-o_grid-&amp;gt;set_table_for_first_display
    EXPORTING
      is_variant      = g_variant  " Übergabe wegen Speichern Layout
      i_save          = g_save     " Varianten-Speicher-Modi (User/Global/Beides)
      is_layout       = gt_layout  " Übergabe für Layout
    CHANGING
      it_fieldcatalog = gt_fieldcat
      it_outtab       = output_tab.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IN our development-system everything works perfect, but in the live-system, the ALV is empty. I debugged (live and development system), so I can say the variants are exactly the same...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What can be the problem? I don't understand what is going wrong here - the only difference between the systems is the name &lt;SPAN __jive_emoticon_name="wink"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Nov 2009 12:07:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-set-table-for-first-display/m-p/6278939#M1387919</guid>
      <dc:creator>michael_fallenbchel</dc:creator>
      <dc:date>2009-11-03T12:07:01Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with SET_TABLE_FOR_FIRST_DISPLAY</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-set-table-for-first-display/m-p/6278940#M1387920</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;where are u calling the screen for display, before or after calling this method?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Nov 2009 12:12:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-set-table-for-first-display/m-p/6278940#M1387920</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-03T12:12:26Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with SET_TABLE_FOR_FIRST_DISPLAY</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-set-table-for-first-display/m-p/6278941#M1387921</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;Can you check if the screen in your live system has the container in SE51.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It could be some screen problem in live system.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also can you check if output_Tab has data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Subhashini&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Nov 2009 12:13:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-set-table-for-first-display/m-p/6278941#M1387921</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-03T12:13:05Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with SET_TABLE_FOR_FIRST_DISPLAY</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-set-table-for-first-display/m-p/6278942#M1387922</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE level="1"&gt;&lt;/BLOCKQUOTE&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;only difference between the systems is the name &lt;SPAN __jive_emoticon_name="wink"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and data as well !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is output_tab populated in live system ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Nov 2009 12:14:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-set-table-for-first-display/m-p/6278942#M1387922</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-03T12:14:51Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with SET_TABLE_FOR_FIRST_DISPLAY</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-set-table-for-first-display/m-p/6278943#M1387923</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;@ vijetasap&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;logic is this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;PROCESS BEFORE OUTPUT.
  MODULE status_1000.
  MODULE init_1000.
  MODULE create_alv_1000.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First, the status, then filling the table and at last I create the ALV - so, the calling of the method is the last step before output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;@ Subhashini K&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The dynpro exists in SE51&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;@ Subhashini K &amp;amp; Subhashini K&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All 5 variants (g_variant, g_save, g_layout, gt_fieldcat &amp;amp; output_tab) have exatctly the same data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Other ideas?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Nov 2009 12:19:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-set-table-for-first-display/m-p/6278943#M1387923</guid>
      <dc:creator>michael_fallenbchel</dc:creator>
      <dc:date>2009-11-03T12:19:54Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with SET_TABLE_FOR_FIRST_DISPLAY</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-set-table-for-first-display/m-p/6278944#M1387924</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;You can debug inside the method SET_TABLE_FOR_DISPLAY in both development and production system.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Some condition or some difference will be there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That may give some idea how to proceed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Subhashini&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Nov 2009 12:27:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-set-table-for-first-display/m-p/6278944#M1387924</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-03T12:27:00Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with SET_TABLE_FOR_FIRST_DISPLAY</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-set-table-for-first-display/m-p/6278945#M1387925</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;dint get why you are using "gs_container-o_grid", i mean shouldnt it be only "o_grid" and then call the method?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i think you are using the container object as a table which has o_grid as a field?? is it right. so basically you are generating object dynamically. am i right??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ags.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Nov 2009 12:55:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-set-table-for-first-display/m-p/6278945#M1387925</guid>
      <dc:creator>agnihotro_sinha2</dc:creator>
      <dc:date>2009-11-03T12:55:47Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with SET_TABLE_FOR_FIRST_DISPLAY</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-set-table-for-first-display/m-p/6278946#M1387926</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I transported the whole package from the development in the productive system onve more.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I know it MUST be the same in both system (in the coding).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nothing happened - I also checked in our integration-system /(between productive and development) - here everything works perfect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I asked our baasis-administrator if he had changed something since last thuersday (this day everything works fine).&lt;/P&gt;&lt;P&gt;The only the he changed was an reboot of the system.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can this be a problem?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Nov 2009 12:59:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-set-table-for-first-display/m-p/6278946#M1387926</guid>
      <dc:creator>michael_fallenbchel</dc:creator>
      <dc:date>2009-11-03T12:59:25Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with SET_TABLE_FOR_FIRST_DISPLAY</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-set-table-for-first-display/m-p/6278947#M1387927</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;@ ags&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You're absolutly right, I'm doing everything dynamically. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I made a function which calles the method...I know this works fine (I use this function in different programs - but since last thursday something happened I absolutly can't understand - because I don't change anything there)...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Nov 2009 13:07:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-set-table-for-first-display/m-p/6278947#M1387927</guid>
      <dc:creator>michael_fallenbchel</dc:creator>
      <dc:date>2009-11-03T13:07:02Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with SET_TABLE_FOR_FIRST_DISPLAY</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-set-table-for-first-display/m-p/6278948#M1387928</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;can you just pass the PARAMETER  "i_consistency_check" to this method and check the return value in debugging mode??&lt;/P&gt;&lt;P&gt;I think it should tell you if something is really wrong technically.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;also did you goto the screen and check all the prperties of the screen like 'vertical' and ' horizontal' resizing??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ags.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Nov 2009 13:08:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-set-table-for-first-display/m-p/6278948#M1387928</guid>
      <dc:creator>agnihotro_sinha2</dc:creator>
      <dc:date>2009-11-03T13:08:25Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with SET_TABLE_FOR_FIRST_DISPLAY</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-set-table-for-first-display/m-p/6278949#M1387929</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I know this is irritating to ask you to check your code since its working on one system and not on another, but since you are doing it dynamically can you just let me know few things:&lt;/P&gt;&lt;P&gt;1: are you checking whether the object is initial or not??&lt;/P&gt;&lt;P&gt;2: inside the METHOD call , just check if the 'ME' object is refering to the same 'O_GRID'&lt;/P&gt;&lt;P&gt;3: could you plz paste a larger snippet of your code for better understanding?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ags.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Nov 2009 13:13:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-set-table-for-first-display/m-p/6278949#M1387929</guid>
      <dc:creator>agnihotro_sinha2</dc:creator>
      <dc:date>2009-11-03T13:13:19Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with SET_TABLE_FOR_FIRST_DISPLAY</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-set-table-for-first-display/m-p/6278950#M1387930</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ags,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will help you to understand:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. sure, the object is not initial&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. I will check later&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. I will show you some coding:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;calling the function:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;  CALL FUNCTION 'ZZ_CREATE_ALV'
  EXPORTING
   container_name       = 'ALV'
    tab_name             = 'GT_ZLVS'
*     ALV_ID               = 1
  CHANGING
    output_tab           = gt_zlvs.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;container name is the name of the container on the dynpro&lt;/P&gt;&lt;P&gt;tab_name is the name of the tab (as string) - need it for dynamically searching in customizing-tabs for settings like which buttons to show, setting the fieldcat etc.&lt;/P&gt;&lt;P&gt;alv_id is the id of the ALV - need htis if I use more than one ALV on one dynpro&lt;/P&gt;&lt;P&gt;output_tab is the tab which I want to show in the ALV&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;function itself:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;FUNCTION zz_create_alv.
*"----------------------------------------------------------------------
*"*"Lokale Schnittstelle:
*"  IMPORTING
*"     REFERENCE(CONTAINER_NAME) TYPE  C DEFAULT 'ALV'
*"     REFERENCE(TAB_NAME) TYPE  UDTAB
*"     REFERENCE(ALV_ID) TYPE  INTEGER DEFAULT 1
*"  CHANGING
*"     REFERENCE(OUTPUT_TAB) TYPE  ANY TABLE
*"----------------------------------------------------------------------

  IF alv_id IS INITIAL.
    g_alv_id = 1.
  ELSE.
    g_alv_id = alv_id.
  ENDIF.
  gt_tabname = tab_name.

*  CREATE DATA gref LIKE output_tab.
*  ASSIGN gref-&amp;gt;* TO &amp;lt;itab&amp;gt;.
*
*  LOOP AT output_tab ASSIGNING &amp;lt;wa&amp;gt;.
*    APPEND &amp;lt;wa&amp;gt; TO &amp;lt;itab&amp;gt;.
*  ENDLOOP.

* Layout lesen
  PERFORM get_layout.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;get_layout -&amp;gt; if the ALV should be in edit mode, user should save layouts...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;  READ TABLE gt_container INTO gs_container WITH KEY alv_id = g_alv_id.
  IF sy-subrc = 0.
    IF gs_container-o_container IS INITIAL.
      CREATE OBJECT gs_container-o_container
        EXPORTING
          container_name = container_name.
      CREATE OBJECT gs_container-o_grid
        EXPORTING
          i_parent = gs_container-o_container.
      MODIFY TABLE gt_container FROM gs_container.
    ENDIF.
* ============================================
    CREATE DATA gs_container-itab LIKE output_tab.
    ASSIGN gs_container-itab-&amp;gt;* TO &amp;lt;itab&amp;gt;.

    LOOP AT output_tab ASSIGNING &amp;lt;wa&amp;gt;.
      APPEND &amp;lt;wa&amp;gt; TO &amp;lt;itab&amp;gt;.
    ENDLOOP.

    CREATE OBJECT gs_container-ref_alv_events.
* Handler für Reaktion auf Änderungen, nur im Editmode aktiv
    IF gt_layout-edit_mode = 'X'.
*    SET HANDLER ref_alv_events-&amp;gt;handle_data_changed FOR grid.
      SET HANDLER gs_container-ref_alv_events-&amp;gt;handle_data_changed FOR gs_container-o_grid.
    ENDIF.
* Toolbar
*  SET HANDLER ref_alv_events-&amp;gt;toolbar FOR grid.
    SET HANDLER gs_container-ref_alv_events-&amp;gt;toolbar FOR gs_container-o_grid.

    MODIFY gt_container INDEX sy-tabix FROM gs_container.
* ============================================
  ELSE.
    CLEAR gs_container.
* ============================================
    CREATE DATA gs_container-itab LIKE output_tab.
    ASSIGN gs_container-itab-&amp;gt;* TO &amp;lt;itab&amp;gt;.

    LOOP AT output_tab ASSIGNING &amp;lt;wa&amp;gt;.
      APPEND &amp;lt;wa&amp;gt; TO &amp;lt;itab&amp;gt;.
    ENDLOOP.
* ============================================

    CREATE OBJECT gs_container-o_container
      EXPORTING
        container_name = container_name.
    CREATE OBJECT gs_container-o_grid
      EXPORTING
        i_parent = gs_container-o_container.
    gs_container-alv_id = g_alv_id.

    CREATE OBJECT gs_container-ref_alv_events.
* Handler für Reaktion auf Änderungen, nur im Editmode aktiv
    IF gt_layout-edit_mode = 'X'.
*    SET HANDLER ref_alv_events-&amp;gt;handle_data_changed FOR grid.
      SET HANDLER gs_container-ref_alv_events-&amp;gt;handle_data_changed FOR gs_container-o_grid.
    ENDIF.
* Toolbar
*  SET HANDLER ref_alv_events-&amp;gt;toolbar FOR grid.
    SET HANDLER gs_container-ref_alv_events-&amp;gt;toolbar FOR gs_container-o_grid.

    APPEND gs_container TO gt_container.
  ENDIF.

* Felder der internen Tabelle lesen
  PERFORM get_fieldcat USING output_tab
                    CHANGING gt_fields.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;get_fieldcat -&amp;gt; reading the fileds of the table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;* Feldkatalog für ALV schreiben
  PERFORM set_fieldcat.

* set the fieldcat

&lt;/CODE&gt;&lt;/PRE&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Edit-Event extra registrieren, nur wenn im Edit-Modus&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  IF gt_layout-edit_mode = 'X'.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   CALL METHOD grid-&amp;gt;register_edit_event&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    CALL METHOD gs_container-o_grid-&amp;gt;register_edit_event&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        i_event_id = cl_gui_alv_grid=&amp;gt;mc_evt_enter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Edit-Mode aktiv setzen&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   CALL METHOD grid-&amp;gt;set_ready_for_input&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    CALL METHOD gs_container-o_grid-&amp;gt;set_ready_for_input&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        i_ready_for_input = 1.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  g_variant-report = sy-repid.&lt;/P&gt;&lt;P&gt;  g_variant-username = sy-uname.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;ALV ausgeben&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; CALL METHOD grid-&amp;gt;set_table_for_first_display&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  CALL METHOD gs_container-o_grid-&amp;gt;set_table_for_first_display&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      is_variant      = g_variant  " Übergabe wegen Speichern Layout&lt;/P&gt;&lt;P&gt;      i_save          = g_save     " Varianten-Speicher-Modi (User/Global/Beides)&lt;/P&gt;&lt;P&gt;      is_layout       = gt_layout  " Übergabe für Layout&lt;/P&gt;&lt;P&gt;    CHANGING&lt;/P&gt;&lt;P&gt;      it_fieldcatalog = gt_fieldcat&lt;/P&gt;&lt;P&gt;      it_outtab       = output_tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="4" type="ul"&gt;&lt;P&gt;Fokus auf das Grid setzen&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; CALL METHOD cl_gui_alv_grid=&amp;gt;set_focus&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   EXPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     control           = grid&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   EXCEPTIONS&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     cntl_error        = 1&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     cntl_system_error = 2&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     OTHERS            = 3.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="4" type="ul"&gt;&lt;P&gt;Flush&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; CALL METHOD cl_gui_cfw=&amp;gt;flush.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF g_doubleclick IS NOT INITIAL.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;set event handler&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    SET HANDLER lcl_events=&amp;gt;on_double_click FOR gs_container-o_grid.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFUNCTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That's it - hope this will help...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Nov 2009 13:36:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-set-table-for-first-display/m-p/6278950#M1387930</guid>
      <dc:creator>michael_fallenbchel</dc:creator>
      <dc:date>2009-11-03T13:36:50Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with SET_TABLE_FOR_FIRST_DISPLAY</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-set-table-for-first-display/m-p/6278951#M1387931</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;okie........&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;everything seems to be done very properly.. &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;just a doubt whether you are using the 'refresh_table_display' method call.. since it seems you have commented 'FLUSH' call...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;other than that presently i hv very less clue on the issue&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ags.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Nov 2009 13:53:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-set-table-for-first-display/m-p/6278951#M1387931</guid>
      <dc:creator>agnihotro_sinha2</dc:creator>
      <dc:date>2009-11-03T13:53:40Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with SET_TABLE_FOR_FIRST_DISPLAY</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-set-table-for-first-display/m-p/6278952#M1387932</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, I don't knwo why it's shown so "supid"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OK, I don't use the flush - at the beginning I thought I have to use it - but now it's not in use anymore...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you can see it's nothing other than making the container etc in the program itself.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm just wondering - is there a system-parameter than can be setted after rebooting the system?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Nov 2009 13:57:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-set-table-for-first-display/m-p/6278952#M1387932</guid>
      <dc:creator>michael_fallenbchel</dc:creator>
      <dc:date>2009-11-03T13:57:04Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with SET_TABLE_FOR_FIRST_DISPLAY</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-set-table-for-first-display/m-p/6278953#M1387933</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you do the [ALV consistency check|http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/15961] &lt;B&gt;[original link is broken]&lt;/B&gt; &lt;B&gt;[original link is broken]&lt;/B&gt; &lt;B&gt;[original link is broken]&lt;/B&gt;; ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And please have a look at the further markup possibilities on the right side of the screen if you want to post code....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Nov 2009 14:44:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-set-table-for-first-display/m-p/6278953#M1387933</guid>
      <dc:creator>rainer_hbenthal</dc:creator>
      <dc:date>2009-11-03T14:44:41Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with SET_TABLE_FOR_FIRST_DISPLAY</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-set-table-for-first-display/m-p/6278954#M1387934</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In addition to Rainer;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN __jive_macro_name="thread" id="1319756"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Nov 2009 14:49:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-set-table-for-first-display/m-p/6278954#M1387934</guid>
      <dc:creator>Sm1tje</dc:creator>
      <dc:date>2009-11-03T14:49:07Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with SET_TABLE_FOR_FIRST_DISPLAY</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-set-table-for-first-display/m-p/6278955#M1387935</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried this check, with the follwing messages:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Field-catalog - Correct&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Layout:&lt;/P&gt;&lt;P&gt;The field CNTR_DDID  does not exist in the output table&lt;/P&gt;&lt;P&gt;The field COL_DDID  does not exist in the output table&lt;/P&gt;&lt;P&gt;The field FIELDNAME  does not exist in the output table&lt;/P&gt;&lt;P&gt;The field GRID_DDID  does not exist in the output table&lt;/P&gt;&lt;P&gt;The field ROW_DDID  does not exist in the output table&lt;/P&gt;&lt;P&gt;Field LANGUAGE has a wrong value LANG in FCAT-DATATYPE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sort Sequence, Filter, Field Groups and Output Table:&lt;/P&gt;&lt;P&gt;Output table contains no entries (?)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Variant&lt;/P&gt;&lt;P&gt;No inconsistencies were found&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And sure, I tried to work with the markup possibilities - but something went wrong...sorry for that&lt;/P&gt;&lt;P&gt;@ Micky Oestreich - OK, that would be the problem &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Michael Fallenbüchel on Nov 3, 2009 3:51 PM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Nov 2009 14:50:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-set-table-for-first-display/m-p/6278955#M1387935</guid>
      <dc:creator>michael_fallenbchel</dc:creator>
      <dc:date>2009-11-03T14:50:41Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with SET_TABLE_FOR_FIRST_DISPLAY</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-set-table-for-first-display/m-p/6278956#M1387936</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try editing the post with the code snippet...place hard return after { } &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;


Data: foo type i.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nevermind....I see the char limit&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Ryan Quackenboss on Nov 3, 2009 10:28 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Nov 2009 15:28:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-set-table-for-first-display/m-p/6278956#M1387936</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-03T15:28:24Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with SET_TABLE_FOR_FIRST_DISPLAY</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-set-table-for-first-display/m-p/6278957#M1387937</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you have any layouts created in your PRD system, perhaps marked as the "default layout" that has somehow become invalid?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just something more to check...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Nov 2009 15:51:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-set-table-for-first-display/m-p/6278957#M1387937</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-03T15:51:46Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with SET_TABLE_FOR_FIRST_DISPLAY</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-set-table-for-first-display/m-p/6278958#M1387938</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Michael,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please delete the screen once and recreate once again.&lt;/P&gt;&lt;P&gt;and also make sure that you use REFRESH_TABLE_DISPLAY~&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After REFRESH you can also use  pointer-&amp;gt;CHECK_CHANGED_DATA&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Dinesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Nov 2009 16:22:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-set-table-for-first-display/m-p/6278958#M1387938</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-03T16:22:44Z</dc:date>
    </item>
  </channel>
</rss>

