‎2021 Jan 18 11:49 PM
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!
‎2021 Jan 19 4:25 AM
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?
‎2021 Jan 19 4:25 AM
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?
‎2021 Jan 19 5:44 AM
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.
‎2021 Jan 19 7:45 AM
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?