08-01-2007 1:48 PM
08-01-2007 1:54 PM
loop at itab.
read t100 .
endloop.
Reward points if helpful.
Regards.
Srikanta Gope
08-01-2007 1:52 PM
08-01-2007 1:53 PM
Hi,
While doing the CALL TRANSACTION, use the MESSTAB to hold the data into this table
<b>LOOP AT it_messtab.
IF NOT it_messtab-msgtyp = c_war_mes AND " 'W' AND
NOT it_messtab-msgtyp = c_info_mes. " 'I'.
Retrieving the Message text for the Message Number
SELECT SINGLE * FROM t100 WHERE sprsl = it_messtab-msgspra
AND arbgb = it_messtab-msgid
AND msgnr = it_messtab-msgnr.
IF sy-subrc = 0.
g_l_mstring = t100-text.
IF g_l_mstring CS c_con_1. " '&1'.
REPLACE c_con_1 WITH it_messtab-msgv1 INTO g_l_mstring.
REPLACE c_con_2 WITH it_messtab-msgv2 INTO g_l_mstring.
REPLACE c_con_3 WITH it_messtab-msgv3 INTO g_l_mstring.
REPLACE c_con_4 WITH it_messtab-msgv4 INTO g_l_mstring.
ELSE.
REPLACE c_con_val WITH it_messtab-msgv1 INTO g_l_mstring.
REPLACE c_con_val WITH it_messtab-msgv2 INTO g_l_mstring.
REPLACE c_con_val WITH it_messtab-msgv3 INTO g_l_mstring.
REPLACE c_con_val WITH it_messtab-msgv4 INTO g_l_mstring.
ENDIF.
IF NOT it_messtab-msgtyp = c_sucs_mes. "'S'
g_cnt = g_cnt + 1.
ENDIF.
CONDENSE g_l_mstring.
Checking only for Success messages
IF it_messtab-msgtyp = c_sucs_mes. "'S'
IF g_l_mstring+0(5) = c_quote. " 'Quota'.
g_cnt = g_cnt + 1.
Storing the Quote no to a Variable to use in the TEXTS
MOVE: it_messtab-msgv2 TO g_quote.
it_quote_dis-output = g_l_mstring.
APPEND it_quote_dis.
CLEAR it_quote_dis.
ENDIF.
ELSE.
it_quote_dis-output = g_l_mstring.
APPEND it_quote_dis.
CLEAR it_quote_dis.
ENDIF.
ELSE.
ENDIF.
ENDIF.
ENDLOOP.</b>
Regards
Sudheer
08-01-2007 1:54 PM
loop at itab.
read t100 .
endloop.
Reward points if helpful.
Regards.
Srikanta Gope
08-01-2007 1:54 PM
hi yes it canbe possible but you have to write a big logic for that
instead of that u can use this class
rewsrd if usefull
08-01-2007 1:56 PM
without using format message... store the messages in messtab. then use
Retrieving the Message text for the Message Number
SELECT SINGLE * FROM t100
WHERE sprsl = messtab-msgspra
AND arbgb = messtab-msgid
AND msgnr = messtab-msgnr.
Use t100 fields for displaying the messages...