top of page

SAP ABAP - Read any text with voice or give an error sound

Updated: Aug 29, 2022





DATA : ole   TYPE ole2_object,
                        voice TYPE ole2_object,

text   TYPE string.

CREATE OBJECT voice 'SAPI.SpVoice'.
    text = 'GONG'. "" write anything to speak 
    CALL METHOD OF voice
        'Speak' = ole
      EXPORTING
        #1      = text.




219 views0 comments

Recent Posts

See All
Post: Blog2_Post
bottom of page