SAP Function MESSAGES_SHOW - Display collected messages and associated long texts

Parameter Reference Type Length Default Optional Text
BATCH_LIST_TYPE C C 0 'J' X J = job log / L = in spool list / B = both
CORRECTIONS_FUNC_TEXT ANY A 0 SPACE X Text for Function Key "corrections_wanted"
CORRECTIONS_OPTION C C 0 SPACE X If warnings occur: Corrections possible
I_AMODAL_WINDOW BOOLE-BOOLE C 1 ' ' X Amodal Display (X=ja)
I_USE_GRID C C 0 ' ' X Use ALV Grid for Display; Otherwise Classic ALV
LINE_FROM ANY A 0 SPACE X Only show messages with longer reference line
LINE_TO ANY A 0 SPACE X Only show messages with shorter reference line
MSG_SELECT_FUNC C C 0 SPACE X Message return possible
MSG_SELECT_FUNC_TEXT ANY A 0 SPACE X Text for Function Key "msg_selection_option"
OBJECT ANY A 0 SPACE X Object for title in message dialog box
SEND_IF_ONE BOOLE_D C 1 SPACE X Message sent directly if number = 1
SHOW_LINNO BOOLE_D C 1 'X' X Also show line numbers
SHOW_LINNO_TEXT C C 0 SPACE X Column header for row
SHOW_LINNO_TEXT_LEN 0 '3' X Column width for row in display

Parameter Reference Type Length Text
CORRECTIONS_WANTED 0 If warnings occur: Corrections required
E_EXIT_COMMAND BAL_S_EXCM u 5 Information: Dialog closed by Enter/Cancel/Back
MSG_SELECTED SMESG u 319 Message Collector

Exception Text
INCONSISTENT_RANGE LINE_TO is shorter than LINE_FROM
NO_MESSAGES No messages in required interval

Description of the Function Module MESSAGES_SHOW
This function module controls a dialog box in which all messagescollected so far are displayed. You can browse through the messages inthis dialog box and select a message to display its long text. If thefunction module MESSAGE_STORE uses the parameter ZEILE, the display canbe restricted to an interval of lines. The parameter SHOW_LINNO can beused to suppress the line number display.
Example:
CALL FUNCTION 'MESSAGES_SHOW'
EXPORTING SHOW_LINNO = SPACE
EXCEPTIONS NO_MESSAGES = 1.
INCLUDE R3TR_FUGR_SMSG OBJECT DOKU ID TX LANGUAGE E
If possible<(>,<)> the function module MESSAGES_SHOW should be calledfrom a function labelled with #Messages#.
The importing parameter I_USE_GRID should be used only if the messagehandler is called in a transaction environment. Do not set this switchif the message handler is called from a list.

Description

Indicator that controls the message log in background processing.
,,

Value range

Value for BATCH_LIST_TYP,,,,Meaning
J,,,,,,,,,,,,Messages will be printed in job log only
L,,,,,,,,,,,,Messages will be printed in spool list only
B,,,,,,,,,,,,Messages will be printed, both in job log and in spool list

Description
If CORRECTIONS_OPTION = 'X' and the maximum message type = 'W'(warning), there will be an extra pushbutton for the user to decide thatthe process should be stopped. If the user uses the extra pushbutton,the exception CORRECTIONS_WANTED will be raised.

381701SAPLKIPL: Integration into customer-specific programs
391712Interface: termination BL194