Application Development and Automation 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: 
Read only

displaying multiple messages in a single window

Former Member
0 Likes
2,577

Hi,

i have several messages in an internal table and i need to display all those with in the same dialog box/window. is there any function module to do that.

Regards,

ravi.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,358

Hi,

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

.

Hi,

i have several messages in an internal table and i need to display all those with in the same dialog box/window. is there any function module to do that.

Regards,

ravi.

3 REPLIES 3
Read only

former_member194669
Active Contributor
0 Likes
1,358

Hi,

Use

call function 'REUSE_ALV_POPUP_TO_SELECT'

aRs

Read only

Former Member
0 Likes
1,358

Hi,

Check the FM POPUP_WITH_TABLE_DISPLAY

Thanks,

Naren

Read only

Former Member
0 Likes
1,359

Hi,

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

.