{"id":212,"date":"2024-10-28T20:45:00","date_gmt":"2024-10-28T20:45:00","guid":{"rendered":"https:\/\/xamai.com\/que-es-un-job-en-sap\/"},"modified":"2026-05-19T12:32:05","modified_gmt":"2026-05-19T18:32:05","slug":"que-es-un-job-en-sap","status":"publish","type":"post","link":"https:\/\/www.xamai.com\/en\/blog\/que-es-un-job-en-sap","title":{"rendered":"What is a Job in SAP?"},"content":{"rendered":"<p><em>We explain how Jobs work in SAP and how these programs benefit industries<\/em><\/p>\n<p><!--more--><\/p>\n<p>It is a set of one or more programs or transactions that are launched in a background process. We use them to schedule repetitive tasks and long processes. Some are created, and others are born with the system, meaning when the system is installed.<\/p>\n<p>These jobs mainly perform certain cleaning tasks on the system, such as deleting obsolete spool requests or processing statistical and monitoring information.<\/p>\n<h2>Job States:<\/h2>\n<p>&nbsp;<\/p>\n<ul>\n<li>Planned: Initial state, when general data is defined.<\/li>\n<li>Released: It remains in this state until the launch date is defined.<\/li>\n<li>Prepared: When the start conditions for jobs are met.<\/li>\n<li>Active: The job is being processed.<\/li>\n<li>Finished: The job is complete.<\/li>\n<li>Canceled: A problem caused it not to conclude normally.<\/li>\n<\/ul>\n<p>They are also classified as:<\/p>\n<ul>\n<li>Class A: High priority<\/li>\n<li>Class B: Medium priority<\/li>\n<li>Class C: Normal priority\n<\/li>\n<\/ul>\n<h2><\/h2>\n<h2>Advantages of Jobs or why to run a program in the background<\/h2>\n<p>One of the main advantages of running a program in the background is that we can schedule its execution for a specific date and time without needing to be in front of the computer.<\/p>\n<p>Furthermore, by launching it as a background process, it does not interfere with other dialog processes, as it uses BTC processes, which guarantees that other users are not affected in their work.<\/p>\n<p>Another advantage is that, if the scheduling has a prolonged execution time, SAP will not generate a timeout error in the event. This allows you to run long-running programs and obtain the results without interruptions or failures.<\/p>\n<h3><span style=\"color: #ee7812;\">Ways to launch Jobs<\/span><\/h3>\n<h4><span style=\"font-weight: bold; color: #707070;\">Directly from the program or transaction.<\/span><\/h4>\n<p>You can launch a job immediately from a specific transaction or program. This is done by executing the program or transaction that carries out a particular task with the tool<br \/>This is an ideal option for punctual or on-demand executions.<\/p>\n<h4><span style=\"color: #707070;\">Scheduling Jobs using transaction SM36.<\/span><\/h4>\n<p>Transaction SM36 allows scheduling jobs in SAP. By defining the job name, selecting the program to be executed, and setting parameters such as the time and frequency of execution.<\/p>\n<p>This option is useful for tasks that require automation or periodic execution.<\/p>\n<h4><span style=\"color: #707070;\">Launching via events (SM64)<\/span><\/h4>\n<p>Through transaction SM64, you can schedule jobs that run based on specific events in the system. This allows a job to be activated automatically when a predefined event occurs, without the need for manual intervention or time-based scheduling.<\/p>\n<h4><span style=\"color: #707070;\">Through variants and scheduling with SM37<\/span><\/h4>\n<p>Transaction SM37 allows you to monitor, reschedule, and manage scheduled jobs. Using variants and rescheduling options is a way to adjust and launch already scheduled jobs or reschedule them with specific user parameters.<\/p>\n<h4><span style=\"color: #707070;\">Execute a Job directly from a program or transaction<\/span><\/h4>\n<p>It is possible to create Jobs only in those programs or transactions that support background execution functionality. Generally, all reports can be launched in background mode. An example would be transaction AFAB, used to post fixed asset depreciation.<\/p>\n<p>When we know exactly what a job is in SAP, we understand that it is possible to specify the ABAP program to be executed, input variants (if applicable), and the start time, either immediately or on a scheduled date\/time in the system.<\/p>\n<p>In addition, priorities can be assigned, dependencies between Jobs can be defined, and additional parameters can be set, such as system resource allocation.<\/p>\n<p>This allows to improve the workflow and ensure that the most important processes are executed efficiently in the background.<\/p><\/p>","protected":false},"excerpt":{"rendered":"<p><em>We explain how Jobs work in SAP and how these programs benefit industries<\/em><\/p>","protected":false},"author":4,"featured_media":350042,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"content-type":"","footnotes":""},"categories":[22],"tags":[],"class_list":["post-212","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-recursos_humanos"],"_links":{"self":[{"href":"https:\/\/www.xamai.com\/en\/wp-json\/wp\/v2\/posts\/212","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.xamai.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.xamai.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.xamai.com\/en\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.xamai.com\/en\/wp-json\/wp\/v2\/comments?post=212"}],"version-history":[{"count":1,"href":"https:\/\/www.xamai.com\/en\/wp-json\/wp\/v2\/posts\/212\/revisions"}],"predecessor-version":[{"id":353732,"href":"https:\/\/www.xamai.com\/en\/wp-json\/wp\/v2\/posts\/212\/revisions\/353732"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.xamai.com\/en\/wp-json\/wp\/v2\/media\/350042"}],"wp:attachment":[{"href":"https:\/\/www.xamai.com\/en\/wp-json\/wp\/v2\/media?parent=212"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.xamai.com\/en\/wp-json\/wp\/v2\/categories?post=212"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.xamai.com\/en\/wp-json\/wp\/v2\/tags?post=212"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}