<?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: Button in classics ALV in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/button-in-classics-alv/m-p/4525306#M1069792</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For Handling of the Button which is added in the application toolbar &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;FORM SET_PF_STATUS USING r_extab type slis_t_extab.
SET PF-STATUS 'STANDARD' EXCLUDING r_ucomm.
"copy the status of standard program SAPLKKBL using SE41 ,
"in se41 enter the program name SAPLKKBL
"status as STANDARD
" click the copy button, give the to as your program name and ok
"now go to change mode add the button in application toolbar
"save and activate use the same status here.

ENDFORM.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;FORM USERCOMMAND using ucomm type sy-ucomm 
selfield type slis_selfield.
 
case ucomm.
 
when 'BUTTONCODE'.  "&amp;lt;----Button code what ever you mentioned
 "do your processing here...
endcase.
 
endform.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 01 Oct 2008 12:10:54 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-10-01T12:10:54Z</dc:date>
    <item>
      <title>Button in classics ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/button-in-classics-alv/m-p/4525304#M1069790</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys , Im listing some registers with alv but now I want to add a button to button bar  for select some lines of the alv and send this lines selected after push my new button , I add &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM cria_listagem_alv.&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_callback_program       = pgm&lt;/P&gt;&lt;P&gt;      it_fieldcat              = fieldcat&lt;/P&gt;&lt;P&gt;      it_sort                  = sortcat&lt;/P&gt;&lt;P&gt;      i_callback_pf_status_set = 'SET_PF_STATUS'&lt;/P&gt;&lt;P&gt;      i_callback_user_command  = 'USERCOMMAND'&lt;/P&gt;&lt;P&gt;      is_layout                = layout&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      t_outtab                 = t_zatrconsumos&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;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;ENDFORM.                    " cria_listagem_alv&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;      Form  usercommand&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;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     --&amp;gt;R_UCOMM      text&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     --&amp;gt;RS_SELFIELD  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;FORM SET_PF_STATUS  USING r_ucomm LIKE sy-ucomm&lt;/P&gt;&lt;P&gt;                         rs_selfield TYPE slis_selfield.&lt;/P&gt;&lt;P&gt;   SET PF-STATUS 'STANDARD' EXCLUDING r_ucomm.&lt;/P&gt;&lt;P&gt;"SET PF-STATUS 'SAVE'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.                    "usercommand&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to add button but i got a dump of parameters missing , i think is the first step, any advice ?? ,thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Oct 2008 11:36:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/button-in-classics-alv/m-p/4525304#M1069790</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-01T11:36:17Z</dc:date>
    </item>
    <item>
      <title>Re: Button in classics ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/button-in-classics-alv/m-p/4525305#M1069791</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you combined both. the correct coding is this..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For PF_STATUS&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;FORM SET_PF_STATUS USING extab type slis_t_extab.

SET PF-STATUS 'STANDARD' EXCLUDING extab.
"SET PF-STATUS 'SAVE'.

ENDFORM.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For user command&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;FORM USERCOMMAND using ucomm type sy-ucomm 
selfield type slis_selfield.


endform.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Oct 2008 11:45:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/button-in-classics-alv/m-p/4525305#M1069791</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-01T11:45:17Z</dc:date>
    </item>
    <item>
      <title>Re: Button in classics ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/button-in-classics-alv/m-p/4525306#M1069792</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For Handling of the Button which is added in the application toolbar &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;FORM SET_PF_STATUS USING r_extab type slis_t_extab.
SET PF-STATUS 'STANDARD' EXCLUDING r_ucomm.
"copy the status of standard program SAPLKKBL using SE41 ,
"in se41 enter the program name SAPLKKBL
"status as STANDARD
" click the copy button, give the to as your program name and ok
"now go to change mode add the button in application toolbar
"save and activate use the same status here.

ENDFORM.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;FORM USERCOMMAND using ucomm type sy-ucomm 
selfield type slis_selfield.
 
case ucomm.
 
when 'BUTTONCODE'.  "&amp;lt;----Button code what ever you mentioned
 "do your processing here...
endcase.
 
endform.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Oct 2008 12:10:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/button-in-classics-alv/m-p/4525306#M1069792</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-01T12:10:54Z</dc:date>
    </item>
  </channel>
</rss>

