<?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 Calculator in Module Pool in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/calculator-in-module-pool/m-p/6649961#M1444832</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey i have designed a Calculator in &lt;STRONG&gt;Module pool&lt;/STRONG&gt;. I have created a Screen with &lt;STRONG&gt;Buttons&lt;/STRONG&gt; and other functionalities.If you Give input from Mouse by Clicking on desired button Everything is working fine .But Instead of clicking on these button i want input has to be given from &lt;STRONG&gt;keyboard&lt;/STRONG&gt; itself .For example &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Press 1:&lt;/STRONG&gt;    1 Should be appear on Screen&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Press +&lt;/STRONG&gt; :    It should not appear on Screen.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Press: 2&lt;/STRONG&gt; :  It should Appear on Screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you Press Enter Final Added Value should appear on Screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is Keyboard interfacing  possible with Custom developed Screen ? If possible please reply .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 13 Mar 2010 08:50:36 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-03-13T08:50:36Z</dc:date>
    <item>
      <title>Calculator in Module Pool</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calculator-in-module-pool/m-p/6649961#M1444832</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey i have designed a Calculator in &lt;STRONG&gt;Module pool&lt;/STRONG&gt;. I have created a Screen with &lt;STRONG&gt;Buttons&lt;/STRONG&gt; and other functionalities.If you Give input from Mouse by Clicking on desired button Everything is working fine .But Instead of clicking on these button i want input has to be given from &lt;STRONG&gt;keyboard&lt;/STRONG&gt; itself .For example &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Press 1:&lt;/STRONG&gt;    1 Should be appear on Screen&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Press +&lt;/STRONG&gt; :    It should not appear on Screen.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Press: 2&lt;/STRONG&gt; :  It should Appear on Screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you Press Enter Final Added Value should appear on Screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is Keyboard interfacing  possible with Custom developed Screen ? If possible please reply .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 13 Mar 2010 08:50:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calculator-in-module-pool/m-p/6649961#M1444832</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-13T08:50:36Z</dc:date>
    </item>
    <item>
      <title>Re: Calculator in Module Pool</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calculator-in-module-pool/m-p/6649962#M1444833</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To develop Calculator in Module Pool program Instead of you can use FM FITRV_CALCULATOR. But I dont know the Keyboard Interaction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Report ZCalculator.
DATA: OUTPUT_VALUE(15) TYPE C.

