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

Disable GUI in BDC Program

Former Member
0 Likes
769

I was told by a post here that I could disable the GUI for a program (ME22) so that I could run a background BDC program. Has anyone done it and how is it done?

Thanks

Mike

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
709

All BDC are run in background....

If you want to hide a screen...You should use GuiXT...

Greetings,

Blag.

6 REPLIES 6
Read only

Former Member
0 Likes
710

All BDC are run in background....

If you want to hide a screen...You should use GuiXT...

Greetings,

Blag.

Read only

0 Likes
709

Thanks, how do you use GuiXT to hide a screen? I may need the screen. The BDC runs fine in the foreground, it just has problems in the background. Also, I am running transaction ME22 and not ME22N.

Thanks

Mike

Read only

0 Likes
709

Sorry...I have never used GuiXT -:(

You can debug you background process by using JDBG just like you can debug a program using /H

Hope that helps -;)

Also, try to run the batch using A mode...Maybe your missing an "ENTER" code....."/00"....

Greetings,

Blag.

Read only

0 Likes
709

I have run it with the mode 'A' and all of the screens are fine. When I run the ABAP program that runs the BDC for ME22 in the foreground there are no errors and it updates everything fine. When I run it in the background I get the following error.

<b>Control Framework: Fatal error - GUI cannot be reached

Runtime error RAISE_EXCEPTION has occurred</b>

FYI - The Bapi that could be used does not work for the types of PO's I am running which is why I have to use the BDC.

Thanks

Read only

0 Likes
709

Hummm.....It seems to me that the Batch is doing some kind of off-line process....A similar error can be found when doing RFC applications that run background process...For example GUI_DOWNLOAD....

I don't really know how you can fix that error.....Hope someone else can give you a hand on this....

Greetings,

Blag.

Read only

Former Member
0 Likes
709

Have you checked your program to make sure that nowhere are you running ME22N?

Rob