05-08-2010 9:01 AM
Dear all,
I got the messages in the I_RETURN table.It contain 3 messages . When i using the following f m i got one message.
But i have show these message in the pop up screen.
loop at i_return where TYPE = 'E'.
endloop.
call function 'POPUP_TO_INFORM'
exporting
titel = 'ERROR IN PURCHAE ORDER CREATION'
txt1 = I_RETURN-message.
txt2 = 'text2'
exceptions
others = 0.
I need the all Messages
Please help me
05-08-2010 9:59 AM
Hi,
You can do this b using the functions in function group SMSG: MESSAGES_INITIALIZE (called once at the beginning), MESSAGES_STORE (called for each E-message) and MESSAGES_SHOW (called at the end to show the messages.
Regards, Gerd Rother
05-08-2010 12:16 PM
hi,
so you want all messages in I_RETURN to be displayed in a sinngle POP UP SCREEN if i am right?
1: get all messages from the table I_RETURN of type 'E' to it_mess inside the loopa as you hv done now
2: now pass this Internal table IT_MESS to an REUSE_ALV_POPUP function module.
3: this function module will display all messages in pop up.
This might help in some way:
http://agssapblog.blogspot.com/2009/12/display-errorsuccesswarning-messages-at.html
ags.
Edited by: ags on May 8, 2010 4:47 PM
05-10-2010 11:46 AM
Hi sir,
I have searched for the mentioned functional module i didn't get it.
Please suggest................
05-10-2010 11:57 AM
hi
Try this FM POPUP_WITH_TABLE_DISPLAY
pass the internal table to valuetab
[PoPup FM|http://wiki.sdn.sap.com/wiki/display/ABAP/Standardizeddialogs%28popupfunctionmodules%2C+etc.%29]
05-10-2010 12:04 PM
Try FM 'C14Z_MESSAGES_SHOW_AS_POPUP'.
You can pass your messages and it shows them as a table.
05-10-2010 12:14 PM
hi,
use this Fm and pass an internal table with following fields
MSGID
MSGTY
MSGNO
MSGV1
MSGV2
MSGV3
MSGV4
LINENO
CALL FUNCTION 'C14Z_MESSAGES_SHOW_AS_POPUP'
TABLES
i_message_tab = it_msg1.