Skip to Content
author's profile photo Former Member
Former Member

Make a "beep" using the pcu00B4s speaker


How can I force a "beep" (sound) using the pc´s speaker using ABAP ?

Thanks in adevance.

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Posted on Apr 06, 2004 at 03:29 PM

    Try this:

    <i>REPORT zbeep .

    INCLUDE ole2incl.

    DATA wordbasic TYPE ole2_object.

    DATA objectvar1 TYPE ole2_object.

    CREATE OBJECT wordbasic 'Word.Basic' .

    CALL METHOD OF wordbasic 'Beep' = objectvar1

    EXPORTING #1 = '1' .



    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      I have been testing this report, but there is a problem. It opens Microsoft Word on memory and don't close it.

      I suppose that it can't work if you don't have Word installed... but I can test it

  • Posted on Apr 07, 2004 at 07:30 AM

    data: h_com1 type ole2_object.

    data beep type x.

    data command(100) type c.

    beep = '07'.

    concatenate 'cmd /c echo' beep into command separated by space.

    create object h_com1 'SAPINFO' no flush.

    if sy-subrc <> 0.



    if not h_com1 is initial.

    constants: sw_hide type i value 0,

    sw_shownormal type i value 1,

    sw_show type i value 5.

    call method of h_com1 'EXEC' = return

    exporting #1 = command

    #2 = sw_hide.

    if sy-subrc = 0.

    endif. "// SY-SUBRC

    free h_com1.


    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.