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: 

Need to display multiple messages

Former Member
0 Kudos
4,179

Hi All,

I have a requirement, wherein, I have to display a list of messages on screen. How to go about it? Is there any function module or something that displays a popup with the messages given?

Thanks,

Raj.

4 REPLIES 4

jaideeps
Advisor
Advisor
0 Kudos
549

hi,

you can use Inernal table to store the messages

You can use FM 'SLS_MISC_SHOW_MESSAGE_TAB'.

DATA: it_messages LIKE sls_msgs OCCURS 0 WITH HEADER LINE.

START-OF-SELECTION.

CLEAR it_messages.

MOVE '001' TO it_messages-num.

MOVE 'message001' TO it_messages-msg.

APPEND it_messages.

CLEAR it_messages.

MOVE '002' TO it_messages-num.

MOVE 'message002' TO it_messages-msg.

APPEND it_messages.

CLEAR it_messages.

MOVE '003' TO it_messages-num.

MOVE 'message003' TO it_messages-msg.

APPEND it_messages.

CALL FUNCTION 'SLS_MISC_SHOW_MESSAGE_TAB'

TABLES

p_messages = it_messages

  • EXCEPTIONS

  • NO_MESSAGES_PROVIDED = 1

  • OTHERS = 2

.

thanks

jaideep

*reward points if useful..

Former Member
0 Kudos
549

Dear,

Create a FM , which has the Internal table filled by the Message, after getting that create a screen in that Function Group, and call it like a Popup( call Screen Starting at.... ending at..)

In the PBO of that screen filled a field Catalog of ALV Grid Control and display it By Method " Set_Table_For_First_Display"

In PAI on Close n Ok write Leave to Screen 0,

Now its yr Own FM with Message Popup.

Bye

Give Reward If Helpfull.

0 Kudos
549

Use the Business Application Log (BAL)

see function group SBAL

See demo reports starting with SBAL_DEMO*

Regards,

AndyG

Former Member
0 Kudos
549

hi Raj,

you can also use fm <b>POPUP_WITH_TABLE_DISPLAY</b>