LOAD-OF-PROGRAM

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).

转载于:https://www.cnblogs.com/clsoho/archive/2010/02/05/1664329.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
This error message typically occurs when the OpenSSL library is not installed or is not properly linked to the Ruby installation. To resolve this error, you can try the following solutions: 1. Install OpenSSL library: On Linux or macOS, use the system package manager to install OpenSSL. For example, on Ubuntu or Debian, run: ``` sudo apt-get install libssl-dev ``` On macOS, you can install OpenSSL using Homebrew: ``` brew install openssl ``` On Windows, download and install the OpenSSL library from the official website. 2. Reinstall Ruby with OpenSSL support: If you installed Ruby from source, make sure to enable OpenSSL support by passing the `--with-openssl-dir` flag to the `configure` script. For example: ``` ./configure --with-openssl-dir=/usr/local/opt/openssl ``` If you installed Ruby using a package manager like Homebrew, try reinstalling it with OpenSSL support: ``` brew reinstall ruby --with-openssl ``` 3. Set the OpenSSL library path: If you have installed OpenSSL in a non-standard location, you may need to set the `LD_LIBRARY_PATH` environment variable to the path where OpenSSL libraries are located. For example: ``` export LD_LIBRARY_PATH=/usr/local/opt/openssl/lib ``` 4. Use a Ruby version manager: Consider using a Ruby version manager like RVM or rbenv, which can manage multiple Ruby installations and their dependencies, including OpenSSL. This can help avoid conflicts between different Ruby versions and system libraries. After trying one or more of these solutions, try running your Ruby program again. If the error persists, you may need to seek further assistance or consult the documentation for your specific environment.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值