<?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: Simple Button Example in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/simple-button-example/m-p/1253935#M145643</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;Its simple.&lt;/P&gt;&lt;P&gt;Goto SE80 and enter your program name or se51 and enter your screen name and no.&lt;/P&gt;&lt;P&gt;on right side you will get 3 tab strips.&lt;/P&gt;&lt;P&gt;Attribute /element list and flow logic.&lt;/P&gt;&lt;P&gt;In the tabstrip element list you need an element with the name OK_CODE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Richa&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 24 Apr 2006 15:07:44 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-04-24T15:07:44Z</dc:date>
    <item>
      <title>Simple Button Example</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/simple-button-example/m-p/1253924#M145632</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Everyone!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have some stupid beginner questions... &lt;SPAN __jive_emoticon_name="sad"&gt;&lt;/SPAN&gt; and it would be great i someone could help me!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For now i learned how to make some buttons on a Toolbar via cl_gui_custom_container &amp;amp; cl_gui_toolbar.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This one is for now cristal clear! &lt;SPAN __jive_emoticon_name="wink"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But stupid thing is that I'm not able to make my simple program with few pushbuttons work!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First i've docked some PushButtons trough the ScreenPainter and assigned them Function Codes, TextDisplay &amp;amp; Name. and then i'm not able to get any actions of that pushbuttons when i executes the program. When i click tem they simply do nothing!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i checked and my screen is activated tough...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;stupid thing is when i Test my screen trough Sscreen painter one of buttons, explicitly the EXIT button do work and is exiting my program, but the other one does nothng, just like they bth do when i execute my program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please Can anyone help me with this one???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if u have some, please do provide me a sample code but not the simpliest one, because i do write my programs with classes, modules and etc...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you all in advance!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;kind regards, mya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Apr 2006 14:31:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/simple-button-example/m-p/1253924#M145632</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-24T14:31:25Z</dc:date>
    </item>
    <item>
      <title>Re: Simple Button Example</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/simple-button-example/m-p/1253925#M145633</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi mya,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In PAI of your screen write something like this...&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
  CASE SY-UCOMM.
    WHEN 'DISP'.
*-- Write some logic
    WHEN 'CHNG'.
