<?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 Push Button in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/push-button/m-p/4416817#M1049256</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have developed some custom programs Reports, for Z-Table updates.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;say I have ZTest1, Ztest2 and Ztest3 as three custom programs as executable programs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now my job is to a diffrent program and have a common selection screen and have 3 push buttons. test1, test2, test3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when the user clicks test1 button the program ZTest1 should be triggered and all updates should happend as is.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My question is how would i have a push button on the selection screen without using a module pool program and how the respective programs would trigger.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please suggest.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ster&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 08 Sep 2008 19:31:15 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-09-08T19:31:15Z</dc:date>
    <item>
      <title>Push Button</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/push-button/m-p/4416817#M1049256</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have developed some custom programs Reports, for Z-Table updates.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;say I have ZTest1, Ztest2 and Ztest3 as three custom programs as executable programs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now my job is to a diffrent program and have a common selection screen and have 3 push buttons. test1, test2, test3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when the user clicks test1 button the program ZTest1 should be triggered and all updates should happend as is.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My question is how would i have a push button on the selection screen without using a module pool program and how the respective programs would trigger.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please suggest.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ster&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Sep 2008 19:31:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/push-button/m-p/4416817#M1049256</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-08T19:31:15Z</dc:date>
    </item>
    <item>
      <title>Re: Push Button</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/push-button/m-p/4416818#M1049257</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use the FUNCTION KEY addition in the Selection-Screen statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Like:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
SELECTION-SCREEN: FUNCTION KEY 1, 
                  FUNCTION KEY 2. 
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For More info on the buttons check the online help on selection-screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To trigger, different programs you can use the SUBMIT program statment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Naimesh Patel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Sep 2008 19:41:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/push-button/m-p/4416818#M1049257</guid>
      <dc:creator>naimesh_patel</dc:creator>
      <dc:date>2008-09-08T19:41:40Z</dc:date>
    </item>
    <item>
      <title>Re: Push Button</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/push-button/m-p/4416819#M1049258</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;One approach would be to use the PARAMETERS statement with the RADIOBUTTON addition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Then in you program check which of teh radiobuttons the user has selected( P_x = 'X')  and use the SUBMIT command to call the appropriate program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Greg Kern&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Sep 2008 19:43:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/push-button/m-p/4416819#M1049258</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-08T19:43:07Z</dc:date>
    </item>
    <item>
      <title>Re: Push Button</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/push-button/m-p/4416820#M1049259</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Ster,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can create buttons on the selection screen of your program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use Selection-screen PUSHBUTTON.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Selection-screen: PUSHBUTTON 2(10) but1 USER-COMMAND cli1,&lt;/P&gt;&lt;P&gt;PUSHBUTTON 12(10) text-020 USER-COMMAND cli2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then use a Case statement START OF SELECTION&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Case UCMND.&lt;/P&gt;&lt;P&gt;When 'cli1'.&lt;/P&gt;&lt;P&gt;Call transaction ztest1.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or you can use radio buttons.&lt;/P&gt;&lt;P&gt;PARAMETERS: p_test1  RADIOBUTTON GROUP rad1 USER-COMMAND uc1," &lt;/P&gt;&lt;P&gt;            p_test2 RADIOBUTTON GROUP rad1 DEFAULT 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; START OF SELECTION&lt;/P&gt;&lt;P&gt;If p_test1 = 'X'.&lt;/P&gt;&lt;P&gt;Call transaction ztest1&lt;/P&gt;&lt;P&gt;else if p_test2 = 'X'.&lt;/P&gt;&lt;P&gt;Call transaction ztest2....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;C&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Sep 2008 19:44:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/push-button/m-p/4416820#M1049259</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-08T19:44:02Z</dc:date>
    </item>
    <item>
      <title>Re: Push Button</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/push-button/m-p/4416821#M1049260</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;Try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
TABLES sscrfields.
DATA: program(5) type c.

SELECTION-SCREEN:
 PUSHBUTTON 1(10) TEXT-001 USER-COMMAND CLI1,
 PUSHBUTTON 1(10) TEXT-002 USER-COMMAND CLI2,
 PUSHBUTTON 1(10) TEXT-003 USER-COMMAND CLI3.


AT SELECTION-SCREEN.
  CASE sscrfields.
    WHEN 'CLI1'.
       program = 'ZTEST1'.
    WHEN 'CLI2'.
       program = 'ZTEST2'.
    WHEN 'CLI3'.
       program = 'ZTEST3'.
  ENDCASE.

SUBMIT (program) and RETURN.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it will help&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>Mon, 08 Sep 2008 19:49:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/push-button/m-p/4416821#M1049260</guid>
      <dc:creator>MarcinPciak</dc:creator>
      <dc:date>2008-09-08T19:49:24Z</dc:date>
    </item>
  </channel>
</rss>

