Application Development 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: 

REUSE ALV not working in Background

Former Member
0 Kudos

Hi all,

I am using REUSE_ALV_GRID_DISPLAY_LVC to display output of the program, this runs correct in foreground but the same when we run the program in background we are getting

Control Framework: Fatal error - GUI cannot be reache

Job cancelled after system exception ERROR_MESSAGE

Kindly let me know the solution for the same.

Thanks and Regards

Sudharshan

2 REPLIES 2

Former Member
0 Kudos

Well, it's telling you what the problem is. The GUI is not available in the background, so you have to do something else. You could test sy-batch and use REUSE_ALV_LIST_DISPLAY in the background.

Rob

anusurbab
Explorer
0 Kudos

You can use the docking container.

The docking container doesn't need any of the custom controls on the screen; instead it attaches an area to any or all of the four edges of the screen (top, left, right or bottom).

Example:

data: C_doc type ref to cl_gui_docking_container .

create object alv_grid

exporting i_parent = c_doc .