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 Class

Former Member
0 Likes
552

I am using a dynamic table for displaying the output in ALV list.If there is no data then I am using a standard message class to display error message ' No output'.

The logic is,

IF <gi_dynitab> IS INITIAL.

MESSAGE s007 .

ENDIF.

but when there is no data it is not displaying this message.

Is the logic correct? is there any other way to display it?

Or I have to again change the settings ? if yes, how?

4 REPLIES 4
Read only

Former Member
0 Likes
519

hi,

I think you write

raise message ....

regards,

Lokesh

Read only

0 Likes
519

This logic was working for me previously.

IF <gi_dynitab> IS INITIAL.

MESSAGE s007 .

ENDIF.

Edited by: Reshma Vaidya on Nov 5, 2008 10:43 AM

Read only

Former Member
0 Likes
519

Hi,

Its right. Try to debug and find the reason.

u can use like this also.

MESSAGE ID 'AB' TYPE 'S' NUMBER '050'.

Also check whether that message class and message exists or not.

Rhea.

Read only

Former Member
0 Likes
519

You should be using MESSAGE e007 instead of MESSAGE s007, to raise an error message and stop the processing. A success message is ignored at runtime, and the processing just continues.