Monday, 15 April 2019

Background Jobs notes 4:Background job processing

Background Jobs notes 4:time based Background job processing


Types of time based BG job scheduling


  1. immediate start job.
  2. periodic scheduling (particular time/Date).
Ex programs: RSPARAM ,RSPFPAR to check profile parameters.


Note:
suppose to get the program for the respective t-code:
2 ways are available
1. Access the T-code --> system--> status.
2. SE16 -->TSTC -->filter with T-code, which need program information.

  • the scheduling of program,as a BG  job can also done directly from the program in se38 itself.
menu --> program -->execute in background--> provide o/p device --> start time--> provide start condition-->check -->save.

the monitor of background job output can be done in sm37.
job logs: To check the status of job. example: job stated, no. of PO created,job finished.
Spool:select the job --> spool--> to see the output of background job --> click on print --> to print the output of background job.


info: variant info of already scheduled info can be found in job logs.

creation of variant:
-->provide: program name
-->select (.) variants check box
-->display 
-->edit
-->create
-->provide variant name -->click on create.

--> screen prompts for target(program) screen.
--> provide the variant input.
-->click on Attributes
--> provide meaning.
-->SAVE.

creation of variant process completed.

* if the need of BG job for single time only then specify the variant in the program screen and choose execute in background option.


scheduling a background job in sm36:

1. access T-code: sm36

2.provide General data:

                              --> job name.
                              -->job class.
                              -->Exec target 
                              -->spool list recipient.
3.step --> program

                  ABAP program:
                      -->name:

                      -->Variant:
                      -->language:

4.click on check.
5.SAVE.
6. To create multiple steps in same BG job. --> click on create button.
7.Back.
8.start condition:

provide start time/Date inputs.

check
save
9. save again.

Notes:
-->To check the detail output of the BG job. use spool option.


  • rdisp/btctime --> background job scheduler.
  • the purpose of these parameter is when a job is schedule at BG job at Immediately.But the all BG  WP are Busy.then the scheduled BG job will save in SAP table, these schedular parameter will read the wait BG jobs from the tables and Execute again.
  • rdisp/btctime is used to load balancing also, if the SAP Application is multi Dialog instance one.
  • if the ''Exec target server'' is not maintained in the BG job general data, then the paramter rdisp/btctime allocate the free instance to complete the BG jobs in the wait queue.
  • increase the value of rdisp/btctime is possible.
  • Date/time background job scheduling,follow the GUI time, not the system(user) time.
  • change layout option is for adding additional information.
  • variant info,can be obtain in sm37-->select the job-->Menu -->Go to -->variants.
  • periodic job:
step1: General data

                job name
               class
               exec. target

step2:


step

provide step  info

Step3:

provide info:

periodic time
NO after time
time for scheduling etc..,

click check
click save

SAVE in sm36 screen.

info: To get the details start time & end time info, of BG job which need to double click on it.


  • if the BG job is in schedule or released status can be modified.
  • when copy of BG job happened,the start condition will not copy.






No comments:

Post a Comment