<?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 End a program normally in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/end-a-program-normally/m-p/12351346#M1992714</link>
    <description>&lt;P&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;I have a basic question, I am not a developper. I have an ABAP program that searches for a file in a folder. If the file does not exist, the program is interrupted. I would like to handle the job status by having a Finished status instead of an Interrupted status.&lt;/P&gt;
  &lt;P&gt;IF sy-subrc &amp;lt;&amp;gt; 0.&lt;BR /&gt; MESSAGE E005(ZINV) with P_FILE_N.&lt;BR /&gt;ELSE.&lt;BR /&gt;...&lt;BR /&gt;...&lt;BR /&gt;&lt;BR /&gt;The job is always in status Interrupted if the file does not exist. How can I finish the job normally ? &lt;BR /&gt;If I use LEAVE PROGRAM, what whould be the status ?&lt;BR /&gt;&lt;BR /&gt;Thank you for your help.&lt;/P&gt;</description>
    <pubDate>Thu, 04 Feb 2021 22:06:16 GMT</pubDate>
    <dc:creator>former_member242258</dc:creator>
    <dc:date>2021-02-04T22:06:16Z</dc:date>
    <item>
      <title>End a program normally</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/end-a-program-normally/m-p/12351346#M1992714</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;I have a basic question, I am not a developper. I have an ABAP program that searches for a file in a folder. If the file does not exist, the program is interrupted. I would like to handle the job status by having a Finished status instead of an Interrupted status.&lt;/P&gt;
  &lt;P&gt;IF sy-subrc &amp;lt;&amp;gt; 0.&lt;BR /&gt; MESSAGE E005(ZINV) with P_FILE_N.&lt;BR /&gt;ELSE.&lt;BR /&gt;...&lt;BR /&gt;...&lt;BR /&gt;&lt;BR /&gt;The job is always in status Interrupted if the file does not exist. How can I finish the job normally ? &lt;BR /&gt;If I use LEAVE PROGRAM, what whould be the status ?&lt;BR /&gt;&lt;BR /&gt;Thank you for your help.&lt;/P&gt;</description>
      <pubDate>Thu, 04 Feb 2021 22:06:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/end-a-program-normally/m-p/12351346#M1992714</guid>
      <dc:creator>former_member242258</dc:creator>
      <dc:date>2021-02-04T22:06:16Z</dc:date>
    </item>
    <item>
      <title>Re: End a program normally</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/end-a-program-normally/m-p/12351347#M1992715</link>
      <description>&lt;P&gt;Hello  &lt;SPAN class="mention-scrubbed"&gt;admin.audioptic&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;The report is ended and the job has status "Interrupted" because there is an error (E) message issued. If the message is information (I) or success (S) the status would not be "Interrupted".&lt;/P&gt;Kind regards,&lt;BR /&gt;Mateusz</description>
      <pubDate>Thu, 04 Feb 2021 22:11:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/end-a-program-normally/m-p/12351347#M1992715</guid>
      <dc:creator>MateuszAdamus</dc:creator>
      <dc:date>2021-02-04T22:11:44Z</dc:date>
    </item>
    <item>
      <title>Re: End a program normally</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/end-a-program-normally/m-p/12351348#M1992716</link>
      <description>&lt;P&gt;Hi Mateusz, thank you for this quick reply. Didn't even remark that the E before 005 was for the message type. And I thought that if I changed the message type, the program would have continued but there are no instructions defined in the program if the file does not exist, which makes sense. I will try to change the E by and let you know, thanks again. Still a lot to learn in ABAP programming &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Feb 2021 22:41:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/end-a-program-normally/m-p/12351348#M1992716</guid>
      <dc:creator>former_member242258</dc:creator>
      <dc:date>2021-02-04T22:41:08Z</dc:date>
    </item>
  </channel>
</rss>

