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

Message in Status Bar while using ALV Objects

Former Member
0 Likes
801

Hi All,

If we use ALV in objects (Build in class and methods for ALV),is it possible to display a error message using Message statement in Status bar.

Thanks in advance.

3 REPLIES 3
Read only

Former Member
0 Likes
542

Hi,

Yes, it is possible. You can do it using the ALV Object Model (ALV OO methods) within an event handler method. For example, the event "added_function of cl_salv_events" can be used and you can add code similar to the following code within the event handler method:


CASE e_salv_function.
  WHEN 'XYZ'.
  ...
    MESSAGE w001(00) WITH 'Message text goes here...'.
  ...
ENDCASE.

The warning message will either show up as a popup or in the status bar depending on your user settings. Of course, you can also use other message types (e.g. I, E, S) or other message techniques besides the message statement.

Best Regards,

Jamie

Read only

Former Member
0 Likes
542

Hi,

yes you can do that. message command will work with ALV OOPS as well.

for displaying message in status bar you need to throw either 'E' or 'S' message type.

Hope it will solve you query.

Thanks,

Kamesh

Read only

uwe_schieferstein
Active Contributor
0 Likes
542

Hello

A very simple way of sending a message is:


MESSAGE '<text of message>' TYPE 'S'.

Regards

Uwe