10-07-2008 6:32 PM
Hi
Can anyone please tell me the function module that is used to read the message text from SE91 .
THank you
10-07-2008 7:26 PM
Hi,
CALL FUNCTION 'FORMAT_MESSAGE'
EXPORTING
id = gwa_msgtab-msgid
lang = 'EN'
no = gwa_msgtab-msgnr
v1 = gwa_msgtab-msgv1
v2 = gwa_msgtab-msgv2
v3 = gwa_msgtab-msgv3
v4 = gwa_msgtab-msgv4
IMPORTING
msg = lv_msg_txt
EXCEPTIONS
not_found = 1
OTHERS = 2.
Thanks,
Senthil
10-07-2008 6:49 PM
you can use any of the below function modules and the data is stored in T100 table.
RP_READ_T100
RP_READ_T100_BDC
T100_READ_SINGLE
T100_SINGLE_READ
10-07-2008 6:59 PM
You can use:
CALL FUNCTION 'BAL_DSP_TXT_MSG_READ'
EXPORTING
i_langu = sy-langu
i_msgid = l_f_message-msg-msgid
i_msgno = l_f_message-msg-msgno
i_msgv1 = l_f_message-msg-msgv1
i_msgv2 = l_f_message-msg-msgv2
i_msgv3 = l_f_message-msg-msgv3
i_msgv4 = l_f_message-msg-msgv4
IMPORTING
e_message_text = l_f_message-msg_txt.
10-07-2008 7:23 PM
Hi,
You can use the function module MESSAGE_PREPARE which displays and formats the message. You have to pass message id, message number and also the variables if any.
Thanks,
Srinivas
10-07-2008 7:26 PM
Hi,
CALL FUNCTION 'FORMAT_MESSAGE'
EXPORTING
id = gwa_msgtab-msgid
lang = 'EN'
no = gwa_msgtab-msgnr
v1 = gwa_msgtab-msgv1
v2 = gwa_msgtab-msgv2
v3 = gwa_msgtab-msgv3
v4 = gwa_msgtab-msgv4
IMPORTING
msg = lv_msg_txt
EXCEPTIONS
not_found = 1
OTHERS = 2.
Thanks,
Senthil