消息类型E后,程序不返回到选择屏幕ABAP(After message type e, progra

2019-09-20 22:07发布

我想在我的报告中使用的消息类型E。 问题是,被触发的消息时,该程序不会返回到选择屏幕。 谁能帮我? 下面是我用来实现这一目标的代码:

IF rb_tri IS NOT INITIAL AND p_trim-low IS INITIAL.

  MESSAGE e038.

ENDIF.

谢谢 :)

Answer 1:

当我与结合你的问题你的答案我提供了另一种解决方案:

不要让你的测试开始后工序( START-OF-SELECTION ),但在选择屏幕上:

PARAMETER: p_test.

AT SELECTION-SCREEN.
  IF p_test IS INITIAL.
    MESSAGE e038(00).
  ENDIF.

该E-消息块的选择画面,直到问题解决。



Answer 2:

我发现aswer。 我应该使用A S消息和类似的A E类型的消息显示。 要返回到选择画面,我不得不使用LEAVE LIST_PRECESSING。 代码如下:

START-OF-SELECTION.

IF rb_tri IS NOT INITIAL AND p_trim-low IS INITIAL.

  MESSAGE s038 DISPLAY LIKE 'E'.
  Leave list-processing.

ENDIF.

还是要谢谢你。



Answer 3:

Message text-001 TYPE 'S' Display LIKE 'E' 

要么

At selection screen on radiobutton group rad1.
  if condition
    message text-001 type 'I' display like 'E'.
    set screen 1000.
    leave screen.
  endif


文章来源: After message type e, program doesn't return to selection-screen ABAP
标签: sap abap