SAP может говорить :)

Автор ysichov, Березень 19, 2014, 11:06:54 ДП

Попередня тема - Наступна тема

0 Користувачі і 1 Гість дивляться цю тему.

ysichov

Оказывается, SAP может все!


REPORT  Z_SPEECH.
include ole2incl.

parameters : p_mname type char20.

data : ole type ole2_object,
voice type ole2_object,
text   type string.
data : lv_time type t.


at selection-screen.
create object voice 'SAPI.SpVoice'.

text = 'Hello SAP user. What do you want?  I dont want to work. Shut down your computer and go away!'.
call method of voice 'Speak' = ole

exporting #1 = text.
message text type 'E'.