{"id":1946,"date":"2014-09-13T14:24:37","date_gmt":"2014-09-13T14:24:37","guid":{"rendered":"http:\/\/sapsecurityanalyst.com\/WP\/?page_id=1946"},"modified":"2015-05-03T09:56:42","modified_gmt":"2015-05-03T09:56:42","slug":"sm36","status":"publish","type":"page","link":"https:\/\/sapsecurityanalyst.com\/WP\/sm36\/","title":{"rendered":"SM36"},"content":{"rendered":"<p>&nbsp;<\/p>\n<p>Tcode SM36 is used for creating background jobs. Below screenshot shows initial background job definition screen:<\/p>\n<p>&nbsp;<\/p>\n<p id=\"EPngZcE\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-1947 size-full\" src=\"https:\/\/sapsecurityanalyst.com\/WP\/wp-content\/uploads\/2014\/09\/img_540ad5e12845b.png\" alt=\"\" width=\"603\" height=\"475\" srcset=\"https:\/\/sapsecurityanalyst.com\/WP\/wp-content\/uploads\/2014\/09\/img_540ad5e12845b.png 603w, https:\/\/sapsecurityanalyst.com\/WP\/wp-content\/uploads\/2014\/09\/img_540ad5e12845b-300x236.png 300w, https:\/\/sapsecurityanalyst.com\/WP\/wp-content\/uploads\/2014\/09\/img_540ad5e12845b-290x228.png 290w, https:\/\/sapsecurityanalyst.com\/WP\/wp-content\/uploads\/2014\/09\/img_540ad5e12845b-150x118.png 150w\" sizes=\"(max-width: 603px) 100vw, 603px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>Below Screenshot shows Job class A, B and C which has been discussed in the previous post:<\/p>\n<p>&nbsp;<\/p>\n<p id=\"IeikgfT\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-1948 size-full\" src=\"https:\/\/sapsecurityanalyst.com\/WP\/wp-content\/uploads\/2014\/09\/img_540ad688b4bd7.png\" alt=\"\" width=\"433\" height=\"279\" srcset=\"https:\/\/sapsecurityanalyst.com\/WP\/wp-content\/uploads\/2014\/09\/img_540ad688b4bd7.png 433w, https:\/\/sapsecurityanalyst.com\/WP\/wp-content\/uploads\/2014\/09\/img_540ad688b4bd7-300x193.png 300w, https:\/\/sapsecurityanalyst.com\/WP\/wp-content\/uploads\/2014\/09\/img_540ad688b4bd7-290x186.png 290w, https:\/\/sapsecurityanalyst.com\/WP\/wp-content\/uploads\/2014\/09\/img_540ad688b4bd7-150x96.png 150w\" sizes=\"(max-width: 433px) 100vw, 433px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>For background jobs to execute, we have to specify their start condition in SM36:<\/p>\n<p id=\"aguoSWP\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-1950 size-full\" src=\"https:\/\/sapsecurityanalyst.com\/WP\/wp-content\/uploads\/2014\/09\/img_540ae4178f3f2.png\" alt=\"\" width=\"590\" height=\"66\" srcset=\"https:\/\/sapsecurityanalyst.com\/WP\/wp-content\/uploads\/2014\/09\/img_540ae4178f3f2.png 590w, https:\/\/sapsecurityanalyst.com\/WP\/wp-content\/uploads\/2014\/09\/img_540ae4178f3f2-300x33.png 300w, https:\/\/sapsecurityanalyst.com\/WP\/wp-content\/uploads\/2014\/09\/img_540ae4178f3f2-290x32.png 290w, https:\/\/sapsecurityanalyst.com\/WP\/wp-content\/uploads\/2014\/09\/img_540ae4178f3f2-150x16.png 150w\" sizes=\"(max-width: 590px) 100vw, 590px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>There are various start conditions as shown in the below screenshot. There are various options for start time:<\/p>\n<ul>\n<li>Immediate<\/li>\n<li>On specific date\/time<\/li>\n<li>After job<\/li>\n<li>After event<\/li>\n<li>At operation mode<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<p id=\"MKKJKFg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-1949 size-full\" src=\"https:\/\/sapsecurityanalyst.com\/WP\/wp-content\/uploads\/2014\/09\/img_540ad8479c90a.png\" alt=\"\" width=\"607\" height=\"604\" srcset=\"https:\/\/sapsecurityanalyst.com\/WP\/wp-content\/uploads\/2014\/09\/img_540ad8479c90a.png 607w, https:\/\/sapsecurityanalyst.com\/WP\/wp-content\/uploads\/2014\/09\/img_540ad8479c90a-150x150.png 150w, https:\/\/sapsecurityanalyst.com\/WP\/wp-content\/uploads\/2014\/09\/img_540ad8479c90a-300x298.png 300w, https:\/\/sapsecurityanalyst.com\/WP\/wp-content\/uploads\/2014\/09\/img_540ad8479c90a-75x75.png 75w, https:\/\/sapsecurityanalyst.com\/WP\/wp-content\/uploads\/2014\/09\/img_540ad8479c90a-290x288.png 290w\" sizes=\"(max-width: 607px) 100vw, 607px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>If no start time is defined, the job will be saved but will not be executed unless the administrator defines the start time and releases the job. The jobs are not executed until they are released, independently of the start time defined.<\/p>\n<p>&nbsp;<\/p>\n<p>Let&#8217;s go through the various start time options:<\/p>\n<p>&nbsp;<\/p>\n<ul>\n<li>At a specified date and time<\/li>\n<\/ul>\n<p>The Date\/Time option allows to specify the date and time when the job will be processed.<\/p>\n<p>&nbsp;<\/p>\n<ul>\n<li>After Job<\/li>\n<\/ul>\n<p>The job can be started\u00a0after the execution of a specified background job. This option very useful in case of cascaded jobs which need to be executed one after another.<\/p>\n<p>&nbsp;<\/p>\n<ul>\n<li>After Event<\/li>\n<\/ul>\n<p>Events are signals which indicate that a certain condition or stage has been reached e.g. performing a certain database operation can be an event. Events can be triggered by ABAP programs, by the SAP System itself or by the sapevt program from the OS.<\/p>\n<p>&nbsp;<\/p>\n<ul>\n<li>At Operation mode<\/li>\n<\/ul>\n<p>Background jobs can be executed when the system changes the operation mode. This option can be quite useful for administrators when having to\u00a0reschedule jobs at a more convenient time in order to optimize system\u00a0resources and performance. We will discuss more about operation mode in another post.<\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"text-decoration: underline;\"><strong>The Job Status:<\/strong><\/span><\/p>\n<p>A job can have the following status:<\/p>\n<p>&nbsp;<\/p>\n<ul>\n<li>Scheduled<br \/>\nThe steps of the job have already been defined; however, the start condition\u00a0must still be defined.<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul>\n<li>Released<br \/>\nThe job has been completely defined, including its start condition.<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul>\n<li>Ready<br \/>\nThe start condition of a released job has been fulfilled. A job scheduler has\u00a0placed the job in the wait queue for a free background work process.<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul>\n<li>Active<br \/>\nThe job is currently being executed and cannot be deleted or changed.<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul>\n<li>Finished<\/li>\n<\/ul>\n<p>All steps of this job were successfully completed.<\/p>\n<p>&nbsp;<\/p>\n<ul>\n<li>Canceled<br \/>\nThe job got terminated. \u00a0This can happen in two ways:<\/li>\n<\/ul>\n<ol>\n<li>An administrator deliberately terminates the job\u00a0by choosing Job \u2192Cancel active job.<\/li>\n<li>A job step is terminated with an error.<\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>&nbsp; Tcode SM36 is used for creating background jobs. Below screenshot shows initial background job definition screen: &nbsp; &nbsp; Below Screenshot shows Job class A, B and C which has been discussed in the previous post: &nbsp; &nbsp; &nbsp; For background jobs to execute, we&nbsp;<a class=\"read-more\" href=\"https:\/\/sapsecurityanalyst.com\/WP\/sm36\/\">&hellip;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"_links":{"self":[{"href":"https:\/\/sapsecurityanalyst.com\/WP\/wp-json\/wp\/v2\/pages\/1946"}],"collection":[{"href":"https:\/\/sapsecurityanalyst.com\/WP\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/sapsecurityanalyst.com\/WP\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/sapsecurityanalyst.com\/WP\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/sapsecurityanalyst.com\/WP\/wp-json\/wp\/v2\/comments?post=1946"}],"version-history":[{"count":3,"href":"https:\/\/sapsecurityanalyst.com\/WP\/wp-json\/wp\/v2\/pages\/1946\/revisions"}],"predecessor-version":[{"id":1954,"href":"https:\/\/sapsecurityanalyst.com\/WP\/wp-json\/wp\/v2\/pages\/1946\/revisions\/1954"}],"wp:attachment":[{"href":"https:\/\/sapsecurityanalyst.com\/WP\/wp-json\/wp\/v2\/media?parent=1946"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}