<?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: ABAP and Java-like Threads in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-and-java-like-threads/m-p/1464749#M218993</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is a example of JOB_SUBMIT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/fa/096d4d543b11d1898e0000e8322d00/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/fa/096d4d543b11d1898e0000e8322d00/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You just need to call the JOB_OPEN, get the job number and pass that to JOB_SUBMIT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At the end you call JOB_CLOSE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you already have a program that is going to schedule the jobs, then you don't need a base program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;P&gt;Note :Please mark all the helpful answers and close the thread if your issue is resolved.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 07 Aug 2006 20:59:23 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-08-07T20:59:23Z</dc:date>
    <item>
      <title>ABAP and Java-like Threads</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-and-java-like-threads/m-p/1464744#M218988</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the following question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The abap program should check queue, the database and //do something, after the defined time intervals. For example two times daily.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would do it with a thread (demon) in Java. That will sleep and wake when it is necessary to perform some operations.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any possibility to write a program in ABAP for SAP, that will do the same? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To sleep, wake up - check something, send something and to sleep again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Aug 2006 16:25:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-and-java-like-threads/m-p/1464744#M218988</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-07T16:25:45Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP and Java-like Threads</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-and-java-like-threads/m-p/1464745#M218989</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can schedule a program in SAP which will run at a specified time. You have options like scheduling it everyday, once a week, etc.&lt;/P&gt;&lt;P&gt;The report output will be generated as a spool which can be checked.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a look a transaction SM36. The first button, 'Start condition', 'Steps' etc should give you an idea.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can check on the status of your job in SM37.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sudha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Aug 2006 16:50:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-and-java-like-threads/m-p/1464745#M218989</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-07T16:50:13Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP and Java-like Threads</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-and-java-like-threads/m-p/1464746#M218990</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Sudha, thanks for your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a possibility to start an abap-program from the other one and from this program to execute some functions for example twice a day and then to stop execution if something happens. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It seems to me, that with this SM36 transaction we have to do all manually. And we can't start and stop it if something happens.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Aug 2006 18:31:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-and-java-like-threads/m-p/1464746#M218990</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-07T18:31:35Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP and Java-like Threads</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-and-java-like-threads/m-p/1464747#M218991</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;We can do dynamic job scheduling from a ABAP program as well. You will have call the function modules JOB_OPEN / JOB_SUBMIT / JOB_CLOSE to do the same and you have a background job on the run.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, you would still need the base program to be scheduled twice a day and then internally it will kick off the other program depending on your condition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;P&gt;Note :Please mark all the helpful answers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Aug 2006 18:39:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-and-java-like-threads/m-p/1464747#M218991</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-07T18:39:01Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP and Java-like Threads</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-and-java-like-threads/m-p/1464748#M218992</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Ravikumar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do you have any code sample (Report - Programm), how to do this dynamic job from an ABAP program. I am interested in an update twice a day.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt;However, you would still need the base program to be &amp;gt;scheduled twice a day and then internally it will kick &amp;gt;off the other program depending on your condition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You meant I need a program that will set a job twice a day? Why do I need a base program, if I can set a job dynamically and this program will execute all what I want and set next job in 12 hours?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Aug 2006 20:36:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-and-java-like-threads/m-p/1464748#M218992</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-07T20:36:26Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP and Java-like Threads</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-and-java-like-threads/m-p/1464749#M218993</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is a example of JOB_SUBMIT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/fa/096d4d543b11d1898e0000e8322d00/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/fa/096d4d543b11d1898e0000e8322d00/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You just need to call the JOB_OPEN, get the job number and pass that to JOB_SUBMIT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At the end you call JOB_CLOSE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you already have a program that is going to schedule the jobs, then you don't need a base program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;P&gt;Note :Please mark all the helpful answers and close the thread if your issue is resolved.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Aug 2006 20:59:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-and-java-like-threads/m-p/1464749#M218993</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-07T20:59:23Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP and Java-like Threads</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-and-java-like-threads/m-p/1464750#M218994</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the fast answer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The last question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I looked at the sample, so I JOB_OPEN, get the job number etc. But where should I put the code, that will be executed by this job (my program ZWPROG_TEST1)?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have an ABAP-Program (ZWPROG_JOBS_FOR_TEST1) and make the following calls:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'JOB_OPEN'&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'JOB_SUBMIT' &lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'JOB_CLOSE'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where should I define the time and set the ZWPROG_TEST1 that will be executed?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Aug 2006 21:16:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-and-java-like-threads/m-p/1464750#M218994</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-07T21:16:30Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP and Java-like Threads</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-and-java-like-threads/m-p/1464751#M218995</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can define a job based on an event in the start condition in SM36.&lt;/P&gt;&lt;P&gt;Use transaction SM62 to define a user event.&lt;/P&gt;&lt;P&gt;Trigger the event using function module BP_EVENT_RAISE from another abap program&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;you can trigger the event from operation system using sap provided executable program SAPEVT in unix dir UNIX: /usr/sap/&amp;lt;R/3 System ID&amp;gt;/SYS/exe/run.&lt;/P&gt;&lt;P&gt;Add SAPEVT to cron daemon.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Refer to the following link to use events in the background processing&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;a href="http://help.sap.com/saphelp_nw04/helpdata/en/fa/096e2a543b11d1898e0000e8322d00/frameset.htm"&amp;gt;Using Events to Trigger Job Starts&amp;lt;/a&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sridhar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Aug 2006 21:52:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-and-java-like-threads/m-p/1464751#M218995</guid>
      <dc:creator>sridhar_k1</dc:creator>
      <dc:date>2006-08-07T21:52:27Z</dc:date>
    </item>
  </channel>
</rss>

