cancel
Showing results for 
Search instead for 
Did you mean: 

WD Message Manager - collect messages

martin_mayer
Advisor
Advisor
0 Kudos

Hi All,

we work with 2 WD-applications reporting their message in the messagearea of WD-application#1

How can I report messages without losing existing messages?

I found note 940762 in this forum saying that it is possible to collect message using the parameter is_permanent or/and scope_permantent_msg.

example:

CALL METHOD lr_message_manager->report_exception

EXPORTING

message_object = lr_exc_core

  • IS_PERMANENT = ABAP_FALSE

SCOPE_PERMANENT_MSG = 0.

Can anyone describe the differences between the 2 options?

What else can I do to collect messages?

Thanks, Martin

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member215843
Active Participant
0 Kudos

Hi Martin,

if you just use IS_PERMANENT, you have to remove your messages, when they should not be displayed anymore. If you set scope_permanent_msg e.g. to if_wd_message_manager=>co_msg_scope_controller and you set a controller reference, the message will be removed, when the controller is deleted.

Regards, Regina