28/09/2010

SAP knows how to speak


REPORT ZADN_SAMPLE.

INCLUDE ole2incl.

DATA : v_objole TYPE ole2_object,
v_objolevoice TYPE ole2_object,
v_strtotalk TYPE string.

CREATE OBJECT v_objolevoice 'SAPI.SpVoice'.

v_strtotalk = 'SAP is the market and technology leader in business management software'.

CALL METHOD OF v_objolevoice 'Speak' = v_objole
EXPORTING #1 = v_strtotalk.

WAIT UP TO 1 SECONDS.

v_strtotalk = 'ABAP DEVELOPER NETWORK'.

CALL METHOD OF v_objolevoice 'Speak' = v_objole
EXPORTING #1 = v_strtotalk.

FREE: v_objolevoice,v_objole.

Nenhum comentário:

Postar um comentário