凡尘clsoho™的博客

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

INCLUDE

Syntax 语法

INCLUDE incl [IF FOUND].

Effect 作用

The statement INCLUDE includes the Include program incl at the specified position of a source text. During syntax checking and generation of the program by the ABAP Compiler, the application is replaced by the source text of the Include program. The included INCLUDE program must consist of full statements.

INCLUDE语句包含在一个源程序文本中指定的位置的包含程序incl.在语法检查和ABAP编译器生成程序期间,应用程序被包含程序的源程序代替。被包含的包含程序必须由完整的语句构成。

If the specified Include program does not exist, a syntax error will be triggered. This error message can be suppressed as of Release 6.40 by specifiying the addition IF FOUND.

如果指定的包含程序不存在,将会触发一个语法错误。这个错误消息从版本6.40开始可以通过指定附加项IF FOUND 来禁止。

Notes

  1. The statement INCLUDE is the only statement that can be used instead of a statement that introduces a program at the first position of a program. The requirement is that, after execution of the Include program, a statement that introduces a program is at the beginning of the including program.

INCLUDE语句是唯一可以用来在程序的开始位置代替程序描述语句的语句。必要条件是,在包含程序执行后,解释程序的语句在包含程序的开始。

  1. The ABAP Workbench supports the automatic creation of Include programs for certain program parts, such as Top Include for global declarative statements.

ABAP工作台支持为确定的程序部分自动生成包含程序,像全局声明语句的Top包含。

  1. Using the service report RSINCL00, reference lists can be created for INCLUDE programs.
    用服务报表RSINCL00,可以为包含程序创建参考列表。

Example 例子

These lines display the framework program of the function group ABAP_DOCU that shows the ABAP key documentation for the SAP Basis System. It contains solely INCLUDE statements that include the actual source text.

这些行显示了函数组ABAP_DOCU的程序结构,它展示了SAP BASIS SYTEM的关键文档。它只包含包含实际程序源文本的的包含语句。

*--------------------------------------------------------*
* System plus User-defined Include-files.                *
*--------------------------------------------------------*
  INCLUDE labap_docutop.       " Global Data
  INCLUDE labap_docuf01.       " Class for docu display
  INCLUDE labap_docuuxx.       " Function Modules
*--------------------------------------------------------*
* User-defined Include-files (if necessary).             *
*--------------------------------------------------------*
  INCLUDE labap_docuo01.       " PBO Modules
  INCLUDE labap_docui01.       " PAI Modules
  INCLUDE labap_docue01.       " Handling of Runtime Events

posted on 2010-01-26 13:47  凡尘clsoho  阅读(492)  评论(0编辑  收藏  举报