SlideShare a Scribd company logo
10
Most read
14
Most read
15
Most read
Debugging A Background Job
By
René Rodrigue Efila Minkoulou (SAP S/4HANA MM/SD Consultant)
Topic Covered:
1) What is SAP Background Job?
2) How to create SAP Background Job?
3) Tips and steps to debug Background Job
1) What is SAP Background Job?
Background jobs: are jobs in the SAP system that run in the background without
affecting the normal operations in the system.
You can schedule the background job using SM36 and can be monitored using
SM37
Background jobs are used to reduce the manual effort and to automate the
process. They can run in the background without any user input and can be
scheduled to run when the system load is low.
2) How to create SAP Background Job?
Scenario: We have a requirement for a particular user who needs a report for all
supplier invoices created each week for the particular company (1710) and also
he wants to receive this report directly in his email id.
The first thing we are going to do is find the name of the program for transaction
code: MIR5
MIR5: is a transaction code used for Display List of Invoice Documents in SAP
Debugging A Background Job
By
René Rodrigue Efila Minkoulou (SAP S/4HANA MM/SD Consultant)
Debugging A Background Job
By
René Rodrigue Efila Minkoulou (SAP S/4HANA MM/SD Consultant)
Now let’s create a variant
Variant: allow you to save your selection parameters in the input screen.
Go to se38 open the program and create a variant depend of your requirement
Save
Debugging A Background Job
By
René Rodrigue Efila Minkoulou (SAP S/4HANA MM/SD Consultant)
Debugging A Background Job
By
René Rodrigue Efila Minkoulou (SAP S/4HANA MM/SD Consultant)
Copy the program name and go to SM36
Enter the Job name
Debugging A Background Job
By
René Rodrigue Efila Minkoulou (SAP S/4HANA MM/SD Consultant)
Choose Job Class
Background jobs can be divided into three categories −
 Class A (High Priority) − this is used for urgent or critical task and must be
scheduled with class A priority job. Class A job reserves one or more
background work processes.
 Class B (Medium Priority) − these jobs are executed after the completion of
Class A high priority jobs.
Debugging A Background Job
By
René Rodrigue Efila Minkoulou (SAP S/4HANA MM/SD Consultant)
 Class C (Low Priority) − these job runs once class A and class B jobs are
completed.
Go to step
Select Variant that we created before
Debugging A Background Job
By
René Rodrigue Efila Minkoulou (SAP S/4HANA MM/SD Consultant)
Check and Save
Debugging A Background Job
By
René Rodrigue Efila Minkoulou (SAP S/4HANA MM/SD Consultant)
Now we will setup E-MAIL notification
Now we will create a condition
Debugging A Background Job
By
René Rodrigue Efila Minkoulou (SAP S/4HANA MM/SD Consultant)
Here we have different options
Immediate: If you press immediate, it means that you want to run the job in the
background immediately.
Date/Time: if you want to start it on a specific day and time
But for the test purpose I will run this immediately because I want to show you
the result right now
Now go to SM37 to monitoring it
Debugging A Background Job
By
René Rodrigue Efila Minkoulou (SAP S/4HANA MM/SD Consultant)
Execute
Debugging A Background Job
By
René Rodrigue Efila Minkoulou (SAP S/4HANA MM/SD Consultant)
As you can see the Status is finished that means our report is ready
3) Tips and steps to debug Background Job
Now let's see how we can debug the SAP background job. A particular event may
cause us to debug the background work, for example when the output is incorrect
or we have no output at all.
a) How to debug a completed job?
Select the job and in the command line enter the background debug command
JDBG and hit enter
Debugging A Background Job
By
René Rodrigue Efila Minkoulou (SAP S/4HANA MM/SD Consultant)
Debugging A Background Job
By
René Rodrigue Efila Minkoulou (SAP S/4HANA MM/SD Consultant)
When you are in debug mode, the first thing to do is to look at the top of the
debug screen to see if it is the same name as the program we are running in the
background.
In our example you can notice that the name of the program is different
Now hit (F7 icon strip) until you reach in the name of the program you run in the
background job
Now you can see that we find our program
SY-BATCH: is the variable to check if your program is running in the background or
not. If it carries the value 'X', this means that the program is running in the
background.
Debugging A Background Job
By
René Rodrigue Efila Minkoulou (SAP S/4HANA MM/SD Consultant)
b) How to debug a running job?
SM50 background debugging
If you want to debug a running job, you have to go to SM50 and select the
background process. Then choose the menu option Administration / Program /
Debugging. Confirm the prompt:
You will get this message
Debugging A Background Job
By
René Rodrigue Efila Minkoulou (SAP S/4HANA MM/SD Consultant)
Select Yes then the system will open the running job in debugging mode
Thank you

More Related Content

