Scheduler and the background jobs page
I have just added a job to the sling scheduler, I thougt once added i was be shown in the background jobs page in the tools of cq5.
Does Sling scheduler nothin to do with that? how could add a job background to the background jobs page in the tools of cq5??
Thanks.
For your use case you should be able to see at http://localhost:4502/system/console/events
For the background jobs ex:- [1] will be displayed in tools.
[1] http://localhost:4502/system/bgservlets/test.html?sling:bg=true&cycles=1
Similar Messages
-
Certain Maintenance Plan not getting scheduled in the background job
Hi Gurus,
I am facing an issue here.
A weekly background job (RISTRA20) runs every weekend and schedules the maintenance plans.
But we have noticed that some maintenance plans are not getting scheduled. i.e no orders or schedule is getting generated.
When I run IP30 manually for these plans then the schedule gets generated and orders get called.
I have checked up the background job and it is running fine.
Also, i have noticed a similarity in all these plans which are not getting scheduled. There schedule has been restarted (through IP10) at somepoint or the other.
But i don't see any direct impact of this?
Can any of you provide some help on this?? Points will be rewarded.
Thanks and regards,
Nitin SainiHi Narender,
Thanks for replying.
The message number for 'Groups don't match' is ME303.
I think this does not have anything to do with the restart as i have done further investigation.
Whenever I run IP30 with sortfield input as AS02*, i get the error as mentioned above for a certain number of maintenance plans while the remaining plans get scheduled.
If i run IP30 for any other sort fields, it runs fine and i don't encounter the error
mentioned above.
If you send me ur email address, i could forward you screen-shots of the issue. -
How to schedule the background job if report have Presentation server files
Hi All,
I have searched the forums and found , the way for the scheduling the background job if report selection screen have the presentation server file input.
1. Using the Open data set method.
And my client is not OK with Open dataset way, it there any other way to do this, As we are using the EXCEL file.
Thanks and Regards,
BharaniHi,
As said above it is generally not possible. Since your client most obviously doesn't like graphical background I would recomend storing data as till now, but show it with your own report in more userfriendly way. For example:
- as ALV Grid
- in excel with use of OLE either as embedded in SAP or new window (check transaction OLE for example)
- with use of webdynpro
BR
Marcin Cholewczuk -
How to schedule the background job daily twice?
Hi,
How to schedule the background job daily twice? any conditions?
Regards,
Srihithasee the step by step procedure.
Scheduling Background Jobs:
1. Background jobs are scheduled by Basis administrators using transaction SM36.
2. To run a report in a background, a job needs to be created with a step using the report name
and a variant for selection parameters. It is recommended to create a separate variant for each
scheduled job to produce results for specific dates (e.g. previous month) or organizational units (e.g.
company codes).
3. While defining the step, the spool parameters needs to be specified
(Step-> Print Specifications->Properties) to secure the output of the report and help authorized users
to find the spool request. The following parameters needs to be maintained:
a. Time of printing: set to Send to SAP spooler Only for now
b. Name abbreviated name to identify the job output
c. Title free form description for the report output
d. Authorization a value defined by Security in user profiles to allow those users to access
this spool request (authorization object S_SPO_ACT, value SPOAUTH). Only users with matching
authorization value in their profiles will be able to see the output.
e. Department set to appropriate department/functional area name. This field can be used in
a search later.
f. Retention period set to Do not delete if the report output needs to be retained for more
than 8 days. Once the archiving/document repository solution is in place the spool requests could
be automatically moved to the archive/repository. Storage Mode parameter on the same screen
could be used to immediately send the output to archive instead of creating a spool request.
Configuring user access:
1. To access a report output created by a background job, a user must have at
least access to SP01 (Spool requests) transaction without restriction on the user
name (however by itself it will not let the user to see all spool requests). To have
that access the user must have S_ADMI_FCD authorization object in the profile with
SPOR (or SP01) value of S_ADMI_FCD parameter (maintained by Security).
2. To access a particular jobs output in the spool, the user must have
S_SPO_ACT object in the profile with SPOAUTH parameter matching the value used
in the Print Specifications of the job (see p. 3.d above).
3. Levels of access to the spool (display, print once, reprint, download, etc) are
controlled by SPOACTION parameter of S_SPO_ACT. The user must have at least
BASE access (display).
On-line reports:
1. Exactly the same configuration can be maintained for any output produced
from R/3. If a user clicks Parameters button on a SAP Printer selection dialog, it
allows to specify all the parameters as described in p. 3 of
Scheduling background jobs section. Thus any output created by an online report
can be saved and accessed by any user authorized to access that spool request
(access restriction provided by the Authorization field of the spool request
attributes, see p. 3.d of Scheduling background jobs section).
Access to reports output:
1. A user that had proper access (see Configuring user access above) can
retrieve a job/report output through transaction SP01.
2. The selection screen can be configured by clicking Further selection
criteria button (e.g. to bring Spool request name (suffix 2) field or hide other
fields).
3. The following fields can be used to search for a specific output (Note that
Created By must be blank when searching for scheduled jobs outputs)
a. Spool request name (suffix 2) corresponds to a spool name in p. 3.b in
Scheduling background jobs section above).
b. Date created to find an output of a job that ran within a certain date range.
c. Title corresponds to spool Title in p. 3.c in Scheduling background jobs
section above).
d. Department - corresponds to spool Department in p. 3.e in Scheduling
background jobs section above).
4. Upon entering selection criteria, the user clicks the Execute button to
retrieve the list of matching spool requests.
5. From the spool list the user can use several function such as view the
content of a spool request, print the spool request, view attributed of the spool
request, etc. (some functions may need special authorization, see p.3 in
Configuring user access)
a. Click the Print button to print the spool request with the default attributes
(usually defined with the job definition). It will print it on a printer that was
specified when a job was created.
b. Click the Print with changed attributed button to print the spool request
with the different attributes (e.g. changing the printer name).
c. Click the Display contents button to preview the spool request contents. A
Print and Download functions are available from the preview mode. -
How to schedule the background job using current selection screen field val
Hello Friends,
How to schedule the background job using current selection screen field values.
after completion of the job the spool should be sent as a mail to SAP Inbox.
Is there any way to create the variant dynamically by reading the current selection screen values.
Thanks,
RaviHi,
To get the variant details you can use teh following FM.
'RS_VARIANT_CONTENTS'.
Regards,
Ankur Parab -
Aperture 3: After sending my book for printing to Apple the Apple Store told me that my text and the background have the same color and they couldn't print the book. But I couldn't find any problem in the preview. How could I find the pages where the problems are? Or otherwise, why doesn't print Apple the book how it is. Idon't need the text which couldn'be seen.
The forum is for Logic Pro users.. I will ask the moderators to move it to a more appropriate forum for your question/subject
Cheers.. -
How to Change the name of the Job scheduled in the background.
Hi,
I hava a program that has can run many reports based on the selection screen report selected. and this program runs in the background.
When I run the program in the background for seprate report selected in the selection screen.. the background job name is same(as it is the same program) .
I would like to have difrent job name based on the report id selected in the background
Is it possible..if yes then do guide me.
Regardd
SenthilHi
You can change the Job names based on the selection screen.Check in ur program where they are naming the background Job.
For Eg:In FM JOB_OPEN.
That would be something like
If REPID = '1'.
Background Job name = '1'
ELSEIF REPID = '2'.
Background Job name = '2'
ELSEIF REPID = '3'.
Background Job name = '3''
ENDIF.
CALL FUNCTION 'JOB_OPEN'
EXPORTING
JOBNAME = Background JOBNAME
IMPORTING
JOBCOUNT = JOBNUMBER
EXCEPTIONS
CANT_CREATE_JOB = 01
INVALID_JOB_DATA = 02
JOBNAME_MISSING = 03
Thanks & Regards
Jyo -
Job Name of a Program scheduled as a Background Job
Hi,
In our production system. We have a program which is scheduled to run in the background by various job names. At runtime, I need the program to figure out under which Job Name is it running. I dont think there is any system field which stores the Job Name of the background job.
Any inputs?Hi,
It will run in default with <b>the name of the program</b>.
Goto SM36 and put a * in job name u will see all the jobs that are schedule, if u specify the program name for the job schedule u will get that list alone.
U can differentiate by seeing the time the job was scheduled.
http://www.sap-img.com/ab007.htm
Please reward and close the thread if u got the info.
Message was edited by: Judith Jessie Selvi -
How to debug the background job in ABAP
Hi Guys,
Can anyone let me know how to debug the background job in ABAP.
Thanks in advance
peterHi,
Goto SM37 and see the log if any is there and based on that you can check the code.
you can't debug background job.
Create a Variant for the Program and
Schedule JOB in background:
Go to SM36 create a Job
enter Program and Variant for that program in STEP..
click on Start Condition
Click on DATE and TIME enter date scheduled Start and END times
click on Period Values
Click on HOURLY/WEEKLY etc
CLick on RESTRICTIONS also to use further criteria.
so your job will be scheduled and run as per your requirement.
and in SM37 Transaction check the status of that JOB
Check this link for scheduling jobs..
http://help.sap.com/saphelp_nw2004s/helpdata/en/c4/3a7f87505211d189550000e829fbbd/content.htm
Check this
http://jplamontre.free.fr/SAP/Debug%20background%20process.htm
https://www.sdn.sap.com/irj/sdn/wiki?path=/display/abap/abap+debugger&
Regards,
Padmam. -
We recently upgraded our Solution Manager to 7 ehp1. A couple of the background jobs are not able to complete.
Both jobs have the following entry in the job logs
Step 001 started (program RAGS_DSWP_SERV_CONTENT_UPDATE, variant , user ID SOLMAN_ADMIN
No authorization
I'm not sure where to look for the authorization issue. Any advice would be appreciated.
Thanks
Laurie McGinleywe are on SM 7.01 (EHP1) - and we have the same problem:
Jobs GN_GENERATE_CHECK and GN_WORKLIST_GENERATE
both jobs end abnormal with joblog:
Object requested is currently locked by user SOLMAN_BTC
Job cancelled after system exception ERROR_MESSAGE
but the job-start is not corresponding to the entries in table SMCONFIGJOBS
both jobs are startet at 00:01:44 (both !!!)
in table SMCONFIGJOBS the entry are
REPORTNAME GN_GENERATE_CHECK
REPVARIANT
JOBNAME GN_GENERATE_CHECK
PRIORITY 50
PERIOD TYPE DAY
PERIOD INTERVAL 1
START TIME 00:15:00
ISIMMEDIATE
INACTIVE
WORKLOAD M
COMM2SAP
REPORTNAME GN_WORKLIST_GENERATE
REPVARIANT
JOBNAME GN_WORKLIST_GENERATE
PRIORITY 50
PERIOD TYPE DAY
PERIOD INTERVAL 1
START TIME 00:01:00
ISIMMEDIATE
INACTIVE
WORKLOAD L
COMM2SAP
any suggestions why the jobstart is not corresponding to the starttime in table SMCONFIGJOBS
what job is scheduling these 2 Jobs GN_GENERATE_CHECK and GN_WORKLIST_GENERATE
which other job maybe responsible for the object lock??? -
Hello All,
I have a requirement to send/export the background job spool in Excel (in MHTML format) in ECC 6.0. Please help.
Thank you.
NaliniHi Jigar,
Thanks for your response.
Anything is like download to desktop or email is fine. But in MHTML format.
We can download the ALV report in MHTML spreadsheet format when we run the program online. But the program is running for long time and going to dump.
So i scheduled it as background job and downloading the output in .HTML format. But user wants the spool/report output in .MHTML spreadsheet format.
I can write the code. Instead of changing the existing program I would like to know is there any way (from standard SAP) that I can get the background spool in MHTML spreadsheet format.
Thanks,
Nalini -
How to cancel the background job?
Hi,
I have schedule the backgroud job.How to cancel the background the job.
When i select the job and click on stop button, iam getting message "job is not active - cancellation not possiable".How to schedule the background job.
Regards,
T.sureshgoto sm37
SM36 Define Background Job
SM37 Background Job Overview
SM39 Job Analysis
U can Moniter the background Jobs through T code SM37
In the Simple Job Selection window enter the name of the Job and User of that Job and u can check the status of that Job like JobName, Job CreatedBy, Status, Start date, Start time Duration(sec.) Delay (sec.). -
Hi,
I have a background job with has a start condition after execution of a particular event.
Now i need to copy this background job to another name and execute it. I tried using the function module BP_JOB_COPY, but that copied the background job without the job start conditions. How can i copy the background job along with start conditions.
Thank you in anticipation.Hi Nikhil,
the follwoing code schedules 2 jobs from a source job (which is maintaned in the system).
data: s_tbtcjob1 like tbtcjob, "target job #1"
s_tbtcjob2 like tbtcjob. "target job #1"
data: h_1 like tbtco-jobcount, "jobcount"
h_2 like tbtco-jobcount, "jobcount"
h_1s like tbtco-jobname, "jobname source"
h_2s like tbtco-jobname, "jobname source"
h_1t like tbtco-jobname, "jobname target"
h_2t like tbtco-jobname. "jobname target"
selection-screen begin of line.
selection-screen position 2.
parameters ra radiobutton group rad1.
selection-screen comment 4(70) text-001.
selection-screen end of line.
selection-screen begin of block block1 with frame.
parameters: p_a1 like h_1,
p_a1s like h_1s,
p_a1t like h_1t,
p_a2 like h_2,
p_a2s like h_2s,
p_a2t like h_2t.
selection-screen end of block block1.
start-of-selection.
perform create_jobs using p_a1 p_a1s p_a1t p_a2 p_a2s p_a2t.
* FORM CREATE_JOBS *
form create_jobs using h_1 h_1s h_1t h_2 h_2s h_2t.
call function 'BP_JOB_COPY'
exporting
dialog = 'N'
source_jobcount = h_1
source_jobname = h_1s
target_jobname = h_1t
importing
new_jobhead = s_tbtcjob1
exceptions
cant_create_new_job = 1
cant_enq_job = 2
cant_read_sourcedata = 3
invalid_opcode = 4
jobname_missing = 5
job_copy_canceled = 6
no_copy_privilege_given = 7
no_plan_privilege_given = 8
others = 9.
call function 'BP_JOB_COPY'
exporting
dialog = 'N'
source_jobcount = h_2
source_jobname = h_2s
target_jobname = h_2t
importing
new_jobhead = s_tbtcjob2
exceptions
cant_create_new_job = 1
cant_enq_job = 2
cant_read_sourcedata = 3
invalid_opcode = 4
jobname_missing = 5
job_copy_canceled = 6
no_copy_privilege_given = 7
no_plan_privilege_given = 8
others = 9.
call function 'JOB_CLOSE'
exporting
jobcount = s_tbtcjob2-jobcount
jobname = s_tbtcjob2-jobname
pred_jobcount = s_tbtcjob1-jobcount
pred_jobname = s_tbtcjob1-jobname
targetsystem = '<<SYSTEM IN CASE OF MULTIPLE SERVERS>>'
exceptions
cant_start_immediate = 1
invalid_startdate = 2
jobname_missing = 3
job_close_failed = 4
job_nosteps = 5
job_notex = 6
lock_failed = 7
others = 8.
call function 'JOB_CLOSE'
exporting
jobcount = s_tbtcjob1-jobcount
jobname = s_tbtcjob1-jobname
strtimmed = 'X'
targetsystem = '<<SYSTEM IN CASE OF MULTIPLE SERVERS>>'
exceptions
cant_start_immediate = 1
invalid_startdate = 2
jobname_missing = 3
job_close_failed = 4
job_nosteps = 5
job_notex = 6
lock_failed = 7
others = 8.
endform. -
The background job "SM:EXEC SERVICES" is ending Green in Just 0 seconds
Solution Manager 4.0
In our customer system the background job "SM:EXEC SERVICES" is ending Green in Just 0 seconds or just 1 second.
Here is the log:
Job log overview for job: SM:EXEC SERVICES 000000046740000 / 12193100
Date Time Message text Message class Message no. Message type
28.04.2009 12:19:31 Job started 00 516 S
28.04.2009 12:19:31 Step 001 started (program RDSMOPBACK_AUTOSESSIONS, variant &0000000001054, user ID BJ8099) 00 550 S
28.04.2009 12:19:32 RDSMOPBACK_AUTOSESSIONS : MemSize Begin = 1374064 DSWP 000 I
28.04.2009 12:19:32 Solution Enterprice Portal(GGP) is being edited (Operations) DSWP 438 I
28.04.2009 12:19:32 RDSMOPBACK_AUTOSESSIONS : MemSize End = 20902480 DSWP 000 I
28.04.2009 12:19:32 Job finished 00 517 S
Due to this EWA reports are not being generated.
What could be the reason that the Job ends immediately with no significant warnings or error in the log?
Many thanks in advance,
ManojHi Manoj
Following Notes will be helpful to you to analyze the problem
Note 894279 - Background processing in SAP Solution Manager
Note 1246329 - RDSMOPBACK_AUTOSESSIONS: Additional displays
Note 1163920 - SM:Scheduler: Improved display in job log
Note 946607 - Automatic diagnosis in SAP Solution Manager
SAP Note 727998 "Complete Replacement of Service Definitions for SDCC/SDCCN"
Note 986973 - How to analyze problems with EarlyWatch Alerts in SolMan
however, is this problem occurring for sessions of ALL the systems today, if yes, then something wrong only in solman, last note of the above shows you to manually run the job interactively, may be will help in analyzing and i hope SDCCN settings in Solman are already fine..
thanks
Bhudev -
The lotus mail about the Background Job status
Hi ,
I have a requirement where SAP users want the status of the background job in their lotus mail.The problem is job takes run for more than 15-20 hours and some times gets failed too.Whichever is the status , they want the update. The job is run daily in the night.So can not be done in the same program. Writng different program to check and send the mail can be an option.
But My question would be
1.Is there SAP standard funtionality /progarm to send the job log (not the spool) in the mail?
Thanks in advance.Hi,
You can run another job in background which can monitor this original program. I would die and schedule itself in an hour for next status. the logic goes this way.
1) The original Z program call the Z job monitor prog with jobname.
2) The Z job monitor prog checks the status of job and will send a status mail on finished or cancelled.
3) if the job is still active, the z job monitor prog will schedule itself for after an hour to check the status again.
thus steps 2 & 3 would be in loop till the original z prog finishes or gets cancelled.
Regards,
Nirmal
Maybe you are looking for
-
I'm trying to open Cloud but it uses my earlier e-mail account and I don't know how to have Cloud recognise my current account. Is there a way to fix that so Cloud will be available to me?
-
Cannot find file when starting jnlp from browser
First of all, im not a web guru, so sorry for my weak knowledge on that part. I have a swing application packed in a war file. In the root of war file i put my jnlp, html that links to jnlp, and jar file. (everything created with NetBeans) But there
-
Does PI 7.1 EHP1 supports java version 1.6?
Does PI 7.1 EHP1 supports java 1.6? Where do i find these details?
-
Delete fotos in iPhoto events not used in Foto Book
the problem with this issue is that there is no "indicator" in or on the pictures in the event the foto book was made from which says: this was USED in the foto book/project and this was NOT USED in the foto book/project. So, how to delete those in t
-
We have a oracle identity manager 11 g installation. OIM_HOME/setup/spml_AppServerName.sh appserver_admin_password oim_db_user_password I am not able to find OIM_HOME/setup infact I am able to find OIM_HOME/server/setup but no any file with spml_ exi