<?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 on screen in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/button-on-screen/m-p/900399#M55069</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Adding some detail to Carlos' suggestion.  Define a status with a button, icon and function code.  Use the SET PF-STATUS..  command somewhere before the list is displayed.  Use the AT USER-COMMAND event to respond and determine if your button was hit as shown in an earlier posting.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am assuming that hitting the button means delete all.  If you want the user to select what should be deleted, then consider the checkbox option mentioned earlier or switch to an ALV Grid and allow multiple selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let us know how it goes!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 12 Jan 2005 21:14:52 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-01-12T21:14:52Z</dc:date>
    <item>
      <title>Button on screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/button-on-screen/m-p/900395#M55065</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How can I put a button on a screen after a list that have been displayed?. The idea is have a button that the user could click to confirm the deleting of the data shown in the list.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Jan 2005 17:50:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/button-on-screen/m-p/900395#M55065</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-01-12T17:50:43Z</dc:date>
    </item>
    <item>
      <title>Re: Button on screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/button-on-screen/m-p/900396#M55066</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use:&lt;/P&gt;&lt;P&gt;PF-STATUS 'NAMEOFYOURSTATUS'. then you can add more buttons.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Jan 2005 17:53:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/button-on-screen/m-p/900396#M55066</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-01-12T17:53:26Z</dc:date>
    </item>
    <item>
      <title>Re: Button on screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/button-on-screen/m-p/900397#M55067</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you want to make the icon or symbol displayed on the list screen so that when you click on that icon/symbol, it will trigger an action, try looking at sample program DEMO_LIST_FORMAT_HOTSPOT. &lt;/P&gt;&lt;P&gt;This program display a text as hotspot. When you click at that hotspot, it will trigger event at line-selection. You can instead display an icon/symbol as hotspot, then during at line-selection event, check fields sy-lisel, sy-cucol and sy-curow to find out whether that icon/symbol has been clicked. Then you can proceed with whatever action you want based on user clicked.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Jan 2005 19:11:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/button-on-screen/m-p/900397#M55067</guid>
      <dc:creator>nablan_umar</dc:creator>
      <dc:date>2005-01-12T19:11:20Z</dc:date>
    </item>
    <item>
      <title>Re: Button on screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/button-on-screen/m-p/900398#M55068</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ruben,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Following is a small piece of code to demo the use of interactive lists. This is very rudimentary example. But there are other newest ways to achieve this, ALV lists in particular, are easier to use and control.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA: BEGIN OF itab OCCURS 0,
        select TYPE c,
        vbeln  LIKE vbak-vbeln.
DATA: END OF itab.

DATA: v_pages        TYPE i,
      v_current_page TYPE i,
      v_vbeln        LIKE vbak-vbeln.

*------------------
START-OF-SELECTION.
*------------------

  SELECT vbeln FROM vbak
               INTO CORRESPONDING FIELDS OF TABLE itab
              WHERE vkorg = '2500' .

*----------------
END-OF-SELECTION.
*----------------

  SET PF-STATUS 'MAIN'.
  APPEND LINES OF itab TO itab.
  APPEND LINES OF itab TO itab.
  LOOP AT itab.
    WRITE:/ itab-select AS CHECKBOX,
            itab-vbeln.
  ENDLOOP.
  v_pages = sy-pagno.

*---------------
AT USER-COMMAND.
*---------------

  CASE sy-ucomm.

    WHEN 'SEL'.
*-- Select all
*-- Include logic for selection of all the lines of the list, may be by
*   having  a checkbox in front of each line
      DO v_pages TIMES.
        v_current_page = sy-index.
        DO.
          READ LINE sy-index OF PAGE v_current_page.
          IF sy-subrc &amp;lt;&amp;gt; 0.
            EXIT.
          ENDIF.
          sy-lisel+0(1) ='X'.
          MODIFY CURRENT LINE.
        ENDDO.
      ENDDO.
    WHEN 'DSEL'.
*-- Deselect all
*-- Include logic for de-selection of all the lines of the list
      DO v_pages TIMES.
        v_current_page = sy-index.
        DO.
          READ LINE sy-index OF PAGE v_current_page.
          IF sy-subrc &amp;lt;&amp;gt; 0.
            EXIT.
          ENDIF.
          sy-lisel+0(1) = space.
          MODIFY CURRENT LINE.
        ENDDO.
      ENDDO.

    WHEN 'DEL'.
*-- Delete selected lines
      DO v_pages TIMES.
        v_current_page = sy-index.
        DO.
          READ LINE sy-index OF PAGE v_current_page.
          IF sy-subrc &amp;lt;&amp;gt; 0.
            EXIT.
          ENDIF.
          IF sy-lisel+0(1) = 'X'.
*-- this line is selected,
*-- your logic for deletion.
            v_vbeln = sy-lisel+1(10).
*-- delete the selected sales order
          ENDIF.
        ENDDO.
      ENDDO.

    WHEN OTHERS.
*-- Issue message to choose the correct function
  ENDCASE.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you need any further clarifications, please let me know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Srinivas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Jan 2005 20:42:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/button-on-screen/m-p/900398#M55068</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-01-12T20:42:57Z</dc:date>
    </item>
    <item>
      <title>Re: Button on screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/button-on-screen/m-p/900399#M55069</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Adding some detail to Carlos' suggestion.  Define a status with a button, icon and function code.  Use the SET PF-STATUS..  command somewhere before the list is displayed.  Use the AT USER-COMMAND event to respond and determine if your button was hit as shown in an earlier posting.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am assuming that hitting the button means delete all.  If you want the user to select what should be deleted, then consider the checkbox option mentioned earlier or switch to an ALV Grid and allow multiple selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let us know how it goes!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Jan 2005 21:14:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/button-on-screen/m-p/900399#M55069</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-01-12T21:14:52Z</dc:date>
    </item>
  </channel>
</rss>

