Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

How to pass the N number of message in the In the internal table.

Former Member
0 Kudos

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

6 REPLIES 6

gerd_rother
Active Participant
0 Kudos

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

agnihotro_sinha2
Active Contributor
0 Kudos

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

0 Kudos

Hi sir,

I have searched for the mentioned functional module i didn't get it.

Please suggest................

0 Kudos

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]

0 Kudos

Try FM 'C14Z_MESSAGES_SHOW_AS_POPUP'.

You can pass your messages and it shows them as a table.

Former Member
0 Kudos

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.