Class方式的ALV后台执行会出现:
“Control Framework: Fatal error - GUI cannot be reached”的错误。
解决方法:
定义一个Docking_container:
DATA: cont_docking TYPE REF TO cl_gui_docking_container .
然后PBO创建ALV容器和ALV GRID的时候:
IF cl_gui_alv_grid=>offline( ) IS INITIAL.
CREATE OBJECT g_custom_container
EXPORTING container_name = g_container.
CREATE OBJECT grid1
EXPORTING i_parent = g_custom_container.
ELSE.
CREATE OBJECT grid1
EXPORTING i_parent = cont_docking .
ENDIF.
阅读(6716) | 评论(0) | 转发(0) |