Handle System-Exception ERROR_MESSAGE
Hello everybody,
the problem I want to solve looks as follows:
I have an ABAP report that is runnng as Batch-job (imagine a frame within certain reports run).
The program runs, as customised, the whole day continuesly as a batch-job . At customised intervals it checks some conditions and "submits" other reports also in the same instance of the Batch-job and waits for them to "return".
Within the process/stack of a submitted, second report any messages are posted in certain application logs (BALLOG).
Every message that usually would come to the display is suppressed by FuBa "DIALOG_SET_NO_DIALOG" and "DIALOG_SET_WITH_DIALOG". This is necessary because else the Batch-job would crash as you know.
However, in the endless downs of SAP there is a location where an "E" message raises and the whole job crashes with "A" because of system exception "error_message".
The second job crashes and aborts the whole job without returning to the caller report.
This happens maybe once in a week or once a month, very unregular.
The location is not to be found!
Is is okay that the submitted, second report aborts.
But it is absolutely necessary that the first report still runs after the second one crashed and the batch job still must stay active.
How can I prevent that the wohle job aborts?
Any idea (simple/complicated) is welcome.
Thanx
Frank
Hi,
in fact I still investigate if I have solved the problem.
In my case the reason seems to be related to my "long" running job and the changes of the "Operation Mode" during the job-runtime.
Old runtime settings were 00:05 - 23:50...
Current operation modes 06:00 - 20:00 daytime
20:00 - 06:00 night processing
New runtime settings are 06:05 - 19:50 and
20:05 - 05:50
The goal was that the job is not active during the change of the operation mode.
Until today it works fine...
Check OSS 35615 & 93732 and other similar related hints.
Similar Messages
-
Is there a way to handle system exception ERROR_MESSAGE?
Hi,
I have a program executed in background, which produces a bunch of consecutive documents for a set of Bulk Shipments -> TD Loading and TD Delivery Confirmation. To create those documents I use function modules 'OIGI_LOADING_CREATE' and 'OIGI_DEL_CONF_CREATE' - both from Industry-Solution Oil-and_Gas (IS-Oil).
In some cases these FM-s produces error messages (E-type) which cancel execution of the program and broke my flow-logic.
Below are few messages recorded in a job log for my task:
18.08.2005 15:56:41 Job started
18.08.2005 15:56:41 Step 001 started (program /PTRL/TAS_POSTPONDED_SYNC, variant , user name IMUTAFCHIEV)
18.08.2005 15:56:58 Shipment 180753 saved
18.08.2005 15:57:06 The plant data of the material 177 is locked by the user BMINKOV
18.08.2005 15:57:06 The plant data of the material 177 is locked by the user BMINKOV
18.08.2005 15:57:06 The plant data of the material 177 is locked by the user BMINKOV
18.08.2005 15:57:06 Job cancelled after system exception ERROR_MESSAGE
Both function modules are not designed to handle any exceptions, and in owr environment (4.6c) there is no documented system exception 'ERROR_MESSAGE' which to be handled in CATCH-ENDCATCH block.
Is there a way to handle this exception and to track the list of error messages produced by some FM into an internal table, log, whatever, as it is done in the log of the background job. I need to find a way write these messages in my log-tables and to proceed further with my flow-logic.
FYI: my program executes an RFC call to a remote system and retrieve a list of documents which need to be synchronized with R/3. I loose information, if the R/3 broke my flow-logic.
Any help would be highly appresiated.
Many thanks in advance.
Ivaylo MutafchievSven,
I made few programs where we used business scenario:
IS-Oil Shipment => IS-Oil Loading Confirmation => IS-Oil Delivery Confirmation.
All of them are based on Function Module call:
1. OIGI_LOADING_CREATE and
2. OIGI_DEL_CONF_CREATE.
To load shipment I call 1st FM in a way:
CALL FUNCTION 'OIGI_LOADING_CREATE' DESTINATION 'NONE'
EXPORTING
I_SUBRC = 9 "save and commit
I_SHNUMBER = shNumber
I_VEHICLE = vehicle
I_LDPLT = plant
I_LDDATE = loadDate
I_LDTIME = loadTime
I_LDCDAT = loadDate
I_VEH_NR = veh_nr
TABLES
T_OIGISVMQ = quantity_items
T_OIGISVMQ2 = hpm_append
T_OIGISIQ = doc_quan_items
EXCEPTIONS
COMMUNICATION_FAILURE = 1 MESSAGE p_error
SYSTEM_FAILURE = 2 MESSAGE p_error.
To confirm shipment (status 4) I call the same FM with:
CALL FUNCTION 'OIGI_LOADING_CREATE' DESTINATION 'NONE'
EXPORTING
I_SUBRC = 39 "confirm & commit 2nd step
I_SHNUMBER = shNumber
I_VEHICLE = vehicle
I_LDPLT = werks
EXCEPTIONS
COMMUNICATION_FAILURE = 1 MESSAGE sh_error
SYSTEM_FAILURE = 2 MESSAGE sh_error.
And finaly to finish process (status = 6) I call 2nd FM in a way:
CALL FUNCTION 'OIGI_DEL_CONF_CREATE' DESTINATION 'NONE'
EXPORTING
I_SUBRC = 19 "save, confirm and commit
I_SHNUMBER = shNumber
I_RAPID_CONFIRM = 'X'
I_DDCDAT = loadDate
I_DLDATE = loadDate
I_DLTIME = loadTime
EXCEPTIONS
COMMUNICATION_FAILURE = 1 MESSAGE p_error
SYSTEM_FAILURE = 2 MESSAGE p_error.
FYI: It tooks me some time to 'investigate' and find correct use of these function modules. And I worked VERY CLOSE with our SD consultant.
For details (what the export parameters and tables consist of) and sample code, please contact me at:
ivaylo dot mutafchiev at vbs dot bg
I would be glad to share my knowlege.
Regards,
Ivaylo -
Job cancelled after system exception ERROR_MESSAGE
Hello all
I am facing the following issue.
A custom report is schedulled and run as backround job. The report should create a txt file on server.
The report works fine in foreground, but as backround job ends up cancelled all the time.
The job log:
Job log overview for job: VI5 / 13072800
Date Time Message text Message class Message no. Message type
27.03.2009 13:09:28 Job started 00 516 S
27.03.2009 13:09:28 Step 001 started (program ZESSRIN110R, variant PR1_0000381, user ID METAPARTNER) 00 550 S
27.03.2009 13:09:28 File creation ERROR: 00 001 E
27.03.2009 13:09:28 Job cancelled after system exception ERROR_MESSAGE 00 564 A
There is no info in SM21 regarding the error.
Can anybody help with this?
Thanx in advance.
imi
Edited by: Imrich Vegh on Mar 27, 2009 2:27 PMbtw the part of my code looks like this:
server path check
IF p_srv IS NOT INITIAL.
OPEN DATASET gv_server FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.
IF sy-subrc EQ 0. --- I keep receiving 8 here in BACKGROUND JOB
WRITE : / text-077, gv_server.
ELSE.
MESSAGE text-069 TYPE 'E'.
ENDIF. -
Job cancelled after system exception ERROR_MESSAGE in DB13
Hello All,
When i opened the t-code DB13 i saw that this job "Mark tables requiring statistics update" is cancelled.
JOB LOG:
12.02.2011 22:00:16 Job started
12.02.2011 22:00:16 Step 001 started (program RSDBAJOB, variant &0000000000085, user ID 80000415)
12.02.2011 22:00:18 Job finished
12.02.2011 22:00:18 Job started
12.02.2011 22:00:18 Step 001 started (program RSADAUP2, variant &0000000000081, user ID 80000415)
12.02.2011 22:01:26 Error when performing the action
12.02.2011 22:01:26 Job cancelled after system exception ERROR_MESSAGE
When check for the BGD Job in SM37 for this job i found the same error in the job log with the status cancelled.
Job log overview for job: DBA!PREPUPDSTAT_____@220000/6007 / 22001700
12.02.2011 22:00:18 Job started
12.02.2011 22:00:18 Step 001 started (program RSADAUP2, variant &0000000000081, user ID 80000415)
12.02.2011 22:01:26 Error when performing the action
12.02.2011 22:01:26 Job cancelled after system exception ERROR_MESSAGE
I couldn't find any logs in SM21 of that time also no dumps in ST22.
Possible reason for this error:
I have scheduled the job Check database structure (only tables) at some other time and deleted the earlier job which was scheduled during the bussiness hours which caused performance problem.
So to avoid performance issue i scheduled this job in the mid night by cancelling the old job which was scheduled during the bussiness hours.
And from the next day i could see this error in DB13.
Rest all the backups are running fine but the only job getting cancelled is for "Mark tables requiring statistics update"
Could anyone tell me what should i do to get rid of this error?
Can i schedule this "Mark tables requiring statistics update" again by deleting the old one?
Thanks.
Regards.
Mudassir ImtiazHello Adrian,
Thanks for your response.
Every alternate day we used to have performance issue at 19:00hrs.
Then when i checked what is causing this problem, i discovered that there was a backup "Check Database Structure (tables only)" scheduled at this time and it was mentioned that this backup may cause performance issue.
Then i changed "Check Database Structure (tables only)" the time of this backup to 03:00hrs.
The next day when i checked DB13 i found that one of the backups failed.
i.e. "Mark Tables Requiring Statistics Update"
Then i checked the log which i posted earlier with the error: "Job cancelled after system exception ERROR_MESSAGE"
I posted this error here and then i tried to delete the jobs scheduled i.e. "Mark Tables Requiring Statistics Update" and then re-schedule it at the same time and interval.
And then it started working fine.
So i just got curious to know the cause of the failure of that job.
Thanks.
Regards,
Mudassir.Imtiaz
P.S There is one more thing which i would like to say which is not related to the above issue, and m sorry to discuss this in this thread.
I found a few Bottlenecks in ST04 with Medium and High priority.
Medium: Selects and fetches selectivity 0.53%: 122569 selects and fetches, 413376906 rows read, 2194738 rows qualified.
High: 108771 primary key range accesses, selectivity 0.19%: 402696322 rows read, 763935 rows qualified.
There are a lot these.
I would really appreciate if you tell me what is the cause for these Bottlenecks and how to resolve.
Thanks a lot. -
How to handle system exception in Sync communication without BPM? Help!
Hi Experts
I have a Synchronous scenario in XI: webservice <------>RFC SAP R/3.
Webservice is making a sync call to RFC FM in SAP R/3 system.
I want to handle system exception when SAP R/3 is down and send an email alert.
Can I achieve this in graphical mapping without BPM? How? Kindly provide necessary steps/screenshots for the same.
Are there any other alternatives for handling system exception apart from mapping and BPM?
Thanks
GopalHi GopalKirshna,
Yes,You can handle the Exception if at all you are using the RFC.You can achieve this without using BPM.
Using Fault message you can catch the System Exception and even the primary role for Fault Message is to catch the RFC Exceptions.
Please refer the Fault messages Notes to achieve this you will understand better.
Hope I am clear.
Please let me if you have any more queries regarding this..!
Thanks and Rewards,
Chandu. -
Error when executing APD-Job cancelled after system exception ERROR_MESSAGE
Hi,
We have a process chain which executes a APD using an ABAP program RSAN_PROCESS_EXECUTE.
It was executing successfully until few days back but now a days frequently once in 3 days roughly it is getting cancelled during execution of ABAP Program with the message 'Job cancelled after system exception ERROR_MESSAGE'
checked st22 and sm21 but didn't get any clue.But if we execute the same process chain manually(Immediate load) it is working fine all the times.
What may be the reason for the cancellation of the chain sometimes and the same chain working fine some other time and working very much fine when ran manually.
Regards,
VishnuHi Vishnu,
Can you check if there are any other process which is triggering the abap program RSAN_PROCESS_EXECUTE at the same time as the execution of this process in the chain. You can check in which other chains this process is being used. You can compare the time when this failed in the chain you mentioned with the same being run in other chains at the same time.
Sasi -
Reg:job cancelled after system exception ERROR_MESSAGE
Hi All,
Process chain has failed in aggregate step with message "job cancelled after system exception ERROR_MESSAGE"
But i manaully done the aggregate step.
But i would like to know the reason for the above message.
Can any one tell me this?
Thanks
SSHi,
In the job log of aggregate step in the above line of the message "job cancelled after system exception ERROR_MESSAGE" you will probably find the exact error message.
In the job log it will first display the exact error message and then the message "job cancelled after system exception ERROR_MESSAGE" will appear, Please check it once. -
Job cancelled after system exception ERROR_MESSAGE - Why ?
Hi to all,
Anyone knows why, when I execute a program in foreground, everything is ok . When I try to execute it in background (schedulated in a job ) I obtain "Job cancelled after system exception ERROR_MESSAGE
Message no. 00564"
I have a check in 'at selection-screen event' to control "no data output" with an custom error message.
I really don't understand why job is cancelled !
Any ideas ?
Thanks in advance .Hi,
Write your message after start-of-selection.
Instead of putting an error message you can write the message while executing the program in background.
after select .......
if sy-subrc <> 0.
if sy-batch = 'X'.
write :/ 'No data found'.
else.
message e000 with 'No data found'.
endif.
endif.
Regards,
Srini. -
System exception ERROR_MESSAGE
Hi,
A job is getting cancelled and here is the error message
Job started
Step 001 started (program RSPROCESS, variant &0000000043030, user ID ALEREMOTE)
Error sending message to network administrator.
Job cancelled after system exception ERROR_MESSAGE
Regards,
RajivHI Rajiv,
when the job is getting cancelled it might have thrown some dump in the system in ST22.
Please let us know about the dump so that we can analyse further.
Basic checking:
Check whether there are any locks
check for the table space.
check for the RFC connection
Check for TRFC in sm58
Regards,
Vikram -
System-exception error_message 00564
Hello,
I want to Filling in the Setuptable for LES - Transportation - Carry Out Restructure in TA sibw but every time the backup job stops with
system-exception error_message 00564
Who could help, please?!
Thanx in advanceHi Nathan,
R u installing any Business content objects?
or
This error cames while running your Process Chain?
regards,
Arun.M.D -
How to handle system exception.
Hi,
Following is the scenrio of my setup.
Sender : WebService call ( SOAP adapter)
Interface : sync , outbound
receiver : RFC
Interface : sync , inbound.
I want to catch the system exception if occured on XI(like mapping , deleiveryexception (rfc) , any other runtime exception)
Is there any way to catch these exception and send it to sender system as webService response.
Any help would be greatly appricated!!!Hi Samir,
If you are calling a BAPI or RFC program from a web service, then you should be able to see the BAPI/RFC error/error code on the RETURN part of the RFC response message. So it is just a matter of map the correct fields to your web service response.
For other kind of errors e.g. errors due to mapping problems/connectivity problems etc.. You need to implement error tracing (in this case sending errors back to the client) by yourself in the SWC.
Cheers,
Rob -
System exception while deleting the file from app server in background job
Hi All,
I have a issue while the deleting the file from application server.
I am using the statement DELETE DATASET in my program to delete the file from app server.
I am able to delete the file from the app server when i run the program from app server.
When i run the same report from background job i am getting the message called System exception.
Is there any secuirity which i need to get the issue.
Thank You,
TaraginiHi All,
I get all the authorization sto delete the file from application serever.
Thing is i am able to run the program sucessfully in foreground but not in the background .
It i snot giving any short dump also just JOB is cancelled with the exception 'Job cancelled after system exception ERROR_MESSAGE'.
Can anybody please give me suggestion
Thanks,
Taragini -
Hello Guyz!
need info about handling system exception while making type conversion. for example, i have 3 variables, viz.
<b>v1 type p,
v2 type f,
v3 type i.</b>
now i am going to divide v2 by v3 and store result in v1, i.e.
<b>v1 = v2 / v3.</b>
all i need is, in this particular case, if system ever gives any exception and if so,then is there any existing system defined exception to handle this.
shaneShane,
Check the sample code to handle the exceptions.
REPORT ZTEST.
PARAMETERS number TYPE i.
DATA: result TYPE p DECIMALS 2,
oref TYPE REF TO cx_root,
text TYPE string.
TRY.
IF ABS( number ) > 100.
RAISE EXCEPTION TYPE cx_demo_abs_too_large.
ENDIF.
PERFORM calculation USING number
CHANGING result
text.
CATCH cx_sy_arithmetic_error INTO oref.
text = oref->get_text( ).
CATCH cx_root INTO oref.
text = oref->get_text( ).
ENDTRY.
IF NOT text IS INITIAL.
WRITE / text.
ENDIF.
WRITE: / 'Final result:', result.
FORM calculation USING p_number LIKE number
CHANGING p_result LIKE result
p_text LIKE text
RAISING cx_sy_arithmetic_error.
DATA l_oref TYPE REF TO cx_root.
TRY.
p_result = 1 / p_number.
WRITE: / 'Result of division:', p_result.
p_result = SQRT( p_number ).
WRITE: / 'Result of square root:', p_result.
CATCH cx_sy_zerodivide INTO l_oref.
p_text = l_oref->get_text( ).
CLEANUP.
CLEAR p_result.
ENDTRY.
ENDFORM.
Regards
Vijay -
System Exception:OSoftResSvrAdm.Handle Creat ActiveX Object Error at Admin
Hi Experts,
While logging into the BPC admin client, we are facing the following errors:
System.Web.Services.Protocols.SoapException: Server was unable to process request. ---> System.Exception: OSoftResSvrAdm.Handle Creat ActiveX Object Error at Admin Server
at OSoft.Services.Webservice.AdminMainService.AdminMainService.GetText(Int64 intStringNum, String& strReturnString, String sParam1, String sParam2, String sParam3, String sParam4, String sParam5)
at OSoft.Services.Webservice.AdminMainService.AdminMainService.LoadRes()
at OSoft.Services.Webservice.AdminMainService.AdminMainService..ctor()
--- End of inner exception stack trace ---}
We have been facing this issue since the time the server was restarted after changing the admin password.
Please help us in resolving this issue.
Thanks in advance.
MeeraSo you changed the pwd for installation user of SAP BPC.
After you performed this change did you open Server Manager and go to Reset Credential link?
There you have to input the new pwd for installation user.
After that try to login again using BPC client.
Regards
Sorin Radulescu -
CORBA System Exception handling code mapping for Weblogic
Hi,
I am in the process of porting some older code that was hosted in an Inprise AppServer
4.1 environment to Weblogic 8.1. The existing code is catching several CORBA system
exceptions that include the following :
org.omg.CORBA.NO_RESPONSE
org.omg.CORBA.UNKNOWN
org.omg.CORBA.NO_MEMORY
org.omg.CORBA.NO_RESOURCES
org.omg.CORBA.OBJECT_NOT_EXIST
As far as i understand, these exceptions will never be thrown by the Weblogic
8.1 Server. I wanted to see if someone can guide me as to which RMI exceptions
will be thrown by Weblogic server instead of the above mentioned CORBA exceptions
Thanks in advance
Muhammad"Muhammad Choonara" <[email protected]> writes:
I am in the process of porting some older code that was hosted in an Inprise AppServer
4.1 environment to Weblogic 8.1. The existing code is catching several CORBA system
exceptions that include the following :
org.omg.CORBA.NO_RESPONSEUnmarshallException (probably)
org.omg.CORBA.UNKNOWNNo idea
org.omg.CORBA.NO_MEMORYOutOfMemoryException
org.omg.CORBA.NO_RESOURCESNo idea
org.omg.CORBA.OBJECT_NOT_EXISTNoSuchObjectException
>
As far as i understand, these exceptions will never be thrown by the Weblogic
8.1 Server. I wanted to see if someone can guide me as to which RMI exceptions
will be thrown by Weblogic server instead of the above mentioned CORBA exceptions
? andy
Maybe you are looking for
-
Word import Module.vi is trying to call Vb project and VB components thru active X controls when it's trying to call Vb components it's giving the error no such interface found..I am using Labview 6,MSoffice97,Graph8
-
7941 Phone Button template on CCM 4.2(3)
Hello, Has anyone got an overflow error message when trying to ad the customized 7941 phone template on CCM 4.2(3) devpack 3.3? By default, the standard 7941 phone button template come with 1 Lone and one speed dial, but our environment here need a t
-
ALL flash videos looks pixelated, win 7 or 8.1, ONLY with firefox
Latest firefox version, latest adobe flash player.. Had cleaned cache and preferences of both Firefox and Flash Player.. two different machines with different hardwares and SOs, no luck! With Google Chrome all videos are ok. It's like the difference
-
There was a bangla phonetic typing font named Bangla - onkur in OS 10.8. This is not available in 10.9. How can I get it back. I badly need it. Please help.
-
I cannot preview the iBooks I am creating on my MacBook because my iPad is "supervised" by my employer's computer. Is there any way around this?