SlideShare una empresa de Scribd logo
1 de 8
Why Background Processing?

                                          Reasons for Background Processing
            Dispatcher                    Reducing load on dialog workprocesses


 D                                  B     Scheduling regular activities

                  vs




Mon   Tue   Wed   Thu   Fri   Sat   Sun



Mon   Tue   Wed   Thu   Fri   Sat   Sun
What is a Background Job?
                            Job 1               A job consists of one or more steps
                                                A job step is one of the following:
                             Job 2
                                                           ABAP program (maybe with
                              Job 3                          variants)
                              Step 1
                                                           external command
                                                           external program
                                                One job is processed by one background
                              Step n              workprocess


A job can be triggered                                           There are 6 priorities:
                                               high
               12
                                                                      Class A job with target server
                                                                      Class A job without target server
          11        1
        10              2
       9                3           by time           Priority        Class B job with target server
        8               4
            7 6     5
                                                                      Class B job without target server
                                                                      Class C job with target server
                                                                      Class C job without target server
                                    by event   low
Task flow              Defining a Job Using the Job Wizard
            Transaction SM36             General job                                     Define                                    Define
               Job Wizard                information                                     a step                              start conditions




 The Job Wizard is an easy way to
 create a job.                               Start condition of a job could be one of th
                                                                                           Congratulations!
                                             1.) immediately - meaning as soon as pos
 Step-by-step dialog screens guide you       2.) based on exact date time assignment
 through the process.                                                                      You have successfully defined a job. Choose 'Done' to
                                             3.) after another job                         actually create the job in the system.
                                             4.) after an event
 You can use the navigation buttons
 go back to previous steps.                  5.) when a certain operation mode switch      You can also choose 'Back' to revise the job definition or
                                                                                           Cancel' to cancel the whole process.
 On the last screen, you will see what             Immediately

 you have defined before you save                  Date/time
                                                                                           ------------------------------------------------------------------
                                                   After job
                                                   After event
                                                   At operation mode switch                Here is the job you have defined:
                                                   Start on workday
                                                   Job not released
                                                                              Job view     Job name : GULP

                                                                                           Job class : C - LOW PRIORITY

                                                                                           Target server :

                                                                                                              Back               Complete              Cancel
Start Conditions of a Job
                                       12
                                  11        1
                                10              2
Time based                      9               3   Event based
                                8               4
                                    7 6     5




Immediate                                            After event
     once or periodically                                 once or periodically
     if periodic, exceptions                              with or without parameter
         possible
                                                     After job
At Date/Time                                              status dependent 1
                                                                         Job      Job 2

     once or periodically
     if periodic, exceptions                         At change of
         possible                                       operation mode
                                                                          Day     Night

On chosen workday (per month)
     once or periodically

   rdisp/btctime                                       rdisp/btcname
Executing Programs as Job Steps
R/3 System

     ABAP Program          External Command        External Program



    No selection screen



   With selection screen   predefined within R/3
                                                   Any command on
           +               • Operating system
                           • Command
                                                   Operating System
                                                         level
          Variant          • Parameters




                                 sapxpg                 sapxpg




Operating System           External Program        External Program
Status of a Job
                                  Scheduled

                                                         Change job


                                  Released




                                   Ready




                                   Active



                                                         Monitor
                                                          Job log
                       Finished               Canceled
Use Copy                                                  Spool list

to create a new job                                       (only for ABAPs)
Operation Modes: Concept
                          NIGHT


                                      Background
                     12
                                       processing
                11        1
              10              2
  Dialog      9                   3
                                                      12

processing
                                                 11        1
                                         10                    2
              8               4          9                         3


                   7 6 5                     8
                                                  7   6    5
                                                               4




                                                               BTC



             DAY
Job Monitoring: Text Form
Job overview and




                                 t
path to more details




                              lis


                                          og
                                        bl
                                l
                             oo


                                      Jo
                          Sp

                                    us
Selection



                                  t
                               Sta
 criteria




                                               …
                                                   Jo
Double-click                                          b   de
on line for ...                                              tai
                                                                 ls

Más contenido relacionado

Similar a 10 background-processing

Scheduling bods jobs sequentially and conditionally
Scheduling bods jobs sequentially and conditionallyScheduling bods jobs sequentially and conditionally
Scheduling bods jobs sequentially and conditionally
Chandra Reddy
 
Outbrain River Presentation at Reversim Summit 2013
Outbrain River Presentation at Reversim Summit 2013Outbrain River Presentation at Reversim Summit 2013
Outbrain River Presentation at Reversim Summit 2013
Harel Ben-Attia
 
