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

Error in Control Framework - While running report in background

Former Member
0 Likes
7,930

Hi Experts,

I have a report that is working fine when executed in foreground mode.

However, If I try to run the same program in Background mode, the job gets cancelled immediately with error - " Error in Control Framework" (Message Class FES - Message No - 022)

Please Advice on how we can fix this issue?

PS: My Custom report reads data and outputs the same in .xls format ( Its working fine from foreground )

Thankyou!

1 ACCEPTED SOLUTION
Read only

joltdx
Active Contributor
0 Likes
6,833

I'm guessing now that your files are located on your local client then, where you're running the SAP GUI?

Because, when running in foreground, you can access files that are located on your client, your computer. But when run in background mode, since there is no SAP GUI, the SAP servers will typically not have access to your local machine to read and write files there. The SAP server doesn't even know which is your machine at all...

If my guesswork was correct, is it possible for you to have the files located on a server that is accessible from the SAP server?

3 REPLIES 3
Read only

joltdx
Active Contributor
0 Likes
6,834

I'm guessing now that your files are located on your local client then, where you're running the SAP GUI?

Because, when running in foreground, you can access files that are located on your client, your computer. But when run in background mode, since there is no SAP GUI, the SAP servers will typically not have access to your local machine to read and write files there. The SAP server doesn't even know which is your machine at all...

If my guesswork was correct, is it possible for you to have the files located on a server that is accessible from the SAP server?

Read only

keremkoseoglu
Contributor
6,833

Some of the function modules in SAP run through the SAP GUI on the local machine of the user. So they can't be executed in the background. I'm guessing that some of your .XLS creation or download related functions are like that.

You have to change your program so it behaves differently in background mode. You should use a strategy which doesn't rely on SAP GUI DLL's.

Read only

Sandra_Rossi
Active Contributor
0 Likes
6,833

Your program attempts to connect to SAP GUI (display screen, etc.) and fails because you run it in background. But why asking the same question again and again without providing the code?