08-07-2006 5:06 PM
Hi,
I am getting this message when I use call transaction to create a sales order using VA01. Following is the statement I have used. Note that when i execute the program online, I am not getting any errors. I could create sales order without any problem. I am getting this exception only when I run in background.
CALL TRANSACTION 'VA01'
USING BDC_TAB
MODE 'N'
UPDATE 'S'
MESSAGES INTO W_MESS_TAB.
When I captured message tab, I got following messages.
DC006 - Control Framework: Fatal error - GUI cannot be reached
00341 Runtime error RAISE_EXCEPTION has occurred.
Please help me in this regard.
Regards
Kasi
08-07-2006 5:09 PM
Check your screenflow once again? There should be some problem with screen flow. Execute this in foreground in all screen mode and see if it is working fine.
Also check if BDCTAB is cleared before reuse.
08-07-2006 5:15 PM
I think my details are incomplete. When I execute the program in foreground with all possible Modes given below, it works fine.
*'A' Display the screens
*'E' Only display if an error occurs
*'N' Do not display
I am getting this error only when I schedule a job in the background.
For ex. if I use MODE 'N' and execute program in foreground, SO is created without any problem.
08-07-2006 5:19 PM
As I said in my preivous post its because of the controls that cannot be executed in background.
Regards,
Ravi
08-07-2006 5:22 PM
08-07-2006 5:09 PM
Some times execution of BDC program in back ground is different from the foreground. Some screens may appear in background and raise error while same will not when executed in foreground.
Double click the message in Session log to know more details.
One way is to suppress the screen while executing BDC.
Alternatively I suggest to use BAPI instead.
- Sanjay
08-07-2006 5:12 PM
Looks like VA01 has got some ALV controls becuase of which it cannot be executed in the background. Are you in the latest version where there are controls on VA01 screen? If yes, then you cannot do a BDC, you will have to go the BAPI way.
Regards,
Ravi
Note : Please mark all the helpful answers
08-09-2006 3:53 PM
I figured out the problem. it is because I am calling Header text screen to populate data. This works fine when I execute the call transaction in foreground in all modes but does not work when I schedule a background job. I have removed calls to these screens and called a FM SAVE_TEXT to add texts after SO is created.
Thanks for all your support.
regards
Kasi
01-12-2007 4:22 PM
08-18-2007 7:57 PM
How do you Rosolve It?
is it posible run a BDC in background?
Please Help!