Software Testing with Agile Requirements Practices
Software Testing with Agile Requirements Practices Software Testing with Agile Requirements Practices
Software Testing with Agile Requirements Practices
A B M Moniruzzaman
 

Similar a 10 background-processing (20)

Analysing in depth work manager
Analysing in depth work managerAnalysing in depth work manager
Analysing in depth work manager
 
Spring batch
Spring batchSpring batch
Spring batch
 
Jira Training
Jira TrainingJira Training
Jira Training
 
Scheduling bods jobs sequentially and conditionally
Scheduling bods jobs sequentially and conditionallyScheduling bods jobs sequentially and conditionally
Scheduling bods jobs sequentially and conditionally
 
Oozie Summit 2011
Oozie Summit 2011Oozie Summit 2011
Oozie Summit 2011
 
CA 7-final-ppt
CA 7-final-pptCA 7-final-ppt
CA 7-final-ppt
 
CA_7_final_ppt.ppt
CA_7_final_ppt.pptCA_7_final_ppt.ppt
CA_7_final_ppt.ppt
 
ITB_2023_Human-Friendly_Scheduled_Tasks_Giancarlo_Gomez.pdf
ITB_2023_Human-Friendly_Scheduled_Tasks_Giancarlo_Gomez.pdfITB_2023_Human-Friendly_Scheduled_Tasks_Giancarlo_Gomez.pdf
ITB_2023_Human-Friendly_Scheduled_Tasks_Giancarlo_Gomez.pdf
 
Nov 2011 HUG: Oozie
Nov 2011 HUG: Oozie Nov 2011 HUG: Oozie
Nov 2011 HUG: Oozie
 
Outbrain River Presentation at Reversim Summit 2013
Outbrain River Presentation at Reversim Summit 2013Outbrain River Presentation at Reversim Summit 2013
Outbrain River Presentation at Reversim Summit 2013
 
OSMC 2008 | Lessons in Nagios Learnt From Developing Opsview by Ton Voon
OSMC 2008 | Lessons in Nagios Learnt From Developing Opsview by Ton VoonOSMC 2008 | Lessons in Nagios Learnt From Developing Opsview by Ton Voon
OSMC 2008 | Lessons in Nagios Learnt From Developing Opsview by Ton Voon
 
Oozie hugnov11
Oozie hugnov11Oozie hugnov11
Oozie hugnov11
 
Assign9
Assign9Assign9
Assign9
 
Android Bootstrap
Android BootstrapAndroid Bootstrap
Android Bootstrap
 
Introduction to Python Celery
Introduction to Python CeleryIntroduction to Python Celery
Introduction to Python Celery
 
Agile Project Management with Scrum (Jack Davis)
Agile Project Management with Scrum (Jack Davis)Agile Project Management with Scrum (Jack Davis)
Agile Project Management with Scrum (Jack Davis)
 
Anatomy of classic map reduce in hadoop
Anatomy of classic map reduce in hadoop Anatomy of classic map reduce in hadoop
Anatomy of classic map reduce in hadoop
 
Software Testing with Agile Requirements Practices
Software Testing with Agile Requirements Practices Software Testing with Agile Requirements Practices
Software Testing with Agile Requirements Practices
 
Easy job scheduling with android
Easy job scheduling with androidEasy job scheduling with android
Easy job scheduling with android
 
Scaling Kanban in the Enterprise with GreenHopper
Scaling Kanban in the Enterprise with GreenHopperScaling Kanban in the Enterprise with GreenHopper
Scaling Kanban in the Enterprise with GreenHopper
 

Más de sanganiraju

17 sap-memory-management (1)
17 sap-memory-management (1)17 sap-memory-management (1)
17 sap-memory-management (1)
sanganiraju
 
16 performance-tuning
16 performance-tuning16 performance-tuning
16 performance-tuning
sanganiraju
 
14 support-packs
14 support-packs14 support-packs
14 support-packs
sanganiraju
 
13 monitor-analyse-system
13 monitor-analyse-system13 monitor-analyse-system
13 monitor-analyse-system
sanganiraju
 
11 transport-system
11 transport-system11 transport-system
11 transport-system
sanganiraju
 
9 print-spool-system
9 print-spool-system9 print-spool-system
9 print-spool-system
sanganiraju
 
8 operation-modes
8 operation-modes8 operation-modes
8 operation-modes
sanganiraju
 
6 7-users-authorization
6 7-users-authorization6 7-users-authorization
6 7-users-authorization
sanganiraju
 
