• No results found

Background Job setup in SAP

N/A
N/A
Protected

Academic year: 2021

Share "Background Job setup in SAP"

Copied!
24
0
0

Loading.... (view fulltext now)

Full text

(1)

Contents

Introduction ... 2

How to find the associated program name of a transaction ... 2

Using menu option “Execute in Background” ... 3

Using define background job schedule transaction ... 4

Background job setup tasks ... 7

Define dependent background jobs ... 9

Setup period values for batch jobs ... 11

Using Job Wizard option ... 13

How to find batch jobs ... 18

How to stop a background job ... 19

How to “Release” a batch job that is “Scheduled ... 20

How to monitor background jobs ... 21

View Spool Requests ... 21

(2)

Introduction

It’s often required to run certain programs in background to avoid performance issues in SAP or to automate routine tasks. Most of the time we schedule customer invoice creation, delivery creation are background jobs in SAP. Sometimes if you have to do large number of data uploads to SAP, it’s advisable to run those programs in background as well. There are various methods to run / schedule programs in background. The advantage of background processing is that you can schedule the job to be run any time you want.

How to find the associated program name of a transaction

Let’s say to schedule delivery creation transaction “VL10C’ as a background job. First thing you need know is the ABAP program name associated with it. In order to find that you need to follow these steps;

 Call the transaction (Eg: VL10C)

 Click on the menu System / Status

(3)

Using menu option “Execute in Background”

Most of the standard SAP transactions SAP has given a menu options to run that program/ transaction in background.

Eg: Run VL10A transaction in background

 First you need to maintain the required selection options in the selection screens

(4)

Using define background job schedule transaction

Transaction: SM36

You can also access same transaction from the below menu path in the Easy Access Screen.

(5)
(6)

Click on button

IMPORTANT:

When you’re setting up a background job, you can schedule it under your name. But to execute the program it’s advisable to have a “system user” created and assigned under “USER” field.

This way, you can ensure the job will run, even though your user ID is locked.

Such user ID is created as “System users” with SAP_ALL access; where as normal users are dialog users with limited access. System user does not have a SAP login whereas dialog users have a SAP login.

(7)

Background job setup tasks

When you’re going to setup a background job, below steps needs to be completed to specify the required data / time that the job needs to be executed.

 You will get the below pop up to set the desired start time for your background job. Depend on the requirement you can set whether it needs to start immediately or at a given date/time.

(8)

Save the job using button Now go back to

o Click on , if you want to set a different date / time to start your program in background. Once you click on that, system will give you a popup to specify the date / time criteria

(9)

In this example, I will set my job to start at 04.08.2014 at 6 PM

Define dependent background jobs

 If you want to run your program after a certain batch job, then select the option For example, in IS-AFS, the delivery creation batch job should run only after the allocation batch job

(10)

Save the job using button

o In case if you cannot use any of above date / time options, but need to run in different calendar, you can do that via factory calendar option. In order to do that, you will have to select the button

(11)

 Maintain the factory calendar options. If you want to learn about, how to create your own factory calendar, please click here.

Save the job using button

Setup period values for batch jobs

(12)

Specify the period value.

Save the job using button

(13)

Using Job Wizard option

You can also follow same steps from the button in the SM36 transaction

(14)

 Enter your job name, priority and select button

(15)

 Enter program name and select the variant and click on button

 If you want to setup multi step background jobs, you can define it by selecting check box

(16)

 Now you can define the frequency you want your job to be scheduled in the below screen. Click

on button

(17)

 Click on button

(18)

How to find batch jobs

Transaction: SM37

You can find your batch job using the above transaction.

“Status” released are the batch jobs that will run next. Any batch job that is marked as “Scheduled” will not run.

(19)

You can access all batch jobs created under your user ID using below menu path

How to stop a background job

If you want to stop any batch from running, you can set the “Released” status to “Scheduled”. From transaction SM37, select the batch job and click on menu

(20)

Result:

Since the batch job is “Scheduled”, this will not run until you set it back to “Released”

How to “Release” a batch job that is “Scheduled

Transaction: SM37

(21)

How to monitor background jobs

Transaction: SM37

You can use the transaction SM37 to monitor background jobs.

View Spool Requests

Transaction: SP01

You can also access same transaction using below menu option

(22)

 You will see list of spool requests

 After selecting the correct spool, by using button you can preview results

(23)

List of collective run

As an example, if you schedule billing documents in batch job using program RV60SBAT, you can view those billing documents that got created using transaction V.21

Author: Anupa Wijesinghe

E-Mail: [email protected] / [email protected] Website: www.learnsaptips.com

View my profile in LinkedIn Follow me on Twitter

(24)

Disclaimer

This article is done based on my research and readings, unless otherwise stated. The views expressed are my own and not of anyone else.

Author accepts no liability for the content of the articles in this website or for the consequences of any actions taken on the basis of the information provided. Using this information is at the users own discretion and responsibility.

References

Related documents

Instead of providing the conventional QoS based on the IP address which has many flaws, AscenFlow uses the policy-based bandwidth management approach and provides

This provides your travelers with the freedom to book how they want, while providing fully integrated expense reports and giving you instant visibility into travel spending as

He suggested three options for official statistics production: Ignore Big Data, destroy all official statistical systems and replace them with Big Data, or blend Big Data

To analyze only endogenous subclinical hypothyroidism, we excluded 253 participants in the Cardiovascular Health Study, 207 in the Health ABC Study, 43 in the Osteoporotic Fractures

Attainable distances may vary by up to 30 % due to component tolerances, mounting con- ditions, ambient conditions and material quali- ties (especially when mounted in metal) Testing

This paper uses a biopsychosocial framework to examine co-occurring mental health problems, victimization, substance dependence, sexual risk and physical pain among a sample of

A re- sponse with respect to mean arterial pressure was achieved by a greater proportion of patients in the angiotensin II group who were receiving norepi- nephrine-equivalent

[r]