<?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: How to distinguish between two pushbuttons with same function codes in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-distinguish-between-two-pushbuttons-with-same-function-codes/m-p/1704363#M308635</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;good&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;declare a flag as 'x'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use the case and end case statement and  pass the value of sy-ucomm and check which pushbutton has been pressed and you can generate action accordingly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;mrutyun^&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Nov 2006 07:20:50 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-11-15T07:20:50Z</dc:date>
    <item>
      <title>How to distinguish between two pushbuttons with same function codes</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-distinguish-between-two-pushbuttons-with-same-function-codes/m-p/1704360#M308632</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       I had a requirement where there are two pushbuttons with same fcodes, and I want to know which push button is pressed .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for example, there are two input fields, and beside each input field, there is one pushbutton, which have same fcodes.(CHNG)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The functionality is same except the value to be assigned for a exporting parameter to call FM is different.I get the exporting parameters from the input fields.&lt;/P&gt;&lt;P&gt;So how can i differentiate between two pushbuttons pressed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Anil .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Nov 2006 06:51:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-distinguish-between-two-pushbuttons-with-same-function-codes/m-p/1704360#M308632</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-15T06:51:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to distinguish between two pushbuttons with same function codes</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-distinguish-between-two-pushbuttons-with-same-function-codes/m-p/1704361#M308633</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First of all is it compulsary to have same Fcode for 2 buttons?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If so can u Elabrate Little bit means What r the input values it differ means how do u Distinguish ......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Murthy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Nov 2006 07:01:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-distinguish-between-two-pushbuttons-with-same-function-codes/m-p/1704361#M308633</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-15T07:01:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to distinguish between two pushbuttons with same function codes</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-distinguish-between-two-pushbuttons-with-same-function-codes/m-p/1704362#M308634</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;Use the different Function Codes and then based on clicking the button, u determine the function code and thenimplement ur logic,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As far i know it is not possible to know which button is clicked with the same function code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Simha.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Nov 2006 07:03:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-distinguish-between-two-pushbuttons-with-same-function-codes/m-p/1704362#M308634</guid>
      <dc:creator>Simha_</dc:creator>
      <dc:date>2006-11-15T07:03:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to distinguish between two pushbuttons with same function codes</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-distinguish-between-two-pushbuttons-with-same-function-codes/m-p/1704363#M308635</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;good&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;declare a flag as 'x'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use the case and end case statement and  pass the value of sy-ucomm and check which pushbutton has been pressed and you can generate action accordingly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;mrutyun^&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Nov 2006 07:20:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-distinguish-between-two-pushbuttons-with-same-function-codes/m-p/1704363#M308635</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-15T07:20:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to distinguish between two pushbuttons with same function codes</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-distinguish-between-two-pushbuttons-with-same-function-codes/m-p/1704364#M308636</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes I want same fcode for 2 buttons, since there are two such pair of buttons with same fcodes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Actually, each input field contains different structure name, and upon clicking  the pushbutton, the particular input field value must be assigned to exporting parameter of same FM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So can u please find solution .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Nov 2006 07:33:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-distinguish-between-two-pushbuttons-with-same-function-codes/m-p/1704364#M308636</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-15T07:33:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to distinguish between two pushbuttons with same function codes</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-distinguish-between-two-pushbuttons-with-same-function-codes/m-p/1704365#M308637</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anil,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ok then Do one thing... Means if the Input Values are known and limited then According to that u Fix.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MEans &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;case sy-ucomm.&lt;/P&gt;&lt;P&gt;when 'fcode'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if p_data = 'XXXXXXX'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Call Function AAAAAAAAAA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;elseif p_data = 'YYYYYYYY'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Call Function BBBBBBBBBB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endcase.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just check this out and let me if know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bye&lt;/P&gt;&lt;P&gt;Murthy.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Nov 2006 08:24:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-distinguish-between-two-pushbuttons-with-same-function-codes/m-p/1704365#M308637</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-15T08:24:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to distinguish between two pushbuttons with same function codes</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-distinguish-between-two-pushbuttons-with-same-function-codes/m-p/1704366#M308638</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;If you have defined the pushbutton on the screen you can use the statamente GET CURSOR:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;MODULE USER_COMMAND.
  
  CASE OK_CODE.
     WHEN 'CHNG'.
        GET CURSOR FIELD VA_FIELD.
        
        IF VA_FIELD = 'BUTTON1'.
        ELSE.
        ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Nov 2006 08:27:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-distinguish-between-two-pushbuttons-with-same-function-codes/m-p/1704366#M308638</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-15T08:27:50Z</dc:date>
    </item>
  </channel>
</rss>