call function 'FITRV_CALCULATOR'
  IMPORTING
    OUTPUT_VALUE               = OUTPUT_VALUE
  EXCEPTIONS
    INVALID_INPUT              = 1
    CALCULATION_CANCELED       = 2
    OTHERS                     = 3.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Mar 2010 05:17:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calculator-in-module-pool/m-p/6649962#M1444833</guid>
      <dc:creator>Kanagaraja_L</dc:creator>
      <dc:date>2010-03-15T05:17:54Z</dc:date>
    </item>
    <item>
      <title>Re: Calculator in Module Pool</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calculator-in-module-pool/m-p/6649963#M1444834</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;if you want to develo a custom calculator. try this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;make 1st field for first input&lt;/P&gt;&lt;P&gt;2nd field for operator&lt;/P&gt;&lt;P&gt;3rd for second no.&lt;/P&gt;&lt;P&gt;4th for result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the make an enter button. in PAI&lt;/P&gt;&lt;P&gt;check the value of the operator field and put a case statement.&lt;/P&gt;&lt;P&gt;n code as per the functionality u want&lt;/P&gt;&lt;P&gt;eg.&lt;/P&gt;&lt;P&gt;case FIELD2.&lt;/P&gt;&lt;P&gt;when '+'&lt;/P&gt;&lt;P&gt;fied4 = field1 + field3.&lt;/P&gt;&lt;P&gt;when '-'&lt;/P&gt;&lt;P&gt;fied4 = field1 - field3.&lt;/P&gt;&lt;P&gt;etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope it helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Mar 2010 05:53:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calculator-in-module-pool/m-p/6649963#M1444834</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-15T05:53:19Z</dc:date>
    </item>
    <item>
      <title>Re: Calculator in Module Pool</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calculator-in-module-pool/m-p/6649964#M1444835</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See Calculator is working Fine if you provide inputs from Mouse by clicking on push buttons . But My intention is can i provide inputs from Keyboard without touching mouse.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As in microsoft calcuator we can given input frm keyboard itself and check output. Please reply&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Mar 2010 07:09:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calculator-in-module-pool/m-p/6649964#M1444835</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-15T07:09:23Z</dc:date>
    </item>
    <item>
      <title>Re: Calculator in Module Pool</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calculator-in-module-pool/m-p/6649965#M1444836</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you define a proper input field for entering your data? Sure it is possible to use the keyboard as input. This is the same for custom fields as it is for your Standard SAP fields.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Mar 2010 07:15:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calculator-in-module-pool/m-p/6649965#M1444836</guid>
      <dc:creator>Sm1tje</dc:creator>
      <dc:date>2010-03-15T07:15:45Z</dc:date>
    </item>
    <item>
      <title>Re: Calculator in Module Pool</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calculator-in-module-pool/m-p/6649966#M1444837</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;did you check in debuggin mode what ok code is set when you press the keyboard keys?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Mar 2010 07:19:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calculator-in-module-pool/m-p/6649966#M1444837</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-15T07:19:56Z</dc:date>
    </item>
    <item>
      <title>Re: Calculator in Module Pool</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calculator-in-module-pool/m-p/6649967#M1444838</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;you can assign a function code to that push button as well.&lt;/P&gt;&lt;P&gt;so you dont require mouse input.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Mar 2010 08:27:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calculator-in-module-pool/m-p/6649967#M1444838</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-15T08:27:10Z</dc:date>
    </item>
    <item>
      <title>Re: Calculator in Module Pool</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calculator-in-module-pool/m-p/6649968#M1444839</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;@Micky Oestreich&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have designed Calcualor screen with same as of Standard Calculator. Here i havnt Defined Two Input Fields for giving input and ,Field for giving Opreator value as '+' , '-' ,'*' ,'/'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Mar 2010 08:33:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calculator-in-module-pool/m-p/6649968#M1444839</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-15T08:33:29Z</dc:date>
    </item>
    <item>
      <title>Re: Calculator in Module Pool</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calculator-in-module-pool/m-p/6649969#M1444840</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;Not sure if this helps for your actual question. But, How about reusing the &lt;STRONG&gt;Windows calculator instead of redesigning on your&lt;/STRONG&gt; &lt;STRONG&gt;own?&lt;/STRONG&gt; (I am assuming your operating system is Windows. In case of others, you can pass appropriate command name).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CALL FUNCTION 'GUI_RUN'
  EXPORTING
    command          = 'CALC'
*   PARAMETER        =
*   CD               =
* IMPORTING
*   RETURNCODE       =
          .&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vinod.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Mar 2010 08:43:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calculator-in-module-pool/m-p/6649969#M1444840</guid>
      <dc:creator>vinod_vemuru2</dc:creator>
      <dc:date>2010-03-15T08:43:19Z</dc:date>
    </item>
    <item>
      <title>Re: Calculator in Module Pool</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calculator-in-module-pool/m-p/6649970#M1444841</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;@ S Jain &lt;/P&gt;&lt;P&gt;I didnt Understand how will you define function code so that it will pick input from keyboard itself.In PAI event we can check inside Case Statment for different FCODE . Will you please Elaborate this concept.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Mar 2010 08:46:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calculator-in-module-pool/m-p/6649970#M1444841</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-15T08:46:49Z</dc:date>
    </item>
    <item>
      <title>Re: Calculator in Module Pool</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calculator-in-module-pool/m-p/6649971#M1444842</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;oops my mistake.&lt;/P&gt;&lt;P&gt;insted of function code i meant function key.&lt;/P&gt;&lt;P&gt;you can assign a ufnction key to the push button on the screen.&lt;/P&gt;&lt;P&gt;so even if the input comes from the keyboard or the mouse, the PAI event&lt;/P&gt;&lt;P&gt;will still be triggered.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;sakshi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Mar 2010 09:34:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calculator-in-module-pool/m-p/6649971#M1444842</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-15T09:34:55Z</dc:date>
    </item>
  </channel>
</rss>

