cancel
Showing results for 
Search instead for 
Did you mean: 

Job cancelled after system exception ERROR_MESSAGE

Former Member
0 Kudos

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 PM

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

The network server is not available in the background. You can search the forum for similar problems.

Rob

Former Member
0 Kudos

btw 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.

former_member376453
Contributor
0 Kudos

Just from your code, I have doubt.... You have used p_srv. Is it stands for presentation server? Like your local desktop m/c. You will not be able to access presentation server from Background. You have to pass some Application server path, which you can see frm AL11. Check the Forum for further details.

Kuntal

Former Member
0 Kudos

p_srv is a input parameter - server path from input screen - for example /tmp (which I can see in AL11)

is working as foreground job, but I keep getting SY-SUBRC = 8 at file creation when I use background job.

Do I need to specify the server path closer? any other idea?

Former Member
0 Kudos

you can use

open dataset gv_file for input in text mode encoding default

with smart linefeed.

Former Member
0 Kudos

hello,

The error is coming as the Operating system could not open file.

Try to use,

IF p_srv IS NOT INITIAL.

OPEN DATASET p_srv FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.

Regards

Arindam