‎2008 Aug 05 11:46 AM
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.
‎2008 Aug 05 3:58 PM
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
‎2008 Aug 05 4:16 PM
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
‎2008 Aug 05 9:52 PM
Hello
A very simple way of sending a message is:
MESSAGE '<text of message>' TYPE 'S'.
Regards
Uwe