Message SAP DC006 - Control Framework: Fatal error - GUI cannot be reached

Diagnosis
When the Control Framework is started, the system checks whether theinstalled GUI supports frontend components such as controls. This checkfailed; the causes may be as follows:
1.) The program is running in the background
2.) A transaction was called using CALL TRANSACTION ... STARTING INBACKGROUND TASK.

Procedure
Programs that run in the background cannot address controls on thefrontend. In this case, the application must either include a fallbackthat does not depend on the user interface, or the program ortransaction must detect for itself that is running in the backgroundand terminate itself.