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

Function module for message collect

Former Member
0 Likes
2,037

Hi there,

I'm looking for an function module that allows me to collect messages and then also displays a popup after finishing the collect.

The popup window should have the possibilty to let me know which button the user pressed. Because I wanna ask him "Do you wanna really save although these errors/warnings?"...

Is there sth that I can use directly? Perhaps also in a CRM-system

Thanks!

Regards

Markus

4 REPLIES 4
Read only

Sm1tje
Active Contributor
0 Likes
1,114

well in CRM there definitely is a function module for collecting messages. These message will eventually be displayed at the top of the screen. I have NO CRM system at hand right now, but look indeed for something like messagecollect* or collectmessage* in SE37.

Found it in documentation of mine:

CRM_MESSAGE_COLLECT of function group CRM_MESSAGES.

Edited by: Micky Oestreich on May 6, 2008 10:24 AM

Read only

Former Member
0 Likes
1,114

Hi, there is one fm as

FORMAT MESSAGE

hope it would be useful to you

Read only

Former Member
0 Likes
1,114

Hi,

SELECT-OPTIONS: s_pernr FOR pa0001-pernr.

DATA: it_pernr TYPE popuptext OCCURS 0 WITH HEADER LINE.

DATA: v_ans,

v_body_lines TYPE i.

START-OF-SELECTION.

it_pernr-topofpage = 'X'.

it_pernr-text = ' '.

APPEND it_pernr.

CLEAR it_pernr.

it_pernr-topofpage = 'X'.

it_pernr-text = 'Are you sure to transfer EMIT/SAS employees ?'.

APPEND it_pernr.

CLEAR it_pernr.

it_pernr-topofpage = 'X'.

it_pernr-text = ' '.

APPEND it_pernr.

CLEAR it_pernr.

it_pernr-text = 'Message 1'.

APPEND it_pernr.

CLEAR it_pernr.

it_pernr-text = 'Message 2'.

APPEND it_pernr.

CLEAR it_pernr.

IF NOT s_pernr[] IS INITIAL.

LOOP AT s_pernr.

it_pernr-text = s_pernr-low.

APPEND it_pernr.

CLEAR it_pernr.

ENDLOOP.

CALL FUNCTION 'DD_POPUP_WITH_LIST'

EXPORTING

titel = 'Confirm Employee '

listtitel = 'Employee No '

start_column = 10

start_row = 1

end_column = 60

end_row = 20

IMPORTING

answer = v_ans

TABLES

lines = it_pernr.

IF v_ans = 'Y'.

WRITE:/'Coool'.

ELSE.

WRITE:/'Think Again'.

ENDIF.

ENDIF.

Read only

Former Member
0 Likes
1,114

Try this FOLLOWING function MODULE

CALL FUNCTION 'CRM_MESSAGE_COLLECT'

EXPORTING

iv_caller_name = gc_object_name-billplan

iv_ref_object = iv_header_guid

iv_ref_kind = gc_object_ref_kind-orderadm_h

iv_msglevel = gc_msglevel-administrator.

Hope it will help you.

Regards,

madan.