<?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: ALV class include? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-class-include/m-p/851565#M46294</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;this is my part of the code.&lt;/P&gt;&lt;P&gt;   CREATE OBJECT o_event_receiver.&lt;/P&gt;&lt;P&gt;   SET HANDLER o_event_receiver-&amp;gt;handle_user_command FOR GRID_REPORT.&lt;/P&gt;&lt;P&gt;   SET HANDLER o_event_receiver-&amp;gt;handle_toolbar FOR GRID_REPORT. &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  CALL METHOD GRID_REPORT-&amp;gt;SET_TABLE_FOR_FIRST_DISPLAY&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;              it_toolbar_excluding = lt_toolbar_excluding&lt;/P&gt;&lt;P&gt;              is_layout            = ps_layout&lt;/P&gt;&lt;P&gt;    CHANGING  IT_FIELDCATALOG  = FIELDCATALOG&lt;/P&gt;&lt;P&gt;              IT_OUTTAB        = SDYN_ITAB&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;     invalid_parameter_combination = 1&lt;/P&gt;&lt;P&gt;     program_error                 = 2&lt;/P&gt;&lt;P&gt;     too_many_lines                = 3&lt;/P&gt;&lt;P&gt;     others                        = 4.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;   CALL METHOD GRID_REPORT-&amp;gt;set_toolbar_interactive.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how can i give condition here to display refresh button only at timing of click at push button 2.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 26 Jan 2005 06:12:45 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-01-26T06:12:45Z</dc:date>
    <item>
      <title>ALV class include?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-class-include/m-p/851555#M46284</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I wrote alv program as below.&lt;/P&gt;&lt;P&gt;i dont know where to put this below CLASS in dynpro&lt;/P&gt;&lt;P&gt;module. either PBO or PAI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when i keep this in ordinary report it works fine.&lt;/P&gt;&lt;P&gt;but when i use in dynpro screen its not working.&lt;/P&gt;&lt;P&gt;could you pls suggest.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLASS lcl_event_receiver DEFINITION DEFERRED.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA:&lt;/P&gt;&lt;P&gt;  go_grid TYPE REF TO cl_gui_alv_grid,&lt;/P&gt;&lt;P&gt;  go_custom_container TYPE REF TO cl_gui_custom_container,&lt;/P&gt;&lt;P&gt;  o_event_receiver TYPE REF TO lcl_event_receiver.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLASS lcl_event_receiver DEFINITION.&lt;/P&gt;&lt;P&gt;  PUBLIC SECTION.&lt;/P&gt;&lt;P&gt;    METHODS:&lt;/P&gt;&lt;P&gt;     handle_toolbar FOR EVENT toolbar OF cl_gui_alv_grid&lt;/P&gt;&lt;P&gt;       IMPORTING&lt;/P&gt;&lt;P&gt;       e_object e_interactive,&lt;/P&gt;&lt;P&gt;       handle_user_command FOR EVENT user_command OF cl_gui_alv_grid&lt;/P&gt;&lt;P&gt;       IMPORTING e_ucomm.&lt;/P&gt;&lt;P&gt;ENDCLASS.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      CLASS lcl_event_receiver IMPLEMENTATION&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLASS lcl_event_receiver IMPLEMENTATION.&lt;/P&gt;&lt;P&gt;  METHOD handle_toolbar.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; Event handler method for event toolbar.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    CONSTANTS:&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; Constants for button type&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      c_button_normal           TYPE i VALUE 0,&lt;/P&gt;&lt;P&gt;      c_menu_and_default_button TYPE i VALUE 1,&lt;/P&gt;&lt;P&gt;     c_menu                    TYPE i VALUE 2,&lt;/P&gt;&lt;P&gt;      c_separator               TYPE i VALUE 3,&lt;/P&gt;&lt;P&gt;      c_radio_button            TYPE i VALUE 4,&lt;/P&gt;&lt;P&gt;      c_checkbox                TYPE i VALUE 5,&lt;/P&gt;&lt;P&gt;      c_menu_entry              TYPE i VALUE 6.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    DATA:&lt;/P&gt;&lt;P&gt;        ls_toolbar  TYPE stb_button.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  Append seperator to the normal toolbar&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    CLEAR ls_toolbar.&lt;/P&gt;&lt;P&gt;    MOVE c_separator TO ls_toolbar-butn_type..&lt;/P&gt;&lt;P&gt;    APPEND ls_toolbar TO e_object-&amp;gt;mt_toolbar.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  Append a new button that to the toolbar. Use E_OBJECT of&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  event toolbar. E_OBJECT is of type CL_ALV_EVENT_TOOLBAR_SET.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  This class has one attribute MT_TOOLBAR which is of table type&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  TTB_BUTTON. The structure is STB_BUTTON&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    CLEAR ls_toolbar.&lt;/P&gt;&lt;P&gt;    MOVE 'REFRESH'  TO ls_toolbar-function.&lt;/P&gt;&lt;P&gt;    MOVE  icon_REFRESH   TO ls_toolbar-icon.&lt;/P&gt;&lt;P&gt;    MOVE 'Change flight' TO ls_toolbar-quickinfo.&lt;/P&gt;&lt;P&gt;    MOVE 'Refresh'       TO ls_toolbar-text.&lt;/P&gt;&lt;P&gt;    MOVE ' '             TO ls_toolbar-disabled.&lt;/P&gt;&lt;P&gt;    APPEND ls_toolbar    TO e_object-&amp;gt;mt_toolbar.&lt;/P&gt;&lt;P&gt;  ENDMETHOD.&lt;/P&gt;&lt;P&gt;  METHOD handle_user_command.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  Handle own functions defined in the toolbar&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    CASE e_ucomm.&lt;/P&gt;&lt;P&gt;      WHEN 'REFRESH'.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Read data from table SFLIGHT&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;       SELECT * FROM sflight INTO TABLE gi_sflight.&lt;/P&gt;&lt;P&gt;      CALL METHOD go_grid-&amp;gt;refresh_table_display.&lt;/P&gt;&lt;P&gt;     CALL METHOD cl_gui_cfw=&amp;gt;flush.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; LEAVE TO SCREEN 0.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    ENDCASE.&lt;/P&gt;&lt;P&gt;  ENDMETHOD.&lt;/P&gt;&lt;P&gt;ENDCLASS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Module  STATUS_0300  OUTPUT&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE STATUS_0300 OUTPUT.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Create objects&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;     IF go_custom_container IS INITIAL.&lt;/P&gt;&lt;P&gt;       CREATE OBJECT go_custom_container&lt;/P&gt;&lt;P&gt;         EXPORTING container_name = 'ZCUSTOM'.&lt;/P&gt;&lt;P&gt;       CREATE OBJECT go_grid&lt;/P&gt;&lt;P&gt;         EXPORTING&lt;/P&gt;&lt;P&gt;         i_parent = go_custom_container.&lt;/P&gt;&lt;P&gt;       CREATE OBJECT o_event_receiver.&lt;/P&gt;&lt;P&gt;       SET HANDLER o_event_receiver-&amp;gt;handle_user_command FOR go_grid.&lt;/P&gt;&lt;P&gt;       SET HANDLER o_event_receiver-&amp;gt;handle_toolbar FOR go_grid.&lt;/P&gt;&lt;P&gt;       Perform Loaddata.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     ENDIF.&lt;/P&gt;&lt;P&gt;ENDMODULE.                 " STATUS_0300  OUTPUT&lt;/P&gt;&lt;P&gt;FORM Loaddata.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Read data from table SFLIGHT&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;       SELECT * FROM sflight INTO TABLE gi_sflight.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Load data into the grid and display them&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;       CALL METHOD go_grid-&amp;gt;set_table_for_first_display&lt;/P&gt;&lt;P&gt;       EXPORTING i_structure_name = 'SFLIGHT'&lt;/P&gt;&lt;P&gt;       CHANGING  it_outtab        = gi_sflight.&lt;/P&gt;&lt;P&gt;       CALL METHOD go_grid-&amp;gt;set_toolbar_interactive.&lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Jan 2005 14:23:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-class-include/m-p/851555#M46284</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-01-25T14:23:45Z</dc:date>
    </item>
    <item>
      <title>Re: ALV class include?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-class-include/m-p/851556#M46285</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 would recommend to put this in a seperate include with name &amp;lt;program_name&amp;gt;_lcl and insert a include statement next to your include &amp;lt;program_name&amp;gt;_top.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Siggi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Jan 2005 14:35:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-class-include/m-p/851556#M46285</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-01-25T14:35:22Z</dc:date>
    </item>
    <item>
      <title>Re: ALV class include?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-class-include/m-p/851557#M46286</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ambi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or just add the CLASS in the main program as it's only small.&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;&lt;/P&gt;&lt;P&gt;John.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Jan 2005 15:06:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-class-include/m-p/851557#M46286</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-01-25T15:06:16Z</dc:date>
    </item>
    <item>
      <title>Re: ALV class include?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-class-include/m-p/851558#M46287</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I agree,  I usually put the event receiver class in the main program if its a report program, or if it is a modual pool program, I create a separate include for class definitions/implementations.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Jan 2005 20:18:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-class-include/m-p/851558#M46287</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2005-01-25T20:18:22Z</dc:date>
    </item>
    <item>
      <title>Re: ALV class include?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-class-include/m-p/851559#M46288</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hey&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have put the classes in data declaration include file at top. Here my problem is.&lt;/P&gt;&lt;P&gt;when i click push button from screen. I get ALV grid displaying next screen with my respective query values. Next i clicked Refresh button newly created in toolbar of ALVgrid. it works fine.(using refresh grid method.)&lt;/P&gt;&lt;P&gt;but when i get back from the grid screen and start from first screen by clicking&lt;/P&gt;&lt;P&gt;push button, the ALV grid displays with same values at when i clicked the refresh button.&lt;/P&gt;&lt;P&gt;i debugged each time i get stored internal table with new values but not updated&lt;/P&gt;&lt;P&gt;to alv grid why?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;does the below ALV function works for only first display time?&lt;/P&gt;&lt;P&gt; CALL METHOD GRID_REPORT-&amp;gt;SET_TABLE_FOR_FIRST_DISPLAY.&lt;/P&gt;&lt;P&gt;ambichan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Jan 2005 02:15:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-class-include/m-p/851559#M46288</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-01-26T02:15:14Z</dc:date>
    </item>
    <item>
      <title>Re: ALV class include?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-class-include/m-p/851560#M46289</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you sure, you are putting new values in the internal table ? Last time I checked your code, both had the same line:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Select * from sflight into table gt_flight.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The above code was before you call the method &amp;lt;b&amp;gt;set_table_for_first_display&amp;lt;/b&amp;gt; and &amp;lt;b&amp;gt;refresh_table_display&amp;lt;/b&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also check whether your event is getting triggered. Put a breakpoint in your event method.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let us know how it turned out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Subramanian V.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Jan 2005 04:09:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-class-include/m-p/851560#M46289</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-01-26T04:09:24Z</dc:date>
    </item>
    <item>
      <title>Re: ALV class include?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-class-include/m-p/851561#M46290</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;am sorry,I have put the real code below.&lt;/P&gt;&lt;P&gt;I commented all Class and event methods.&lt;/P&gt;&lt;P&gt;i am passing date from before screen to this grid screen by name IMPODAY.&lt;/P&gt;&lt;P&gt;when first time i select date and pass to query,query works out and displaying well.&lt;/P&gt;&lt;P&gt;when i get back to original screen and again select different date&lt;/P&gt;&lt;P&gt;its giving previous display itself.(not getting new query output.)&lt;/P&gt;&lt;P&gt;i debugged the program till the select query internal table its working fine&lt;/P&gt;&lt;P&gt;even in internal table i am holding the values but its not displaying &lt;/P&gt;&lt;P&gt;in GRID. I am wondering why.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE REPORTSTATUS_PBO200 OUTPUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'LVC_FIELDCATALOG_MERGE'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;   I_STRUCTURE_NAME             = 'ZMW0001'&lt;/P&gt;&lt;P&gt;  CHANGING&lt;/P&gt;&lt;P&gt;    CT_FIELDCAT                  = FIELDCATALOG_TMP&lt;/P&gt;&lt;P&gt; EXCEPTIONS&lt;/P&gt;&lt;P&gt;   INCONSISTENT_INTERFACE       = 1&lt;/P&gt;&lt;P&gt;   PROGRAM_ERROR                = 2&lt;/P&gt;&lt;P&gt;   OTHERS                       = 3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt; MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;P&gt;         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PERFORM FIELDCATALOG_OPP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   CREATE OBJECT G_CUSTOM_CONTAINER&lt;/P&gt;&lt;P&gt;           EXPORTING CONTAINER_NAME = G_CONTAINER.&lt;/P&gt;&lt;P&gt;    CREATE OBJECT GRID_REPORT&lt;/P&gt;&lt;P&gt;           EXPORTING I_PARENT = G_CUSTOM_CONTAINER.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   PERFORM PREPARE_LAYOUT.&lt;/P&gt;&lt;P&gt;   PERFORM HIDE_TOOLBAR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    SELECT * FROM ZMW0001&lt;/P&gt;&lt;P&gt;     INTO TABLE SDYN_ITAB WHERE IMPORTDAY = IMPODAY.&lt;/P&gt;&lt;P&gt;     SORT SDYN_ITAB BY STATUS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CALL METHOD GRID_REPORT-&amp;gt;SET_TABLE_FOR_FIRST_DISPLAY&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;              it_toolbar_excluding = lt_toolbar_excluding&lt;/P&gt;&lt;P&gt;              is_layout            = ps_layout&lt;/P&gt;&lt;P&gt;    CHANGING  IT_FIELDCATALOG  = FIELDCATALOG&lt;/P&gt;&lt;P&gt;              IT_OUTTAB        = SDYN_ITAB&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;     invalid_parameter_combination = 1&lt;/P&gt;&lt;P&gt;     program_error                 = 2&lt;/P&gt;&lt;P&gt;     too_many_lines                = 3&lt;/P&gt;&lt;P&gt;     others                        = 4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDMODULE.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Jan 2005 04:26:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-class-include/m-p/851561#M46290</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-01-26T04:26:32Z</dc:date>
    </item>
    <item>
      <title>Re: ALV class include?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-class-include/m-p/851562#M46291</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hey &lt;/P&gt;&lt;P&gt;i solved the above problem.&lt;/P&gt;&lt;P&gt;reason is i have to check Object with initial flag and include refresh grid method.&lt;/P&gt;&lt;P&gt;sorry thanks for your assistance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Jan 2005 04:49:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-class-include/m-p/851562#M46291</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-01-26T04:49:02Z</dc:date>
    </item>
    <item>
      <title>Re: ALV class include?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-class-include/m-p/851563#M46292</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just before CALL FUNCTION 'LVC_FIELDCATALOG_MERGE' you need to add an IF:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF G_CUSTOM_CONTAINER IS INITIAL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the ELSE condition you need to do the REFRESH call.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think you had this in your first code posting.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not sure what is going on with FIELDCATALOG_TMP and FIELDCATALOG, probably because I cannot see your subroutines.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Jan 2005 04:51:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-class-include/m-p/851563#M46292</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-01-26T04:51:19Z</dc:date>
    </item>
    <item>
      <title>Re: ALV class include?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-class-include/m-p/851564#M46293</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hai thanks for your reply.&lt;/P&gt;&lt;P&gt;i got your point. one more thing ..is&lt;/P&gt;&lt;P&gt;I added REFRESH Button to ALVgrid at screen 200.&lt;/P&gt;&lt;P&gt;In screen 100 i have 3 push button calling same grid&lt;/P&gt;&lt;P&gt;with different query.&lt;/P&gt;&lt;P&gt;i want to show this refresh button in grid only when Push button2 is clicked.other click of push button 1 and 3 should not be displayed this grid toolbar refresh button.&lt;/P&gt;&lt;P&gt;i dont know how to hide only this refresh button from &lt;/P&gt;&lt;P&gt;this code.&lt;/P&gt;&lt;P&gt;ambichan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Jan 2005 06:08:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-class-include/m-p/851564#M46293</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-01-26T06:08:46Z</dc:date>
    </item>
    <item>
      <title>Re: ALV class include?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-class-include/m-p/851565#M46294</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;this is my part of the code.&lt;/P&gt;&lt;P&gt;   CREATE OBJECT o_event_receiver.&lt;/P&gt;&lt;P&gt;   SET HANDLER o_event_receiver-&amp;gt;handle_user_command FOR GRID_REPORT.&lt;/P&gt;&lt;P&gt;   SET HANDLER o_event_receiver-&amp;gt;handle_toolbar FOR GRID_REPORT. &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  CALL METHOD GRID_REPORT-&amp;gt;SET_TABLE_FOR_FIRST_DISPLAY&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;              it_toolbar_excluding = lt_toolbar_excluding&lt;/P&gt;&lt;P&gt;              is_layout            = ps_layout&lt;/P&gt;&lt;P&gt;    CHANGING  IT_FIELDCATALOG  = FIELDCATALOG&lt;/P&gt;&lt;P&gt;              IT_OUTTAB        = SDYN_ITAB&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;     invalid_parameter_combination = 1&lt;/P&gt;&lt;P&gt;     program_error                 = 2&lt;/P&gt;&lt;P&gt;     too_many_lines                = 3&lt;/P&gt;&lt;P&gt;     others                        = 4.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;   CALL METHOD GRID_REPORT-&amp;gt;set_toolbar_interactive.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how can i give condition here to display refresh button only at timing of click at push button 2.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Jan 2005 06:12:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-class-include/m-p/851565#M46294</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-01-26T06:12:45Z</dc:date>
    </item>
  </channel>
</rss>

