<?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: Custom button click issue in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/custom-button-click-issue/m-p/12122950#M1974399</link>
    <description>&lt;P&gt;When you press your button, you need to clear the content of this variable before calling your report&lt;/P&gt;</description>
    <pubDate>Wed, 13 Nov 2019 07:37:27 GMT</pubDate>
    <dc:creator>FredericGirod</dc:creator>
    <dc:date>2019-11-13T07:37:27Z</dc:date>
    <item>
      <title>Custom button click issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/custom-button-click-issue/m-p/12122949#M1974398</link>
      <description>&lt;P&gt;I added a button to IW32/33 in the Enhancement tab to display a report upon button click. Once the user has seen the report and returns to the order and makes presses ENTER button, the program redirects back to the report. How do I curb this? I tried clearing SY-UCOMM in the PBO but that didn't work as in the PAI upon pressing ENTER the previous SY-UCOMM appears again.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Nov 2019 07:32:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/custom-button-click-issue/m-p/12122949#M1974398</guid>
      <dc:creator>former_member627573</dc:creator>
      <dc:date>2019-11-13T07:32:21Z</dc:date>
    </item>
    <item>
      <title>Re: Custom button click issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/custom-button-click-issue/m-p/12122950#M1974399</link>
      <description>&lt;P&gt;When you press your button, you need to clear the content of this variable before calling your report&lt;/P&gt;</description>
      <pubDate>Wed, 13 Nov 2019 07:37:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/custom-button-click-issue/m-p/12122950#M1974399</guid>
      <dc:creator>FredericGirod</dc:creator>
      <dc:date>2019-11-13T07:37:27Z</dc:date>
    </item>
    <item>
      <title>Re: Custom button click issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/custom-button-click-issue/m-p/12122951#M1974400</link>
      <description>&lt;P&gt;Could you please elaborate? &lt;/P&gt;</description>
      <pubDate>Wed, 13 Nov 2019 07:54:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/custom-button-click-issue/m-p/12122951#M1974400</guid>
      <dc:creator>former_member627573</dc:creator>
      <dc:date>2019-11-13T07:54:27Z</dc:date>
    </item>
    <item>
      <title>Re: Custom button click issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/custom-button-click-issue/m-p/12122952#M1974401</link>
      <description>&lt;P&gt;should be something like that &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Case sy-ucomm.
when 'Blabla'.
call screen 101 .. 

when 'YourCommand'.
call transaction .... and return. 
(or submit)

endcase&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;so before this, just do a &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

when 'YourCommand'.
clear sy-ucomm.
call transaction .... and return. 
&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 13 Nov 2019 07:58:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/custom-button-click-issue/m-p/12122952#M1974401</guid>
      <dc:creator>FredericGirod</dc:creator>
      <dc:date>2019-11-13T07:58:32Z</dc:date>
    </item>
    <item>
      <title>Re: Custom button click issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/custom-button-click-issue/m-p/12122953#M1974402</link>
      <description>&lt;P&gt;I have already done this.&lt;/P&gt;&lt;P&gt;My problem is that sy-ucomm get populated with the previous sy-ucomm value even though it is cleared.&lt;/P&gt;&lt;P&gt;It's cleared both at PBO and PAI but it still captures the previous value on pressing ENTER.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Nov 2019 08:07:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/custom-button-click-issue/m-p/12122953#M1974402</guid>
      <dc:creator>former_member627573</dc:creator>
      <dc:date>2019-11-13T08:07:59Z</dc:date>
    </item>
    <item>
      <title>Re: Custom button click issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/custom-button-click-issue/m-p/12122954#M1974403</link>
      <description>&lt;P&gt;Because SY-UCOMM is not set to empty when Enter is pressed (normal behavior), SAP recommends to use the "OK field" of the dynpro, i.e. use a custom global variable.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Nov 2019 08:55:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/custom-button-click-issue/m-p/12122954#M1974403</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2019-11-13T08:55:58Z</dc:date>
    </item>
    <item>
      <title>Re: Custom button click issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/custom-button-click-issue/m-p/12122955#M1974404</link>
      <description>&lt;P&gt;I used the solution provided in the blow link and it worked perfectly.&lt;/P&gt;&lt;P&gt;&lt;A href="https://answers.sap.com/questions/3641107/clearing-syucomm-in-subscreen.html"&gt;https://answers.sap.com/questions/3641107/clearing-syucomm-in-subscreen.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Nov 2019 10:58:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/custom-button-click-issue/m-p/12122955#M1974404</guid>
      <dc:creator>former_member627573</dc:creator>
      <dc:date>2019-11-13T10:58:08Z</dc:date>
    </item>
    <item>
      <title>Re: Custom button click issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/custom-button-click-issue/m-p/12122956#M1974405</link>
      <description>&lt;P&gt;So, you mean clearing the OK field via dirty ASSIGN (so that to reach the OK field of the standard program).&lt;/P&gt;</description>
      <pubDate>Wed, 13 Nov 2019 15:06:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/custom-button-click-issue/m-p/12122956#M1974405</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2019-11-13T15:06:05Z</dc:date>
    </item>
    <item>
      <title>Re: Custom button click issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/custom-button-click-issue/m-p/12122957#M1974406</link>
      <description>&lt;P&gt;This is not a solution ...  I hope you have a code-review team to check that &lt;/P&gt;</description>
      <pubDate>Wed, 13 Nov 2019 15:07:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/custom-button-click-issue/m-p/12122957#M1974406</guid>
      <dc:creator>FredericGirod</dc:creator>
      <dc:date>2019-11-13T15:07:27Z</dc:date>
    </item>
    <item>
      <title>Re: Custom button click issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/custom-button-click-issue/m-p/12122958#M1974407</link>
      <description>&lt;P&gt;&lt;A href="https://answers.sap.com/users/1091/sandra.rossi.html"&gt;Sandra Rossi&lt;/A&gt; &amp;amp; &lt;A href="https://answers.sap.com/users/153394/frdric.girod.html"&gt;Frederic Girod&lt;/A&gt;: If either of you has a better solution do let me know.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Nov 2019 05:36:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/custom-button-click-issue/m-p/12122958#M1974407</guid>
      <dc:creator>former_member627573</dc:creator>
      <dc:date>2019-11-14T05:36:55Z</dc:date>
    </item>
  </channel>
</rss>

