<?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: Background job processing in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/background-job-processing/m-p/3543412#M852440</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe I'm not understanding, but try this I hope it helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
START-OF-SELECTION
break-point.
SUBMIT ZPROGRAMA USER SYST-UNAME           
  VIA JOB JOBNAME
  NUMBER  JOBCOUNT
  AND RETURN.
break-point.
END-OF-SELECTION.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you debugging step by step? if yes, try to stop at the first brea-point. then press f8 to go to the second break and see what happens&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 26 Mar 2008 21:26:40 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-03-26T21:26:40Z</dc:date>
    <item>
      <title>Background job processing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/background-job-processing/m-p/3543409#M852437</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 have two Executable programs. &lt;STRONG&gt;Program A, Program B&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(to execute Program A in background)&lt;/P&gt;&lt;P&gt;Program B has job_open, submit &lt;STRONG&gt;program A&lt;/STRONG&gt;...and return, Job_close.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Job count etc everything is achieved properly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But when checked in debugging, submit statement is not really executing &lt;STRONG&gt;Program A&lt;/STRONG&gt; but directly going into SAPLS38E and the cursor is back in &lt;STRONG&gt;program B&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;It means not fetching any data. No error too.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When &lt;STRONG&gt;Program A&lt;/STRONG&gt; is executed separately I could get output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Plz suggest what the problem could be.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Mar 2008 20:57:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/background-job-processing/m-p/3543409#M852437</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-26T20:57:46Z</dc:date>
    </item>
    <item>
      <title>Re: Background job processing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/background-job-processing/m-p/3543410#M852438</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;Can you please paste the piece of code (SUBMIT) that is actually calling the Program A? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Mar 2008 21:16:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/background-job-processing/m-p/3543410#M852438</guid>
      <dc:creator>rajasekhar_matukumalli3</dc:creator>
      <dc:date>2008-03-26T21:16:29Z</dc:date>
    </item>
    <item>
      <title>Re: Background job processing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/background-job-processing/m-p/3543411#M852439</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;START-OF-SELECTION

perform background.

END-OF-SELECTION.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
Form background.

JOB_OPEN.......

SUBMIT ZPROGRAMA USER SYST-UNAME           
  VIA JOB JOBNAME
  NUMBER  JOBCOUNT
  AND RETURN.

JOB_CLOSE.

End form
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Are my start of/end of selection statements troubling?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Mar 2008 21:20:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/background-job-processing/m-p/3543411#M852439</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-26T21:20:31Z</dc:date>
    </item>
    <item>
      <title>Re: Background job processing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/background-job-processing/m-p/3543412#M852440</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe I'm not understanding, but try this I hope it helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
START-OF-SELECTION
break-point.
SUBMIT ZPROGRAMA USER SYST-UNAME           
  VIA JOB JOBNAME
  NUMBER  JOBCOUNT
  AND RETURN.
break-point.
END-OF-SELECTION.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you debugging step by step? if yes, try to stop at the first brea-point. then press f8 to go to the second break and see what happens&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Mar 2008 21:26:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/background-job-processing/m-p/3543412#M852440</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-26T21:26:40Z</dc:date>
    </item>
    <item>
      <title>Re: Background job processing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/background-job-processing/m-p/3543413#M852441</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;When you use the JOB_OPEN.... it returns a variable JOBCOUNT. Please try passing that to the SUBMIT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your program should work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Mar 2008 21:28:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/background-job-processing/m-p/3543413#M852441</guid>
      <dc:creator>rajasekhar_matukumalli3</dc:creator>
      <dc:date>2008-03-26T21:28:40Z</dc:date>
    </item>
    <item>
      <title>Re: Background job processing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/background-job-processing/m-p/3543414#M852442</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I did that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;after the submit part control is coming back. But during the submit it's not executing the PROGRAM A. But getting into the standard background program.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Mar 2008 21:31:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/background-job-processing/m-p/3543414#M852442</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-26T21:31:00Z</dc:date>
    </item>
    <item>
      <title>Re: Background job processing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/background-job-processing/m-p/3543415#M852443</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you tried putting a break in Zprograma and not debbuging the submit to see if it enters?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've had problems using call transaction in the debbuger, maybe that's the problem&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edit: Almost forget, what is the sy-subrc value after the submit?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Ramiro Escamilla on Mar 26, 2008 10:38 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Mar 2008 21:33:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/background-job-processing/m-p/3543415#M852443</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-26T21:33:30Z</dc:date>
    </item>
    <item>
      <title>Re: Background job processing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/background-job-processing/m-p/3543416#M852444</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Raja shekhar...if you see my code snippet....I have already passed my jobcount.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do I need to have initialization, start of selections statements in both the programs.....???&lt;/P&gt;&lt;P&gt;Or need to have those only in the program which submits the other one?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Plz clarify&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Mar 2008 21:34:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/background-job-processing/m-p/3543416#M852444</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-26T21:34:08Z</dc:date>
    </item>
    <item>
      <title>Re: Background job processing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/background-job-processing/m-p/3543417#M852445</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ramiro...it's the same. I tried to  jump with F8 with those break points. no change.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the program that I am submitting has a selection screen.&lt;/P&gt;&lt;P&gt;It's never branching out for me to enter any data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Based on the selection criteria data has to be retrieved in background. but it's never getting into that program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sy-subrc is 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Alchemi on Mar 26, 2008 4:41 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Mar 2008 21:40:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/background-job-processing/m-p/3543417#M852445</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-26T21:40:38Z</dc:date>
    </item>
    <item>
      <title>Re: Background job processing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/background-job-processing/m-p/3543418#M852446</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alchemi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need to fill the Selection Screen data of PROGRAMA before you call it through SUBMIT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please find the syntax:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUBMIT ZPROGRAMA AND RETURN&lt;/P&gt;&lt;P&gt;   USER SY-UNAME&lt;/P&gt;&lt;P&gt;   VIA JOB JOBNAME NUMBER JOBCOUNT&lt;/P&gt;&lt;P&gt;   WITH &amp;lt;Selection-Screen Variable1 of ZPROGRAMA&amp;gt; = Value1&lt;/P&gt;&lt;P&gt;   WITH &amp;lt;Selection-Screen Variable2 of ZPROGRAMA&amp;gt; = Value2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you Selection-Screen Variable is Select-Option, declare a variable of type RANGES and fill all the required values and then pass it intead of Value1/2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you Selection-Screen Variable is a parameter then just pass the value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this solves your problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Mar 2008 21:55:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/background-job-processing/m-p/3543418#M852446</guid>
      <dc:creator>rajasekhar_matukumalli3</dc:creator>
      <dc:date>2008-03-26T21:55:26Z</dc:date>
    </item>
    <item>
      <title>Re: Background job processing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/background-job-processing/m-p/3543419#M852447</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks guys.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just realized that i need to pass the selection screen parameters. Let me try and do that.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Mar 2008 22:00:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/background-job-processing/m-p/3543419#M852447</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-26T22:00:16Z</dc:date>
    </item>
    <item>
      <title>Re: Background job processing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/background-job-processing/m-p/3543420#M852448</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;of course the cursor will come back to program B unless you say submit and wait. How are you trying to debug? Is the job visible in sm37? If the job has already finished, try to debug using jdbg command.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Mar 2008 07:35:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/background-job-processing/m-p/3543420#M852448</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-27T07:35:43Z</dc:date>
    </item>
  </channel>
</rss>

