cl_demo_output的使用

目录

  • cl_demo_output
    • Example示例

cl_demo_output

Demo Output using Static Methods or Instance Methods
使用静态方法或者实例方法作为演示输出
This class demonstrates how the WRITE statements of classical list output can be replaced by method calls.
这个类演示了如何用方法调用替换经典列表输出的WRITE语句。

Example示例

Simple output with static method:

DATA(text) = `Hello World!`.

cl_demo_output=>display( text ).
Simple output with instance method:
DATA(text) = `Hello World!`.

DATA(out) = cl_demo_output=>NEW( ).
out->write( text )->display( ).
For a demonstration of most options, see the programs DEMO_USAGE_OUTPUT_STATIC and DEMO_USAGE_OUTPUT_INSTANCE.

你可能感兴趣的:(SAP,ABAP,其他)