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

Control Framework: Fatal error - GUI cannot be reached

Former Member
0 Likes
608

Hi to all,

Situation:

I have created a transaction which uses a lot of

Grids bases on class: CL_GUI_ALV_GRID.

Problem:

Now I want to create initial data calling this transaction in BACKGROUND-TASK!

Error:

If I do this, following error occurs:

Control Framework: Fatal error - GUI cannot be reached

How can I avoid this error?

Thanks a lot in advance

Michael

1 ACCEPTED SOLUTION
Read only

andreas_mann3
Active Contributor
0 Likes
553

Hi,

insert foll. lines before starting grid:

CALL METHOD cl_gui_alv_grid=>offline
                RECEIVING e_offline = off.
    IF off IS INITIAL.
      CREATE OBJECT g_custom_container
             EXPORTING container_name = g_container.
    ENDIF.

...

Andreas

3 REPLIES 3
Read only

andreas_mann3
Active Contributor
0 Likes
554

Hi,

insert foll. lines before starting grid:

CALL METHOD cl_gui_alv_grid=>offline
                RECEIVING e_offline = off.
    IF off IS INITIAL.
      CREATE OBJECT g_custom_container
             EXPORTING container_name = g_container.
    ENDIF.

...

Andreas

Read only

0 Likes
553

Thanks a lot for Your solving,

i have done similar to your suggestion.

I am checking SY-BATCH <> 'X', before

creating the controls.

But anyway, your way is much more elegant!

BR

Michael

Read only

0 Likes
553

I am facing this error when i call my Remote Function module from WebDynpro application. In side the remote function module i am performing a BDC using CAll Transaction. From SE37 it works fine. When i call it from WebDynpro it gives the above error.

Can you please help me?