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

run in Background

Former Member
0 Likes
1,005

Hi

I wrote a program which will write a flat file to application server and presentation server at a time. It runs fine in foreground. But when i execute it in background iam getting status cancelled. What could be the problem?.

Iam clicking on the F8 button when the selection screen comes. Iam going to

Program-->Execute in background and i am giving the output device and selecting immediate and save.

Then iam going to SM37 and when i saw the task it says cancelled. what could be the reason?. do i need to write anything in the program.

Thanks in advance

1 ACCEPTED SOLUTION
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
940

You can not write a file to the presentation server from a background process. This is the issue. To the application server it is fine, but not to frontend(PC).

Regards,

Rich Heilman

Hi

I wrote a program which will write a flat file to application server and presentation server at a time. It runs fine in foreground. But when i execute it in background iam getting status cancelled. What could be the problem?.

Iam clicking on the F8 button when the selection screen comes. Iam going to

Program-->Execute in background and i am giving the output device and selecting immediate and save.

Then iam going to SM37 and when i saw the task it says cancelled. what could be the reason?. do i need to write anything in the program.

Thanks in advance

6 REPLIES 6
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
941

You can not write a file to the presentation server from a background process. This is the issue. To the application server it is fine, but not to frontend(PC).

Regards,

Rich Heilman

Read only

rahulkavuri
Active Contributor
0 Likes
940

U cannot wite a file onto the presentation server when u do in the background mode

Award points if found helpful

Read only

Former Member
0 Likes
940

You cannot download to the presentation server in background. This is the error.

If you look in your job log you will see the message that you were not able to opent the filepath to the presentation server when running in background

Read only

Former Member
0 Likes
940

you cannot create a file on presentaion server because the background job would run in the application server.

santhosh

Read only

Former Member
0 Likes
940

Satya,

Check this may be it will help you in accessing the Frontend in Background

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/9831750a-0801-0010-1d9e-f8c...

Regards

Vijay

Read only

0 Likes
940

Although Vijay has provided the document which discusses the work around, you really have to jump thru hoops to get this to work, which includes doing some work with the actually PC.

But the rule stands that you can not download to the frontend PC from a background task using the standard function modules or the class/method.

Regards,

Rich Heilman