<?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 in GRID display in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-grid-display/m-p/5466346#M1252080</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Write Refresh display method in PBO&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Pavan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 29 Apr 2009 13:44:39 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-04-29T13:44:39Z</dc:date>
    <item>
      <title>Problem in GRID display</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-grid-display/m-p/5466339#M1252073</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I have a screen where i have to display data in a grid(Using set_table_for_first_display).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a button 'Display' on the application toolbar and two screen input fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Assume at the first instance&lt;/P&gt;&lt;P&gt;user fills the input fields as below and presses display&lt;/P&gt;&lt;P&gt;Selection screen option 1: ABC&lt;/P&gt;&lt;P&gt;Selection screen option 1:  123&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then the GRID is displaying the data correctly for the table (Note my table is dynamic).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now if the user change the input selection as below&lt;/P&gt;&lt;P&gt;Selection screen option 1: XYZ&lt;/P&gt;&lt;P&gt;Selection screen option 1: 444&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then i need to set the grid again with new values(Table will also change if the input option is changed)&lt;/P&gt;&lt;P&gt;This should happen on the same screen 100.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to achive this everytime when the sy-ucomm is display i am freeing the object and creating new istance.&lt;/P&gt;&lt;P&gt;The data getting passed to set_table_for_first_display is correct but the display is showing me the old data&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How i can set the display again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards/Ajay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Apr 2009 12:51:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-grid-display/m-p/5466339#M1252073</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-29T12:51:37Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in GRID display</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-grid-display/m-p/5466340#M1252074</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;are you calling method REFRESH_TABLE_DISPLAY...??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Apr 2009 12:58:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-grid-display/m-p/5466340#M1252074</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-29T12:58:03Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in GRID display</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-grid-display/m-p/5466341#M1252075</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;use &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : lif_alv type ref to cl_gui_alv_grid.&lt;/P&gt;&lt;P&gt; call method lif_alv-&amp;gt;refresh_table_display.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Apr 2009 13:01:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-grid-display/m-p/5466341#M1252075</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-29T13:01:34Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in GRID display</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-grid-display/m-p/5466342#M1252076</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;No need to create a new instance every time.&lt;/P&gt;&lt;P&gt;Check if the instance is already created then do refresh_table_display.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Keerthi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Apr 2009 13:03:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-grid-display/m-p/5466342#M1252076</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-29T13:03:30Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in GRID display</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-grid-display/m-p/5466343#M1252077</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Praveen,&lt;/P&gt;&lt;P&gt;   I understand from your description that when user changes the input you are not destructing the instance of grid but only changing the data. &lt;STRONG&gt;This however will not change the screen with gird.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;U&gt;The correct practice or rather one of the good practices is :&lt;/U&gt;&lt;/P&gt;&lt;P&gt;  Say your grid is in screen 8000.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In PBO, say  module INIT_DISPLAY takes care of Grid Display.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;MODULE init_display.
 IF cc_grid IS INITIAL.
    CREATE OBJECT cc_grid
        EXPORTING 
          parent = 'CC_GRID'.
  ENDIF.

 IF grid IS INITIAL.
   CREATE OBJECT grid 
        EXPORTING
          parent = cc_grid.
   
"Set Table for First Display.

 ELSE.
   if gv_fcat_changed is not initial.
      " Call method SET_FRONTEND_FIELDCATALOG
   endif.
   " call method REFRESH_TABLE_DISPLAY.
 ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please note that the flag gv_fcat_changed is to be set when user changes results in change in Field catalog(as u said ur screen is dynamic). If so then only when you call the method the new fieldcatalog considered. If any sort / filter also has changed then you need to set that also EXPLICTLY as Field catalog is done above.&lt;/P&gt;&lt;P&gt;Then you need to refresh table display.&lt;/P&gt;&lt;P&gt;IF fieldcatalog/sort/filter has changed, you simply call REFRESH_TABLE_DISPLAY method..else.you can additionally add parameter I_SOFT_REFRESH = 'X'..this will reduce fliker of screen if you are on same screen..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please revert if any doubts...I am not pasting any sample code as you can easily implement this and learn alv display concepts....still any issues are there, you reply..i will put sample code.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Apr 2009 13:09:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-grid-display/m-p/5466343#M1252077</guid>
      <dc:creator>KN-Nampoothiry</dc:creator>
      <dc:date>2009-04-29T13:09:55Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in GRID display</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-grid-display/m-p/5466344#M1252078</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Praveen,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;No need to create instance every time, Create instance only when object is initial. Use this method REFRESH_TABLE_DISPLAY for refreshing the display&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Pavan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Apr 2009 13:11:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-grid-display/m-p/5466344#M1252078</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-29T13:11:05Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in GRID display</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-grid-display/m-p/5466345#M1252079</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have tried doing it the way you have asked me ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In PAI i am checking if the object is already created and sy-ucomm is display.&lt;/P&gt;&lt;P&gt;if yes then i am doing below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if not gr_alvgrid is initial.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL METHOD gr_alvgrid-&amp;gt;set_frontend_fieldcatalog&lt;/P&gt;&lt;P&gt;expORTING&lt;/P&gt;&lt;P&gt;it_fieldcatalog = p_field_catalog .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   CALL METHOD gr_alvgrid-&amp;gt;refresh_table_display&lt;/P&gt;&lt;P&gt;     EXPORTING&lt;/P&gt;&lt;P&gt;       i_soft_refresh = ' '&lt;/P&gt;&lt;P&gt;     EXCEPTIONS&lt;/P&gt;&lt;P&gt;       finished       = 1&lt;/P&gt;&lt;P&gt;       OTHERS         = 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Apr 2009 13:38:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-grid-display/m-p/5466345#M1252079</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-29T13:38:23Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in GRID display</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-grid-display/m-p/5466346#M1252080</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Write Refresh display method in PBO&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Pavan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Apr 2009 13:44:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-grid-display/m-p/5466346#M1252080</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-29T13:44:39Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in GRID display</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-grid-display/m-p/5466347#M1252081</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Praveen,&lt;/P&gt;&lt;P&gt;  As said above, these are meant to be written in PBO only. These are screen related manipulations which are used before displaying screen. I've never tried in PAI...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;U&gt;The Best Example could be:&lt;/U&gt;&lt;/P&gt;&lt;P&gt;If you want to disable a field you write the code for looping on screen..now as you know this screen is a run-time structure by system which has all the elements on screen with their properties which is used before GUI writes the screen for you......&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;likewise&lt;/STRONG&gt; REFRESH_TABLE_DISPLAY is for the display. ...PAI is meant for data level changes...as in ur variables and all....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am away from system....i will get some code and paste ASAP..sorry ..meanwhile you can try this code in PBO. ....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Apr 2009 16:02:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-grid-display/m-p/5466347#M1252081</guid>
      <dc:creator>KN-Nampoothiry</dc:creator>
      <dc:date>2009-04-29T16:02:24Z</dc:date>
    </item>
  </channel>
</rss>

