Sap Sm36



What

SAP Background Job Creation in SM36.

Skip to end of metadataGo to start of metadata

Executing Background Jobs in SAP. Background jobs in SAP system run in the background without affecting normal operations in the system. These jobs are used to reduce manual effort and to automate the process. Transaction Code SM36. Enter the Job Name and its Priority. Select the target server on which you want to execute the. If your SAP system did send the mail, then you need to start looking at the email subsystem. Unfortunately, I can’t really help wit that – I’ve set them up on both UNIX and Windows servers, but I’m definitely not an expert on them. I have setup a job in SM36 with “Spool List Recipient” containing my yahoo email (below).

Step1: Create event from transaction SM62.


Give event name and description and press save button


Step2: Create a program that triggers this event by calling the FM 'BP_EVENT_RAISE'.


Step3: Configure the background job from transaction SM36.

Sap Sm36

In the initial screen give job name and job class and press 'Start condition' button.
In the popup screen press 'After event' button and give the event name and then press save button.
Now go back to the initial screen and press 'Step' button
Provide program and variant name and after providing all the values press save button.
In the initial screen press save button.
Step4: Now execute the program to trigger the event and as well check the background job.
Run transaction SM37

Sap Sm36


Check the status of job created by the program.


Now check the spool to see the generated list


Transaction code SM36 is used to define and schedule the background jobs. You can define and schedule background jobs in two ways from the job overview:

Sap sm36 variant

• Directly from Transaction SM36. This is best for users already familiar with background job scheduling.

Sap Sm36 Standard Jobs

• The Job Scheduling Wizard. This is best for users unfamiliar with SAP background job scheduling. To use the Job Wizard, start from Transaction SM36, and either select Goto > Wizard version or simply use the Job Wizard button. The wizard prompts you for information about the job you are creating and scheduling.