‎2008 May 06 9:16 AM
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
‎2008 May 06 9:23 AM
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
‎2008 May 06 9:25 AM
Hi, there is one fm as
FORMAT MESSAGE
hope it would be useful to you
‎2008 May 06 9:29 AM
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.
‎2008 May 06 9:32 AM
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.