<?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 Stop a job from program. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/stop-a-job-from-program/m-p/2713566#M629214</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I am using the FM - SXPG_COMMAND_EXECUTE , to execute an unix commands from my report program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If there are any errors in the execution of the commds , i am capturing them and stopping the execution of program using STOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The report is being run as backgroung job.&lt;/P&gt;&lt;P&gt;Even though STOP is executed in the report, in SM37 the status of the job is shown as finished.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want the status of the job to be cancelled when the program encounters STOP or when the execution of unix commands fails.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please tell me how to make the job as cancelled when the execution of unix commands fails.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Chandan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 20 Aug 2007 04:15:03 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-08-20T04:15:03Z</dc:date>
    <item>
      <title>Stop a job from program.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/stop-a-job-from-program/m-p/2713566#M629214</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I am using the FM - SXPG_COMMAND_EXECUTE , to execute an unix commands from my report program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If there are any errors in the execution of the commds , i am capturing them and stopping the execution of program using STOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The report is being run as backgroung job.&lt;/P&gt;&lt;P&gt;Even though STOP is executed in the report, in SM37 the status of the job is shown as finished.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want the status of the job to be cancelled when the program encounters STOP or when the execution of unix commands fails.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please tell me how to make the job as cancelled when the execution of unix commands fails.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Chandan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Aug 2007 04:15:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/stop-a-job-from-program/m-p/2713566#M629214</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-20T04:15:03Z</dc:date>
    </item>
    <item>
      <title>Re: Stop a job from program.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/stop-a-job-from-program/m-p/2713567#M629215</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;Instead of using STOP in program use &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message e999(&amp;lt;your message class&amp;gt;) with 'Erorr during execution"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;aRs&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Aug 2007 04:25:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/stop-a-job-from-program/m-p/2713567#M629215</guid>
      <dc:creator>former_member194669</dc:creator>
      <dc:date>2007-08-20T04:25:50Z</dc:date>
    </item>
    <item>
      <title>Re: Stop a job from program.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/stop-a-job-from-program/m-p/2713568#M629216</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ARS,&lt;/P&gt;&lt;P&gt;If i use the mesaege, will it&lt;/P&gt;&lt;P&gt;1) stop the further ececution of program?&lt;/P&gt;&lt;P&gt;2) Will the status fo the job be 'Cancelled' in SM37.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chandan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Aug 2007 04:29:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/stop-a-job-from-program/m-p/2713568#M629216</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-20T04:29:09Z</dc:date>
    </item>
    <item>
      <title>Re: Stop a job from program.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/stop-a-job-from-program/m-p/2713569#M629217</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;Yes you are right.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;aRs&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Aug 2007 04:33:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/stop-a-job-from-program/m-p/2713569#M629217</guid>
      <dc:creator>former_member194669</dc:creator>
      <dc:date>2007-08-20T04:33:15Z</dc:date>
    </item>
  </channel>
</rss>