*-- Write some logic
    WHEN 'BACK' OR 'CANC'.
      LEAVE PROGRAM.
  ENDCASE.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here 'DISP','CHNG','BACK','CANC' are the function codes of my buttons&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sreekanth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Apr 2006 14:39:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/simple-button-example/m-p/1253925#M145633</guid>
      <dc:creator>sreekanthgo</dc:creator>
      <dc:date>2006-04-24T14:39:31Z</dc:date>
    </item>
    <item>
      <title>Re: Simple Button Example</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/simple-button-example/m-p/1253926#M145634</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;in your PAI, the name of the &amp;lt;b&amp;gt;fcode&amp;lt;/b&amp;gt; for the particular push button should be used .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kunal.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Apr 2006 14:43:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/simple-button-example/m-p/1253926#M145634</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-24T14:43:47Z</dc:date>
    </item>
    <item>
      <title>Re: Simple Button Example</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/simple-button-example/m-p/1253927#M145635</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi i've done this in:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE user_command_0100 INPUT.&lt;/P&gt;&lt;P&gt;  CASE ok_code.&lt;/P&gt;&lt;P&gt;    WHEN 'EXIT'.&lt;/P&gt;&lt;P&gt;      LEAVE TO SCREEN 0.&lt;/P&gt;&lt;P&gt;    WHEN 'DIALOG'.&lt;/P&gt;&lt;P&gt;      PERFORM show_dialog_box.&lt;/P&gt;&lt;P&gt;  ENDCASE.&lt;/P&gt;&lt;P&gt;ENDMODULE.                 " USER_COMMAND_0100  INPUT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is a simple button that, i put in ScreenPainter, aka dynpro button??? or for that kind of button i need extra things to do???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Apr 2006 14:51:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/simple-button-example/m-p/1253927#M145635</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-24T14:51:36Z</dc:date>
    </item>
    <item>
      <title>Re: Simple Button Example</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/simple-button-example/m-p/1253928#M145636</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;To do some action on the button click you need to write some code in the PAI(Process after input) of the screen. The code in PAI is executed once the user do some action, example a button click, selecting a radio button or checking a check box...&lt;/P&gt;&lt;P&gt;So in PAI, you can write the code and do various things on click of differed button with different function codes.&lt;/P&gt;&lt;P&gt;Also you need to capture the ok_code. So you need to define an element in element list : OK_CODE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Case OK_CODE.&lt;/P&gt;&lt;P&gt; when 'FCODE1'&lt;/P&gt;&lt;P&gt;      perform FUNC_BUTTON_1&lt;/P&gt;&lt;P&gt; when 'FCODE2'&lt;/P&gt;&lt;P&gt;      perform FUNC_BUTTON_2&lt;/P&gt;&lt;P&gt; when 'FCODE3'&lt;/P&gt;&lt;P&gt;      perform FUNC_BUTTON_3&lt;/P&gt;&lt;P&gt;endcase.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in this way you can write different functionalities for different buttons.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Richa&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Apr 2006 14:59:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/simple-button-example/m-p/1253928#M145636</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-24T14:59:29Z</dc:date>
    </item>
    <item>
      <title>Re: Simple Button Example</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/simple-button-example/m-p/1253929#M145637</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Maja,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Goto Screen List tab of the screen painter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you declared the variable OK_CODE...?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;SP.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Apr 2006 15:00:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/simple-button-example/m-p/1253929#M145637</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-24T15:00:22Z</dc:date>
    </item>
    <item>
      <title>Re: Simple Button Example</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/simple-button-example/m-p/1253930#M145638</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Maja,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A small correction. Goto &amp;lt;b&amp;gt;Element list&amp;lt;/b&amp;gt; of the screen painter. Declare a variable OK_CODE. This should work fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;SP.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Apr 2006 15:01:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/simple-button-example/m-p/1253930#M145638</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-24T15:01:41Z</dc:date>
    </item>
    <item>
      <title>Re: Simple Button Example</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/simple-button-example/m-p/1253931#M145639</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;&lt;/P&gt;&lt;P&gt;Sorry. Where is Element List in Screen Painter?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;:(...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Apr 2006 15:03:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/simple-button-example/m-p/1253931#M145639</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-24T15:03:49Z</dc:date>
    </item>
    <item>
      <title>Re: Simple Button Example</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/simple-button-example/m-p/1253932#M145640</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The Thing With the Element List solved the problem!!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you alll!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Apr 2006 15:05:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/simple-button-example/m-p/1253932#M145640</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-24T15:05:17Z</dc:date>
    </item>
    <item>
      <title>Re: Simple Button Example</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/simple-button-example/m-p/1253933#M145641</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;go to se51.&lt;/P&gt;&lt;P&gt;Enter Program name and screen number.&lt;/P&gt;&lt;P&gt;choose the radio-button for Element list.&lt;/P&gt;&lt;P&gt;and press change/display.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Apr 2006 15:05:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/simple-button-example/m-p/1253933#M145641</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-24T15:05:39Z</dc:date>
    </item>
    <item>
      <title>Re: Simple Button Example</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/simple-button-example/m-p/1253934#M145642</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Maja,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the main program, where you write CALL SCREEN 200.&lt;/P&gt;&lt;P&gt;Double clicking on 200 will lead you to screen painter window.There are 3 tabs &lt;/P&gt;&lt;P&gt;1.Attributes&lt;/P&gt;&lt;P&gt;2.Element List&lt;/P&gt;&lt;P&gt;3.Flow Logic&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the element list, corresponding to ok code, you have to declare a variable (OK_CODE in your case).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Activate it and come back.&lt;/P&gt;&lt;P&gt;Activate the main program and execute.&lt;/P&gt;&lt;P&gt;This should work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;SP.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Apr 2006 15:06:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/simple-button-example/m-p/1253934#M145642</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-24T15:06:40Z</dc:date>
    </item>
    <item>
      <title>Re: Simple Button Example</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/simple-button-example/m-p/1253935#M145643</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;Its simple.&lt;/P&gt;&lt;P&gt;Goto SE80 and enter your program name or se51 and enter your screen name and no.&lt;/P&gt;&lt;P&gt;on right side you will get 3 tab strips.&lt;/P&gt;&lt;P&gt;Attribute /element list and flow logic.&lt;/P&gt;&lt;P&gt;In the tabstrip element list you need an element with the name OK_CODE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Richa&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Apr 2006 15:07:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/simple-button-example/m-p/1253935#M145643</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-24T15:07:44Z</dc:date>
    </item>
  </channel>
</rss>

