<?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: Why not working this code? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/why-not-working-this-code/m-p/3617009#M871338</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 use it like this...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

MODULE USER_COMMAND_0100 INPUT.
CASE OK_CODE.
  WHEN 'EXIT'.
    LEAVE PROGRAM.
  WHEN 'ICON'.
    MESSAGE 'THIS IS INFORMATION' TYPE 'I'.
  WHEN 'BACK'.
    LEAVE TO SCREEN 0.
  WHEN 'CANCEL'.
    CLEAR OK_CODE.
  ENDCASE.

ENDMODULE.                 " USER_COMMAND_0100  INPUT

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dhruv Shah&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 25 Mar 2008 12:38:53 GMT</pubDate>
    <dc:creator>dhruv_shah3</dc:creator>
    <dc:date>2008-03-25T12:38:53Z</dc:date>
    <item>
      <title>Why not working this code?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/why-not-working-this-code/m-p/3617008#M871337</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;I want to use following part of code to exit the program whenever he wants. He should not have to enter a value into a required text area.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But not working?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What may be the problem?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;PROCESS AFTER INPUT.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;  &lt;STRONG&gt;MODULE exit AT EXIT-COMMAND.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And the code is as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;MODULE EXIT INPUT.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;  &lt;STRONG&gt;LEAVE PROGRAM.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ENDMODULE.                 " EXIT  INPUT&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Mar 2008 12:34:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/why-not-working-this-code/m-p/3617008#M871337</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-25T12:34:45Z</dc:date>
    </item>
    <item>
      <title>Re: Why not working this code?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/why-not-working-this-code/m-p/3617009#M871338</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 use it like this...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

MODULE USER_COMMAND_0100 INPUT.
CASE OK_CODE.
  WHEN 'EXIT'.
    LEAVE PROGRAM.
  WHEN 'ICON'.
    MESSAGE 'THIS IS INFORMATION' TYPE 'I'.
  WHEN 'BACK'.
    LEAVE TO SCREEN 0.
  WHEN 'CANCEL'.
    CLEAR OK_CODE.
  ENDCASE.

ENDMODULE.                 " USER_COMMAND_0100  INPUT

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dhruv Shah&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Mar 2008 12:38:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/why-not-working-this-code/m-p/3617009#M871338</guid>
      <dc:creator>dhruv_shah3</dc:creator>
      <dc:date>2008-03-25T12:38:53Z</dc:date>
    </item>
    <item>
      <title>Re: Why not working this code?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/why-not-working-this-code/m-p/3617010#M871339</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;First check whether it comes till LEAVE PROGRAM by setting a break-point..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If it is, then make a call as follows to leave the transaction&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CALL TRANSACTION SESSION_MANAGER&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is generally the case when the user navigates to a second screen and makes a call to LEAVE PROGRAM...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Mar 2008 12:38:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/why-not-working-this-code/m-p/3617010#M871339</guid>
      <dc:creator>rahulkavuri</dc:creator>
      <dc:date>2008-03-25T12:38:53Z</dc:date>
    </item>
    <item>
      <title>Re: Why not working this code?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/why-not-working-this-code/m-p/3617011#M871340</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Give the Function type for the button as E - Exit Command &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope That Helps&lt;/P&gt;&lt;P&gt;Anirban M.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Mar 2008 12:40:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/why-not-working-this-code/m-p/3617011#M871340</guid>
      <dc:creator>former_member480923</dc:creator>
      <dc:date>2008-03-25T12:40:44Z</dc:date>
    </item>
    <item>
      <title>Re: Why not working this code?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/why-not-working-this-code/m-p/3617012#M871341</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 the text area is mandatory field, then it is not possible to go back without entering the some values into that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sriram Ponna.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Mar 2008 12:41:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/why-not-working-this-code/m-p/3617012#M871341</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-25T12:41:53Z</dc:date>
    </item>
    <item>
      <title>Re: Why not working this code?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/why-not-working-this-code/m-p/3617013#M871342</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;make sure that u have given Function Type E ( Exit Command) to that button in GUI Status...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Mar 2008 12:42:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/why-not-working-this-code/m-p/3617013#M871342</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-25T12:42:37Z</dc:date>
    </item>
  </channel>
</rss>

