凡尘clsoho™的博客

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

LOAD-OF-PROGRAM

Syntax 语法

LOAD-OF-PROGRAM.

Effect 作用

This event keyword defines an event block whose event is triggered by the ABAP-runtime environment when an executable program, a module pool, a function group or a sub-routine pool is loaded in the internal session.

这个事件关键字定义了一个当一个可执行程序,一个模块池,一个函数组或者一个子程序池在内部会话中被加载时被ABAP运行环境触发的事件块。

When calling a program through SUBMIT or through a transaction code, then, at every call, a new internal session is opened and the event block is executed once at every call. You can initialize global data objects of the program here.

当通过SUBMIT或者通过事务码来调用一个程序时,那么,在每一个调用中,将会打开一个新的会话并且这个事件块在每个会话中会被立即执行。你可以在这初始化程序的全局数据对象。

At the first call of an external Procedure (sub-program or function module), the framework program of the called procedure is loaded into the internal session of the caller, thus triggering the event LOAD-OF-PROGRAM. The event block is executed before the called procedure. At any further call of a procedure of the same framework program by a caller of the same internal session, the event LOAD-OF-PROGRAM is triggered no longer.

在第一次调用一个外部过程(子程序或者函数模块),被调用过程的程序框架将会被加载到调用者的内部会话中,就这样触发了事件LOAD-OF-PROGRAM 。事件块在被调用过程之前被执行。在任何一个被调用者的相同会话具有相同程序框架的过程的深度调用中,事件LOAD-OF-PROGRAM 不再被触发。

Note

The event LOAD-Of-PROGRAM should mainly be used to initialize global data when calling external procedures or Transactions. If you call executable programs with SUBMIT, we recommend that you use the event INITIALIZATION, as the Starting values for parameter and selection criteria are set after LOAD-OF-PROGRAM (see program flow after SUBMIT).

当调用外部过程或者事务时,事件LOAD-OF-PROGRAM 应当主要被用来初始化全局变量。如果你用SUBMIT调用可执行程序,我们建议你用事件INITIALIZATION,因为参数字段或者标准选择的初始值是在LOAD-OF-PROGRAM 之后被设置的。(参见程序flow after SUBMIT).

posted on 2010-02-05 13:10  凡尘clsoho  阅读(1235)  评论(0编辑  收藏  举报