PDF
T codes sap-basis-training
PDF
SAP BASIS Daily Monitoring T - codes
DOC
Authorisation Concept In SAP | http://sapdocs.info
DOCX
Field symbols
DOC
Bapi programming
PDF
Exclusive SAP Basis Training Book | www.sapdocs.info
DOC
SAP Implementation and administration guide by bob panic
PPTX
SAP BADI Implementation Learning for Functional Consultant
T codes sap-basis-training
SAP BASIS Daily Monitoring T - codes
Authorisation Concept In SAP | http://sapdocs.info
Field symbols
Bapi programming
Exclusive SAP Basis Training Book | www.sapdocs.info
SAP Implementation and administration guide by bob panic
SAP BADI Implementation Learning for Functional Consultant

What's hot (20)

PDF
Pricing Routine In Vofm
PDF
Introducing enhancement framework.doc
PDF
Pmcs user exits
DOCX
SAP PM: Inspection Rounds & Operation Account Assignment
PPTX
Sap User Exit for Functional Consultant
PPT
PDF
Lam config-131007234330-phpapp01
PPT
SAP SD IMPLEMENTATION BY NITEEN VAIDYA
PPTX
SAP EAM/PM Organization Structure
PPTX
Sap Purchase Order Workflow
PPTX
Sap solution manager
PDF
Sap basis administrator user guide
PPT
SAP ADMINISTRATION
PDF
S4 HANA Business Partner Configuration@Ganesh Tarlana
PDF
Consignment process
DOCX
SAP SD Configuration Document
DOCX
How to create a transaction code for report painter reports
DOCX
Automatic picking configuration in delivery in sap sd
PDF
Workflow Part1 1
PDF
SAP SD Variant configuration-training-document 2
Pricing Routine In Vofm
Introducing enhancement framework.doc
Pmcs user exits
SAP PM: Inspection Rounds & Operation Account Assignment
Sap User Exit for Functional Consultant
Lam config-131007234330-phpapp01
SAP SD IMPLEMENTATION BY NITEEN VAIDYA
SAP EAM/PM Organization Structure
Sap Purchase Order Workflow
Sap solution manager
Sap basis administrator user guide
SAP ADMINISTRATION
S4 HANA Business Partner Configuration@Ganesh Tarlana
Consignment process
SAP SD Configuration Document
How to create a transaction code for report painter reports
Automatic picking configuration in delivery in sap sd
Workflow Part1 1
SAP SD Variant configuration-training-document 2
Ad

Similar to Steps to Debug a Background Job.pdf (13)

PPTX
SAP BASIS Training in Chennai Demo Part-4
PDF
Create schedule monitor batch jobs with dynamic selection
PPT
BATCH DATA COMMUNICATION
DOC
Abapdebuggingfrombasictoadvance 140214043218-phpapp01
DOC
Basic Debugging
PDF
Sap basis-notes-keylabs-training
PDF
SAP BASIS Skills for Functional Consultants
PDF
debugging-for-functional-consultants_compress.pdf
PPTX
New Microsoft PowerPoint Presentation.pptx
PDF
sap basis transaction codes
PDF
12 define jobs
PDF
Sap monitoring tutorial & best practices system guard
 
PDF
Sap basis made easy
SAP BASIS Training in Chennai Demo Part-4
Create schedule monitor batch jobs with dynamic selection
BATCH DATA COMMUNICATION
Abapdebuggingfrombasictoadvance 140214043218-phpapp01
Basic Debugging
Sap basis-notes-keylabs-training
SAP BASIS Skills for Functional Consultants
debugging-for-functional-consultants_compress.pdf
New Microsoft PowerPoint Presentation.pptx
sap basis transaction codes
12 define jobs
Sap monitoring tutorial & best practices system guard
 
Sap basis made easy
Ad

Recently uploaded (20)

PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PPT
Teaching material agriculture food technology
PPTX
sap open course for s4hana steps from ECC to s4
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PDF
Electronic commerce courselecture one. Pdf
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PDF
Unlocking AI with Model Context Protocol (MCP)
PDF
Empathic Computing: Creating Shared Understanding
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PPTX
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
PDF
Review of recent advances in non-invasive hemoglobin estimation
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PPTX
Understanding_Digital_Forensics_Presentation.pptx
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Building Integrated photovoltaic BIPV_UPV.pdf
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
Teaching material agriculture food technology
sap open course for s4hana steps from ECC to s4
Advanced methodologies resolving dimensionality complications for autism neur...
Electronic commerce courselecture one. Pdf
Mobile App Security Testing_ A Comprehensive Guide.pdf
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
Unlocking AI with Model Context Protocol (MCP)
Empathic Computing: Creating Shared Understanding
Dropbox Q2 2025 Financial Results & Investor Presentation
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
Review of recent advances in non-invasive hemoglobin estimation
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
Understanding_Digital_Forensics_Presentation.pptx
Per capita expenditure prediction using model stacking based on satellite ima...

