会说话的ABAP report

简介:

report z.

INCLUDE ole2incl.

DATA: ole   TYPE ole2_object,

      voice TYPE ole2_object,

      text  TYPE string.

text = 'With the advent of ES6 (referred to as ES2015 from here on), which not only made promises native to the language without requiring one of the countless available libraries,'

&& 'we also got generators. Generators have the ability to pause execution' &&

'within a function, which means that by wrapping them in a utility function, ' &&

'we have the ability to wait for an asynchronous operation to finish before' &&

' moving on to the next line of code. Suddenly your asynchronous code could' &&

' start to look synchronous!'.

DATA: it_tline TYPE STANDARD TABLE OF tline.

CREATE OBJECT voice 'SAPI.SpVoice'.

CALL METHOD OF voice 'Speak' = ole

   EXPORTING #1 = text.

*

用的也是很老的OLE技术:

report代码直接call的MS的sound engine,通过sapi.dll暴露出来,

这个report只是call了dll里其中一个speak方法:


要获取更多Jerry的原创技术文章,请关注公众号"汪子熙"或者扫描下面二维码:

相关文章
|
Ubuntu Linux Windows
ABAP report的递归submit和在虚拟机里再次启动另一个虚拟机
ABAP report的递归submit和在虚拟机里再次启动另一个虚拟机
ABAP report的递归submit和在虚拟机里再次启动另一个虚拟机
用ABAP代码将某个report的源代码复制到系统剪切板里
用ABAP代码将某个report的源代码复制到系统剪切板里
94 0
如何检测当前的ABAP report是运行在inactive版本下
如何检测当前的ABAP report是运行在inactive版本下
102 0
获得ABAP report里定义的所有变量及type - GET_GLOBAL_SYMBOLS
获得ABAP report里定义的所有变量及type - GET_GLOBAL_SYMBOLS
115 0
|
vr&ar
ABAP: MRP Result Report
*&---------------------------------------------------------------------**& Report ZTEST_SEAMAN*&*&--------------------------------...
1030 0
|
1月前
|
前端开发 开发工具 Android开发
小技巧分享 - 使用 Visual Studio Code 查看和修改 ABAP 代码试读版
小技巧分享 - 使用 Visual Studio Code 查看和修改 ABAP 代码试读版
15 0
小技巧分享 - 使用 Visual Studio Code 查看和修改 ABAP 代码试读版
|
1月前
|
开发者 供应链 BI
SAP ABAP CALL SUBSCREEN 代码解析
SAP ABAP CALL SUBSCREEN 代码解析
47 0

热门文章

最新文章