<?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: Code after Job in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-after-job/m-p/12458812#M2000094</link>
    <description>&lt;P&gt;You have three options.&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;The simplest one is to place a second step in the job (the "submit of a report" you indicate being the first step), which calls a new program that you create with the code inside it.&lt;/LI&gt;&lt;LI&gt;A more complex one is to have a second job, that you link to the first job, which calls a new program that you create with the code inside it.&lt;/LI&gt;&lt;LI&gt;You do an "endless loop" (put a reasonable limit) until the first job ends, in each loop you read the contents of the table TBTCO which contains the job statuses, exit the loop if the first job has ended, or repeating again after waiting a few seconds to not read too much.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;The question has been already asked and answered. You can find more information in the forum.&lt;/P&gt;&lt;P&gt;NB: I don't post it as an answer to not add noise to the forum, it's just a matter of searching, I just give you hints to find answers faster.&lt;/P&gt;</description>
    <pubDate>Thu, 30 Sep 2021 15:02:45 GMT</pubDate>
    <dc:creator>Sandra_Rossi</dc:creator>
    <dc:date>2021-09-30T15:02:45Z</dc:date>
    <item>
      <title>Code after Job</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-after-job/m-p/12458811#M2000093</link>
      <description>&lt;P&gt;Hi everybody, i have a program that executes a job using the FM JOb_open, the submit of a report and the fm JOB_CLOSE: i want that the following code, after the FM Job_close, is run after that the job is finished.&lt;/P&gt;
  &lt;P&gt;There is a Function Module that do this ?&lt;/P&gt;
  &lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Thu, 30 Sep 2021 14:49:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/code-after-job/m-p/12458811#M2000093</guid>
      <dc:creator>former_member713424</dc:creator>
      <dc:date>2021-09-30T14:49:28Z</dc:date>
    </item>
    <item>
      <title>Re: Code after Job</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-after-job/m-p/12458812#M2000094</link>
      <description>&lt;P&gt;You have three options.&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;The simplest one is to place a second step in the job (the "submit of a report" you indicate being the first step), which calls a new program that you create with the code inside it.&lt;/LI&gt;&lt;LI&gt;A more complex one is to have a second job, that you link to the first job, which calls a new program that you create with the code inside it.&lt;/LI&gt;&lt;LI&gt;You do an "endless loop" (put a reasonable limit) until the first job ends, in each loop you read the contents of the table TBTCO which contains the job statuses, exit the loop if the first job has ended, or repeating again after waiting a few seconds to not read too much.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;The question has been already asked and answered. You can find more information in the forum.&lt;/P&gt;&lt;P&gt;NB: I don't post it as an answer to not add noise to the forum, it's just a matter of searching, I just give you hints to find answers faster.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Sep 2021 15:02:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/code-after-job/m-p/12458812#M2000094</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2021-09-30T15:02:45Z</dc:date>
    </item>
    <item>
      <title>Re: Code after Job</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-after-job/m-p/12458813#M2000095</link>
      <description>&lt;P&gt;Hi Francesco, which code?&lt;/P&gt;</description>
      <pubDate>Thu, 30 Sep 2021 15:12:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/code-after-job/m-p/12458813#M2000095</guid>
      <dc:creator>hrmanagerde</dc:creator>
      <dc:date>2021-09-30T15:12:38Z</dc:date>
    </item>
    <item>
      <title>Re: Code after Job</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-after-job/m-p/12458814#M2000096</link>
      <description>&lt;SPAN class="mention-scrubbed"&gt;sandra.rossi&lt;/SPAN&gt;&lt;P&gt;You should convert your comment to an answer. It's really informative.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Sep 2021 15:25:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/code-after-job/m-p/12458814#M2000096</guid>
      <dc:creator>Dominik_Tylczynski</dc:creator>
      <dc:date>2021-09-30T15:25:43Z</dc:date>
    </item>
    <item>
      <title>Re: Code after Job</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-after-job/m-p/12458815#M2000097</link>
      <description>&lt;P&gt;&lt;SPAN class="mention-scrubbed"&gt;3a9e4ce873a94034b33dc62b0ce600ee&lt;/SPAN&gt; It's as informative as all existing informative answers concerning the same question. People who search would probably not find my asnwer.&lt;/P&gt;&lt;P&gt;Searching for below words, I get one answer in the topmost results about SHOW_JOBSTATE (which corresponds to TBTCO I mention).&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;code after job site:sap.com&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Because the search words are not good enough to return efficient results at the top, if we adjust the search, "code end of job" or "wait end of job", there are many more answers, which mention all the possibilities above, even a detailed blog post. Okay, maybe not the adding of a second step in the job.&lt;/P&gt;&lt;P&gt;Okay, I admit maybe it's a good candidate for an answer. So, I have just decided that I will convert my comments into answers if they reach 5 likes or more &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt; - with a little work to do it for past ones (~50).&lt;/P&gt;</description>
      <pubDate>Thu, 30 Sep 2021 15:54:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/code-after-job/m-p/12458815#M2000097</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2021-09-30T15:54:19Z</dc:date>
    </item>
  </channel>
</rss>

