Reporting Agent Job Scheduling problem
hi All,
I am trying to schedule reporting agent job. I have few pre calculated webtemplates in one reporting agent scheduling package. when i try to schedule it and go to "start condition" - I want to put "After Event". I am selecting Event and giving the parameter name. But when i save and go out the job is already scheduled (checked in sm37). so I tried to chk the job condition again and the event i selected is not there !!!!
I want to create after even condition and schedule that parameter via mainframe as our all job schedule through main frame only !!! can some one tell me why its not working with reporting agent ??
I will definately assign the points.
dinesh and SB,
thank you for your reply. understood your point. but what i m asking is when i put "after event" criteria in the start selection... wouldnt it show that always when ever i go to Reporting Agent scheduling Package --> right click --> schedule --> start condition (i meant the event name and parameter should be saved there)
but once i save it and get out from the scheduling package i can see the job has been scheduled but its not showing that its even controlled job !!!
is it possible to use "after event" option in Reproting agent's job ?
I have few queries under one Reporting Agent scheduling package which is added in one process chain - the PC is running once a month - i added RA at the end of the process chain and the variant will be schedule by mainframe once the process chain has completed successfully. now 2nd thing is: i need to run Reporting Agent job every single day. so need to schedule it twice. we schedule everything by main frame. so if i can save "after event" criteria then i can schedule that parameter by mainframe. the problem is the start condition is not saving my after event condition entries or parameter names.
I hope i m clear. pl. guide its kind a urgent.
Similar Messages
-
Hi Experts,
A job whcih starts with RA******... is assumed as reporting agent job, this job was seen as canceled in SM37.
what the steps we can take to analyse and correct this job.
please reply very urgent.
thanks in advance
Sunil.Check the job log, it would give you a better picture...
If you can't extract much information from the job, you could probably do a copy of this job in SM37 & try executing it. -
SQL Server Agent Job Scheduler- Set time less than 10 seconds
Hi,
Could any one please let me know how to change the SQL server agent Job scheduler time to less than 10 secs?
I wan to schedule a SSIS package run for every 5 secs.
Thanks..Be careful, it is a bad idea to blindly just issue a new package run without knowing whether the previous package ended.
It may lead to locking/dead-locking.
Now re the Agent: the seconds are not exposed at all, why you say 10?
But, there is a way, not through the UI, explained there:http://stackoverflow.com/questions/5569415/is-there-a-way-to-set-a-sql-server-job-scheduled-to-run-every-30-seconds + http://www.sqlservercentral.com/articles/Administration/sqlserverjobscheduling/2288/
PS you can have it every sec
Arthur My Blog -
How to schedule reporting agent job?
Hi,
I have start a reporting agent pack after changing the
variant. Now i have changed the variant.
Then how to schedule the reporting agent pack?
could any one help me out....
Thanks
SrinivasHi,
Check this.
http://help.sap.com/saphelp_nw04/helpdata/en/45/67bd3cad649f5ce10000000a114084/content.htm
Regards. -
Hi,
I have multiple SQL agent jobs , i need to schedule these jobs to run one after other , below explanation should give you more info
job 1 scheduled every day @ 12 : 00 am
job 2 scheduled every day @ 2 : 00 am
job 3 scheduled every day @ 3 : 00 am
Issue here is some times my job 2 is starting before job 1 finishes . Which is causing problems
i want job 2 run only after job 1 is done and job 3 after job 2 and goes on
can some one please help how to do this ,any help will be appreciatedIf you want the process to be sequential why not merge all of the processes into same job itself as different consecutive steps? That would be the easiest to ensure they run in sequence
If thats not possible then way to do this is as follows
1.Add a new first step to Job 2 and Job 3 as follows
IF EXISTS(
select 1
from msdb.dbo.sysjobs_view job
inner join msdb.dbo.sysjobactivity activity on job.job_id = activity.job_id
where
activity.run_Requested_date is not null
and activity.stop_execution_date is null
and job.name = <Previous Job Name Here>
RAISERROR 'Previous Job Not Completed Yet!',16,1
Replace job name correctly based on your case
Then in advanced tab make On Failure Action as quit the job reporting failure and OnSuccessAction
to default. Also set retry attempts to non zero number (say 10) and
retry interval to say 15 minutes
Once this is done Job 2 will start and keep on failing until Job 1 gets finished and it will retry itself in 15 minutes for 10 times. When Job 1 finishes in the interim the next retry will be a success and job will quit.
Do the same for Job 3 too replacing name of the job as that of Job2
Please Mark This As Answer if it solved your issue
Please Vote This As Helpful if it helps to solve your issue
Visakh
My Wiki User Page
My MSDN Page
My Personal Blog
My Facebook Page -
Reporting Agent job getting cancelled
Hi all,
Jobs scheduled using Reporting Agent to load data into cache memory is getting cancelled with the below mentioned message in the job log.
System error in program SAPLRRK0 and form SX_TO_BDATA_ELSE-02- (see long text)
What could the possible reason ? Please help.
Regards,
Surjit PHi Amit,
Tried it. But dint work.
Regards,
Surjit -
Background job scheduling problem
Hai..Can anyone check the below program and correct it.
I am unable to see the output in SP01 (SPOOL REQUEST)
MY PROGRAM:-
REPORT zh_test4.
TABLES : mara, TBTCO.
DATA : BEGIN OF itab OCCURS 0,
matnr LIKE mara-matnr,
END OF itab.
****background data declarations
data : job_name like TBTCO-JOBNAME.
data : job_num like TBTCO-JOBCOUNT,
rep like sy-repid.
***selection screen
PARAMETERS : p_matnr LIKE mara-matnr default '1500-610'.
SELECT matnr FROM mara INTO TABLE itab WHERE matnr EQ p_matnr.
job_name = 'HARI'.
CALL FUNCTION 'JOB_OPEN'
EXPORTING
DELANFREP = ' '
JOBGROUP = ' '
jobname = job_name
SDLSTRTDT = NO_DATE
SDLSTRTTM = NO_TIME
IMPORTING
jobcount = job_num
EXCEPTIONS
CANT_CREATE_JOB = 1
INVALID_JOB_DATA = 2
JOBNAME_MISSING = 3
OTHERS = 4
IF sy-subrc <> 0.
write :/ ' Job opening problem'.
else.
write :/ 'Job succesfully opened', sy-subrc.
ENDIF.
MOVE SY-UNAME TO TBTCO-AUTHCKNAM.
rep = sy-repid.
job_name = 'HARI'.
CALL FUNCTION 'JOB_SUBMIT'
EXPORTING
ARCPARAMS =
authcknam = SY-UNAME
jobcount = job_num
jobname = job_name
LANGUAGE = SY-LANGU
PRIPARAMS = ' '
REPORT = 'ZH_TEST4'
VARIANT = 'VAR'
IMPORTING
STEP_NUMBER =
EXCEPTIONS
BAD_PRIPARAMS = 1
BAD_XPGFLAGS = 2
INVALID_JOBDATA = 3
JOBNAME_MISSING = 4
JOB_NOTEX = 5
JOB_SUBMIT_FAILED = 6
LOCK_FAILED = 7
PROGRAM_MISSING = 8
PROG_ABAP_AND_EXTPG_SET = 9
OTHERS = 10
IF sy-subrc <> 0.
WRITE :/ 'JOB SUBMIT PROBLEM',
job_name,
job_num,
rep,
sy-subrc.
else.
write :/ 'Job succesfully submitted in background', sy-subrc.
ENDIF.
CALL FUNCTION 'JOB_CLOSE'
EXPORTING
jobcount = job_num
jobname = job_name
LASTSTRTDT = NO_DATE
LASTSTRTTM = NO_TIME
PRDDAYS = 0
PRDHOURS = 0
PRDMINS = 0
PRDMONTHS = 0
PRDWEEKS = 0
PREDJOB_CHECKSTAT = ' '
PRED_JOBCOUNT = ' '
PRED_JOBNAME = ' '
SDLSTRTDT = datum
SDLSTRTTM = uzeit
STARTDATE_RESTRICTION = BTC_PROCESS_ALWAYS
STRTIMMED = 'X'
TARGETSYSTEM = ' '
START_ON_WORKDAY_NOT_BEFORE = SY-DATUM
START_ON_WORKDAY_NR = 0
WORKDAY_COUNT_DIRECTION = 0
RECIPIENT_OBJ =
TARGETSERVER = ' '
DONT_RELEASE = ' '
TARGETGROUP = ' '
IMPORTING
JOB_WAS_RELEASED = 'X'.
EXCEPTIONS
CANT_START_IMMEDIATE = 1
INVALID_STARTDATE = 2
JOBNAME_MISSING = 3
JOB_CLOSE_FAILED = 4
JOB_NOSTEPS = 5
JOB_NOTEX = 6
LOCK_FAILED = 7
INVALID_TARGET = 8
OTHERS = 9
IF sy-subrc <> 0.
write :/ 'Unable to close the Job', rep, sy-subrc.
else.
write :/ 'Succesfully closed the job', sy-subrc.
ENDIF.Here is an example, slightly different from your version.
REPORT ztest.
PARAMETERS: p_vbeln LIKE vbak-vbeln,
p_bkrun NO-DISPLAY.
DATA: ls_vbak LIKE vbak.
DATA: v_answer,
v_jobcount LIKE tbtcjob-jobcount.
IF p_bkrun IS INITIAL.
*-- not background processing
CALL FUNCTION 'POPUP_TO_CONFIRM_STEP'
EXPORTING
textline1 = 'This may time out.'
textline2 = 'Do you want to run in background?'
titel = 'Warning!!!'
cancel_display = space
IMPORTING
answer = v_answer.
IF v_answer = 'J'.
*-- run in the background
CALL FUNCTION 'JOB_OPEN'
EXPORTING
jobname = 'ZTEST'
IMPORTING
jobcount = v_jobcount
EXCEPTIONS
cant_create_job = 1
invalid_job_data = 2
jobname_missing = 3
OTHERS = 4.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE 'E' NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
EXIT.
ENDIF.
*-- submit the program in the background
SUBMIT ztest
WITH p_bkrun = 'X'
WITH p_vbeln = p_vbeln
USER sy-uname
VIA JOB 'ZTEST' NUMBER v_jobcount AND RETURN.
*-- close the job
CALL FUNCTION 'JOB_CLOSE'
EXPORTING
jobcount = v_jobcount
jobname = 'ZTEST'
strtimmed = 'X'
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.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE 'W' NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
EXIT.
ELSE.
CLEAR v_answer.
ENDIF.
ENDIF.
CHECK v_answer IS INITIAL.
SELECT SINGLE * FROM vbak
INTO ls_vbak
WHERE vbeln = p_vbeln.
IF sy-subrc <> 0.
WRITE:/ 'Invalid Order Id.'.
ENDIF.
END-OF-SELECTION.
CHECK v_answer IS INITIAL.
IF p_bkrun IS INITIAL.
WRITE:/ 'Here is the result running the program in foreground.'.
ELSE.
WRITE:/ 'Here is the result running the program in background.'.
ENDIF.
WRITE:/ ls_vbak-vbeln,
ls_vbak-vkorg. -
Background job scheduling problem in APO
Hi fellow SDNers,
i am going through this peculiar problem of background job scheduling:
scenario is like , i have an CSV (excel file) in aplication server which would load data into the infosource, which i have scheduled to run in backhround (in infopackage) ,after event is triggered (option in scheduling tab of infopackage...THE SCHEDULING OPTIONS)
now everything seems to be fine.. but the data is not getting loaded...?? could u lease help me out..how to load data from excel file (in background), after an event gets triggered.
thanks in advance,
Rohanhi Alexander,
i am triggering the event from BP_EVENT_RAISE FM in APO by passing the event id... this would automaitically raise the event...just like sm64
Thanks
Rohan -
Is it Possible to Run Reporting Agent job in Parallel?
Hi Folks,
I am sceduling a reporting agetn job and I see that it only takes one back Ground process and its a long running Job, so I was thinking about the possibilty of breaking this into parallel jobs..Is this possible if so please share with me how to do this...thanks in advanceFarhan,
I think I did not explain my question properly, I do not want to create 2 variants with different time selections and run it as 2 jobs, this way I cannot have a Super Set for using Cache, what I am want is use just one variant (Jan through Dec) and when I execute this in the background, i want this job to split into parallel processes so that it runs faster...Can someone explain if this is possible. if so how can i achieve this..thanks in Advance.. -
Hi All,
My problem is the next:
I would like to call two functions, in one function module, but I cannot schedule the second job after the first. I wrote the code, use the parameter PREDJOB_CHECKSTAT of JOB_CLOSE, but when the mother function called two jobs started immediately and paralell. What is worng in the following code?
Thanks /and points :)/ for your help!
Tamas
L_JOBNAME = 'REQUEST_COPY'.
CALL FUNCTION 'JOB_OPEN'
EXPORTING
JOBNAME = L_JOBNAME
IMPORTING
JOBCOUNT = L_JOBCOUNT.
SUBMIT RSSEM_REQUEST_COPY
WITH RNR = I_RNR
WITH S_CUBE = LS_CUBES-SOURCE_CUBE
WITH T_CUBE = LS_CUBES-TARGET_CUBE
USER SY-UNAME VIA JOB L_JOBNAME NUMBER L_JOBCOUNT
AND RETURN.
CALL FUNCTION 'JOB_CLOSE'
EXPORTING
JOBCOUNT = L_JOBCOUNT
JOBNAME = L_JOBNAME
STRTIMMED = 'X'.
L_JOBNAME2 = 'REQUEST_CLOSE'.
CALL FUNCTION 'JOB_OPEN'
EXPORTING
JOBNAME = L_JOBNAME2
IMPORTING
JOBCOUNT = L_JOBCOUNT2.
SUBMIT Z_REQUEST_CLOSE_ZSD_P25
USER SY-UNAME VIA JOB L_JOBNAME2 NUMBER L_JOBCOUNT2
AND RETURN.
CALL FUNCTION 'JOB_CLOSE'
EXPORTING
JOBCOUNT = L_JOBCOUNT2
JOBNAME = L_JOBNAME2
STRTIMMED = 'X'
PREDJOB_CHECKSTAT = 'X'
PRED_JOBCOUNT = L_JOBCOUNT
PRED_JOBNAME = L_JOBNAME.Hi Thomas,
Thanks for all helps, I found the solution!
Inserted a select from the Job Status Table into th second job definition.
Thanks for the ideas!
Tamás
The finally code is the the following:
L_JOBNAME = 'REQUEST_COPY'.
CALL FUNCTION 'JOB_OPEN'
EXPORTING
JOBNAME = L_JOBNAME
IMPORTING
JOBCOUNT = L_JOBCOUNT.
SUBMIT RSSEM_REQUEST_COPY
WITH RNR = I_RNR
WITH S_CUBE = LS_CUBES-SOURCE_CUBE
WITH T_CUBE = LS_CUBES-TARGET_CUBE
USER SY-UNAME VIA JOB L_JOBNAME NUMBER L_JOBCOUNT
AND RETURN.
CALL FUNCTION 'JOB_CLOSE'
EXPORTING
JOBCOUNT = L_JOBCOUNT
JOBNAME = L_JOBNAME
STRTIMMED = 'X'.
L_JOBNAME2 = 'REQUEST_CLOSE'.
CALL FUNCTION 'JOB_OPEN'
EXPORTING
JOBNAME = L_JOBNAME2
IMPORTING
JOBCOUNT = L_JOBCOUNT2.
DO.
SELECT SINGLE STATUS FROM TBTCO INTO L_STATUS
WHERE JOBNAME = L_JOBNAME
AND JOBCOUNT = L_JOBCOUNT.
IF L_STATUS = 'F'.
EXIT.
ELSE.
WAIT UP TO 1 SECONDS.
ENDIF.
ENDDO.
SUBMIT Z_REQUEST_CLOSE_ZSD_P25
USER SY-UNAME VIA JOB L_JOBNAME2 NUMBER L_JOBCOUNT2
AND RETURN.
CALL FUNCTION 'JOB_CLOSE'
EXPORTING
JOBCOUNT = L_JOBCOUNT2
JOBNAME = L_JOBNAME2
STRTIMMED = 'X'
PREDJOB_CHECKSTAT = 'X'
PRED_JOBCOUNT = L_JOBCOUNT
PRED_JOBNAME = L_JOBNAME. -
How to create the event in the report for jobs scheduling.
Hi Experts,
i have a requirement like as follows:
The following triggers for Batch Jobs in the SCM system will be created.i.
Background Processing Event = u201CAPO Background Processing Eventu201D. After sending the Event, write a Log Report line u201CEvent u201CAPO Background Processing Eventu201D sentu201D.
Could you please suggest me how we create the Event or which transaction ?
Please give me a steps for creating events so that based on these events we use
CALL METHOD cl_batch_event=>raise
EXPORTING
i_eventid = p_bpeve
i_server = p_server
i_ignore_incorrect_server = p_ignore
EXCEPTIONS
excpt_raise_failed = 1
excpt_server_accepts_no_events = 2
excpt_raise_forbidden = 3
excpt_unknown_event = 4
excpt_no_authority = 5
OTHERS = 6.
Right now i received message "APO Background Processing Event" is doesn't exists.
Thanks in Advance.
Puneet.Hi Puneet,
Goto transaction SM62 and in there to BckProcEvents tab. There you can create the events.
You just need to specify the name and Description of an event.
Hope this serves your purpose.
Thanks -
Report and BAPI , Scheduling Problem
Hi Gurus,
I'm having a problem, I've a query/report that should be executed every 2 wed of the Month and A BAPI is associated to the query,and It's not working properly .it's developed by some other developer went to TCode RSCRM_BAPI,RSRTRACE,MDXTEST but it's of no use, My Question's is what's that trigger the event to run on 2 wed of every month.
Please,Help me .I forgot to tell you that , the query will generate a file for 3rd Party processing
-
Standard job scheduling problem
hi,
i am using ERP 6 ,windows 2003 , MS SQL 2005.
i am scheduling the standard job like (SAP_COLLECTOR_FOR_JOBSTATISTIC ).
in start time when i am selecting IMMEDIATE it is ok and working.
but in start time when i select particular date/time it gives error (Error saving job SAP_COLLECTOR_FOR_JOBSTATISTIC to
database)
can any one tell me why is this happing.hi,
i am using ERP 6 ,windows 2003 , MS SQL 2005.
i am scheduling the standard job like (SAP_COLLECTOR_FOR_JOBSTATISTIC ) in sm36.
in start time when i am selecting IMMEDIATE it is ok and working.
but in start time when i select particular date/time it gives error :-
"Error saving job SAP_COLLECTOR_FOR_JOBSTATISTIC to
database"
can any one tell me why is this happing. -
Dear All,
I'm in confusion and want your expart comment on this -
One of my application user has scheduled a job in a schema at night 12:00 AM where job number was 154. Due some other requirement another job planned to schedule on the same schema on the same database at next day morning 7:00 am. The person who has schedule the job where job number is showing 183.
My question is that oracle provide the job number as per sequence. Is it possible to have a gap between two job number. Another question is that is it possible to know last few job numbers from the database.
we are using the oracle version 9i release 2 and OS is windows.Hi,
See Basically the JOBNO column is performed via the JOBSEQ sequence, which has a default cache size of 20 and Coming to the Sequence Gap there may be Chance that another Jobs might be created by some user in other schema and due that you might found the difference "Gap" in the Job Number (that might be the thing,I suppose that)
- Pavan Kumar N -
Sql server agent jobs deleting problem
hi team,
while i am trying to deleting in the sql server agent disabled jobs through sql query, that time i am getting below error.
query is:
delete from dbo.sysjobs
where version_number=5
error message:
Msg 547, Level 16, State 0, Line 1
The DELETE statement conflicted with the REFERENCE constraint "FK__sysjobsch__job_i__32E0915F". The conflict occurred in database "msdb", table "dbo.sysjobschedules", column 'job_id'.
The statement has been terminated.Hi,
You can delete multiple jobs
by using SQL Server Management Studio:
1.In Object Explorer, connect to an instance of the SQL Server Database Engine, and then expand that instance.
2.Expand SQL Server Agent.
3.Right-click Job Activity Monitor, and click View Job Activity.
4.In the Job Activity Monitor, select the jobs you want to delete, right-click your selection, and choose Delete jobs.
For your information:
Delete One or More Jobs
http://technet.microsoft.com/en-us/library/ms187850.aspx
Thanks.
Tracy Cai
TechNet Community Support
Maybe you are looking for
-
My iPod Touch 2nd Generation won't turn on anymore
I have had this iPod for about a year now, just enough for the warranty to expire, just as I was surfing the internet the spinning dial came up and it shut off. At first I thought it just died. I plugged it in and let it charge overnight, when I woke
-
please help me with dis... I am using iphone 4..32 gb...i hav updated to ios6..i am experiencing serious lags...watever m doin d phone lags n goes to the home screen...frequency is much greater..please help me with it...i even replaced my device but
-
How to generate web page from Excel spread sheet?
I have a spreadsheet containing a long string of HTML text. It can be viewied below and each line needs to be one web page. I also have the same file in a flat text file. Header 1 Header 2 Header 3 <h3 style="text-align:center;">Minutes of the Annu
-
Iterate through all dynamic text variables
Hello, I'd like to be able to iterate through all of the dynamic text variables in my flash movie, and I'd like it so that if I add new text to this movie, it will show up in the iteration. Essentially, I want to do something like this: for (i in _ro
-
I finally got iSync to recognize my Palm (Zire 72), but now when I try to sync I get this error message on my Palm "Unable to initiate HotSync operation becase th eport is in use by another application" My Mac Bluetooth reads that the Palm is connect