SAP Reports / Programs

RSMSG_MH_TEST SAP ABAP Report - Test program for SMSG message handler







RSMSG_MH_TEST is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). Below is the basic information available for this SAP report including which OBJECTS it interacts with such as TABLES, FUNCTION MODULES, INCLUDES ETC. Also check out the submitted Comments related to this SAP report or see any standard documentation available.

If you would like to execute this report or see the full code listing simply enter RSMSG_MH_TEST into the relevant SAP transactions such as SE38 or SE80


ABAP code to call this SAP report using the submit statement

This report can be called from another progam/report simply by using the ABAP SUBMIT statement, see below for example ABAP code snipts of how to do this.






SUBMIT RSMSG_MH_TEST. "Basic submit
SUBMIT RSMSG_MH_TEST AND RETURN. "Return to original report after report execution complete
SUBMIT RSMSG_MH_TEST VIA SELECTION-SCREEN. "Display selection screen of submitted report to user
    See more syntax options for the ABAP SUBMIT statement


Text pool values


Title: Test program for SMSG message handler


INCLUDES used within this REPORT RSMSG_MH_TEST

No INCLUDES are used within this REPORT code!


TABLES used within REPORT and the associated SELECT statement:





No SAP DATABASE tables are accessed within this REPORT code!


Function Modules used within report and the associated call statement:

MESSAGES_INITIALIZE CALL FUNCTION 'MESSAGES_INITIALIZE' EXPORTING I_IDENTIFICATION = GD_IDENTIFICATION I_STORE_DUPLICATES = GD_STORE_DUPL IMPORTING E_IDENTIFICATION = GD_IDENTIFICATION.

MESSAGES_ACTIVE CALL FUNCTION 'MESSAGES_ACTIVE' EXCEPTIONS NOT_ACTIVE = 4.

MESSAGE_SET_DEFAULTLINE CALL FUNCTION 'MESSAGE_SET_DEFAULTLINE' EXPORTING ZEILE = 'Zeile 2'. "#EC NOTEXT

MESSAGE_SET_DEFAULTLINE CALL FUNCTION 'MESSAGE_SET_DEFAULTLINE' EXPORTING ZEILE = 'Zeile 1'. "#EC NOTEXT

MESSAGE_SET_DEFAULTLINE CALL FUNCTION 'MESSAGE_SET_DEFAULTLINE' EXPORTING ARBGB = '38' TXTNR = '001' ZEILE = 'NoMsg' "#EC NOTEXT MODIFY = ' '.

MESSAGES_ACTIVE CALL FUNCTION 'MESSAGES_ACTIVE' EXCEPTIONS NOT_ACTIVE = 4.

MESSAGE_SET_DEFAULTLINE CALL FUNCTION 'MESSAGE_SET_DEFAULTLINE' EXPORTING ARBGB = GD_XMESG-MSGID MSGTY = GD_XMESG-MSGTY MSGV1 = GD_XMESG-MSGV1 MSGV2 = GD_XMESG-MSGV2 MSGV3 = GD_XMESG-MSGV3 MSGV4 = GD_XMESG-MSGV4 TXTNR = GD_XMESG-MSGNO ZEILE = GD_XMESG-ZEILE MODIFY = ' '.

MESSAGE_LINE_SET CALL FUNCTION 'MESSAGE_LINE_SET' EXPORTING ZEILE = GD_XMESG-ZEILE I_IDENTIFICATION = GD_IDENTIFICATION.

MESSAGE_LINE_RESET CALL FUNCTION 'MESSAGE_LINE_RESET' EXPORTING I_IDENTIFICATION = GD_IDENTIFICATION.

MESSAGES_STOP CALL FUNCTION 'MESSAGES_STOP' EXPORTING I_RESET_IDENTIFICATION = TRUE EXCEPTIONS A_MESSAGE = 1 E_MESSAGE = 2 I_MESSAGE = 3 W_MESSAGE = 4 DEACTIVATED_BY_MD = 5 OTHERS = 6.

MESSAGES_ACTIVE CALL FUNCTION 'MESSAGES_ACTIVE' EXCEPTIONS NOT_ACTIVE = 4.

MESSAGES_GIVE CALL FUNCTION 'MESSAGES_GIVE' * EXPORTING * I_ZEILE = ' ' * I_INCL_TITLE = 'X' TABLES T_MESG = LT_MESG.

