Syntax
SUPPRESS DIALOG.
Effect
If this statement is specified during PBO processing, then the current dynpro is processed without displaying the screen, while the screen of the previous dynpro remains visible. After the PBO processing, the system triggers the event PAI in such as way, as if a user had pressed Enter. The function code assigned to this key in the current GUI status is then transported to sy-ucomm and to the OK field. Outside of PBO processing, this statement has no effect.
If during PAI processing with the statement MESSAGE, either a termination message, error message, information message or a warning is sent, then the screen of the current dynpro is displayed together with the message.
Example
You can use SUPPRESS DIALOG to display lists while dynpros are processed, without displaying the screen of the dynpro during whose processing the list is created.
MODULE call_list OUTPUT.
SUPPRESS DIALOG.
SET PF-STATUS space.
WRITE 'Basic List'.
LEAVE TO LIST-PROCESSING AND RETURN TO SCREEN 0.
ENDMODULE.
本文详细介绍了ABAP中SUPPRESSDIALOG语句的作用及使用场景。此语句允许在处理dynpro时不显示其屏幕,而保持前一dynpro屏幕可见。文中还通过示例展示了如何利用该功能在不显示特定dynpro的情况下处理列表。
749

被折叠的 条评论
为什么被折叠?



