<?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 ALV screen status in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-screen-status/m-p/7233475#M1525136</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have copied program RIAUFK20 to ZRIAUFK20.  I have made a few changes to set the G_repid to RIAUFK20 as it was before, in order to keep the same field cat and screen variants.  BUt for some reaosn when performing the below call to the ALV grid, I don't get a PF-STATUS - no buttons.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The g_form_set_pf_stat is the same as the original program SET_PF_STAT_F14 but for some reason this does not pull through?  Any ideas?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'&lt;/P&gt;&lt;P&gt;         EXPORTING&lt;/P&gt;&lt;P&gt;              i_buffer_active          = g_alv_buffer&lt;/P&gt;&lt;P&gt;              i_callback_program       = g_repid&lt;/P&gt;&lt;P&gt;              i_callback_pf_status_set =  g_form_set_pf_stat&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;          I_CALLBACK_USER_COMMAND  = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;          I_STRUCTURE_NAME         =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;              is_layout                = g_layout&lt;/P&gt;&lt;P&gt;              it_fieldcat              = g_fieldcat_tab[]&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;          it_excluding             =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;              it_special_groups        = g_fieldgroups_tab[]&lt;/P&gt;&lt;P&gt;              it_sort                  = g_sortfields_tab[]&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;          it_filter                =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;          is_sel_hide              =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;              i_default                = g_n&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;             i_save                   = g_variant_save&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;              i_save                   = g_a&lt;/P&gt;&lt;P&gt;              is_variant               = g_variant&lt;/P&gt;&lt;P&gt;              it_events                = g_events_tab[]&lt;/P&gt;&lt;P&gt;              it_event_exit            = g_event_exit_tab[]&lt;/P&gt;&lt;P&gt;              is_print                 = g_print&lt;/P&gt;&lt;P&gt;              i_screen_start_column    = g_screen_start_column&lt;/P&gt;&lt;P&gt;              i_screen_start_line      = g_screen_start_line&lt;/P&gt;&lt;P&gt;              i_screen_end_column      = g_screen_end_column&lt;/P&gt;&lt;P&gt;              i_screen_end_line        = g_screen_end_line&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     importing&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;          e_exit_caused_by_caller  =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;         TABLES&lt;/P&gt;&lt;P&gt;              t_outtab                 =  object_tab&lt;/P&gt;&lt;P&gt;         EXCEPTIONS&lt;/P&gt;&lt;P&gt;              program_error            = 1&lt;/P&gt;&lt;P&gt;              OTHERS                   = 2.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 20 Aug 2010 13:10:53 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-08-20T13:10:53Z</dc:date>
    <item>
      <title>ALV screen status</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-screen-status/m-p/7233475#M1525136</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have copied program RIAUFK20 to ZRIAUFK20.  I have made a few changes to set the G_repid to RIAUFK20 as it was before, in order to keep the same field cat and screen variants.  BUt for some reaosn when performing the below call to the ALV grid, I don't get a PF-STATUS - no buttons.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The g_form_set_pf_stat is the same as the original program SET_PF_STAT_F14 but for some reason this does not pull through?  Any ideas?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'&lt;/P&gt;&lt;P&gt;         EXPORTING&lt;/P&gt;&lt;P&gt;              i_buffer_active          = g_alv_buffer&lt;/P&gt;&lt;P&gt;              i_callback_program       = g_repid&lt;/P&gt;&lt;P&gt;              i_callback_pf_status_set =  g_form_set_pf_stat&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;          I_CALLBACK_USER_COMMAND  = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;          I_STRUCTURE_NAME         =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;              is_layout                = g_layout&lt;/P&gt;&lt;P&gt;              it_fieldcat              = g_fieldcat_tab[]&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;          it_excluding             =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;              it_special_groups        = g_fieldgroups_tab[]&lt;/P&gt;&lt;P&gt;              it_sort                  = g_sortfields_tab[]&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;          it_filter                =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;          is_sel_hide              =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;              i_default                = g_n&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;             i_save                   = g_variant_save&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;              i_save                   = g_a&lt;/P&gt;&lt;P&gt;              is_variant               = g_variant&lt;/P&gt;&lt;P&gt;              it_events                = g_events_tab[]&lt;/P&gt;&lt;P&gt;              it_event_exit            = g_event_exit_tab[]&lt;/P&gt;&lt;P&gt;              is_print                 = g_print&lt;/P&gt;&lt;P&gt;              i_screen_start_column    = g_screen_start_column&lt;/P&gt;&lt;P&gt;              i_screen_start_line      = g_screen_start_line&lt;/P&gt;&lt;P&gt;              i_screen_end_column      = g_screen_end_column&lt;/P&gt;&lt;P&gt;              i_screen_end_line        = g_screen_end_line&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     importing&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;          e_exit_caused_by_caller  =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;         TABLES&lt;/P&gt;&lt;P&gt;              t_outtab                 =  object_tab&lt;/P&gt;&lt;P&gt;         EXCEPTIONS&lt;/P&gt;&lt;P&gt;              program_error            = 1&lt;/P&gt;&lt;P&gt;              OTHERS                   = 2.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Aug 2010 13:10:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-screen-status/m-p/7233475#M1525136</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-20T13:10:53Z</dc:date>
    </item>
    <item>
      <title>Re: ALV screen status</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-screen-status/m-p/7233476#M1525137</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I guess &lt;EM&gt;i_callback_program&lt;/EM&gt; is used only for handling all your callback routines, not to determine PF status of that program. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would suggest two approaches:&lt;/P&gt;&lt;P&gt;- copy pf status too and set it in your routine &lt;STRONG&gt;g_form_set_pf_stat&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;- in the same routine use FM &lt;STRONG&gt;RS_EXTERNAL_SELSCREEN_STATUS&lt;/STRONG&gt; to set external program status&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Marcin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Aug 2010 13:14:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-screen-status/m-p/7233476#M1525137</guid>
      <dc:creator>MarcinPciak</dc:creator>
      <dc:date>2010-08-20T13:14:47Z</dc:date>
    </item>
    <item>
      <title>Re: ALV screen status</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-screen-status/m-p/7233477#M1525138</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm not sure I follow?  I have treid the below code in the below form, but I'm not even sure how this form gets called as it wont break in this form?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM set_pf_stat_f14 USING rt_extag TYPE slis_t_extab.      "#EC CALLED&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*NEW CODE BEGIN&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&lt;/P&gt;&lt;P&gt;  g_form_set_pf_stat = 'SET_PF_STAT_F14'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'RS_EXTERNAL_SELSCREEN_STATUS'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      p_fb          = g_form_set_pf_stat&lt;/P&gt;&lt;P&gt;            .&lt;/P&gt;&lt;P&gt;*NEW CODE END&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*--- link to SAPPHONE not aktive -&amp;gt; deaktivate function -&lt;/P&gt;&lt;HR originaltext="-------------" /&gt;&lt;P&gt;  IF NOT g_sapphone_active = g_x.&lt;/P&gt;&lt;P&gt;    APPEND 'PHON' TO rt_extag.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;*--- not in select mode -&amp;gt; deaktivate function -&lt;/P&gt;&lt;HR originaltext="----------------------" /&gt;&lt;P&gt;  IF g_selmod = selmod_0 OR g_selmod = selmod_s.&lt;/P&gt;&lt;P&gt;    APPEND 'ISEL' TO rt_extag.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;*--- customizing mode -&amp;gt; display/change mode inactive -&lt;/P&gt;&lt;HR originaltext="---------------" /&gt;&lt;P&gt;  IF g_variant_save = g_x.&lt;/P&gt;&lt;P&gt;    APPEND 'V-A ' TO rt_extag.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;*--- Monitorfunction not acitve with grid control&lt;/P&gt;&lt;P&gt;  IF g_grid IS INITIAL.&lt;/P&gt;&lt;P&gt;    APPEND 'MONI' TO rt_extag.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SET TITLEBAR 'LVS' WITH tstct-ttext.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF g_aktyp IS INITIAL.&lt;/P&gt;&lt;P&gt;    g_aktyp = t370a-aktyp.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;*--- inactivate function (todo and slin) as not used in all programms&lt;/P&gt;&lt;P&gt;  IF g_aktyp = 'V'.                                         "#EC *&lt;/P&gt;&lt;P&gt;    SET PF-STATUS 'AEND' EXCLUDING rt_extag.                "#EC *&lt;/P&gt;&lt;P&gt;  ELSE.                                                     "#EC *&lt;/P&gt;&lt;P&gt;    SET PF-STATUS 'MAIN' EXCLUDING rt_extag.                "#EC *&lt;/P&gt;&lt;P&gt;  ENDIF.                                                    "#EC *&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.                    "set_pf_stat_f14&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Aug 2010 13:33:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-screen-status/m-p/7233477#M1525138</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-20T13:33:07Z</dc:date>
    </item>
    <item>
      <title>Re: ALV screen status</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-screen-status/m-p/7233478#M1525139</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Got it thansk.  I udnerstnad the callback program now.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Aug 2010 13:37:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-screen-status/m-p/7233478#M1525139</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-20T13:37:29Z</dc:date>
    </item>
    <item>
      <title>Re: ALV screen status</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-screen-status/m-p/7233479#M1525140</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry I gave you wrong FM, this one is used for selection screen. Anyhow what I mean is &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
CALL FUNCTION 'REUSE ...'
i_callback_program = 'ZRIAUFK20'  "your current program
i_callback_pf_status_set = 'SET_PF_STAT_F14' "your custom routine where you set your status

"Now set status of external program
FORM set_pf_stat_f14 USING rt_extag TYPE slis_t_extab. 
  "add functions to exclude
  append ... to rt_extag.
  
  SET PF-STATUS status OF PROGRAM RIAUFK20  EXCLUDING rt_extag.
  
ENDFORM.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;That should do the job&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Marcin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Aug 2010 13:48:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-screen-status/m-p/7233479#M1525140</guid>
      <dc:creator>MarcinPciak</dc:creator>
      <dc:date>2010-08-20T13:48:41Z</dc:date>
    </item>
  </channel>
</rss>

