[abap] Running job in background
Hi !
When I am running a job in background using the functions :
'JOB_OPEN','JOB_SUBMIT','JOB_CLOSE'.
Eventually the job is in finished status, however
I get the following error popup message :
" classification locked (user username)
you cannot classify the batch
because the batch class is
currently being processed.
Do you want to try to carry out the
classification again ?
Please tell me what's the problem, and how to correct the problem ?.
Thanks
moshe
Most likely you try to change data which is locked by another user to the same time in some cases - depending on what you were doing the locks are created by the same job in a previous step. In both cases there is only one scenario that works - check, resp. wait until the locks are released.
Christian
Similar Messages
-
Hi,
I am using oracle 10.2.0.4 and HP UX .
I want to run job in background .For this i created on sql file "stat.sql"
execute sys.dbms_stats.gather_schema_stats( ownname=>'PRD',cascade=>FALSE,degree=>dbms_stats.default_de
gree, estimate_percent=>100);
and then i created one "statscr.sh" file to run this script.
#!/bin/ksh
sqlplus sys/sys as sysdba
@/home/oracle10/stat.sql
exit
i am running this by
nohup ./statscr.sh >/home/oracle10/stat.log &
But soon it displaying message ...
/home/oracle10 > nohup ./statscr.sh >/home/oracle10/stat.log &
[1] 27188
[1] + Done(126) nohup ./statscr.sh >/home/oracle10/stat.log &
How to check this job is running in backuground or not .. in ps -ef|grep nohup it is not displaying anything .
OR is there any thing wrong in my steps ...
ThanksHi,
i missed to reply your part ..
See when i loged in to system .. it is prompted me like
oracle10@n2v4d1/PRD
/home/oracle10 >
i tried by "jobs" but it not showing anyting ...
this is one time activity till now ..i need to run few sql script before starting this job and after finishing this job ...
those scripts are taking less time . so i am doing directly in sql prompt ..
I don't know when previous script will fininsh ,so i am not able to tell time when i can run this script.
can you find any mistake in my shell script or sql script or executing command nohup ...
Thanks -
Suppose I want to run 3 procedures
If I call them in a function like this
proc1()
proc2()
proc3()
Then proc2 won't start until proc1 finished and so on.
How can I start them simultaneously without proc2 caring for whether proc1 finished or not?
Basically I'm looking something like using "&" in Unix to run jobs in background.
My environment is Oracle 10g in Windows 2003.Hi,
You can use [DBMS_SCHEDULER|http://download.oracle.com/docs/cd/B28359_01/appdev.111/b28419/d_sched.htm#CIHHBGGI] to run the procedure and continue with other procedures, for examples you can see [DBMS_SCHEDULER|http://psoug.org/reference/dbms_scheduler.html].
More examples in [Scheduler in Oracle Database 10g|http://www.oracle-base.com/articles/10g/Scheduler10g.php]
Regards,
Edited by: Walter Fernández on Jun 29, 2009 10:18 AM - Adding other url... -
Error while running a job in background
Hi,
I got the following error message while running the job in background.
"Step 001 started .
Control Framework: Fatal error - GUI cannot be reached.
ABAP/4 processor: RAISE_EXCEPTION
Job cancelled"
What is the reason for this error and how to correct it?ALV Grid control is based on the custom controls on the screen. When the program is scheduled in background, it tries to create GUI related front-end objects and hence the error u201CFatal Error u2013 GUI cannot be reachedu201D. This type of problem is common with all the programs that use the ALV grid control to display the output.
Solution:
Whenever we execute this type of programs in background, we should be passing a blank docking container instead of the custom container as parent to our grid control.
The docking container doesnu2019t need any of the custom controls on the screen; instead it attaches an area to any or all of the four edges of the screen (top, left, right or bottom). The behavior of the areas in the container is determined by the sequence in which they are initialized. Docking Containers are attached to the screen from the inside out. This means that when you create a second container, it is attached to the edge of the screen, and the container that was already there is pushed outwards.
Let us modify the standard program (by taking a copy of it) to enable it to execute it in background.
Following modifications have to be made:
· Define a docking container in the program
data: or_doc type ref to cl_gui_docking_container .
· At the time of creating a custom container, check if the program is being executed in background or foreground. If the program is scheduled in background, then create a docking container instead of custom container.
if cl_gui_alv_grid=>offline( ) is initial.
create object or_custom_container
exporting container_name = c_container.
create object or_grid
exporting i_parent = or_custom_container.
else .
create object or_grid
exporting i_parent = or_doc .
endif .
Now test executing the program in background. The report would be generated. -
How to run a job in background programatically after 10 sec
Hi Forum,
Can anyone tell me How to run a job in background programatically after 10 sec..
Thanks in advanceHi,
Here is the example code
*Submit report as job(i.e. in background)
data: jobname like tbtcjob-jobname value
' TRANSFER TRANSLATION'.
data: jobcount like tbtcjob-jobcount,
host like msxxlist-host.
data: begin of starttime.
include structure tbtcstrt.
data: end of starttime.
data: starttimeimmediate like btch0000-char1.
* Job open
call function 'JOB_OPEN'
exporting
delanfrep = ' '
jobgroup = ' '
jobname = jobname
sdlstrtdt = sy-datum " You need to give the Date for execution the Job
sdlstrttm = sy-uzeit " You need to give the Time for execution the Job
importing
jobcount = jobcount
exceptions
cant_create_job = 01
invalid_job_data = 02
jobname_missing = 03.
if sy-subrc ne 0.
"error processing
endif.
* Insert process into job
SUBMIT zreport and return
with p_param1 = 'value'
with p_param2 = 'value'
user sy-uname
via job jobname
number jobcount.
if sy-subrc > 0.
"error processing
endif.
* Close job
starttime-sdlstrtdt = sy-datum + 1.
starttime-sdlstrttm = '220000'.
call function 'JOB_CLOSE'
exporting
event_id = starttime-eventid
event_param = starttime-eventparm
event_periodic = starttime-periodic
jobcount = jobcount
jobname = jobname
laststrtdt = starttime-laststrtdt
laststrttm = starttime-laststrttm
prddays = 1
prdhours = 0
prdmins = 0
prdmonths = 0
prdweeks = 0
sdlstrtdt = starttime-sdlstrtdt
sdlstrttm = starttime-sdlstrttm
strtimmed = starttimeimmediate
targetsystem = host
exceptions
cant_start_immediate = 01
invalid_startdate = 02
jobname_missing = 03
job_close_failed = 04
job_nosteps = 05
job_notex = 06
lock_failed = 07
others = 99.
if sy-subrc eq 0.
"error processing
endif.
Regards
Sudheer -
ABAP process job ( BI_PROCESS_ABAP ) in process chain running for long time
Dear Experts,
We have an ABAP process job BI_PROCESS_ABAP in a process chain. This job is running for a very long time than previous run time.
Recently we had an ORACLE database upgrade from 9.2 to 10g.
From the very next day , we are having this problem.
And also previously this process-chain was under control of BASIS guys . they were using a tool called CRONACLE to schedule it. At the time of upgrade this tool was crashed and they asked us to schedule it in BW system instead.
Underlying program is using two custom tables.
one is having both primary & secondary indexes but the other table is having only primary index.
I am not sure whether we have secondary indexes on other table prior to upgrade or not.
Where must be the problem?...
At the time of upgrade BASIS has re-organized the table space along with database upgrade.
please help me...
Regards,
SRIKANTHPlease ask yr basis consultant to check the system parms.
Below i have listed down SAP recommneded system parms .
abap/heap_area_total 4000000000
abap/heap_area_dia 2000000000
abap/heap_area_nondia 2000000000
Also check in SM37 if any other jobs are running for long time, peventing the your job running.
Check the SM12 for locks or SM58 -
How to run ABAP Function Module in Background Wchich Takes Long Time to Run
How to run ABAP Function Module in Background FOR LONG TIME
I am not that experienced with ABAP. I am on SAP BI 7.0. I WANT TO RUN A FUNCTION MODULE
RSDRT_INFOCUBE_DATA_COPY.
I used SE37 and then executed the module, I supplied the parameters on the form which opped-up and then program started running. . Program was however interrupted after 10 minutes by ABAP. How can I run it in background without interruption?
THANKS A LOT.Hi,
You can call this FM in a program and run that program in background.
Regards,
Raju -
ABAP report to monitor Background Jobs (SM37)
Hi,
I need an ABAP report to monitor Background Jobs (SM37) which can monitor following things:
1) All jobs which got cancelled based upon the hours field specified in the customizing table.
2)All jobs which are active till the current date.
Hope to receive your precious response!
Thanks
Mehar
Moderator message : Spec dumping not allowed, search for available information. Thread locked.
Edited by: Vinod Kumar on Nov 22, 2011 3:36 PMHi,
I need an ABAP report to monitor Background Jobs (SM37) which can monitor following things:
1) All jobs which got cancelled based upon the hours field specified in the customizing table.
2)All jobs which are active till the current date.
Hope to receive your precious response!
Thanks
Mehar
Moderator message : Spec dumping not allowed, search for available information. Thread locked.
Edited by: Vinod Kumar on Nov 22, 2011 3:36 PM -
Running abap reports in the background when clicked on Webdynpro Button
Hi Experts,
I have requirement where when clicked on a Button in a Webdynpro application, it needs to run an abap reports in the background and I need to pass some parameters to the report.
Is it possible to do that? if yes, please guide me though.
Reward points for useful tips.
Sabbir
Edited by: Sabbir Ahmed on Oct 17, 2008 8:05 AM
Edited by: Armin Reichert on Oct 24, 2008 10:05 AMyou can use rfc's model for this na?
pass the parameters to the RFC and through that RFC run the report,
with regards
shanto aloor. -
Can the standard program RFBIBL00 be run as a background job ?
Hi all,
Can the standard program RFBIBL00 be run as a background job for the call transaction mode.
As I tried I got the job cancelled with message"Job RFBIBL00: Data does not match the job definition; job terminated".
As i run it in foreground it executes properly.
Why is it failing in background? Please help.
Thanks ,
StockHi,
You need to copy the program RFBIBL00 & modify the program to build the logic to upload through application server. Then schedule the modified program in background & it wl work.
Best regards,
Prashatn -
How to run ABAP Function Module in Background FOR LONG TIME?
I am not that experienced with ABAP. I am on SAP BI 7.0. I WANT TO RUN A FUNCTION MODULE
RSDRT_INFOCUBE_DATA_COPY.
I used SE37 and then executed the module, I supplied the parameters on the form which opped-up and then program started running. . Program was however interrupted after 10 minutes by ABAP. How can I run it in background without interruption?
THANKS A LOT.Change parameter rdisp/max_wprun_time.
Default value for this is 600 seconds (10minutes).Change it to a time which you think you need for copying infocube data.
May be 5 hours.
PS:You can not run Function Module in background directly,but you can create a Z* program and call that FM from within that program and then run the program in background.
Hope this answers your query. Best of Luck!
Thanks and Regards
Anindya
Edited by: Anindya Bose on Jun 30, 2009 1:24 PM -
Downloading the file in our PC , when running the job in Background
Hi,
We have an enquiry for below requirment.
Our client runs some jobs in front end , but as the time taken to execute the JOB is more than 15 minutes , he is getting timeout problem, so we want to run the same program in background.
Generally the output of the report is to download the file into his desktop, so even when he is running
the same job in background he want it to be downloaded into his PC, instead of application servor.
We created a test program similar to the requirment, and ran the job in foreground and the file could easily be downloaded to desktop. Then we ran the program in backgound - The job failed with an error message Codepage could not be determined - Message no. FES025.
My Question is - is it possible to download the file into the desktop while running in background.
Please help me .
Thanks in advance.
Vengal Rao.Please search the forum. This question has been asked and answered many times before.
Rob -
Running job with a specific background ID...
I have a program and a background ID created. I want to run that job in background immediately using that background ID defined by basis. How can I do that ?
Regards,
Rajesh.Hi,
YOu can create a separate program with Input parameters as job id.
Now submit the program using SUBMIT statement along with Job id, jobname which are created.
Usually, we will be creating job id using JOB_OPEN function module, and then will be submitting a background job using SUBMIT statement and finally closing the job using JOB_CLOSE function module.
Regards,
AShok -
Will it be possible to run several jobs in background at the same time?
Hi!
The new release looks promising. Look forward to hear more in Birmingham.
Just now we have a problem. It have to do with functionality In Toad compared to SQL Developer.
Will it be possible to run several jobs in background at the same time. Toad allows that.
If yes: How can we make that happen?"Jobs" are always background.
But I take you mean queries. Yes, since v1.5.x you can open an Unshared SQL Worksheet (ctrl-shift-n or the toolbar button).
Have fun,
K. -
Read the names of the files in ABAP program that runs in the background
Hello,
I have a program that uploads information from file on application server.
What I can't figure still is how to get the <b>names </b>of the files that are in <b>specific directory</b>.
There is an other application that will post those files into this directory. I wont to get file names and file types from this directory and put it into an internal table.
File names are changing based on date and version.
Please keep in mind that the program runs in the background, (presentation server is not included in the process)
Thanks in advance,
MilanHi,
one epossible solution that i have used is:
1. Create an operating system comand with transaction SM69
command OS OS-command Parameter
ZDIR Windows NT Customer cmd.exe /C dir &
2. Call Functionmodul
CALL FUNCTION 'SXPG_COMMAND_EXECUTE'
EXPORTING
COMMANDNAME = 'ZDIR'
ADDITIONAL_PARAMETERS = P_PARA1
OPERATINGSYSTEM = SY-OPSYS
TARGETSYSTEM = SY-HOST
DESTINATION =
STDOUT = 'X'
STDERR = 'X'
TERMINATIONWAIT = 'X'
TRACE =
IMPORTING
STATUS = G_OK
EXITCODE =
TABLES
EXEC_PROTOCOL = GTBL_PROTO
EXCEPTIONS
NO_PERMISSION = 1
COMMAND_NOT_FOUND = 2
PARAMETERS_TOO_LONG = 3
SECURITY_RISK = 4
WRONG_CHECK_CALL_INTERFACE = 5
PROGRAM_START_ERROR = 6
PROGRAM_TERMINATION_ERROR = 7
X_ERROR = 8
PARAMETER_EXPECTED = 9
TOO_MANY_PARAMETERS = 10
ILLEGAL_COMMAND = 11
WRONG_ASYNCHRONOUS_PARAMETERS = 12
CANT_ENQ_TBTCO_ENTRY = 13
JOBCOUNT_GENERATION_ERROR = 14
OTHERS = 15
3. Loop at GTBL_PROTO and make your coding with the filenames
Hope this helps
Regards
Bernd
Maybe you are looking for
-
Hi All While running PT60 for an employee who has time management status as 1 1 - Time evaluation of actual times , i got this error : No entry in table $ for key $ T555Z 00102 30.11.2009 Please help me on this. Im doing forced recalculation for this
-
I downloaded Lion 100 days ago (conveniently after the 90 day tech support) now my HDD has crashed and it gets stuck at the apple screen. I then hold command R and go to disc utility try to repair, that doesn't work, and try to erase. But it says
-
Dears i have dmp file exported by command: exp system/pass@dbname file=exp_full_ORCL.dmp full=y log=exp_full_ORCL.log. its exported from Oracle 10.2.0.3 running on Redhat Enterprise Linux ver 5 with multiple Schemas and users then i did install Oracl
-
Velocity Displcement Calibration for Sound and Vibration Tool Kit
Hello Guys, I have been working on sound and vibration tool kit recently. I'm taking input from sound port of PC by signal generator and taking single and double Integration for velocity and displacement resp. I want to check the correctness of the v
-
I have iphone 5S after update of 8.0 and 8.0.2 t consume battery very much( only 3 hrs backup). Plz give some solution.Now i am going frustrated from Apple