4 5-profile-and-startup (2)
4 5-profile-and-startup (2)4 5-profile-and-startup (2)
4 5-profile-and-startup (2)
sanganiraju
 
3 installation-setup-of-r3
3 installation-setup-of-r33 installation-setup-of-r3
3 installation-setup-of-r3
sanganiraju
 
1 basis technical-overview (2)
1 basis technical-overview (2)1 basis technical-overview (2)
1 basis technical-overview (2)
sanganiraju
 
18 sap-table-buffers
18 sap-table-buffers18 sap-table-buffers
18 sap-table-buffers
sanganiraju
 

Más de sanganiraju (15)

17 sap-memory-management (1)
17 sap-memory-management (1)17 sap-memory-management (1)
17 sap-memory-management (1)
 
16 performance-tuning
16 performance-tuning16 performance-tuning
16 performance-tuning
 
15 rfc
15 rfc15 rfc
15 rfc
 
14 support-packs
14 support-packs14 support-packs
14 support-packs
 
13 monitor-analyse-system
13 monitor-analyse-system13 monitor-analyse-system
13 monitor-analyse-system
 
12 client-tools
12 client-tools12 client-tools
12 client-tools
 
11 transport-system
11 transport-system11 transport-system
11 transport-system
 
9 print-spool-system
9 print-spool-system9 print-spool-system
9 print-spool-system
 
8 operation-modes
8 operation-modes8 operation-modes
8 operation-modes
 
6 7-users-authorization
6 7-users-authorization6 7-users-authorization
6 7-users-authorization
 
4 5-profile-and-startup (2)
4 5-profile-and-startup (2)4 5-profile-and-startup (2)
4 5-profile-and-startup (2)
 
3 installation-setup-of-r3
3 installation-setup-of-r33 installation-setup-of-r3
3 installation-setup-of-r3
 
2 system-kernel
2 system-kernel2 system-kernel
2 system-kernel
 
1 basis technical-overview (2)
1 basis technical-overview (2)1 basis technical-overview (2)
1 basis technical-overview (2)
 
18 sap-table-buffers
18 sap-table-buffers18 sap-table-buffers
18 sap-table-buffers
 

10 background-processing

  • 1. Why Background Processing? Reasons for Background Processing Dispatcher Reducing load on dialog workprocesses D B Scheduling regular activities vs Mon Tue Wed Thu Fri Sat Sun Mon Tue Wed Thu Fri Sat Sun
  • 2. What is a Background Job? Job 1 A job consists of one or more steps A job step is one of the following: Job 2 ABAP program (maybe with Job 3 variants) Step 1 external command external program One job is processed by one background Step n workprocess A job can be triggered There are 6 priorities: high 12 Class A job with target server Class A job without target server 11 1 10 2 9 3 by time Priority Class B job with target server 8 4 7 6 5 Class B job without target server Class C job with target server Class C job without target server by event low
  • 3. Task flow Defining a Job Using the Job Wizard Transaction SM36 General job Define Define Job Wizard information a step start conditions The Job Wizard is an easy way to create a job. Start condition of a job could be one of th Congratulations! 1.) immediately - meaning as soon as pos Step-by-step dialog screens guide you 2.) based on exact date time assignment through the process. You have successfully defined a job. Choose 'Done' to 3.) after another job actually create the job in the system. 4.) after an event You can use the navigation buttons go back to previous steps. 5.) when a certain operation mode switch You can also choose 'Back' to revise the job definition or Cancel' to cancel the whole process. On the last screen, you will see what Immediately you have defined before you save Date/time ------------------------------------------------------------------ After job After event At operation mode switch Here is the job you have defined: Start on workday Job not released Job view Job name : GULP Job class : C - LOW PRIORITY Target server : Back Complete Cancel
  • 4. Start Conditions of a Job 12 11 1 10 2 Time based 9 3 Event based 8 4 7 6 5 Immediate After event once or periodically once or periodically if periodic, exceptions with or without parameter possible After job At Date/Time status dependent 1 Job Job 2 once or periodically if periodic, exceptions At change of possible operation mode Day Night On chosen workday (per month) once or periodically rdisp/btctime rdisp/btcname
  • 5. Executing Programs as Job Steps R/3 System ABAP Program External Command External Program No selection screen With selection screen predefined within R/3 Any command on + • Operating system • Command Operating System level Variant • Parameters sapxpg sapxpg Operating System External Program External Program
  • 6. Status of a Job Scheduled Change job Released Ready Active Monitor  Job log Finished Canceled Use Copy  Spool list to create a new job (only for ABAPs)
  • 7. Operation Modes: Concept NIGHT Background 12 processing 11 1 10 2 Dialog 9 3 12 processing 11 1 10 2 8 4 9 3 7 6 5 8 7 6 5 4 BTC DAY
  • 8. Job Monitoring: Text Form Job overview and t path to more details lis og bl l oo Jo Sp us Selection t Sta criteria … Jo Double-click b de on line for ... tai ls

