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

BDC session method in background mode

Former Member
0 Likes
680

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.

2 REPLIES 2
Read only

Former Member
0 Likes
487

do you have any Pop-up box coming up during this transaction ?

Read only

Former Member
0 Likes
487

No there is no any pop up during the transaction.

However during first screen once you enter location and location type, it takes to the no of tab strip and then accordingly select the required tab strip

During foreground as I said and mentioned earlier it works fine , it gives these errors during the background processing