<?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: PROBLEM JOB in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-job/m-p/6259407#M1384778</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HELP&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 13 Nov 2009 11:31:57 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-11-13T11:31:57Z</dc:date>
    <item>
      <title>PROBLEM JOB</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-job/m-p/6259406#M1384777</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I HAVE A PROBLEM WITH THE JOB, IN MY PROGRAM THAT THERE IS A LOOP CALLED SEVERAL TIMES A SUBMIT 'VIA JOB'. ALL WORK ON AN ACCOUNT AND TRANSITIONAL JOB FOR SOME THAT ARE HAPPENING IN THIS ACCOUNT TRANSIENT ERROR WHY ARE STUCK ON THAT BEFORE. THERE IS A WAY TO STARTING THE JOB AFTER THE CLOSURE OF THE PREVIOUS?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There any feature you say when the job is CLOSED?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CODE REPORT :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP TAB.&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;..&lt;/P&gt;&lt;P&gt;..&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'JOB_OPEN'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      jobname          = va_job_name&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      jobcount         = va_job_count&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      cant_create_job  = 1&lt;/P&gt;&lt;P&gt;      invalid_job_data = 2&lt;/P&gt;&lt;P&gt;      jobname_missing  = 3&lt;/P&gt;&lt;P&gt;      OTHERS           = 4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="4" type="ul"&gt;&lt;P&gt;submit del programma&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;  SUBMIT sapf124&lt;/P&gt;&lt;P&gt;     WITH bukrx    IN so_bukrx&lt;/P&gt;&lt;P&gt;     WITH gjahx    IN so_gjahx&lt;/P&gt;&lt;P&gt;     WITH docnr    IN so_docnr&lt;/P&gt;&lt;P&gt;     WITH so_zuonr IN so_zuon&lt;/P&gt;&lt;P&gt;     WITH x_saknr  = d_saknr&lt;/P&gt;&lt;P&gt;     WITH konts    IN so_konts&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    WITH xaugdt   = d_xaugdt&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;     WITH xtol     = d_xtol&lt;/P&gt;&lt;P&gt;     WITH x_testl  = cb_test&lt;/P&gt;&lt;P&gt;     WITH augdt    = p_datum&lt;/P&gt;&lt;P&gt;     VIA JOB va_job_name NUMBER va_job_count&lt;/P&gt;&lt;P&gt;  AND RETURN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'JOB_CLOSE'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      jobcount             = va_job_count&lt;/P&gt;&lt;P&gt;      jobname              = va_job_name&lt;/P&gt;&lt;P&gt;      strtimmed            = 'X'&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      cant_start_immediate = 1&lt;/P&gt;&lt;P&gt;      invalid_startdate    = 2&lt;/P&gt;&lt;P&gt;      jobname_missing      = 3&lt;/P&gt;&lt;P&gt;      job_close_failed     = 4&lt;/P&gt;&lt;P&gt;      job_nosteps          = 5&lt;/P&gt;&lt;P&gt;      job_notex            = 6&lt;/P&gt;&lt;P&gt;      lock_failed          = 7&lt;/P&gt;&lt;P&gt;      OTHERS               = 8.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDLOOP TAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: francesco aiello on Nov 13, 2009 12:23 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Nov 2009 11:16:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-job/m-p/6259406#M1384777</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-13T11:16:21Z</dc:date>
    </item>
    <item>
      <title>Re: PROBLEM JOB</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-job/m-p/6259407#M1384778</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HELP&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Nov 2009 11:31:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-job/m-p/6259407#M1384778</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-13T11:31:57Z</dc:date>
    </item>
    <item>
      <title>Re: PROBLEM JOB</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-job/m-p/6259408#M1384779</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Quick fix would be to check the status of previous  Job within Loop after JOB_CLOSE using fm SHOW_JOBSTATE and wait until the previous job is completed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, I would have used events (with parameter) to start the job which will be triggered by previous job just before it ends the execution.&lt;/P&gt;&lt;P&gt;Problem here is you have sapstandard program in job which you can not modify to trigger a event, to overcome that you need to have another program which will can your sap standard program and once it is complete, trigger the event with correct parameter which will then start the next jon in queue. (this is just an idea, which I think should work)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Nov 2009 11:51:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-job/m-p/6259408#M1384779</guid>
      <dc:creator>Pawan_Kesari</dc:creator>
      <dc:date>2009-11-13T11:51:08Z</dc:date>
    </item>
    <item>
      <title>Re: PROBLEM JOB</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-job/m-p/6259409#M1384780</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks for the suggestion, I try first to find another solution before making a copy of the standard&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Nov 2009 12:57:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-job/m-p/6259409#M1384780</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-13T12:57:56Z</dc:date>
    </item>
  </channel>
</rss>

