Skip to Content
0
Former Member
Mar 25, 2009 at 10:26 AM

BDC session method in background mode

192 Views

Hello,

I am using BDC session method for material location maintaince . /sapapo/loc3.

It works fine when it runs in foreground method.

However, when it is scheduled in background process - it gives following message.

Control Framework: Fatal error - GUI cannot be reached

Message no. DC006

Diagnosis

When the Control Framework is started, the system checks whether the installed GUI supports frontend components such as controls. This check failed; the causes may be as follows:

1.) The program is running in the background

2.) A transaction was called using CALL TRANSACTION ... STARTING IN BACKGROUND TASK.

Procedure

Programs that run in the background cannot address controls on the frontend. In this case, the application must either include a fallback that does not depend on the user interface, or the program or transaction must detect for itself that is running in the background and terminate itself.

A RAISE statement in the program "CL_GUI_CUSTOM_CONTAINER=======CP" raised the

exception

condition "CNTL_ERROR".

Since the exception was not intercepted by a superior

program, processing was terminated.

Would appreciate comments, solution on this.

Thank you.