Notas del editor

  1. Dialog work processes are intended for dialog processing. For this reason, the duration of a dialog step is limited. Background processing is intended for operations that require a longer time to run. Background processing is also suitable for activities that are scheduled to run regularly, for example database backups or financial evaluations.
  2. A background job consists of one or more steps. A step can be: An ABAP program An external command An external program Each job is processed without interruption by a single background work process. A job can be triggered to run: At a predefined date and time At the occurrence of a predefined event Background jobs can be prioritized as: Class A (high priority) Class B (medium priority) Class C (low priority) Jobs allocated to target servers have higher priority than untargeted jobs.
  3. To define a new job, use transaction SM36 . From Release 4.6A, you can use the Job Wizard to define new jobs as follows: Specify job name, class, and optional target server Define a job step (a step can be an ABAP program, external command, or external program) Add further steps (if necessary) Start condition (time or event based) Complete the definition The Job Wizard allows you to go back and make changes at any point during the definition process.
  4. The start conditions of a job can be time based or event based. Time based : Immediate At date/time On a chosen workday (defined as a certain workday per month) All time-based start conditions can be periodic. That is, a job can be performed at regular, defined time intervals. Days that are not workdays can be treated as exceptions. Parameter rdisp/btctime specifies the time interval of the job scheduler. Event based : After event (optional parameters can be used to further specify events) These can be periodic. That is, the job can be triggered every time the event occurs. After job (this can depend on the status of the previous job) At change of operation mode (for example, between day and night) Parameter rdisp/btcname specifies which application server handles events triggered from within R/3.
  5. A job step can be any one of the following. ABAP program Any ABAP program that generates a list can be used as a job step. If the program includes a selection screen, you must create a variant before you can let it run in the background. A variant is the result of assigning definite values in the fields that appear in the ABAP program selection screen. The list is stored in the R/3 spool system. When you define the step, you can set the print parametsrs (for example, output device) and a spool list recipient (this is a SAPoffice addressee). External command An external command is any non-R/3 program, script, or command that is executed at operating system level. Since these commands are defined in R/3 by the system administrator, the administrator use R/3 authorizations to limit the scope of the commands and their availability to R/3 users. External program An external program is also any non-R/3 program, script, or command that is executed at operating system level. The system administrator has not previously defined these programs in R/3 and no check is made for critical or dangerous programs. In the latter 2 cases, the programs are called up at the operating system level by program sapxpg . The programs are processed synchronously (job waits for termination of the external program) or asynchronously (next job step is processed immediately). The output (stdout and/or stderr) of the external program can be taken up in the job log.
  6. The job status can be any of the following: Scheduled : job is created but has no start condition Released : job is completely defined and waiting for selection Ready : job has been selected for execution Active : job is being executed by a background work process Finished : the entire job has been successfully executed Canceled : job terminated with problems As long as a job has status scheduled or released , it can still be changed. If execution of a job has already started, its progress can be monitored in the job log. If the job contains ABAP programs, their output is stored in spool lists. To create the steps of a new job from an existing job, choose Copy .
  7. Typically, customers require more dialog processes during the day and more background processes during the night. To adjust the proportions of the various R/3 work processes to suit different phases of system activity, you can: Maintain the instance profile and restart the system (for unusual changes) Define operation modes and use the operation mode switch (for daily changes) Operation modes optimize system resources for different phases of system activity. Operation mode switching reconfigures your R/3 System dynamically, so you do not need to change the instance profiles for your server and you experience no system downtime. An operation mode configures the use of resources for all the instances in your R/3 System based on: The services or work processes you need The time interval you choose
  8. To monitor jobs, call transaction SM37 . From Release 4.6A, the initial screen offers an extensive range of selection criteria. For example, you can select jobs by specifying one of their steps. To list event-based jobs, you must specify an event. This job list presents the user selection at the top of the screen. The ABAP List Viewer (ALV) is used to display the list and enables you to store multiple display variants. From the job overview, you can navigate to various detailed job-related views: The job log enables you to monitor the progress of a job. The spool list contains the output of ABAP programs, if any. Job details include the job definition, execution time, and background work process number.