CNTL_ERROR
现象:
错误位置:
原因:
i have also faced this CNTL_ERROR problem and found solutions
This CNTL_ERROR usually errors when you are running the report in Back ground mode and along side if using >Cl_GUI_CUSTOM_CONTAINER to display the final output then you can add this IF condition to overcome problem.
IF cl_gui_alv_grid=>offline( ) IS INITIAL.
CREATE OBJECT GO_CONTAINER
EXPORTING
CONTAINER_NAME = 'CONTAIN'.
endif.
实验对策一:
解决前:
IF L_USTYP <> 'B' "B代表系统用户 (内部 RFC 和后台处理)
AND P_1069 = ''.
CREATE OBJECT g_custom_container
EXPORTING
container_name = g_container.
ENDIF.
解决后:
IF L_USTYP <> 'B' "B代表系统用户 (内部 RFC 和后台处理)
AND P_1069 = ''. "
IF cl_gui_alv_grid=>offline( ) IS INITIAL.
CREATE OBJECT g_custom_container
EXPORTING
container_name = g_container.
ENDIF.
EDNIF.