凡尘clsoho™的博客

E-mail & MSN: clsoho@hotmail.com
QQ1超级群: <101817641已满> QQ2群:<110722895已满>
QQ3超级群:<23765855>QQ4超级群:<85338969>
 

INITIALIZATION

Syntax 语法

INITIALIZATION.

Effect 作用

This event keyword defines an event block whose event is triggered by the ABAP runtime environment during the flow of an executable program, directly after LOAD-OF-PROGRAM and before the selection screen processing of any existing standard selection screen. This gives you the one-time opportunity to initialize the input fields of the selection screen, including those defined in the logical database linked with the program.

这个事件关键字定义了一个在一个可执行程序运行期间被ABAP运行环境触发的事件块,直接出现在LOAD-OF-PROGRAM 之后并且在任何存在的标准选择屏幕处理之前。这就给你了一度的机会来对选择屏幕上的输入字段初始化,包括那些定义在和程序相关联的逻辑数据库中的字段。

Note

When an executable program defines a standard selection screen, it is called again by the ABAP runtime environment after execution, which triggers the INITIALIZATION event again. In this case, initializing parameters or selection criteria of the selection screen has no effect, because they are automatically supplied with the preceding user inputs from the selection screen during the selection screen event AT SELECTION-SCREEN OUTPUT. To explicitly initialize the selection screen for each call, you must use the event AT SELECTION-SCREEN OUTPUT.

当一个可执行程序定义一个标准的选择屏幕,它在执行之后再一次被ABAP运行环境调用,这就又一次触发了INITIALIZATION事件。在这种情况下,初始化参数或者是选择屏幕的标准选择将不再起作用,因为它们已经自动地被在选择屏幕事件AT SELECTION-SCREEN OUTPUT中之前的屏幕上的用户输入所填充。

Example 例子

Refer to the example for reporting events. 参考reporting events的例子。

posted on 2010-02-01 15:27  凡尘clsoho  阅读(716)  评论(0编辑  收藏  举报