使用LXE_SP_CHECKSPELLING_MS进行ABAP文本拼写检查

100 阅读1分钟

Created by Jerry Wang on Jun 11, 2014

使用如下代码进行测试:

DATA: lv_string TYPE string VALUE 'thia is a text'.
CALL FUNCTION 'LXE_SP_CHECKSPELLING_MS'
  EXPORTING
    isolanguage = 'EN'
  CHANGING
    buffer      = lv_string.

WRITE: / lv_string.

[外链图片转存失败(img-CrX9VVCq-1562210632459)(user-images.githubusercontent.com/5669954/272…)]
利用OLE创建word application:
[外链图片转存失败(img-rdEdNTMZ-1562210632460)(user-images.githubusercontent.com/5669954/272…)]
弹出word界面:
[外链图片转存失败(img-Xr2101Di-1562210632460)(user-images.githubusercontent.com/5669954/272…)]
点change button:
clipboard4

点change button:
clipboard5
report输出:
clipboard6

用process monitor能观察到word application以/Automation -Embedding的方式在后台启动:

clipboard7