The below intructions are part of the SAPTAlk Instant messaging program for SAP.
Create function module with following signiture and source code.
*Code required to create function module FUNCTION Z_SEND_MESSAGE. *"-------------------------------------------------------------- *"*"Local interface: *" EXPORTING *" REFERENCE(MESSAGE) TYPE STRING *" EXCEPTIONS *" CANCELED *"-------------------------------------------------------------- CALL SCREEN 100 STARTING AT 10 10 ENDING AT 100 15. if save_ok EQ 'SEND' or save_ok is initial. message = sc_messagetxt. clear: sc_messagetxt. else. raise canceled. endif. ENDFUNCTION.