MESSAGES_SHOW CALL FUNCTION 'MESSAGES_SHOW' EXPORTING CORRECTIONS_OPTION = GD_CORROP CORRECTIONS_FUNC_TEXT = GD_CORRTEXT LINE_FROM = GD_SHOWLINEFROM LINE_TO = GD_SHOWLINETO OBJECT = GD_OBJECT * SEND_IF_ONE = ' ' * BATCH_LIST_TYPE = 'J' SHOW_LINNO = GD_SHOWLINO SHOW_LINNO_TEXT = GD_LINETEXT SHOW_LINNO_TEXT_LEN = GD_LTEXTLEN I_USE_GRID = GD_USE_GRID I_AMODAL_WINDOW = GD_AMODAL IMPORTING CORRECTIONS_WANTED = GD_CORR_WANTED EXCEPTIONS INCONSISTENT_RANGE = 1 NO_MESSAGES = 2 OTHERS = 3.

MESSAGE_STORE CALL FUNCTION 'MESSAGE_STORE' EXPORTING ZEILE = I_ZEILE ARBGB = I_MSGID MSGTY = LD_MSGTY TXTNR = LD_TXTNR MSGV1 = I_MSGV1 MSGV2 = I_MSGV2 MSGV3 = I_MSGV3 MSGV4 = I_MSGV4 EXCEPTIONS OTHERS = 4.

MESSAGE_EXPORT_IMPORT CALL FUNCTION 'MESSAGE_EXPORT_IMPORT' EXPORTING EX_OR_IF = I_EX_IF EXCEPTIONS EMPTY = 1 NOT_ACTIVE = 2 OTHERS = 3.

GUI_UPLOAD CALL FUNCTION 'GUI_UPLOAD' EXPORTING FILENAME = LD_FILENAME * FILETYPE = 'ASC' * FILETYPE = 'BIN' HAS_FIELD_SEPARATOR = 'X' * HEADER_LENGTH = 0 IMPORTING FILELENGTH = LD_FILELENGTH * HEADER = TABLES DATA_TAB = T_XMESG EXCEPTIONS FILE_OPEN_ERROR = 1 FILE_READ_ERROR = 2 NO_BATCH = 3 GUI_REFUSE_FILETRANSFER = 4 INVALID_TYPE = 5 NO_AUTHORITY = 6 UNKNOWN_ERROR = 7 BAD_DATA_FORMAT = 8 HEADER_NOT_ALLOWED = 9 SEPARATOR_NOT_ALLOWED = 10 HEADER_TOO_LONG = 11 UNKNOWN_DP_ERROR = 12 ACCESS_DENIED = 13 DP_OUT_OF_MEMORY = 14 DISK_FULL = 15 DP_TIMEOUT = 16 OTHERS = 17.

GUI_DOWNLOAD CALL FUNCTION 'GUI_DOWNLOAD' EXPORTING * BIN_FILESIZE = FILENAME = GD_FULLPATH * FILETYPE = 'ASC' * APPEND = ' ' WRITE_FIELD_SEPARATOR = 'X' * HEADER = '00' * TRUNC_TRAILING_BLANKS = ' ' WRITE_LF = 'X' * COL_SELECT = ' ' * COL_SELECT_MASK = ' ' IMPORTING FILELENGTH = LD_FILELENGTH TABLES DATA_TAB = T_XMESG EXCEPTIONS FILE_WRITE_ERROR = 1 NO_BATCH = 2 GUI_REFUSE_FILETRANSFER = 3 INVALID_TYPE = 4 NO_AUTHORITY = 5 UNKNOWN_ERROR = 6 HEADER_NOT_ALLOWED = 7 SEPARATOR_NOT_ALLOWED = 8 FILESIZE_NOT_ALLOWED = 9 HEADER_TOO_LONG = 10 DP_ERROR_CREATE = 11 DP_ERROR_SEND = 12 DP_ERROR_WRITE = 13 UNKNOWN_DP_ERROR = 14 ACCESS_DENIED = 15 DP_OUT_OF_MEMORY = 16 DISK_FULL = 17 DP_TIMEOUT = 18 FILE_NOT_FOUND = 19 DATAPROVIDER_EXCEPTION = 20 CONTROL_FLUSH_ERROR = 21 OTHERS = 22.



Contribute (Add Comments)

Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.







The contribute/comments section below therefore offer's an opportunity for anyone to add additional information. This can be anything from useful hints, tips and screen shots to relevant SAP notes or anything else you feel is relevant to this report.

This will then be available for everyone to easily find by simply searching on the report name RSMSG_MH_TEST or its description.