cancel
Showing results for 
Search instead for 
Did you mean: 

WD abap - destroy success message

Former Member
0 Kudos

Hello,

I have a screen where I do the following:

CALL METHOD l_message_manager->report_success

EXPORTING

message_text = 'Changes were successfully saved!'.

when I navigate to another screen messsage area is still there but without the message.

How can I destroy message area without calling reset_view method?

Thank you.

Accepted Solutions (0)

Answers (2)

Answers (2)

thomas_szcs
Active Contributor
0 Kudos

Hi Georgy,

The message is still visible, because success and warning messages are kept in the message history. It can be accessed by pressing the "show details" button on the message area. If the message area was hidden, it would be impossible for a user to access the message history.

Currently, the fact that there are items inside of the history is not visualized. Hence users get confused :). We are working on solving this issue by either displaying an additional hint or allowing to switch off the history.

Best regards,

Thomas

Former Member
0 Kudos

Hi Thomas,

Thank you for your answer.

It seems to be very inconvenient since if the user navigates to a different screen the message area is still there.

What you are saying is that one message area gets displayed there is no way to get rid of it unless refresh the screen?

Thanks.

thomas_szcs
Active Contributor
0 Kudos

Hi Georgy,

>It seems to be very inconvenient since if the user

>navigates to a different screen the message area is

>still there.

Yeah, it's only due to the message history. There is the idea to make it possible to switch it off. In that case the message area would become invisible automatically again in case no message was raised.

>What you are saying is that one message area gets

>displayed there is no way to get rid of it unless

>refresh the screen?

Only for success and warnings. Error messages are not kept in the history as they rather reflect the current state of an application. There is a way to get rid of the message - switching to old style message display (can be specified at the application). Of crourse, this soluation has drawbacks. The old style message displays lacks several features, like displaying message documentation, scrolling of messages, etc.

Personally, I would still use the new message area and accept for the moment that it won't get hidden once an success or warning message is raised. We are working on providing an improved user feedback that tells a user that the history contains items (reducing confusion) and making it possible to switch off the history (reenabling auto-hiding). That means that the problem will auto-solve itself at some time.

Best regards,

Thomas

Former Member
0 Kudos

Hello Thomas,

I appreciate your input.

Thank you.

--

Georgy

Former Member
0 Kudos

Hello Thomas,

Here is another question that came up.

When I get message area on one screen I can see one message in history but after navigation to another screen that message gets deleted. Why does it get deleted?

If it is supposed to be this way than there are not more message in history so why do I still see message area?

Thank you.

--

Georgy

thomas_szcs
Active Contributor
0 Kudos

Hi Georgy,

If you expand the message area, do you see any message on any of the two tabs?

Best regards,

Thomas

Former Member
0 Kudos

Hello Thomas,

No, I do not see any messages.

Thanks.

--

Georgy

thomas_szcs
Active Contributor
0 Kudos

Hi Georgy,

This sounds like an interesting bug. I was wondering, if you could create an oss ticket please? A colleague of mine will take a look.

Thanks and best regards,

Thomas

Former Member
0 Kudos

Georgy,

In WD Java there is a way to make message area invisible via UI control property bound to context attribute of type Visibility.. Or to call destroyElement on MessageArea in wdDoModifyView. Try something like this in WD ABAP.

VS