Code listings for SAPLZMESS includes

The below intructions / ABAP code is part of the SAPTAlk Instant messaging program for SAP.

Create the following include files using the code listing below: INCLUDE LZMESSTOP. " global Data INCLUDE LZMESSO01. " PBO-Modules INCLUDE LZMESSI01. " PAI-Modules


*INCLUDE LZMESSTOP
FUNCTION-POOL ZMESS.                        "MESSAGE-ID ..
data: ok_code like sy-ucomm,
      save_ok like sy-ucomm,
      sc_messagetxt(200)  type c.


*INCLUDE LZMESSO01
*--------------------------------------------------------------*
***INCLUDE LZMESSO01 .
*--------------------------------------------------------------*
*&-------------------------------------------------------------*
*&      Module  STATUS_0100  OUTPUT
*&-------------------------------------------------------------*
*       text
*--------------------------------------------------------------*
MODULE STATUS_0100 OUTPUT.
  SET PF-STATUS 'MESS'.
*  SET TITLEBAR 'xxx'.
ENDMODULE.                 " STATUS_0100  OU


*INCLUDE LZMESSI01
*--------------------------------------------------------------*
***INCLUDE LZMESSI01 .
*--------------------------------------------------------------*
*&-------------------------------------------------------------*
*&      Module  USER_COMMAND_0100  INPUT
*&-------------------------------------------------------------*
*       text
*--------------------------------------------------------------*
MODULE USER_COMMAND_0100 INPUT.
  save_ok = ok_code.
  case ok_code.
    when 'EXIT' or 'BACK' or 'CANC'.
      leave to screen 0.
    when 'SEND' or ' '.
      leave to screen 0.
  endcase.
ENDMODULE.                 " USER_COMMAND_0100  INPUT

Related Articles

Background to the SAPTalk application
SapTALK User Messaging service
Example SAPTalk Screens
SAPTalk create screen 0100 with the following elements (see below screen shots for layout):
Create function module Z_SEND_MESSAGE
Create function module Z_ENQUE_SLEEP
Creation of GUI Status FEEDBACK
Creation of GUI Status 'MESS'
Creation of GUI Status 'OPTIONS'
Creation GUI Status 'ULIST'
SAPTalk - MSM messenger application for SAP
Code listings for SAPTALK includes
Code listing for ZSAPTALKF01(include)
Code listing for ZSAPTALKI01(include)
Code listing for ZSAPTALKO01(include)
SAPTalk selection screen parameters
Code listing for ZSAPTALKTOP(include)



SAPTALK - table creation
Code listing for ZMESSCLEARUP
ZMESS: Function group creation details
Code listings for SAPLZMESS(fgroup)
SAPLZMESS(fgroup ZMESS) - Screen creation
SapTALK: Report creation details
Code listing for SAPTALK
SAPTALK - Include creation
SAPTALK - Screen creation
SAPTALK - GUI Status creation
SAPTALK - GUI Title creation
SapTALK - Transaction creation
Create SAPTalk SAP tables
Create table ZMESSFRIENDS
Create table ZMESSOPTIONS
Create table ZMESSTAB
SAPLZMESS(fgroup)- Function module creation
Message Class and messages
SAPTalk Parameter ID's
SAPTAlk clearup tranasction code