<?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: creating buttons at runtime. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-buttons-at-runtime/m-p/5249767#M1212911</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i am getting an error that Relational operator "'@5F@'" is not supported even after creating texts.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 23 Feb 2009 11:41:37 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-02-23T11:41:37Z</dc:date>
    <item>
      <title>creating buttons at runtime.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-buttons-at-runtime/m-p/5249765#M1212909</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gurus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to create buttons at runtime, is there any method to create the buttons &lt;STRONG&gt;without&lt;/STRONG&gt; using module pool programming. Also further i will be adding some functionality to the buttons.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Feb 2009 11:05:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creating-buttons-at-runtime/m-p/5249765#M1212909</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-23T11:05:09Z</dc:date>
    </item>
    <item>
      <title>Re: creating buttons at runtime.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-buttons-at-runtime/m-p/5249766#M1212910</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check The following test code&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;selection-screen begin of block b1.
selection-screen begin of line.
selection-screen pushbutton (4) icon1 user-command uc_icon1."1x1
selection-screen pushbutton (4) icon2 user-command uc_icon2."2x1
selection-screen pushbutton (4) icon3 user-command uc_icon3."3x1
selection-screen end of line.
selection-screen skip 1.
selection-screen begin of line.
selection-screen pushbutton (4) icon4 user-command uc_icon4."1x2
selection-screen pushbutton (4) icon5 user-command uc_icon5."2x2
selection-screen pushbutton (4) icon6 user-command uc_icon6."3x2
selection-screen end of line.
selection-screen skip 1.
selection-screen begin of line.
selection-screen pushbutton (4) icon7 user-command uc_icon7."1x3
selection-screen pushbutton (4) icon8 user-command uc_icon8."2x3
selection-screen pushbutton (4) icon9 user-command uc_icon9."3x3
selection-screen end of line.

selection-screen skip 1.
selection-screen begin of line.
selection-screen pushbutton (12) restart user-command uc_restart.
selection-screen end of line.

selection-screen end of block b1.
**----------------------------------------------------------------------*
**                        AT SELECTION-SCREEN                           *
**----------------------------------------------------------------------*
AT SELECTION-SCREEN.
  CASE sy-ucomm.
    WHEN 'UC_ICON1'.
      PERFORM push_button USING icon1.
    WHEN 'UC_ICON2'.
      PERFORM push_button USING icon2.
    WHEN 'UC_ICON3'.
      PERFORM push_button USING icon3.
    WHEN 'UC_ICON4'.
      PERFORM push_button USING icon4.
    WHEN 'UC_ICON5'.
      PERFORM push_button USING icon5.
    WHEN 'UC_ICON6'.
      PERFORM push_button USING icon6.
    WHEN 'UC_ICON7'.
      PERFORM push_button USING icon7.
    WHEN 'UC_ICON8'.
      PERFORM push_button USING icon8.
    WHEN 'UC_ICON9'.
      PERFORM push_button USING icon9.

**----------------------------------------------------------------------*
**                         INITIALIZATION                               *
**----------------------------------------------------------------------*
INITIALIZATION.
  PERFORM clear_buttons.

FORM clear_buttons .
  icon1 = '@5F@' .
  icon2 = '@5F@' .
  icon3 = '@5F@' .
  icon4 = '@5F@' .
  icon5 = '@5F@' .
  icon6 = '@5F@' .
  icon7 = '@5F@' .
  icon8 = '@5F@' .
  icon9 = '@5F@' .

  restart = 'Restart'.
ENDFORM." clear_buttons

FORM push_button USING p_icon.
* Exit if button pushed.
  IF p_icon &amp;lt;&amp;gt; '@5F@'.
    EXIT.
  ENDIF.

* Change icon.
  IF v_turn IS INITIAL.
    p_icon = '@7C@'.
    v_turn = 'X'.
  ELSE.
    p_icon = '@C9@'.
    CLEAR v_turn.
  ENDIF.
endform.



&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: tahir naqqash on Feb 23, 2009 4:16 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Feb 2009 11:12:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creating-buttons-at-runtime/m-p/5249766#M1212910</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-23T11:12:11Z</dc:date>
    </item>
    <item>
      <title>Re: creating buttons at runtime.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-buttons-at-runtime/m-p/5249767#M1212911</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i am getting an error that Relational operator "'@5F@'" is not supported even after creating texts.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Feb 2009 11:41:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creating-buttons-at-runtime/m-p/5249767#M1212911</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-23T11:41:37Z</dc:date>
    </item>
    <item>
      <title>Re: creating buttons at runtime.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-buttons-at-runtime/m-p/5249768#M1212912</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The relational error appears because there's a missing equal sign.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where it says &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF p_icon  '@5F@'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it should say&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF p_icon = '@5F@'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Feb 2009 11:51:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creating-buttons-at-runtime/m-p/5249768#M1212912</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-23T11:51:34Z</dc:date>
    </item>
  </channel>
</rss>

