How to generate persistent programs
程序实现代码如下:
REPORT ZTEST104.
data: code type table of string.
CONSTANTS: rep(40) value 'ZDYN1'.
append 'PROGRAM ZDYN1.' to code.
append 'write: / ''Hello, I am dynamically created!''.' to code.
insert REPORT rep from code.
submit (rep) and RETURN.
read REPORT rep into code.
append 'write: / '' and I am a dynamically extension!当退出第一层的report的时候,会增加这个信息的显示''.' to code.
insert REPORT rep from code.
generate report rep.
submit (rep) and RETURN.
运行效果为:
F8执行后,显示下面的信息
待点击退回按钮后,显示的信息多了