Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

BACKGROUND Cancel (When DEBUG is OK)

Former Member
0 Likes
2,198

Hello everybody,

I have a problem and i don't know what else i can do.

I have a Z program, it can be run in foreground or background.

Foreground is OK, but when i run in background it show as "Cancel" in SM37, but when i debug the background it works fine.

Can anyone help me?

A simple example: When i run in background it doesn't delete the file, but when i debug the background it deletes.

Hello everybody,

I have a problem and i don't know what else i can do.

I have a Z program, it can be run in foreground or background.

Foreground is OK, but when i run in background it show as "Cancel" in SM37, but when i debug the background it works fine.

Can anyone help me?

A simple example: When i run in background it doesn't delete the file, but when i debug the background it deletes.

12 REPLIES 12
Read only

satyabrata_sahoo3
Contributor
0 Likes
2,132

is it a BDC program?  and  what the Cancel job log says?

-Satya

Read only

0 Likes
2,132

No, it's not a BDC programa.

Just appear "Cancel" there is no protocol, no spool, etc.

Do u have any idea?

Read only

Mohamed_Mukhtar
Active Contributor
0 Likes
2,132

Hello Lucas,

Share the error message after the cancellation of job or share the screen shot of job log.

Thanks

Read only

0 Likes
2,132

Just doesn't appear any message in the end of job.

Read only

former_member183073
Active Participant
0 Likes
2,132

Share the log of the background job and tell us what the program does.

Read only

matt
Active Contributor
0 Likes
2,132

Lucas Conceição wrote:

I have a Z program, it can be run in foreground or background.

Foreground is OK, but when i run in background it show as "Cancel" in SM37, but when i debug the background it works fine.

So, in fact, it cannot be run in background, because it "cancels"? Have you checked ST22 for a dump?

Read only

0 Likes
2,132

Hello Lucas,

Are you trying to d0wnload/read/delete file on presentation server(your PC). If yes , then it is not possible in background mode.

Thanks

Read only

Former Member
0 Likes
2,132

Hello,

So, im deleting, reading and creating files in a server.

I run the program in my computer and read/delete/create file in a server.

I've just checked the ST22 and SM21, but there are only some errors not from my user.

I just don't understand why when i debug the job the file is deleted/created/read and when i run the job normally it gives me "Cancel" and doesn't delete/read/create files.

EDIT: Guys i was testing some scenarios, i created a program really simple and the job still canceling, i think is something with the user, i'll keep looking for answers and when i found the solution i post. Thanks until now.

Read only

RaymondGiuseppi
Active Contributor
0 Likes
2,132

Are you using any GUI related function or class, also as wrote, did you check for dump in ST22 or messages in SM21 or job log ?

Regards,

Raymond

Read only

matt
Active Contributor
0 Likes
2,132

Check authorisations. You can use ST01 to trace.

Read only

Former Member
0 Likes
2,132

I think they found the problem, this situation is happening for all users.

Read only

kiran_k8
Active Contributor
0 Likes
2,132

Lucas,

I think Debugging a background job is similar to running the program in foreground.

K.Kiran.