Steps to Debug a Background Job.pdf

  • 1. Debugging A Background Job By René Rodrigue Efila Minkoulou (SAP S/4HANA MM/SD Consultant) Topic Covered: 1) What is SAP Background Job? 2) How to create SAP Background Job? 3) Tips and steps to debug Background Job 1) What is SAP Background Job? Background jobs: are jobs in the SAP system that run in the background without affecting the normal operations in the system. You can schedule the background job using SM36 and can be monitored using SM37 Background jobs are used to reduce the manual effort and to automate the process. They can run in the background without any user input and can be scheduled to run when the system load is low. 2) How to create SAP Background Job? Scenario: We have a requirement for a particular user who needs a report for all supplier invoices created each week for the particular company (1710) and also he wants to receive this report directly in his email id. The first thing we are going to do is find the name of the program for transaction code: MIR5 MIR5: is a transaction code used for Display List of Invoice Documents in SAP
  • 2. Debugging A Background Job By René Rodrigue Efila Minkoulou (SAP S/4HANA MM/SD Consultant)
  • 3. Debugging A Background Job By René Rodrigue Efila Minkoulou (SAP S/4HANA MM/SD Consultant) Now let’s create a variant Variant: allow you to save your selection parameters in the input screen. Go to se38 open the program and create a variant depend of your requirement Save
  • 4. Debugging A Background Job By René Rodrigue Efila Minkoulou (SAP S/4HANA MM/SD Consultant)
  • 5. Debugging A Background Job By René Rodrigue Efila Minkoulou (SAP S/4HANA MM/SD Consultant) Copy the program name and go to SM36 Enter the Job name
  • 6. Debugging A Background Job By René Rodrigue Efila Minkoulou (SAP S/4HANA MM/SD Consultant) Choose Job Class Background jobs can be divided into three categories −  Class A (High Priority) − this is used for urgent or critical task and must be scheduled with class A priority job. Class A job reserves one or more background work processes.  Class B (Medium Priority) − these jobs are executed after the completion of Class A high priority jobs.
  • 7. Debugging A Background Job By René Rodrigue Efila Minkoulou (SAP S/4HANA MM/SD Consultant)  Class C (Low Priority) − these job runs once class A and class B jobs are completed. Go to step Select Variant that we created before
  • 8. Debugging A Background Job By René Rodrigue Efila Minkoulou (SAP S/4HANA MM/SD Consultant) Check and Save
  • 9. Debugging A Background Job By René Rodrigue Efila Minkoulou (SAP S/4HANA MM/SD Consultant) Now we will setup E-MAIL notification Now we will create a condition
  • 10. Debugging A Background Job By René Rodrigue Efila Minkoulou (SAP S/4HANA MM/SD Consultant) Here we have different options Immediate: If you press immediate, it means that you want to run the job in the background immediately. Date/Time: if you want to start it on a specific day and time But for the test purpose I will run this immediately because I want to show you the result right now Now go to SM37 to monitoring it
  • 11. Debugging A Background Job By René Rodrigue Efila Minkoulou (SAP S/4HANA MM/SD Consultant) Execute
  • 12. Debugging A Background Job By René Rodrigue Efila Minkoulou (SAP S/4HANA MM/SD Consultant) As you can see the Status is finished that means our report is ready 3) Tips and steps to debug Background Job Now let's see how we can debug the SAP background job. A particular event may cause us to debug the background work, for example when the output is incorrect or we have no output at all. a) How to debug a completed job? Select the job and in the command line enter the background debug command JDBG and hit enter
  • 13. Debugging A Background Job By René Rodrigue Efila Minkoulou (SAP S/4HANA MM/SD Consultant)
  • 14. Debugging A Background Job By René Rodrigue Efila Minkoulou (SAP S/4HANA MM/SD Consultant) When you are in debug mode, the first thing to do is to look at the top of the debug screen to see if it is the same name as the program we are running in the background. In our example you can notice that the name of the program is different Now hit (F7 icon strip) until you reach in the name of the program you run in the background job Now you can see that we find our program SY-BATCH: is the variable to check if your program is running in the background or not. If it carries the value 'X', this means that the program is running in the background.
  • 15. Debugging A Background Job By René Rodrigue Efila Minkoulou (SAP S/4HANA MM/SD Consultant) b) How to debug a running job? SM50 background debugging If you want to debug a running job, you have to go to SM50 and select the background process. Then choose the menu option Administration / Program / Debugging. Confirm the prompt: You will get this message
  • 16. Debugging A Background Job By René Rodrigue Efila Minkoulou (SAP S/4HANA MM/SD Consultant) Select Yes then the system will open the running job in debugging mode Thank you