Background Job Creation
To start a program in the background, include it in a job. Use the job definition to determine the programs or steps that run during this job. You can specify print parameters and set the start time for the execution of the job.
The job overview (transaction code SM37 ) informs the user about the current status of the job. The Job Wizard simplifies the creation of background jobs.
Definition of Steps
The procedure to define a job is as follows:
Determination of the Start Date and Releasing the Job
The steps to determine the start date and release of the job are as follows:
By following the above procedure, the job is released to run at the specified time. You can also use automated job scheduling with the function modules in the BTCH and BTC2 function groups.
Background Processing of an ALV Grid
When an ALV is called in the background, a print list (Classic ALV) is generated, which has a different appearance to an ALV which is displayed in dialog.
You can change the layout settings explicitly by programming initial sorting or aggregations, for example, or by specifying a layout variant.
If you try to instantiate a container control in the background an exception occurs. To avoid this, check the sy-batch system variable to ensure that you do not execute the CREATE OBJECT statement in this SY-BATCH will have the value ‘X’ if a program is run in the background, and space if not.