cancel
Showing results for 
Search instead for 
Did you mean: 

Regarding duplication of messages

Former Member
0 Kudos

Hi All,

In my requirement, Im using Three ALV usages in 3 tabs.

I'm using the Mesasge area to populate the messages.

The messages are getting replicated in the message area.

Sometimes the moving scrollbar on the ALV either is causing peculiar problem like replicating the

messages in the message area.

Does the scrollbar movement has something to do with MessageArea.....

What can be the reasons for the replication of messages in the message area.

What can be the real usage of the SCOPE_PERMANENT_MSG in the respective methods of the Message manager.

What can be possible reasons for this behavior of the message area.

Highly Appreciate your earliest replies.

Regards,

Lekha.

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Not solved

Former Member
0 Kudos

I could avoid the UI errors duplication. But not logical errors.

If no errors are there I'm firing to next view.

I checked in the debugging...

It is giving checking for some validation and because of it, not proceeding to Next view and showing the message in the same view 2times.

In this class CL_WDR_ACTION-FIRE method code----

create object event
    exporting
      name       = if_wdr_action~ui_event
      parameters = parameter_list.
  o = controller->invoke_eventhandler( name = event_handler event = event ).
  ret ?= o.
  if me->is_validating = abap_false. ------------------------------------>Here the value is set to space or 'X'
    if ( not ret is initial ) and ( ret->is_validating = abap_false ).
      raise exception type cx_wdr_rt_exception
        exporting
          textid = cx_wdr_rt_exception=>illegal_result_for_action.
    endif.
  else.
    if ( not ret is initial ).
      raise exception type cx_wdr_rt_exception
        exporting
          textid = cx_wdr_rt_exception=>result_not_allowed_for_action.
    endif.
  endif.

For UI related one, If it is space Im able show message only once and remained inthe same view.I resolved this. But for logical errors this is set to 'X' and showing the same messge twice in the same view.

I could resolove the same related to UI error but still to do with the business logic errors.

As per my understanding, I think internally it is firing the Next view plug and based on this above

space or X of the above method.....Its showing 2times the same message.

Moving a Scrollbar on the ALV is also duplicating the messages.

Thomas: Can you please let me know the possible cause for these.

Replies are highly appreciated.

Regards,

Lekha

Former Member
0 Kudos

Moving scrollbar is causing a ALV event ON_CELL_EDIT thus eventually resulting call to server. Thus the messages are getting raised everytime scroll is made !!

Well i would suggest that you declare a method in component controller that will be called whenever you want to display message. Within this method first clear all existing messages from IF_WD_MESSAGE_MANAGER and then pass on the new Message.

Greetings

Prashant

Former Member
0 Kudos

Hi,

I'm unable to trace the ON_CELL_EDIT event. Where can I find this method of which ALV class.

What is the event for the ALV scrollbar event that gets triggered.

Regards,

Lekha

Former Member
0 Kudos

Hi

Solved only part of it.

Regards,

Lekha.