<?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: Two fields in screen in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/two-fields-in-screen/m-p/3186896#M758962</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mahesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if u r doing it through screen painter then use PAI event for it...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See below example code...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
REPORT  ZSCREEN_ILE                             .

call screen 5000.

DATA : D1 TYPE I, D2 TYPE I,TOTAL TYPE I.
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Module  USER_COMMAND_5000  INPUT
*&amp;amp;---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
MODULE USER_COMMAND_5000 INPUT.

CASE SY-UCOMM.

WHEN 'TOT'. " For Total button
PERFORM MUL.
WRITE TOTAL.
WHEN 'EXIT'. " For Exit button
LEAVE PROGRAM.
ENDCASE.
ENDMODULE.                 " USER_COMMAND_5000  INPUT

*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Form  MUL
*&amp;amp;---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
*  --&amp;gt;  p1        text
*  &amp;lt;--  p2        text
*----------------------------------------------------------------------*
FORM MUL .
TOTAL = D1 * D2.
ENDFORM.                    " MUL

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope it will solve ur problem..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Reward points if useful..&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;ilesh 24x7&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 07 Dec 2007 08:53:51 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-12-07T08:53:51Z</dc:date>
    <item>
      <title>Two fields in screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/two-fields-in-screen/m-p/3186895#M758961</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I need to create three input fields..That is when i give values in the two boxes,it want to multiply and display the answer in the third box,whn i click the button..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Inside the button event i have created a methos..Now how i can get the two values from the screen. into the method and mulltiply it in the method..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I dnt knw how to do.Plz can any one tell how to do this&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Dec 2007 08:43:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/two-fields-in-screen/m-p/3186895#M758961</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-07T08:43:43Z</dc:date>
    </item>
    <item>
      <title>Re: Two fields in screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/two-fields-in-screen/m-p/3186896#M758962</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mahesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if u r doing it through screen painter then use PAI event for it...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See below example code...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
REPORT  ZSCREEN_ILE                             .

call screen 5000.

DATA : D1 TYPE I, D2 TYPE I,TOTAL TYPE I.
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Module  USER_COMMAND_5000  INPUT
*&amp;amp;---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
MODULE USER_COMMAND_5000 INPUT.

CASE SY-UCOMM.

WHEN 'TOT'. " For Total button
PERFORM MUL.
WRITE TOTAL.
WHEN 'EXIT'. " For Exit button
LEAVE PROGRAM.
ENDCASE.
ENDMODULE.                 " USER_COMMAND_5000  INPUT

*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Form  MUL
*&amp;amp;---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
*  --&amp;gt;  p1        text
*  &amp;lt;--  p2        text
*----------------------------------------------------------------------*
FORM MUL .
TOTAL = D1 * D2.
ENDFORM.                    " MUL

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope it will solve ur problem..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Reward points if useful..&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;ilesh 24x7&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Dec 2007 08:53:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/two-fields-in-screen/m-p/3186896#M758962</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-07T08:53:51Z</dc:date>
    </item>
    <item>
      <title>Re: Two fields in screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/two-fields-in-screen/m-p/3186897#M758963</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thnks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Dec 2007 09:29:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/two-fields-in-screen/m-p/3186897#M758963</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-07T09:29:40Z</dc:date>
    </item>
  </channel>
</rss>

