<?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: Add a button ? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/add-a-button/m-p/2269559#M492853</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So the solution you implemented was to create a screen with ALV checkbox and add the custom buttons to process the selected records?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vikranth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 30 Nov 2009 07:38:12 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-11-30T07:38:12Z</dc:date>
    <item>
      <title>Add a button ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/add-a-button/m-p/2269553#M492847</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 am using function module REUSE_ALV_POPUP_TO_SELECT to display some table values. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My requirement is to add a custom button in the toolbar of this function module when results displayed,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;aRs.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 May 2007 17:25:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/add-a-button/m-p/2269553#M492847</guid>
      <dc:creator>former_member194669</dc:creator>
      <dc:date>2007-05-22T17:25:12Z</dc:date>
    </item>
    <item>
      <title>Re: Add a button ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/add-a-button/m-p/2269554#M492848</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It doesn't appear that the API allows to add a new button, but it does allow for you to write some custom coding to handle some buttons already implemented.&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, 22 May 2007 17:45:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/add-a-button/m-p/2269554#M492848</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2007-05-22T17:45:23Z</dc:date>
    </item>
    <item>
      <title>Re: Add a button ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/add-a-button/m-p/2269555#M492849</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Rich,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In that i need to use CL_GUI_DIALOGBOX_CONTAINER&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;aRs&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 May 2007 17:52:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/add-a-button/m-p/2269555#M492849</guid>
      <dc:creator>former_member194669</dc:creator>
      <dc:date>2007-05-22T17:52:08Z</dc:date>
    </item>
    <item>
      <title>Re: Add a button ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/add-a-button/m-p/2269556#M492850</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For example, run this program,  put your cusor on a material and click the magnifying glass on the application toolbar within the dialog window.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

report zrich_0001.

type-pools: slis.

types: begin of ttab,
       matnr type mara-matnr,
       maktx type makt-maktx,
       end of ttab.
data: itab type table of ttab with header line.

data: repid type sy-repid.

data: iex type  slis_t_extab.
data: xex like line of iex.

data: ifldc type slis_t_fieldcat_alv .
data: xfldc type slis_fieldcat_alv .

parameters: p_check.

start-of-selection.

  select matnr maktx into table itab from makt
            up to 100 rows.

  clear xfldc.
  xfldc-reptext_ddic    = 'Material Number'.
  xfldc-fieldname  = 'MATNR'.
  xfldc-tabname   = 'ITAB'.
  xfldc-outputlen  = '18'.
  append xfldc to ifldc.

  clear xfldc.
  xfldc-reptext_ddic    = 'Material Description'.
  xfldc-fieldname  = 'MAKTX'.
  xfldc-tabname   = 'ITAB'.
  xfldc-outputlen  = '25'.
  append xfldc to ifldc.


  repid = sy-repid.

  xex-fcode = '&amp;amp;NT1'.   append xex to iex.
  xex-fcode = '&amp;amp;OUP'.   append xex to iex.
  xex-fcode = '&amp;amp;ODN'.   append xex to iex.
  xex-fcode = '&amp;amp;ILT'.   append xex to iex.
  xex-fcode = '&amp;amp;OL0'.   append xex to iex.
  xex-fcode = '%SC' .   append xex to iex.
  xex-fcode = '%SC+'.   append xex to iex.

  call function 'REUSE_ALV_POPUP_TO_SELECT'
       exporting
            i_tabname               = 'ITAB'
            i_zebra                 = 'X'
            it_fieldcat             = ifldc
            it_excluding            = iex
            i_screen_start_column   = 5
            i_screen_start_line     = 5
            i_screen_end_column     = 110
            i_screen_end_line       = 20
            i_callback_program      = repid
            i_callback_user_command = 'HANDLE_DC_ALV'
       tables
            t_outtab                = itab
       exceptions
            program_error           = 1
            others                  = 2.


************************************************************************
*       FORM handle_dc_alv                                             *
************************************************************************
form handle_dc_alv using r_ucomm type sy-ucomm
                         rs_selfield type  slis_selfield.

  case r_ucomm.
    when '&amp;amp;ETA'.
      case rs_selfield-fieldname.
        when 'MATNR'.
          check rs_selfield-value(1) &amp;lt;&amp;gt; '*'.   " Not the total line
          set parameter id 'MAT' field rs_selfield-value.
          call transaction 'MM03' and skip first screen.
          r_ucomm = space.       "Clear UCOMM, so STD funct doesn't fire
      endcase.
  endcase.

endform.

&lt;/CODE&gt;&lt;/PRE&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, 22 May 2007 17:54:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/add-a-button/m-p/2269556#M492850</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2007-05-22T17:54:36Z</dc:date>
    </item>
    <item>
      <title>Re: Add a button ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/add-a-button/m-p/2269557#M492851</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello a®s ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible to add custom buttons with REUSE_ALV_POPUP_TO_SELECT  using CL_GUI_DIALOGBOX_CONTAINER ? Can you let us know how to implement it? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vikranth&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Nov 2009 07:29:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/add-a-button/m-p/2269557#M492851</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-30T07:29:09Z</dc:date>
    </item>
    <item>
      <title>Re: Add a button ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/add-a-button/m-p/2269558#M492852</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried that approach , but I could not&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry bro !!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; a®&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Nov 2009 07:33:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/add-a-button/m-p/2269558#M492852</guid>
      <dc:creator>former_member194669</dc:creator>
      <dc:date>2009-11-30T07:33:13Z</dc:date>
    </item>
    <item>
      <title>Re: Add a button ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/add-a-button/m-p/2269559#M492853</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So the solution you implemented was to create a screen with ALV checkbox and add the custom buttons to process the selected records?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vikranth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Nov 2009 07:38:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/add-a-button/m-p/2269559#M492853</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-30T07:38:12Z</dc:date>
    </item>
    <item>
      <title>Re: Add a button ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/add-a-button/m-p/2269560#M492854</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I used with CL_GUI_ALV_GRID with a screen and call it as window (Its look like popup) and add whatever buttons in the alv.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; a®&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Nov 2009 07:40:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/add-a-button/m-p/2269560#M492854</guid>
      <dc:creator>former_member194669</dc:creator>
      <dc:date>2009-11-30T07:40:19Z</dc:date>
    </item>
  </channel>
</rss>

